/* Firasa Limited — site styles */

:root {
  --color-bg: #ffffff;
  --color-fg: #0a1e34;
  --color-muted: #5a6779;
  --color-border: #e4e8ef;
  --color-surface: #f6f8fb;
  --color-surface-2: #eef2f8;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-soft: #e8f0ff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 52, 0.06), 0 1px 1px rgba(10, 30, 52, 0.04);
  --shadow-md: 0 6px 16px rgba(10, 30, 52, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 30, 52, 0.10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; color: var(--color-fg); }
.muted { color: var(--color-muted); }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: 0.25em 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--color-fg); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-fg);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--color-fg);
  font-weight: 500;
  font-size: 0.96rem;
}
.primary-nav a:hover { color: var(--color-accent); text-decoration: none; }
.primary-nav a.btn { color: #fff; }
.primary-nav a.btn:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-fg);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface); color: var(--color-fg); text-decoration: none; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 400px at 10% -20%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(10, 30, 52, 0.06), transparent 60%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lede { font-size: 1.18rem; color: var(--color-muted); margin-bottom: 28px; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual — data lineage motif */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(160deg, #0a1e34 0%, #14365e 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.hero-visual .layer {
  position: absolute;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.hero-visual .layer.l1 { top: 14%; left: 8%; }
.hero-visual .layer.l2 { top: 42%; left: 32%; }
.hero-visual .layer.l3 { top: 70%; left: 56%; }
.hero-visual .layer .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

/* Section heads */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* Service grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6e2;
}
.card h3 { margin-top: 0; margin-bottom: 10px; }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--color-muted); margin: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 14px;
}

/* Anchor cards inherit text colour and never underline themselves */
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; text-decoration: none; }
a.card:hover h3 { color: var(--color-accent); }

/* Surface (alternating section background) */
.surface { background: var(--color-surface); }
.surface .card { background: #fff; }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 2px solid var(--color-accent);
}

/* Pricing block */
.price-band {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-fg);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(140deg, #0a1e34 0%, #14365e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; }
.cta-strip p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.cta-strip .btn-primary { background: #fff; color: var(--color-fg); }
.cta-strip .btn-primary:hover { background: #e8f0ff; color: var(--color-fg); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}
.stat .label {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Page hero (subpages) */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-hero p { max-width: 62ch; color: var(--color-muted); font-size: 1.08rem; }

/* Page hero — split layout with visual partner */
.page-hero-split { padding-bottom: 72px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-hero-visual {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #eef2f8 0%, #f6f8fb 100%);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}
.page-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.page-hero-visual figcaption {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-surface); font-weight: 600; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
tr:last-child td { border-bottom: 0; }

/* Code/pill */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--color-fg);
}

/* Footer */
.site-footer {
  background: #0a1e34;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.site-footer .brand-mark { background: #fff; color: #0a1e34; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom small { color: rgba(255, 255, 255, 0.55); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card .email {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip { padding: 32px; }

  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 16px 16px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav a:last-child { border-bottom: 0; margin-top: 8px; }
  .primary-nav a.btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
