/* ------------------------------------------------------------------
   Meridian Studio — demo agency profile site
   Plain CSS, no build step. Mobile-first; breakpoints at 640 / 768 / 1024px.
   ------------------------------------------------------------------ */

:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --white: #ffffff;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 14px 34px -14px rgba(28, 25, 23, 0.25);
  --shadow-lg: 0 30px 60px -24px rgba(28, 25, 23, 0.35);
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--stone-900); line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.section { padding: 72px 0; }
.section-alt { background: var(--stone-50); }
.section-dark { background: var(--stone-900); color: var(--stone-300); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--stone-500); }
.section-dark .section-head p { color: var(--stone-400); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow-light { background: rgba(251, 191, 36, 0.15); color: var(--amber-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--stone-900); color: var(--white); box-shadow: 0 8px 20px -8px rgba(28, 25, 23, 0.6); }
.btn-dark:hover { background: var(--stone-950); }
.btn-ghost { background: transparent; color: var(--stone-900); border-color: var(--stone-300); }
.btn-ghost:hover { background: var(--stone-100); }
.btn-light { background: var(--white); color: var(--stone-900); }
.btn-light:hover { background: var(--stone-100); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.8); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stone-100);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--stone-900); letter-spacing: -0.02em; }
.logo em { font-style: normal; font-weight: 500; color: var(--stone-500); margin-left: 4px; }

.nav { display: none; }
.nav a { font-weight: 600; color: var(--stone-700); }
.nav a:not(.btn):hover { color: var(--stone-900); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--stone-900); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 12px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--stone-100);
  box-shadow: var(--shadow-md);
}
.nav.is-open a { padding: 12px 8px; border-radius: var(--radius-sm); }
.nav.is-open a:not(.btn):hover { background: var(--stone-50); }
.nav.is-open .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  background:
    radial-gradient(50% 45% at 100% 0%, rgba(251, 191, 36, 0.22) 0%, rgba(251, 191, 36, 0) 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0) 70%),
    var(--stone-50);
}
.hero .container { max-width: 880px; text-align: center; }
.hero-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-700); }
.hero h1 { margin-top: 18px; }
.hero-lead { max-width: 620px; margin: 22px auto 0; font-size: 1.15rem; color: var(--stone-500); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-stats {
  display: grid;
  gap: 18px;
  margin: 48px auto 0;
  padding: 24px;
  max-width: 720px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--stone-900); line-height: 1; }
.hero-stats span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--stone-500); }

.hero-marquee {
  margin-top: 56px;
  padding: 16px 0;
  background: var(--stone-900);
  color: var(--stone-300);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 28px; font-weight: 600; font-size: 0.95rem; animation: marquee 30s linear infinite; }
.marquee-track span:nth-child(even) { color: var(--amber-400); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 20px; }
.service {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber-400); }
.service-index { display: block; margin-bottom: 18px; font-family: var(--font-display); font-size: 1.6rem; color: var(--amber-500); }
.service p { margin-top: 10px; color: var(--stone-500); font-size: 0.95rem; }
.service-list { margin-top: 18px; display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--stone-700); }
.service-list li { display: flex; gap: 10px; align-items: center; }
.service-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500); flex: none; }

/* ---------- Case studies ---------- */
.work-grid { display: grid; gap: 22px; }
.case {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--stone-800);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-media { aspect-ratio: 16 / 10; overflow: hidden; }
.case-media svg { width: 100%; height: 100%; transition: transform 0.6s ease; }
.case:hover .case-media svg { transform: scale(1.04); }
.case-body { padding: 24px; }
.case-tag { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-400); }
.case-body p { margin-top: 10px; font-size: 0.95rem; color: var(--stone-400); }
.case-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--white); font-size: 0.9rem; }
.case-link::after { content: "→"; transition: transform 0.2s ease; }
.case:hover .case-link::after { transform: translateX(4px); }

/* ---------- Process ---------- */
.process { display: grid; gap: 20px; counter-reset: step; }
.process li {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--stone-900);
  color: var(--amber-400);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.process p { margin-top: 8px; font-size: 0.95rem; color: var(--stone-500); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 44px; align-items: center; }
.about-visual { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 0 0 36px 0; }
.about-card-main { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-card-main svg { width: 100%; height: auto; }
.about-card-small {
  position: absolute;
  right: -6px;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-md);
}
.about-card-small strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--stone-900); }
.about-card-small span { font-size: 0.8rem; color: var(--stone-500); }
.about-copy p { margin-top: 16px; color: var(--stone-500); font-size: 1.02rem; }
.about-copy h2 + p { margin-top: 20px; }
.values { display: grid; gap: 14px; margin-top: 28px; }
.values li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--amber-400); }
.values strong { color: var(--stone-900); }
.values span { font-size: 0.9rem; color: var(--stone-500); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 20px; }
.quote {
  margin: 0;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
}
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--stone-900); }
.quote footer { margin-top: 18px; display: grid; }
.quote footer strong { color: var(--stone-900); }
.quote footer span { font-size: 0.85rem; color: var(--stone-500); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
}
.contact-inner { position: relative; display: grid; gap: 36px; }
.contact p { margin-top: 16px; font-size: 1.05rem; color: var(--stone-400); max-width: 520px; }
.contact-actions { display: grid; gap: 12px; align-content: center; }
.contact-note { margin: 0 !important; font-size: 0.8rem !important; color: var(--stone-500) !important; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 110px; background: var(--stone-50); border-top: 1px solid var(--stone-200); color: var(--stone-500); }
.footer-grid { display: grid; gap: 28px; }
.site-footer .logo p, .site-footer > .container > div > p { margin-top: 10px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-weight: 600; color: var(--stone-700); }
.footer-links a:hover { color: var(--stone-900); }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--stone-200); }
.footer-note p { font-size: 0.85rem; color: var(--stone-500); }
.footer-note a { color: var(--amber-700); font-weight: 700; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.wa-float-label { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .contact-note { grid-column: 1 / -1; }
  .wa-float-label { display: inline; }
  .wa-float { padding: 12px 20px 12px 14px; }
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .hero { padding-top: 96px; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav-toggle { display: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 60px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* Current section highlight in the desktop nav */
.nav a.is-current:not(.btn) { color: var(--amber-700); }
