/* ============================================================
   Shared demo template — WestCoast Web Studio example sites
   Theme per page by setting --brand / --brand-2 / --ink on <body>.
   ============================================================ */

:root {
  --brand: #173655;
  --brand-2: #ff6a4d;
  --ink: #14202e;
  --bg: #ffffff;
  --soft: #f5f4f1;
  --muted: #64707d;
  --line: #e6e2db;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(20, 32, 46, 0.12);
  --shadow-sm: 0 3px 14px rgba(20, 32, 46, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 0.5rem; line-height: 1.12; letter-spacing: var(--track, -0.02em); font-family: var(--display, inherit); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }

.wrap { width: min(1140px, 92%); margin: 0 auto; }
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.soft { background: var(--soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-2);
  margin-bottom: 0.7rem;
}
.muted { color: var(--muted); }
.sec-head { max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); }

/* demo ribbon */
.demo-ribbon {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 0.82rem; padding: 0.5rem 1rem; font-weight: 600;
}
.demo-ribbon a { color: #fff; text-decoration: underline; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none;
  background: var(--brand); color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--brand-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline.dark { border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }

/* header */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.logo .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--brand-2); }
.burger { background: none; border: 0; display: inline-flex; flex-direction: column; gap: 5px; padding: 0.5rem; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 0.2rem; padding: 0.5rem 4% 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--brand); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #000)); }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--brand-2); opacity: 0.28; filter: blur(60px); top: -120px; right: -100px; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; padding: clamp(2.6rem, 7vw, 5rem) 0; }
.hero .eyebrow { color: #fff; opacity: 0.85; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.hero-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 1.6rem; backdrop-filter: blur(6px);
}
.hero-art {
  aspect-ratio: 4/3; border-radius: 18px; box-shadow: var(--shadow);
  background-size: cover; background-position: center; position: relative;
}
.hero-art .pin {
  position: absolute; background: #fff; color: var(--ink); border-radius: 12px;
  padding: 0.6rem 0.85rem; font-weight: 700; font-size: 0.82rem; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-art .pin small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.pin-tl { top: 14px; left: -14px; animation: bob 4s ease-in-out infinite; }
.pin-br { bottom: 16px; right: -12px; animation: bob 5s ease-in-out infinite 0.6s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* generic cards / grids */
.grid { display: grid; gap: 1.3rem; }
.g-2 { grid-template-columns: 1fr; }
.g-3 { grid-template-columns: 1fr; }
.g-4 { grid-template-columns: 1fr 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--brand) 12%, #fff); margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.3rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.price-tag { font-weight: 800; color: var(--brand); white-space: nowrap; }

/* split */
.split { display: grid; gap: 2rem; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.8rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.feature-list .tick { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: color-mix(in srgb, var(--brand-2) 18%, #fff); color: var(--brand-2); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }

/* tabs (menu / services) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.6rem; }
.tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-family: inherit; font-size: 0.95rem;
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-list { display: grid; gap: 0.5rem; max-width: 640px; margin: 0 auto; }
.menu-row { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
.menu-row .name { font-weight: 700; }
.menu-row .leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu-row .price-tag { font-size: 1.05rem; }
.menu-row small { display: block; color: var(--muted); font-weight: 500; font-size: 0.85rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.gallery .tile { aspect-ratio: 1; border-radius: 14px; background-size: cover; background-position: center; background-color: var(--soft); cursor: pointer; position: relative; overflow: hidden; }
.gallery .tile::after { content: "View"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,23,32,0.45); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity 0.25s; }
.gallery .tile:hover::after { opacity: 1; }

/* before / after slider */
.ba {
  position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); user-select: none; touch-action: none; max-width: 760px; margin: 0 auto;
}
.ba .layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); }
.ba .handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-weight: 800; color: var(--brand); cursor: ew-resize; }
.ba .lbl { position: absolute; bottom: 12px; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(20,32,46,0.6); color: #fff; }
.ba .lbl.b { left: 12px; } .ba .lbl.a { right: 12px; }

/* testimonial */
.quote { max-width: 720px; margin: 0 auto; text-align: center; }
.quote p { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.4; }
.stars { color: var(--brand-2); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.8rem; }
.quote .who { color: var(--muted); font-weight: 600; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.stat .n { font-size: clamp(2rem,5vw,2.8rem); font-weight: 900; color: var(--brand); letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-weight: 600; font-size: 0.92rem; }

/* booking / contact form */
.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,4vw,2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.85rem; border: 1.5px solid var(--line);
  border-radius: 11px; font: inherit; background: #fbfaf8; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 0.5rem 1rem; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.9rem; transition: all 0.2s; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.form-note { margin: 0.6rem 0 0; font-weight: 600; min-height: 1.2rem; }
.form-note.ok { color: #1f9e57; }
.form-note.bad { color: #c0392b; }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,0.75); padding: 2.4rem 0 1.5rem; }
.foot-top { display: grid; gap: 1.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; }
.foot a { color: rgba(255,255,255,0.7); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { padding-top: 1.2rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }
.foot-bottom .made { color: var(--brand-2); font-weight: 600; }

/* reveal */
.r { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.r.in { opacity: 1; transform: none; }
.r[data-d="1"]{transition-delay:.08s}.r[data-d="2"]{transition-delay:.16s}.r[data-d="3"]{transition-delay:.24s}

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,16,24,0.9); display: none; place-items: center; z-index: 999; padding: 5%; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox .lb-art { max-width: 90vw; max-height: 85vh; width: min(700px, 90vw); aspect-ratio: 4/3; border-radius: 14px; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.lightbox .close { position: absolute; top: 20px; right: 24px; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }

@media (min-width: 720px) {
  .burger { display: none; }
  .nav-links { display: flex; }
  .hero-in { grid-template-columns: 1.05fr 0.95fr; }
  .g-2 { grid-template-columns: 1fr 1fr; }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-left { grid-template-columns: 1.1fr 0.9fr; }
  .stats { grid-template-columns: repeat(4,1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .foot-top { grid-template-columns: 2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .r { opacity: 1; transform: none; }
}

/* ============================================================
   PERSONALITY / VARIANTS — used to make each demo distinct
   ============================================================ */

/* SVG icon sizing */
.ic svg { width: 24px; height: 24px; }
.card .ic { color: var(--brand); }
.i-check { width: 15px; height: 15px; vertical-align: -2px; }

/* Hero badges with svg checks */
.hero-badges .i-check { color: var(--brand-2); }

/* Full-bleed photo hero */
.hero--photo { background: var(--ink); }
.hero--photo::after { display: none; }
.hero--photo .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero--photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,11,16,0.86) 0%, rgba(8,11,16,0.6) 50%, rgba(8,11,16,0.3) 100%);
}
.hero--photo .hero-in { position: relative; z-index: 2; grid-template-columns: 1fr; max-width: 720px; min-height: 68vh; align-content: center; }
.hero--photo.hero--center .hero-in { margin-inline: auto; text-align: center; }
.hero--photo.hero--center .hero-bg::after { background: linear-gradient(180deg, rgba(8,11,16,0.58), rgba(8,11,16,0.74)); }
.hero--photo.hero--center .hero-cta,
.hero--photo.hero--center .hero-badges { justify-content: center; }

/* Photo media block for split sections */
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--soft); }
.media.tall { aspect-ratio: 3/4; }
.media-frame { position: relative; }
.media-frame .badge {
  position: absolute; left: -14px; bottom: 18px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 0.7rem 1rem; font-weight: 800; font-size: 0.85rem;
  box-shadow: var(--shadow); line-height: 1.2;
}
.media-frame .badge small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }

/* Square-edged variant (barber / gym / electrician) */
.sq .btn, .sq .card, .sq .book, .sq .tab, .sq .chip, .sq .media, .sq .hero-art, .sq .gallery .tile, .sq .ba { border-radius: 4px; }
.sq .logo .dot { border-radius: 6px; }

/* Uppercase display eyebrows (editorial verticals) */
.up .eyebrow { letter-spacing: 0.22em; }
.up h1, .up h2 { text-transform: uppercase; }

/* Overlap section card (used to lift content over hero) */
.pull-up { margin-top: -3.5rem; position: relative; z-index: 3; }

/* Logo monogram (replaces emoji) */
.logo .dot { font-size: 0.95rem; font-weight: 800; letter-spacing: 0; }
