/* =========================================================================
   ZEAL DIGITAL MARKETING — Stylesheet
   Design system: /design-system/zeal-digital-marketing/MASTER.md
   Palette: deep navy + slate, warm amber accent
   Type: Outfit (headings) / Rubik (body)
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Rubik:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --color-primary: #0F172A;
  --color-primary-light: #1E293B;
  --color-secondary: #334155;
  --color-accent: #F59E0B;
  --color-accent-dark: #D97706;
  --color-on-accent: #14110A;
  --color-background: #F8FAFC;
  --color-foreground: #0B1220;
  --color-card: #FFFFFF;
  --color-muted: #EEF1F5;
  --color-muted-foreground: #475569;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-on-primary: #FFFFFF;

  /* Type */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Rubik', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale (density: standard) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  --space-8: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --border-w: 1px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 500ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Site intentionally commits to one light, high-contrast look —
       a dark consultancy site reads muddier on mobile signage/print previews.
       Tokens below keep the same values so nothing breaks if this changes later. */
  }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

p { color: var(--color-muted-foreground); }
p.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); color: var(--color-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Focus visibility — never remove */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-header.center { margin-inline: auto; text-align: center; }

.bg-muted { background: var(--color-muted); }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4 { color: #fff; }
.bg-primary p { color: #CBD5E1; }

.grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split.reverse > *:first-child { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-muted); }

.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo span.city { color: var(--color-accent-dark); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-secondary);
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--color-muted); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2);
}
.nav-open .mobile-menu { display: block; }
.mobile-menu a {
  display: block;
  padding: var(--space-2) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
}
.mobile-menu a:last-child { border-bottom: none; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-7) var(--space-6);
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(245, 158, 11, 0.22), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(56, 189, 248, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); }
}
.hero h1 { color: #fff; }
.hero .lead { color: #CBD5E1; max-width: 46ch; margin-top: var(--space-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--color-accent); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ---------- Placeholder media (swap for real photography) ---------- */
.placeholder-media {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(15,23,42,0.05) 0px, rgba(15,23,42,0.05) 2px, transparent 2px, transparent 14px),
    var(--color-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted-foreground);
  padding: var(--space-3);
}
.placeholder-media svg { width: 32px; height: 32px; opacity: 0.6; }
.placeholder-media .ph-label { font-family: var(--font-heading); font-weight: 700; font-size: 0.8125rem; color: var(--color-secondary); }
.placeholder-media .ph-spec { font-size: 0.75rem; max-width: 28ch; }
.hero-visual .placeholder-media {
  border-radius: var(--radius-lg);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #CBD5E1;
}
.hero-visual .placeholder-media .ph-label { color: #fff; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--color-primary-light);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--color-accent);
  display: block;
}
.stat-label { font-size: 0.875rem; color: #CBD5E1; font-weight: 500; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.icon-tile svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: var(--space-1); }
.card p { margin-bottom: var(--space-2); }
.card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Checklist ---------- */
.check-list { display: grid; gap: var(--space-2); }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-secondary);
  font-weight: 500;
}
.check-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  color: var(--color-accent-dark);
}

/* ---------- Testimonials ---------- */
.testimonial-viewport {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.testimonial-track { position: relative; min-height: 220px; }
.testimonial {
  display: none;
  text-align: center;
  padding: var(--space-4);
}
.testimonial.is-active { display: block; }
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}
.testimonial cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.9375rem;
}
.testimonial cite span { display: block; font-weight: 400; color: var(--color-muted-foreground); font-size: 0.875rem; }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.testimonial-controls button {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.testimonial-controls button:hover { background: var(--color-muted); }
.testimonial-controls button svg { width: 20px; height: 20px; }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: var(--color-border);
  padding: 0;
}
.testimonial-dots button[aria-current="true"] { background: var(--color-accent); width: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(245,158,11,0.18), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band .lead { color: #CBD5E1; max-width: 50ch; margin-inline: auto; margin-top: var(--space-2); }
.cta-band .hero-actions { justify-content: center; margin-top: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #CBD5E1;
  padding-block: var(--space-6) var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { color: #fff; font-size: 0.9375rem; margin-bottom: var(--space-2); }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid a { color: #CBD5E1; font-size: 0.9375rem; transition: color var(--dur-fast); }
.footer-grid a:hover { color: var(--color-accent); }
.footer-brand p { color: #94A3B8; max-width: 32ch; margin-top: var(--space-2); }
.social-row { display: flex; gap: 0.75rem; margin-top: var(--space-3); }
.social-row a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,0.08); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #94A3B8;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding-block: var(--space-6) var(--space-5);
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #CBD5E1; max-width: 60ch; margin-top: var(--space-2); }
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.875rem; color: #94A3B8; margin-bottom: var(--space-3);
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Process steps ---------- */
.process-list { counter-reset: step; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: var(--space-5); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: var(--space-2);
  width: fit-content;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); } }
.contact-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.mailto-panel {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.mailto-panel h2 { color: #fff; }
.mailto-panel p { color: #CBD5E1; margin-top: var(--space-2); }
.mailto-panel .btn { margin-top: var(--space-4); }
.map-placeholder { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }

/* ---------- Values / team ---------- */
.value-card { text-align: left; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-2); }
.team-card h4 { margin-bottom: 0.125rem; }
.team-role { font-size: 0.875rem; color: var(--color-accent-dark); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--stagger, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
