/* ============================================
   EMBER — Design Tokens
   Palette (official brand kit): Platinum, Dusk Blue, Steel Blue, Icy Blue, Grey Olive
   Type: Montserrat (display) + Lora (editorial/quote accent) + Hind Madurai (body/UI)
   Signature: the faceted spark — echoes the crystalline flame mark
   Voice: grounded, warm, plainspoken, steady, quietly ambitious
   ============================================ */

:root {
  --platinum: #e7ecef;
  --dusk: #274c77;
  --dusk-700: #1b3757;
  --dusk-900: #12253a;
  --steel: #6096ba;
  --icy: #a3cef1;
  --olive: #8b8c89;

  --sky-50: #f4f8fc;
  --sky-100: #eaf2f9;
  --paper: #fcfdfe;
  --ink: #17263b;
  --ink-soft: #55657c;
  --line: #dbe4ee;

  --font-display: "Montserrat", sans-serif;
  --font-accent: "Lora", serif;
  --font-body: "Hind Madurai", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 1px 2px rgba(23, 38, 59, 0.05), 0 12px 32px -12px rgba(23, 38, 59, 0.12);
  --shadow-lift: 0 4px 8px rgba(23, 38, 59, 0.07), 0 24px 48px -16px rgba(23, 38, 59, 0.2);

  --container: 1160px;
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--dusk-900);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

section { position: relative; }

/* ---------- Spark signature element ----------
   A small faceted diamond, echoing the crystal flame mark.
   Used as a recurring "small spark, bigger fire" motif. */
.spark {
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, var(--icy), var(--steel));
  transform: rotate(45deg);
  box-shadow: 0 0 10px 1px rgba(96, 150, 186, 0.5);
  animation: spark-shimmer 3.2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes spark-shimmer {
  0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.6; transform: rotate(45deg) scale(0.78); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--dusk-900);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--dusk-900); }
.nav-cta {
  background: var(--dusk-900);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--steel); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dusk-900); margin: 5px 0; transition: 0.25s; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 65px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); transform: translateY(-150%); opacity: 0; transition: all 0.3s ease; pointer-events: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dusk-900);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--steel); }
.btn-secondary {
  background: transparent;
  color: var(--dusk-900);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--dusk-900); transform: translateY(-2px); }
.btn-accent {
  background: var(--steel);
  color: white;
}
.btn-accent:hover { background: var(--dusk); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(39,76,119,0.4); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--sky-100), var(--paper) 60%);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin: 22px 0 20px;
}
.hero h1 .glow { color: var(--steel); }
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-visual {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}
.dm-mock {
  width: 100%;
  max-width: 640px;
  background: var(--dusk-900);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.dm-mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(96,150,186,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dm-row { display: flex; margin-bottom: 12px; opacity: 0; animation: rise 0.6s ease forwards; }
.dm-row:nth-child(1) { animation-delay: 0.2s; }
.dm-row:nth-child(2) { animation-delay: 0.9s; }
.dm-row:nth-child(3) { animation-delay: 1.6s; }
.dm-row.answer { justify-content: flex-end; animation-delay: 2.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.bubble {
  background: var(--dusk-700);
  color: var(--icy);
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.88rem;
  max-width: 78%;
}
.bubble.reply {
  background: var(--steel);
  color: white;
  border-radius: 16px 16px 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-caption {
  text-align: center;
  color: var(--icy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
  opacity: 0.8;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  padding: 8px 0 88px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-card {
  background: var(--paper);
  padding: 28px 20px;
  text-align: center;
}
.feature-card .num { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing:0.06em; color: var(--steel); }
.feature-card p { font-size: 0.92rem; margin-top: 10px; color: var(--ink); font-weight: 500; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--dusk-900); color: var(--icy); }
.section-dark h2, .section-dark h3 { color: white; }
.section-tint { background: var(--sky-50); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.section-dark .section-head p { color: var(--icy); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--icy);
  display: block;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 8px; color: white; }
.step p { font-size: 0.88rem; color: var(--icy); margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px; right: -14px;
  width: 8px; height: 1px;
  background: var(--icy);
  opacity: 0.4;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:not(:last-child)::after{display:none;} }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .price { font-family: var(--font-body); font-size: 1.5rem; color: var(--dusk-900); margin: 14px 0 4px; }
.service-card .timeline { font-size: 0.82rem; color: var(--steel); margin-bottom: 14px; }
.service-card ul { padding-left: 18px; margin: 0 0 20px; color: var(--ink-soft); font-size: 0.92rem; }
.service-card ul li { margin-bottom: 6px; }
.service-card .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sky-100);
  color: #1b3757;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
}

/* ---------- Testimonials ---------- */
.quote-card { padding: 30px; }
.quote-card p.quote { font-size: 1.02rem; font-style: italic; color: var(--ink); margin-bottom: 18px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--icy); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.quote-who small { display: block; color: var(--ink-soft); }

.trust-bar { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 500; font-size: 1.02rem; }
.faq-q .plus { font-size: 1.3rem; color: var(--steel); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 20px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--ink-soft); font-size: 0.96rem; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ---------- Final CTA ---------- */
.cta-banner {
  text-align: center;
  padding: 100px 24px;
  background: var(--dusk-900);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,206,241,0.45), transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-banner h2 { color: white; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 16px; position: relative; }
.cta-banner p { color: var(--icy); margin-bottom: 34px; position: relative; }
.cta-banner .hero-ctas { position: relative; }

/* ---------- Footer ---------- */
footer { background: var(--dusk-900); color: var(--icy); padding: 64px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dusk-700); }
.footer-col h5 { color: white; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--icy); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--icy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; color: var(--icy); flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 200;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--steel);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; background: var(--sky-100); color: #1b3757; padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-top: 16px; }
.form-error { display: none; background: #fbeceb; color: #9a3b34; padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-top: 16px; }
.form-error a { color: #9a3b34; text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 64px; text-align: center; background: linear-gradient(180deg, var(--sky-100), var(--paper)); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 18px 0 16px; }
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.center-text { text-align: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-accent); font-style: italic; font-size: 0.78rem; letter-spacing: 0.01em;
  background: var(--sky-100); color: var(--dusk); padding: 6px 14px; border-radius: 100px;
}

.logo-mark { height: 54px; width: auto; display: block; }
.logo-mark.footer-mark { height: 40px; filter: brightness(0) invert(1); }

.not-offered {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--sky-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
