/* Bristol Marine Supply — shared styles (EN + ES pages) */

/* Palette pulled from the Bristol Marine Supply logo:
   navy field #021a42 · flag blue #13378f · flag red #b7011a · trim gold #e4c887 · parchment #eddbb3 */
:root {
  --navy: #021a42;
  --navy-2: #0b2a5c;
  --navy-deep: #01112d;
  --ocean: #13378f;      /* flag blue */
  --sea: #2a55b8;
  --foam: #eef2f9;
  --sand: #f8f2e3;       /* parchment */
  --paper: #ffffff;
  --ink: #0f1d38;
  --muted: #4c5a74;
  --line: #dfe4ee;
  --red: #b7011a;        /* flag red / antifouling red */
  --red-dark: #8e0014;
  --brass: #e4c887;      /* trim gold */
  --gold-ink: #8a6a24;   /* gold dark enough for text on light backgrounds */
  --wa: #1fae55;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 26, 66, 0.10);
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ocean); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: .75rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31,174,85,.35); }
.btn-wa:hover { color: #fff; background: #189447; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(183,1,26,.30); }
.btn-red:hover { color: #fff; background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-deep); color: #c3cde0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .lang a { font-weight: 700; padding: 0 .25rem; }
.topbar .lang a[aria-current] { color: var(--brass); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy);
  border-bottom: 2px solid var(--brass);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brass); }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: 4px; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; color: #e6ebf5; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brass); }
@media (max-width: 420px) { .brand-name { font-size: 1.1rem; } .brand img { width: 46px; height: 46px; } }
.nav .btn { padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,20,52,.82) 0%, rgba(2,20,52,.55) 45%, rgba(2,20,52,0) 75%);
}
.hero .container { position: relative; z-index: 2; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(5rem, 11vw, 8.5rem); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 54ch; color: #dbe7f0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(2,20,52,.80) 0%, rgba(2,20,52,.65) 60%, rgba(2,20,52,.35) 100%); }
}

.trust { background: var(--navy); color: #fff; }
.trust ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; }
.trust svg { width: 26px; height: 26px; color: var(--brass); flex: none; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { margin-bottom: 2.5rem; }
.bg-sand { background: var(--sand); }
.bg-foam { background: var(--foam); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2,26,66,.14); }
.product .icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--foam); color: var(--ocean); margin-bottom: 1rem;
}
.product.feature .icon { background: #fbe3e6; color: var(--red); }
.product .icon svg { width: 30px; height: 30px; }
.product p { color: var(--muted); font-size: .97rem; }
.product ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.product li { margin-bottom: .2rem; }

/* Bottom paint feature */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.art-card { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); border: 3px solid var(--brass); }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }
.tip { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--brass); box-shadow: var(--shadow); }
.tip h3 { font-size: 1.15rem; }
.tip p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Hub */
.hub { background: var(--navy); color: #dbe7f0; position: relative; overflow: hidden; }
.hub h2, .hub h3 { color: #fff; }
.hub .eyebrow { color: var(--brass); }
.hub .lead { color: #b9cad8; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.4rem; }
.hub-item p { margin: 0; font-size: .95rem; color: #b9cad8; }
.hub a { color: #fff; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.panel h3 { display: flex; align-items: center; gap: .6rem; }
.panel h3 svg { width: 24px; height: 24px; color: var(--red); }
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--red); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .6rem; }
.contact-list strong { display: inline-block; min-width: 92px; color: var(--muted); font-weight: 600; }
.panel .actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; padding: 0 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ocean), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ea; max-width: 56ch; margin: 0 auto 1.6rem; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb3c8; font-size: .92rem; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #dbe7f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }

/* Floating WhatsApp (mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; background: #189447; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product { transition: none; }
  .wave-anim { animation: none !important; }
}
.wave-anim { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }

/* Brand touches from the logo */
.hub { border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass); }
.panel h3 svg { color: var(--ocean); }
.cta-band { background: linear-gradient(120deg, var(--ocean), var(--navy)); }
.hero-badge { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 40px); z-index: 2; width: clamp(92px, 12vw, 150px); border-radius: 50%; box-shadow: 0 0 0 3px var(--brass), 0 12px 30px rgba(0,0,0,.35); }
@media (max-width: 700px) { .hero-badge { display: none; } }
.site-footer .brand img { width: 64px; height: 64px; }

/* ---------- Mobile optimizations ---------- */
.mobile-bar { display: none; }
.topbar .hide-sm { display: inline; }
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 68px; }           /* room for the bottom action bar */
  .topbar .hide-sm { display: none; }
  .topbar .container { flex-wrap: nowrap; }
  .brand-name small { white-space: nowrap; letter-spacing: .14em; }
  .hero .container { padding: 3rem 0 3.5rem; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
  .trust ul { grid-template-columns: 1fr 1fr; gap: .8rem .6rem; }
  .trust li { font-size: .85rem; gap: .5rem; }
  .trust svg { width: 22px; height: 22px; }
  section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .product { padding: 1.3rem; }
  .product .icon { width: 46px; height: 46px; margin-bottom: .8rem; }
  .panel { padding: 1.3rem; }
  .contact-list strong { display: block; min-width: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
  .panel .actions .btn, .hub .actions .btn, .cta-band .actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--navy); border-top: 2px solid var(--brass); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 700;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
  .mobile-bar a.wa { background: var(--wa); }
  .mobile-bar svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
  .trust ul { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Real photography ---------- */
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 62%; }
.hero { min-height: clamp(520px, 72vh, 760px); display: flex; align-items: center; }
.hero > .container { width: min(1180px, 100% - 32px); }
.photo-band { position: relative; margin: 0; height: clamp(240px, 36vw, 480px); overflow: hidden; background: var(--navy); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.photo-band figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 0 1.4rem; color: #fff;
  background: linear-gradient(180deg, rgba(2,26,66,0) 0%, rgba(2,26,66,.85) 100%);
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.6vw, 1.9rem);
}
.photo-band figcaption .container { display: block; }
.hub { background: linear-gradient(rgba(2,26,66,.90), rgba(2,26,66,.94)), url("images/sportfish-fleet.jpg") center / cover no-repeat, var(--navy); }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-art img { object-position: 78% 60%; }
}
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(2,20,52,.72) 0%, rgba(2,20,52,.50) 55%, rgba(2,20,52,.20) 100%); }
  .hero h1, .hero p { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
}

/* Order-ahead photo section */
.photo-card { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--brass); background: var(--navy); }
.photo-card img { width: 100%; height: 100%; aspect-ratio: 1400 / 764; object-fit: cover; }
@media (min-width: 901px) { .split-reverse > :first-child { order: 0; } }
@media (max-width: 900px) { .split-reverse .photo-card { order: -1; } }

/* Desktop fixes */
.trust ul.container { margin-inline: auto; }                  /* keep highlights aligned with content */
.photo-band { height: clamp(260px, 42vw, 720px); }
.photo-band img { object-position: 50% 26%; }                  /* keep the whole yacht in frame on wide screens */

/* Bottom paint boatyard photo */
figure.art-card { margin: 0; }
.art-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Small phones: keep header from overlapping */
@media (max-width: 480px) {
  .site-header .nav .btn { font-size: 0; gap: 0; padding: 0; width: 46px; height: 46px; justify-content: center; border-radius: 50%; }
  .site-header .nav .btn svg { width: 24px; height: 24px; }
  .site-header .brand { min-width: 0; }
}
@media (max-width: 400px) {
  .topbar .hide-xs { display: none; }
}
