@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* =====================================================
   FOCLIY — Design System  (matches focliy.in exactly)
   Bg: warm cream #f9f3ee  |  Primary: #b85c6e wine-rose
   Font: Playfair Display + DM Sans
===================================================== */
:root {
  --bg:        #f9f3ee;
  --bg2:       #f2ebe3;
  --surface:   #ffffff;
  --border:    #e8ddd5;
  --border2:   #d9cdc3;

  --primary:   #c0435a;   /* vivid wine-rose  */
  --primary-d: #a0354a;
  --primary-l: #d97090;
  --primary-bg:#fdf0f3;

  --ink:       #140e0b;
  --ink2:      #2a1d16;
  --muted:     #5c4840;
  --muted-l:   #9a8078;

  --gold:      #c9973a;
  --success:   #2d7a4a;
  --error:     #c02828;

  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl:28px;
  --max:  1400px;

  --shadow-sm: 0 1px 4px rgba(60,20,10,.07);
  --shadow:    0 3px 14px rgba(60,20,10,.1);
  --shadow-md: 0 8px 32px rgba(60,20,10,.12);
  --shadow-lg: 0 16px 56px rgba(60,20,10,.15);

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: var(--font-b); }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 5vw; }
.section { padding: 72px 0; }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(60,20,10,.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 5vw;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 600; color: var(--ink);
}
.nav-logo-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.nav-logo-circle svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 12px; border-radius: var(--r); font-size: .875rem; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color .15s, background .15s;
  border: none; background: none; cursor: pointer;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link-icon { display: flex; align-items: center; gap: 5px; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; background: var(--primary); color: #fff;
  font-size: .62rem; font-weight: 700; border-radius: 100px; padding: 0 4px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; flex-direction: column; gap: 4.5px; border: none; background: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; top: 56px; inset-inline: 0; z-index: 199;
  background: var(--surface); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 10px 5vw 18px; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 10px 12px; font-size: .95rem; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--r-xl); border: none; cursor: pointer;
  font-family: var(--font-b); font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: all .18s; white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 3px 14px rgba(184,92,110,.3);
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(184,92,110,.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-ghost {
  background: transparent; color: var(--ink2);
  border: 1.5px solid var(--border2);
}
.btn-ghost:hover { background: var(--bg2); border-color: var(--border2); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── FORM ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--ink2); }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border2); border-radius: var(--r);
  background: var(--surface); font-size: .9rem; color: var(--ink);
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,92,110,.1);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--muted-l); }
.field-hint { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.field-err  { font-size: .78rem; color: var(--error); margin-top: 3px; display: none; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
}
.card-sm { border-radius: var(--r-lg); padding: 16px 18px; }

/* ── BADGE / TAG ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px; font-size: .71rem; font-weight: 600;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: rgba(45,122,74,.09); color: var(--success); }
.badge-muted   { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
.badge-free    { background: rgba(45,122,74,.09); color: var(--success); border: 1px solid rgba(45,122,74,.2); }

/* ── SERVICE PILL (exact from focliy.in) ────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 500;
  background: var(--bg2); border: 1px solid var(--border2);
  color: var(--ink2); transition: all .16s; cursor: default;
}
.pill:hover {
  background: var(--primary-bg); border-color: rgba(184,92,110,.3);
  color: var(--primary); transform: translateY(-1px);
}

/* ── SECTION LABEL ───────────────────────────────────── */
.label {
  font-size: .73rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 8px;
}
.divider { width: 36px; height: 2px; background: var(--primary); border-radius: 2px; margin: 12px 0 20px; }
.divider.center { margin-inline: auto; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-size: .82rem; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 7px; font-family: var(--font-h); font-weight: 600; color: var(--ink); font-size: .95rem; }
.footer-brand-circle { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-brand-circle svg { width: 10px; height: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 999; background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 100px; font-size: .84rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .2s; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok  { background: var(--success); }
.toast.err { background: var(--error); }

/* ── MODAL ───────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(26,20,16,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border-radius: var(--r-2xl);
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .2s;
}
.modal-bg.open .modal-box { transform: translateY(0) scale(1); }
.modal-head { padding: 24px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; }
.modal-body { padding: 16px 24px 24px; }
.modal-title { font-family: var(--font-h); font-size: 1.25rem; font-weight: 600; }
.modal-sub   { font-size: .83rem; color: var(--muted); margin-top: 3px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 3px 5px; border-radius: 6px; }
.modal-close:hover { background: var(--bg2); }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ── PAGE TOP ────────────────────────────────────────── */
.pt { padding-top: 56px; }

/* ── WA FLOAT ────────────────────────────────────────── */
.wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 48px; height: 48px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 16px rgba(37,211,102,.4); text-decoration: none;
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 24px; height: 24px; fill: white; }

/* ── FOOTER GRID ─────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width:820px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width:520px) {
  .field-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

/* ── BOTTOM NAV (mobile / PWA) ───────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  z-index: 190;
  box-shadow: 0 -4px 24px rgba(60,20,10,.07);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted);
  font-size: .62rem; font-weight: 500; letter-spacing: .02em;
  padding-top: 6px;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bn-item.active { color: var(--primary); }
.bn-icon { width: 22px; height: 22px; }
.bn-icon svg { width: 100%; height: 100%; }
.bn-item.active .bn-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary); margin-top: 1px;
}
@media (max-width: 767px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
body.pwa-standalone .bottom-nav { display: flex; }
body.pwa-standalone { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
body.pwa-standalone .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) { .wa { display: none !important; } }

/* ── PAGE LOADER — spinner keyframes (used by inline loader in HTML) ── */
@keyframes pl-spin { to { transform: rotate(360deg); } }
