/* ============================================================
   Stitch & Thread — Custom Styles
   Light editorial theme: cream/white + deep navy + warm gold
   ============================================================ */

:root {
  --bg:       #f7f3ed;
  --surface:  #ede8de;
  --navy:     #1a2744;
  --navy-lt:  #243560;
  --gold:     #b8842a;
  --gold-lt:  #d09d40;
  --ink:      #17140f;
  --text:     #2e2a24;
  --muted:    #7a7268;
  --border:   #ddd6c8;
  --white:    #ffffff;
  --wa:       #25D366;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  animation: pageIn 0.4s ease both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Focus ──────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(247,243,237,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(26,39,68,0.06);
}

/* Nav height helper */
.h-18 { height: 4.5rem; }
.pt-18 { padding-top: 4.5rem; }

/* Hamburger */
#hamburger.open .ham-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}
#hamburger.open .ham-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.open .ham-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}
.ham-bar { transition: transform 0.28s var(--ease), opacity 0.28s, width 0.28s; }

.nav-link.active,
.mob-link.active {
  color: var(--navy);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  background-color: var(--bg);
}

.hero-texture {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 250px 250px;
}

/* Scroll bar */
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-bar { animation: scrollPulse 2.5s ease-in-out infinite; }

/* ── Emblem (hero right panel) ──────────────────────────── */
.emblem-wrap { position: relative; }

.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
}

.emblem-ring-1 {
  border-color: rgba(26,39,68,.12);
  animation: emblemSpin 25s linear infinite;
}
.emblem-ring-2 {
  inset: 20px;
  border-color: rgba(184,132,42,.20);
  border-style: dashed;
  animation: emblemSpin 18s linear infinite reverse;
}
.emblem-ring-3 {
  inset: 48px;
  border-color: rgba(26,39,68,.10);
  animation: emblemSpin 35s linear infinite;
}

@keyframes emblemSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.emblem-core {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

/* Float tags */
.float-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(26,39,68,.07);
  text-align: left;
}

.float-tag--a { animation: floatA 4s ease-in-out infinite; }
.float-tag--b { animation: floatB 5s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0);  }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0);  }
  50%       { transform: translateY(6px); }
}

/* ── Stats bar ──────────────────────────────────────────── */
.stat-col { position: relative; }
.stat-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 36px;
  background: rgba(255,255,255,.12);
}
@media (max-width: 768px) {
  .stat-col:nth-child(2)::after { display: none; }
}

/* ── About image ────────────────────────────────────────── */
.about-img {
  background: var(--surface);
  position: relative;
}

.about-chip {
  border-radius: 0;
}

/* ── Pricing cards ──────────────────────────────────────── */
.price-card {
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer { transition: max-height 0.38s var(--ease); }

/* ── Location / map ─────────────────────────────────────── */
.map-wrap { position: relative; }
.map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(237,232,222,0.8) 100%);
  pointer-events: none;
}

/* ── Detail icon ────────────────────────────────────────── */
.detail-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Form ───────────────────────────────────────────────── */
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-field {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 13px 18px;
  color: var(--text);
  font-family: '"DM Sans"', system-ui, sans-serif;
  font-size: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}
.form-field::placeholder { color: rgba(122,114,104,.4); }
.form-field:focus { border-color: var(--navy); background: var(--white); }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237a7268' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.form-select option { background: white; color: var(--text); }

/* ── WhatsApp FAB ───────────────────────────────────────── */
.wa-fab {
  box-shadow: 0 4px 20px rgba(37,211,102,.25);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.38);
}
.wa-fab-tip {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.wa-fab:hover .wa-fab-tip { opacity: 1; }

@media (max-width: 640px) { .wa-fab-tip { display: none; } }

/* ── Reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 70ms;  }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 210ms; }
.reveal:nth-child(5) { transition-delay: 280ms; }
.reveal:nth-child(6) { transition-delay: 350ms; }

/* Hero elements — longer stagger */
.hero-section .reveal {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero-section .reveal:nth-child(1) { transition-delay: 200ms; }
.hero-section .reveal:nth-child(2) { transition-delay: 380ms; }
.hero-section .reveal:nth-child(3) { transition-delay: 540ms; }
.hero-section .reveal:nth-child(4) { transition-delay: 680ms; }
.hero-section .reveal:nth-child(5) { transition-delay: 800ms; }
