:root {
  --teal: #14314d;
  --teal-dark: #0e2336;
  --mint: #f3ebd8;
  --ink: #0e2336;
  --muted: #5d6b79;
  --bg: #fcfbf8;
  --bg-soft: #f5f1e8;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold: #b8923f;
  --shadow: 0 10px 40px -12px rgba(14, 35, 54, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h1 em { color: var(--gold); font-style: normal; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; }
p { margin: 0 0 1em; }
.small { font-size: 0.85rem; color: var(--muted); }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(252, 251, 248, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(14, 35, 54, 0.12);
  padding-block: 0.6rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a:not(.btn) { text-decoration: none; font-weight: 500; position: relative; }
nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: 0.9rem 1.7rem; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(14, 35, 54, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(14, 35, 54, 0.65); background: var(--teal-dark); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 0.55rem 1.2rem; }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* hero */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  padding: 7rem clamp(1rem, 5vw, 4rem) 3rem;
  background: linear-gradient(160deg, #fcfaf5 0%, #efe8d8 100%);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 14s ease-in-out infinite alternate; }
.blob-a { width: 420px; height: 420px; background: #e6cf9b; top: -80px; right: 10%; }
.blob-b { width: 320px; height: 320px; background: #bcc9d8; bottom: -60px; left: 5%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.15); } }
.hero-text { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero-3d { position: relative; height: min(70vh, 560px); z-index: 1; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes fadein { from { opacity: 0; transform: scale(0.9); } }

/* sections */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem); max-width: 1300px; margin: 0 auto; }
.muted { background: var(--bg-soft); max-width: none; }
.muted > * { max-width: 1172px; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: #fff; padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -14px rgba(14, 35, 54, 0.35); }
.card .icon { display: grid; place-items: center; width: 54px; height: 54px; font-size: 1.6rem; background: var(--mint); border-radius: 16px; margin-bottom: 1rem; transition: transform 0.45s var(--ease); }
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.card p { color: var(--muted); margin: 0; }
.card .role { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; background: var(--teal); color: #fff; border-radius: 50%; font-size: 0.8rem; top: 0.15rem; }

/* visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; margin-top: 2rem; }
.info-row { display: flex; gap: 1rem; margin-bottom: 0.8rem; }
.info-row > span { font-size: 1.3rem; }
.info-row p { margin: 0; }
.info-row a { text-decoration: none; color: var(--teal); font-weight: 500; }
.hours { border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 0.15rem 1.2rem 0.15rem 0; }
.hours tr.today { color: var(--gold); font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* inputs */
input, select {
  font: inherit; padding: 0.8rem 1rem; border: 2px solid #dbe9e7; border-radius: 12px; background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 35, 54, 0.15); }

footer { text-align: center; padding: 2.5rem 1rem; background: var(--ink); color: #cfe3e0; }
footer p { margin: 0.2rem 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* chat */
.chat-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(14, 35, 54, 0.7);
  transition: transform 0.35s var(--ease);
  animation: pulse 3s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.1) rotate(-6deg); }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 30px -8px rgba(14,124,134,.7), 0 0 0 0 rgba(14,124,134,.35); } 50% { box-shadow: 0 12px 30px -8px rgba(14,124,134,.7), 0 0 0 14px rgba(14,124,134,0); } }
.chat {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 100;
  width: min(380px, calc(100vw - 2rem)); height: min(560px, 75vh);
  display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10, 60, 64, 0.5);
  transform-origin: bottom right;
}
.chat:not([hidden]) { animation: pop 0.45s var(--ease); }
.chat.closing { animation: pop 0.3s var(--ease) reverse forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.8) translateY(20px); } }
.chat header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--teal), #17a3a8); color: #fff; }
.chat header small { display: block; opacity: 0.85; font-size: 0.78rem; }
.chat header button { background: rgba(255,255,255,.2); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: background .25s; }
.chat header button:hover { background: rgba(255,255,255,.35); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 16px; font-size: 0.93rem; line-height: 1.45; animation: msgin 0.4s var(--ease); white-space: pre-line; }
.msg a { color: inherit; font-weight: 700; }
.msg.bot { background: var(--bg-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.typing { display: flex; gap: 4px; padding: 0.8rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 40% { transform: translateY(-5px); opacity: .5; } }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0 1rem 0.6rem; }
.chips button { font: inherit; font-size: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; transition: all 0.25s var(--ease); }
.chips button:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
#chat-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid #e3efed; }
#chat-form input { flex: 1; border-radius: 999px; padding: 0.65rem 1rem; }
#chat-form button { width: 44px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; cursor: pointer; transition: transform .25s var(--ease); }
#chat-form button:hover { transform: scale(1.1); }

/* responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .lede { margin-inline: auto; }
  .hero-actions,   .hero-3d { height: 340px; order: -1; }
  .split, .visit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: block; }
  nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5rem 2rem 2rem; flex-direction: column; align-items: flex-start;
    background: rgba(252, 251, 248, 0.97); backdrop-filter: blur(14px);
    transform: translateY(-100%); transition: transform 0.5s var(--ease); z-index: -1;
  }
  nav.open { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* icons */
.i { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card .icon { color: var(--gold); }
.card .icon .i { width: 26px; height: 26px; }
.row-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--gold); }
.row-icon .i { width: 20px; height: 20px; }
.chat header button .i, #chat-form button .i { width: 16px; height: 16px; margin: auto; display: block; }
.ticks li::before { content: ""; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500 10 17.500 19 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.eyebrow { letter-spacing: 0.12em; }

/* logo + navy header */
.site-header, .site-header.scrolled { background: #0e2336; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.site-header.scrolled { padding-block: 0.45rem; }
.logo img { height: 40px; width: auto; display: block; transition: height 0.4s var(--ease); }
.scrolled .logo img { height: 34px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 1.35rem; color: #f6f1e4; }
.wordmark small { font-family: "Inter", sans-serif; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: #c9a45c; font-weight: 600; margin-top: 3px; }
nav a:not(.btn) { color: #e8e4d8; }
nav a:not(.btn)::after { background: #c9a45c; }
.nav-toggle span { background: #f6f1e4; }
.site-header .btn { background: #c9a45c; color: #0e2336; box-shadow: none; }
.site-header .btn:hover { background: #dcb972; }
.hero { padding-top: 8rem; }
.chat-fab, .chat header { background: var(--teal); }
.chat header { background: linear-gradient(135deg, #0e2336, #1d4468); }
.chat-fab { background: #0e2336; color: #c9a45c; }
.chat header { color: #f6f1e4; }
.msg.user, #chat-form button { background: #14314d; }
.msg a { text-decoration-color: #b8923f; }
.footer-logo { display: block; margin: 0 auto 1rem; height: auto; max-width: 220px; }
footer { background: #0e2336; }
@media (max-width: 860px) { nav { background: #0e2336; } .wordmark b { font-size: 1.15rem; } }
.chat[hidden] { display: none; }

/* mascot */
.hero-3d { display: grid; place-items: center; }
.mascot { background: none; border: 0; padding: 0; cursor: pointer; height: 100%; max-height: 520px; aspect-ratio: 400 / 460; -webkit-tap-highlight-color: transparent; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mascot:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 24px; }
.bubble {
  position: absolute; bottom: calc(100% - 140px); right: calc(50% + 90px); z-index: 2; width: max-content; max-width: 200px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.35;
  padding: 0.7rem 1rem; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow);
  animation: bubble-in 0.8s var(--ease) 0.6s both;
}
.bubble.pop { animation: bubble-pop 0.4s var(--ease); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
@keyframes bubble-pop { 40% { transform: scale(1.08) rotate(-2deg); } }

.body { transform-origin: 200px 390px; animation: bob 3s ease-in-out infinite; }
.ground { transform-origin: 200px 418px; animation: shadow 3s ease-in-out infinite; }
.arm-r { transform-origin: 282px 225px; animation: wave 0.9s ease-in-out infinite; }
.arm-l { transform-origin: 118px 225px; animation: arm-idle 3s ease-in-out infinite; }
.eyes .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
#pupil-l, #pupil-r { transition: transform 0.12s linear; }
.sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.s2 { animation-delay: -0.8s; } .s3 { animation-delay: -1.6s; }

@keyframes bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes shadow { 50% { transform: scale(0.88); opacity: 0.1; } }
@keyframes wave { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(22deg); } }
@keyframes arm-idle { 50% { transform: rotate(8deg); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.5) rotate(0); opacity: 0.4; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

/* dance mode (click) */
.mascot.dance .body { animation: dance 0.7s ease-in-out infinite; }
.mascot.dance .ground { animation: dance-shadow 0.7s ease-in-out infinite; }
.mascot.dance .arm-r { animation: pump-r 0.35s ease-in-out infinite alternate; }
.mascot.dance .arm-l { animation: pump-l 0.35s ease-in-out infinite alternate; }
.mascot.dance .foot-l { animation: step 0.7s ease-in-out infinite; }
.mascot.dance .foot-r { animation: step 0.7s ease-in-out infinite 0.35s; }
.foot { transform-box: fill-box; transform-origin: center; }
@keyframes dance {
  0%   { transform: translate(-10px, 0) rotate(-8deg); }
  25%  { transform: translate(0, -34px) rotate(0deg); }
  50%  { transform: translate(10px, 0) rotate(8deg); }
  75%  { transform: translate(0, -34px) rotate(0deg); }
  100% { transform: translate(-10px, 0) rotate(-8deg); }
}
@keyframes dance-shadow { 25%, 75% { transform: scale(0.7); opacity: 0.08; } }
@keyframes pump-r { from { transform: rotate(-25deg); } to { transform: rotate(30deg); } }
@keyframes pump-l { from { transform: rotate(25deg); } to { transform: rotate(-35deg); } }
@keyframes step { 50% { transform: translateY(-8px); } }

@media (max-width: 860px) { .bubble { bottom: calc(100% - 100px); right: calc(50% + 60px); max-width: 130px; font-size: 0.85rem; } .hero-3d { height: 360px; } }



/* Captain Molar extras */
.cape { transform-origin: 200px 200px; animation: cape 1.8s ease-in-out infinite; }
.mascot.dance .cape { animation-duration: 0.5s; }
.foam { animation: foam 3.2s ease-in-out infinite; }
.f2 { animation-delay: -1.1s; } .f3 { animation-delay: -2.2s; }
@keyframes cape { 50% { transform: skewX(5deg) scaleX(1.06); } }
@keyframes foam { 50% { transform: translateY(-18px); } }
#team-cards { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

#service-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
#service-cards .card { padding: 1.5rem; }
.about { max-width: 720px; margin-inline: auto; text-align: center; }
.about .ticks { display: inline-block; text-align: left; margin: 0; }
.top-offer { display: inline-flex; flex-direction: column; margin-bottom: 1.4rem; padding: 0.9rem 1.8rem; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; line-height: 1.2; }
.top-offer strong { font-family: "Manrope", sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; color: #e6cf9b; }
.top-offer span { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; }
.top-offer[hidden] { display: none; }
.chat-fab { width: auto; padding: 0 1.4rem; border-radius: 999px; font: 700 1rem "Manrope", "Inter", sans-serif; white-space: nowrap; }
.chat-fab:hover { transform: scale(1.06); }

.wa-fab { position: fixed; right: calc(1.4rem + 138px); bottom: 1.4rem; z-index: 90; height: 60px; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1.3rem; border-radius: 999px; background: #1faf54; color: #fff; text-decoration: none; font: 700 1rem "Manrope", "Inter", sans-serif; box-shadow: 0 12px 30px -8px rgba(14, 35, 54, 0.5); transition: transform 0.35s var(--ease); }
.wa-fab:hover { transform: scale(1.06); }
.chat-fab { width: 128px; }
