/* Clean Wave — shared components: header, nav, buttons, cards, awning edge, footer, forms, motion */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(6, 42, 102, .45); background: rgba(255, 255, 255, .94); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; color: var(--blue); flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); line-height: 1; }
.brand-word b { color: var(--blue-vivid); font-weight: 800; }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-mark { transition: transform .5s var(--ease); }

.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .96rem; color: var(--ink); transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--mist); color: var(--blue); }
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.header-cta svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; place-items: center; flex: none;
}
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; content: ""; }
.menu-bars { position: relative; }
.menu-bars::before { position: absolute; top: -6.5px; }
.menu-bars::after { position: absolute; top: 6.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-ready .menu-toggle { display: grid; }
  .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta { padding: 11px; }
  .nav-ready .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(6, 42, 102, .5);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
  }
  .nav-ready .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
  .nav-ready .site-nav ul { flex-direction: column; padding: 12px var(--gutter) 22px; gap: 2px; }
  .nav-ready .site-nav a { padding: 14px 16px; font-size: 1.1rem; border-radius: 14px; }
  /* no-JS: nav wraps under the logo */
  html:not(.nav-ready) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.nav-ready) .site-nav { order: 3; width: 100%; }
  html:not(.nav-ready) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.1;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 14px 24px -14px rgba(6, 42, 102, .7);
  transition: transform .18s var(--ease), box-shadow .18s, background .2s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .18), 0 20px 30px -14px rgba(6, 42, 102, .75); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-lime { --bg: var(--lime); --fg: var(--navy); }
.btn-wa { --bg: #0f7a36; --fg: #fff; }
.btn-pink { --bg: var(--pink-deep); --fg: #fff; }
.btn-ghost { --bg: rgba(255, 255, 255, .08); --fg: var(--blue); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.on-dark .btn-ghost, .cta-band .btn-ghost, .page-hero .btn-ghost, .home-hero .btn-ghost, .site-footer .btn-ghost { --fg: #fff; }
.btn-sm { padding: 11px 16px; border-radius: 13px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Sign-style 3D title ---------- */
.sign-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
  color: #fff; text-shadow: var(--extrude); line-height: .95;
}
.sign-title .lime { color: var(--lime); }
.tagline-pink { font-family: var(--font-display); font-weight: 700; font-style: italic; color: var(--pink); letter-spacing: .02em; }
.on-dark .tagline-pink { color: #ffa8c6; }

/* ---------- Awning scalloped edge (brand motif from the shop awning) ---------- */
.awning {
  --scallop: 26px;
  height: 46px; background: var(--lime); position: relative;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .06), inset 0 10px 0 rgba(255, 255, 255, .45);
}
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--scallop) / 2);
  background: radial-gradient(circle at 50% 0, var(--lime) calc(var(--scallop) / 2 - .5px), transparent calc(var(--scallop) / 2)) 0 0 / var(--scallop) var(--scallop) repeat-x;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .12));
}
.awning-stripe { position: absolute; left: 0; right: 0; top: 14px; height: 3px; background: rgba(255, 255, 255, .7); }

/* ---------- Pills, badges, chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; background: var(--lime); color: var(--navy);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(232, 51, 111, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(232, 51, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 51, 111, 0); } }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; }
.badges li { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-transform: uppercase; font-size: .86rem; letter-spacing: .04em; }
.badges .ic { width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.badges .ic svg { width: 16px; height: 16px; }
.note { font-size: .88rem; color: var(--ink-soft); }
.on-dark .note { color: #b8c9ea; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }
.on-dark .card { background: rgba(255, 255, 255, .06); border-color: var(--line-dark); box-shadow: none; }
.on-dark .card p { color: #c6d6f2; }

/* round "sign medallion" icon like the sign board circles */
.medallion {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 6px 8px 0 rgba(6, 42, 102, .25), 0 0 0 4px var(--mist); color: var(--navy); margin-bottom: 18px;
}
.medallion svg { width: 38px; height: 38px; }

