/* ============================================================
   Web Whittle — demo template stylesheet
   Themed per page via --accent / --accent-dark (set in each page head)
   ============================================================ */

:root {
  --accent: #2b6fd6;
  --accent-dark: #1b4fa3;
  --ink: #1a2233;
  --body: #41506b;
  --muted: #6b7896;
  --line: #e6ebf3;
  --line-strong: #d4dced;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-tint: color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 35, 70, 0.06);
  --shadow: 0 18px 44px rgba(20, 35, 70, 0.12);
  --maxw: 1140px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  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); color: var(--ink); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn--solid:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn--light { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--light:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--accent-dark); color: #fff; font-size: 0.85rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center; justify-content: space-between; padding: 0.5rem 1.4rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.4rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 1.4rem; list-style: none; font-weight: 500; font-size: 0.96rem; }
.nav__links a { color: var(--body); }
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-tint); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--ink); }
.hero h1 .hl { color: var(--accent); }
.hero__sub { margin: 1.2rem 0 1.8rem; font-size: 1.12rem; color: var(--body); max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.stat__label { font-size: 0.85rem; color: var(--muted); }

/* hero art */
.hero__art { position: relative; min-height: 360px; }
.art-card { position: relative; aspect-ratio: 4/4.4; border-radius: 26px; overflow: hidden; background: linear-gradient(150deg, var(--accent), var(--accent-dark)); box-shadow: var(--shadow); display: grid; place-items: center; }
.art-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.22), transparent 42%), radial-gradient(circle at 80% 85%, rgba(0,0,0,0.18), transparent 45%); }
.art-card__icon { position: relative; z-index: 1; width: 44%; color: rgba(255,255,255,0.95); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }
.art-card__icon svg { width: 100%; height: auto; }
.art-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 0.85rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.art-chip svg { width: 16px; height: 16px; color: var(--accent); }
.art-chip--tl { top: 8%; left: -4%; }
.art-chip--br { bottom: 10%; right: -4%; }
.art-chip--bl { bottom: 26%; left: -6%; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__art { max-width: 420px; }
  .hero__sub { max-width: none; }
}

/* ---------- section heads ---------- */
.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section__sub { margin-top: 0.8rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.svc p { font-size: 0.96rem; color: var(--muted); }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gal { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.gal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.2), transparent 45%), linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.35)); }
.gal__icon { position: relative; z-index: 1; width: 34%; color: rgba(255,255,255,0.92); }
.gal__cap { position: absolute; z-index: 2; left: 0.9rem; bottom: 0.8rem; color: #fff; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 760px) { .gal-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- features (split) ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.feat-list { display: grid; gap: 1.3rem; }
.feat { display: flex; gap: 1rem; }
.feat__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat__icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feat p { font-size: 0.95rem; color: var(--muted); }
.split__art { aspect-ratio: 5/4.4; border-radius: var(--radius); background: linear-gradient(150deg, var(--accent), var(--accent-dark)); position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.split__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.2), transparent 45%); }
.split__art svg { position: relative; z-index: 1; width: 42%; color: rgba(255,255,255,0.95); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split__art { max-width: 460px; } }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); position: relative; }
.price--feat { border-color: var(--accent); box-shadow: var(--shadow); }
.price__flag { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; }
.price__name { font-size: 1.2rem; margin-bottom: 0.3rem; }
.price__amt { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--ink); }
.price__amt span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price__list { list-style: none; margin: 1.3rem 0; display: grid; gap: 0.7rem; }
.price__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--body); }
.price__list svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.price .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); }
.quote__stars { display: flex; gap: 2px; color: #f5b301; margin-bottom: 0.8rem; }
.quote__stars svg { width: 18px; height: 18px; }
.quote__text { color: var(--body); font-size: 0.98rem; margin-bottom: 1.2rem; }
.quote__who { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-size: 0.95rem; }
.quote__name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.quote__role { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.1rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.6rem; }
.info-row { display: flex; gap: 0.85rem; margin-bottom: 1.3rem; }
.info-row__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.info-row__icon svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 0.15rem; }
.info-row p { font-size: 0.95rem; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; }
.form__msg { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 0.95rem; }
.form__msg.show { display: block; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18), transparent 40%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta-band p { margin: 0.7rem auto 1.6rem; max-width: 50ch; opacity: 0.95; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c7d0e0; padding: 3.4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer .brand { color: #fff; margin-bottom: 0.9rem; }
.footer p { font-size: 0.92rem; color: #9fabc4; max-width: 32ch; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer ul a { color: #b9c3d8; font-size: 0.92rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; font-size: 0.85rem; color: #8b97b0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- demo ribbon ---------- */
.demo-ribbon { position: sticky; bottom: 0; z-index: 60; background: #11182a; color: #fff; }
.demo-ribbon__inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: center; text-align: center; padding: 0.65rem 1.4rem; font-size: 0.9rem; }
.demo-ribbon strong { color: #fff; }
.demo-ribbon a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.demo-ribbon .ww { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
