/* ============================================================
   Bonita Bay Marina — Design System
   "Admiralty" — engraved yacht-club classic.
   Edit the tokens below to re-theme the entire site.
   ============================================================ */

:root {
  /* Color tokens */
  --navy:        #0A2540;   /* admiralty navy — primary */
  --navy-deep:   #06192E;   /* footer / deepest sections */
  --navy-soft:   #123A5C;   /* hovers, raised navy surfaces */
  --brass:       #B08D57;   /* brass accent */
  --brass-dark:  #8A672F;   /* brass for text on white (WCAG) */
  --brass-light: #D9BC8C;   /* brass for text on navy */
  --sail:        #F6F4EE;   /* warm sail-white section bg */
  --white:       #FFFFFF;
  --ink:         #16222E;   /* body text on light */
  --mist:        #54616E;   /* muted text on light */
  --mist-navy:   #A8B6C4;   /* muted text on navy */
  --line:        #E4DFD3;   /* hairlines on light */
  --line-navy:   rgba(217, 188, 140, .22); /* brass hairlines on navy */

  /* Type */
  --serif: 'Marcellus', 'Georgia', serif;
  --sans:  'Outfit', 'Segoe UI', sans-serif;

  /* Rhythm */
  --container: 1200px;
  --radius: 2px;            /* near-square — engraved plaque, not pill */
  --shadow: 0 18px 50px -18px rgba(6, 25, 46, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--navy); color: var(--brass-light); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 40px); } }

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--navy); }
.h-1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: .01em; }
.h-2 { font-size: clamp(30px, 4vw, 48px); }
.h-3 { font-size: clamp(21px, 2.4vw, 27px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); font-weight: 300; }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--white); }
.on-navy .lead, .on-navy p { color: var(--mist-navy); }

/* Eyebrow — uppercase, letter-spaced, flanked by brass rules */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--brass-dark);
}
.eyebrow::before, .eyebrow.rule-both::after { content: ""; width: 44px; height: 1px; background: var(--brass); }
.eyebrow.bare::before { display: none; }
.on-navy .eyebrow { color: var(--brass-light); }
.on-navy .eyebrow::before, .on-navy .eyebrow.rule-both::after { background: var(--brass-light); }

/* Brass divider with center diamond */
.divider {
  display: flex; align-items: center; gap: 10px; margin: 26px 0;
  color: var(--brass);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.divider::after { background: linear-gradient(90deg, var(--brass), transparent); }
.divider span { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* Coordinates motif */
.coords { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass-dark); font-weight: 500; }
.on-navy .coords { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 32px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer; touch-action: manipulation;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--brass { background: var(--brass); color: var(--navy-deep); border: 1px solid var(--brass); }
.btn--brass:hover { background: var(--brass-light); border-color: var(--brass-light); }

.btn--navy { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }

.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.on-navy .btn--ghost, .btn--ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,.55); }
.on-navy .btn--ghost:hover, .btn--ghost.on-dark:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--lg { min-height: 58px; padding: 16px 40px; font-size: 15px; }
.btn--block { width: 100%; }

/* Text link with brass arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-dark); transition: gap .25s var(--ease);
}
.tlink svg { width: 16px; height: 16px; }
.tlink:hover { gap: 14px; }
.on-navy .tlink { color: var(--brass-light); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-deep); color: var(--mist-navy); font-size: 13px; font-weight: 400; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--mist-navy); transition: color .2s; }
.topbar a:hover { color: var(--brass-light); }
.topbar svg { width: 13px; height: 13px; color: var(--brass-light); }
.topbar .tb-right { display: flex; gap: 22px; align-items: center; }

.site-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-badge {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--brass-light);
  border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 2px;
  border-radius: 50%;
}
.brand-badge svg { width: 26px; height: 26px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.18; }
.brand-txt b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); letter-spacing: .02em; }
.brand-txt span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-dark); font-weight: 500; }

.nav-links { display: flex; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: color .2s;
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--brass-dark); }
.nav-links > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }
.nav-links svg { width: 14px; height: 14px; }

/* Dropdown */
.has-drop .drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--brass);
  box-shadow: var(--shadow); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; gap: 13px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); transition: background .2s; }
.drop a:hover { background: var(--sail); }
.drop .di { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--brass-light); border-radius: 50%; }
.drop .di svg { width: 18px; height: 18px; }
.drop b { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.drop small { font-size: 12.5px; color: var(--mist); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 11px; line-height: 1.2; }
.nav-phone .pi { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass-dark); transition: all .25s; }
.nav-phone:hover .pi { background: var(--brass); color: var(--navy-deep); }
.nav-phone .pi svg { width: 17px; height: 17px; }
.nav-phone b { font-size: 15.5px; font-weight: 600; color: var(--navy); display: block; }
.nav-phone small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }

.burger { display: none; width: 46px; height: 46px; place-items: center; color: var(--navy); }
.burger svg { width: 26px; height: 26px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(6,25,46,.6); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: var(--navy-deep); color: var(--white);
  padding: 22px 26px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
  border-left: 1px solid var(--line-navy);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-navy); }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brass-light); }