/* 3D tilt cards (pointer-driven, see motion.js) */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .3s; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear; box-shadow: var(--shadow); }
.tilt .pop { transform: translateZ(40px); }
.tilt .pop-sm { transform: translateZ(22px); }
.tilt::before { /* glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 55%);
}
.tilt.is-tilting::before { opacity: .7; }

/* service card */
.svc { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.svc-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body .medallion { margin: -62px 0 6px; position: relative; z-index: 2; }
.svc-body ul { padding-left: 1.1em; color: var(--ink-soft); }
.svc-body .btn { margin-top: auto; align-self: flex-start; }
.svc-tag { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; list-style: none; padding: 0; }
.step { counter-increment: step; position: relative; padding: 26px 26px 26px 92px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  background: var(--blue); color: #fff; box-shadow: 4px 5px 0 var(--lime);
}
.on-dark .step { background: rgba(255, 255, 255, .06); border-color: var(--line-dark); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: 20px; color: var(--ink-soft); }

/* marquee strip */
.marquee { overflow: hidden; background: var(--blue); color: #fff; padding: 16px 0; border-block: 4px solid var(--lime); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .04em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 34px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ff; max-width: 56ch; }
.cta-band .bubble-deco { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(159, 216, 242, .08) 60%, transparent 70%); pointer-events: none; }

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 10vw, 120px); background: radial-gradient(1200px 500px at 85% -10%, rgba(159, 216, 242, .35), transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--navy) 85%); color: #dce8ff; }
.page-hero h1 { color: #fff; max-width: 16ch; text-shadow: var(--extrude); text-transform: uppercase; font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.4rem); }
.page-hero .lead { color: #cddcfb; margin-top: 18px; }
.page-hero .crumbs { font-size: .88rem; margin-bottom: 18px; color: #b8caf0; }
.page-hero .crumbs a { color: var(--lime); }
.page-hero-art { position: absolute; right: -60px; top: 50%; width: min(46vw, 520px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; opacity: .9; }
@media (max-width: 860px) { .page-hero-art { opacity: .22; right: -120px; } }
.page-hero + .awning { margin-top: 0; }

/* floating bubbles layer (CSS only) */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles i { position: absolute; bottom: -80px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .7), rgba(159, 216, 242, .18) 45%, rgba(226, 238, 28, .08) 70%, transparent 72%);
  animation: rise var(--d, 16s) linear var(--delay, 0s) infinite; }
@keyframes rise { to { transform: translate3d(var(--dx, 30px), -120vh, 0); } }

/* photo frames */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mist); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(6, 42, 102, .85); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .84rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #c4cfe3; background: #fff; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 79, 176, .18); }
.field [aria-invalid="true"] { border-color: var(--pink-deep); }
.field .error { color: var(--pink-deep); font-size: .86rem; font-weight: 600; min-height: 1em; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; }
.checks legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid #c4cfe3; background: #fff; cursor: pointer; font-weight: 600; font-size: .93rem; }
.checks input { accent-color: var(--blue); width: 18px; height: 18px; }
.checks label:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.form-out { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { color: #cddcfb; margin-top: clamp(40px, 6vw, 80px); position: relative; }
.footer-wave { color: var(--navy); line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-body { background: var(--navy); padding: 30px 0 110px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-word { color: #fff; font-size: 1.8rem; text-shadow: var(--extrude); }
.footer-word b { color: var(--lime); }
.footer-brand > p { margin-top: 10px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-h { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; font-weight: 700; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.footer-links { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line-dark); margin-top: 34px; padding-top: 20px; font-size: .86rem; color: #9fb4dc; }
.site-footer .muted { color: #9fb4dc; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #0f7a36; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31, 174, 85, .7), 0 0 0 0 rgba(31, 174, 85, .5); animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes waPulse { 70% { box-shadow: 0 12px 30px -8px rgba(31, 174, 85, .7), 0 0 0 16px rgba(31, 174, 85, 0); } }

/* mobile bottom bar (≤ 860px) — replaces the floating button on small screens */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .wa-float { display: none; }
  body { padding-bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(6, 42, 102, .5);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 14px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--blue); background: var(--mist); }
  .mobile-bar a svg { width: 19px; height: 19px; }
  .mobile-bar .mb-wa { background: #0f7a36; color: #fff; }
  .mobile-bar .mb-book { background: var(--blue); color: #fff; }
  .footer-body { padding-bottom: 40px; }
}

/* ---------- Scroll reveal (content visible by default; JS opts in) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.reveal-ready [data-reveal="left"] { transform: translateX(-36px); }
.reveal-ready [data-reveal="right"] { transform: translateX(36px); }
.reveal-ready [data-reveal="zoom"] { transform: scale(.92); }
@media (max-width: 860px) { .reveal-ready [data-reveal="left"], .reveal-ready [data-reveal="right"] { transform: translateY(28px); } }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .bubbles { display: none; }
  .tilt { transform: none !important; }
}
@media print { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; } .mobile-bar, .wa-float, .bubbles { display: none !important; } }
.check-inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; } .check-inline input { width: 20px; height: 20px; accent-color: var(--blue); }

.site-footer .tagline-pink { color: #ff9fbf; }

/* global motion pause (WCAG 2.2.2) */
.motion-toggle {
  position: absolute; right: 0; bottom: -46px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(6, 42, 102, .6); color: #fff;
  font-size: .8rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px);
}
.hero-visual .motion-toggle { bottom: 8px; right: 8px; }
.motion-toggle svg { width: 14px; height: 14px; }
/* Continuous animations stay still until the pause controller (motion.js) is running, and whenever paused. */
html:not(.motion-ready) *, html:not(.motion-ready) *::before, html:not(.motion-ready) *::after,
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
[data-enhanced][hidden], [data-fallback][hidden] { display: none !important; }
@media (max-width: 860px) { .page-hero .motion-toggle { bottom: -52px; } }