.drawer-close svg { width: 24px; height: 24px; }
.drawer .dl { display: block; padding: 13px 2px; font-size: 17px; font-family: var(--serif); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.07); transition: color .2s, padding-left .2s; }
.drawer .dl:hover { color: var(--brass-light); padding-left: 8px; }
.drawer .d-coords { margin-top: 22px; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section--sail { background: var(--sail); }
.section--navy { background: var(--navy); }
.section--deep { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin: 16px 0 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 28px 30px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 15.5px; color: var(--mist); margin-bottom: 18px; }

/* Plaque — engraved double border box */
.plaque { position: relative; background: var(--white); border: 1px solid var(--brass); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.plaque::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-navy); pointer-events: none; }
.section--navy .plaque, .section--deep .plaque { background: rgba(255,255,255,.04); }

/* Fact list with brass checks */
.fact-list li { display: flex; gap: 13px; align-items: flex-start; padding: 9px 0; font-size: 16px; }
.fact-list svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--brass-dark); }
.on-navy .fact-list svg { color: var(--brass-light); }
.on-navy .fact-list li { color: var(--mist-navy); }
.fact-list b { color: var(--navy); font-weight: 600; }
.on-navy .fact-list b { color: var(--white); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: var(--brass-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.18);
}
.field .err { display: none; font-size: 13px; color: #B3261E; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .err { display: block; }
.form-note { font-size: 13.5px; color: var(--mist); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 40px 24px; }
.form-success svg { width: 52px; height: 52px; color: var(--brass-dark); margin: 0 auto 16px; }
form.sent .form-success { display: block; }
form.sent .form-grid, form.sent .form-actions { display: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; text-align: left;
  font-family: var(--serif); font-size: clamp(17px, 1.8vw, 21px); color: var(--navy);
  transition: color .2s;
}
.faq-q:hover { color: var(--brass-dark); }
.faq-q .fi { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass-dark); transition: transform .3s var(--ease), background .3s; }
.faq-q .fi svg { width: 15px; height: 15px; }
.faq-item.open .fi { transform: rotate(45deg); background: var(--brass); color: var(--navy-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--mist); max-width: 760px; }
.faq-a-inner a { color: var(--brass-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- AEO quick answer ---------- */
.quick-answer {
  background: var(--sail); border-left: 3px solid var(--brass);
  padding: 26px 30px; margin: 0 0 38px; border-radius: var(--radius);
}
.quick-answer .qa-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 10px; }
.quick-answer .qa-label svg { width: 15px; height: 15px; }
.quick-answer p { font-size: 16.5px; color: var(--ink); }

/* Key facts table */
.kf-table { width: 100%; border-collapse: collapse; margin: 0 0 38px; font-size: 15.5px; }
.kf-table th, .kf-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.kf-table th { width: 38%; font-weight: 600; color: var(--navy); background: var(--sail); white-space: nowrap; }
.kf-table td { color: var(--mist); }

/* On-page TOC */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.toc a {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px; color: var(--mist);
  transition: all .2s;
}
.toc a:hover { border-color: var(--brass); color: var(--brass-dark); }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-deep); color: var(--mist-navy); position: relative; overflow: hidden; }
.site-foot::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 280px at 85% 0%, rgba(176,141,87,.10), transparent 70%);
  pointer-events: none;
}
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line-navy); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding: 56px 0 48px; position: relative; }
.foot-brand p { font-size: 15px; margin: 16px 0 22px; max-width: 340px; }
.foot-brand .brand-txt b { color: var(--white); }
.foot-col h4 { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--white); margin-bottom: 18px; letter-spacing: .04em; }
.foot-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--mist-navy); transition: color .2s, padding-left .2s; }
.foot-col a:hover { color: var(--brass-light); padding-left: 6px; }
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 15px; }
.foot-contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--brass-light); }
.foot-contact a { color: var(--mist-navy); } .foot-contact a:hover { color: var(--brass-light); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line-navy); font-size: 13.5px; position: relative; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-navy); border-radius: 50%; color: var(--mist-navy); transition: all .25s; }
.foot-bottom .socials a:hover { border-color: var(--brass-light); color: var(--brass-light); }
.foot-bottom .socials svg { width: 16px; height: 16px; }

/* Floating call button (mobile) */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: none; align-items: center; gap: 9px;
  background: var(--brass); color: var(--navy-deep);
  padding: 14px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 12px 30px -8px rgba(6,25,46,.45);
}
.fab svg { width: 17px; height: 17px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-phone { display: none; }
}
@media (max-width: 740px) {
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .nav { min-height: 74px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-txt b { font-size: 18px; }
  .nav-cta .btn { display: none; }
  .fab { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding: 44px 0 36px; }
  .foot-top { flex-direction: column; text-align: center; }
  .kf-table th { width: auto; white-space: normal; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}
