/* =========================================================
   BoxDrop Beaufort — Shared Stylesheet
   Brand colors sampled directly from the official logo file.
   ========================================================= */

:root {
  /* Brand colors (sampled from logo) */
  --navy: #0c2a52;
  --navy-dark: #081c38;
  --navy-light: #1c3d6e;
  --green: #237520;
  --green-dark: #1a5a18;
  --green-light: #2f9a2b;

  /* Neutrals */
  --ink: #1a1e24;
  --gray-900: #20242b;
  --gray-700: #454b54;
  --gray-500: #6b7280;
  --gray-300: #d6dae0;
  --gray-100: #f2f3f5;
  --white: #ffffff;
  --cream: #f8f7f3;

  /* Status colors */
  --status-in-stock: #1a5a18;
  --status-in-stock-bg: #e7f4e6;
  --status-limited: #8a5a00;
  --status-limited-bg: #fdf1dc;
  --status-representative: #2b4a7a;
  --status-representative-bg: #e8eef9;
  --status-recent: #6b7280;
  --status-recent-bg: #eef0f2;
  --status-confirm: #7a1f1f;
  --status-confirm-bg: #fbe9e9;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(12, 42, 82, 0.10);
  --shadow-md: 0 6px 20px rgba(12, 42, 82, 0.12);
  --header-h: 68px;
  --mobile-cta-h: 58px;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-cta-h);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: rgba(12,42,82,0.35); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* Accessible focus states everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.75em 1.25em; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-dark); font-size: 0.8rem; margin-bottom: 0.6em;
}
.section-navy .eyebrow { color: #a9e0a6; }
.lede { font-size: 1.1rem; color: var(--gray-700); max-width: 60ch; }
.section-navy .lede { color: #d7dfec; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 700; text-decoration: none; border-radius: var(--radius-sm);
  padding: 0.85em 1.4em; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; line-height: 1.15; min-height: 48px; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: rgba(12,42,82,0.06); }
.section-navy .btn-outline { color: #fff; }
.section-navy .btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }
.btn-block { width: 100%; }
.btn-lg { padding: 1em 1.7em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--navy-dark); color: #fff; font-size: 0.85rem; text-align: center;
  padding: 8px 16px; letter-spacing: 0.01em;
}
.announcement a { color: #fff; text-decoration: underline; }

/* ---------- Header / nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 500; background: #fff; box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; max-width: var(--container-max); margin: 0 auto; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--gray-500); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call {
  display: none; align-items: center; gap: 6px; font-weight: 700; color: var(--navy);
  text-decoration: none; border: 2px solid var(--navy); border-radius: var(--radius-sm); padding: 0.5em 0.9em;
}
@media (min-width: 640px) { .header-call { display: inline-flex; } }

.nav-toggle {
  background: var(--navy); color: #fff; border: none; border-radius: var(--radius-sm);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

nav.main-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-md);
  border-top: 1px solid var(--gray-300);
}
nav.main-nav.open { display: block; }
nav.main-nav ul { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; }
nav.main-nav a {
  display: block; padding: 12px 14px; color: var(--navy); text-decoration: none; font-weight: 600;
  border-radius: 8px;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { background: var(--gray-100); }

@media (min-width: 900px) {
  nav.main-nav {
    display: block; position: static; box-shadow: none; border: none; background: transparent;
  }
  nav.main-nav ul { flex-direction: row; padding: 0; gap: 2px; }
  nav.main-nav a { padding: 10px 12px; font-size: 0.95rem; }
}

/* Mobile persistent call/directions bar */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  display: grid; grid-template-columns: 1fr 1fr; height: var(--mobile-cta-h);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.15);
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; color: #fff; font-size: 0.95rem;
}
.mobile-cta-bar .call { background: var(--green); }
.mobile-cta-bar .directions { background: var(--navy); }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 44px 0 40px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p.lede { color: #d7dfec; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.hero-badges li {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem;
}
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero .btn-row { margin-top: 22px; }

/* ---------- Category grid ---------- */
.grid-cats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-cats { grid-template-columns: repeat(6, 1fr); } }
.cat-card {
  position: relative; display: block; border-radius: var(--radius-md); overflow: hidden;
  text-decoration: none; aspect-ratio: 4/5; background: var(--gray-300);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-label {
  position: absolute; inset: auto 0 0 0; padding: 14px 12px 12px;
  background: linear-gradient(0deg, rgba(8,17,32,0.88), transparent);
  color: #fff; font-weight: 700; font-size: 0.95rem;
}

/* ---------- Product / feature cards ---------- */
.grid-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin-bottom: 0.2em; }
.card .price { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.card .price .from { font-weight: 400; color: var(--gray-500); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.card .card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.feature-card { padding: 20px; border-radius: var(--radius-md); background: var(--cream); border: 1px solid var(--gray-300); }
.feature-card h3 { font-size: 1.05rem; }

/* ---------- Availability badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-in-stock { color: var(--status-in-stock); background: var(--status-in-stock-bg); }
.badge-limited { color: var(--status-limited); background: var(--status-limited-bg); }
.badge-representative { color: var(--status-representative); background: var(--status-representative-bg); }
.badge-recent { color: var(--status-recent); background: var(--status-recent-bg); }
.badge-confirm { color: var(--status-confirm); background: var(--status-confirm-bg); }

.availability-key {
  display: grid; gap: 10px; grid-template-columns: 1fr; margin: 18px 0; padding: 16px;
  background: var(--gray-100); border-radius: var(--radius-md); font-size: 0.92rem;
}
@media (min-width: 780px) { .availability-key { grid-template-columns: repeat(3, 1fr); } }
.availability-key .key-row { display: flex; align-items: flex-start; gap: 8px; }

/* ---------- Financing box ---------- */
.financing-box {
  background: var(--cream); border: 1px solid var(--gray-300); border-radius: var(--radius-lg);
  padding: 28px; display: grid; gap: 20px;
}
@media (min-width: 900px) { .financing-box { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.disclosure {
  font-size: 0.82rem; color: var(--gray-500); border-top: 1px dashed var(--gray-300); margin-top: 18px; padding-top: 14px;
}
.partner-logos { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.partner-pill {
  border: 1px solid var(--gray-300); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--navy); background: #fff;
}

/* ---------- Store / map section ---------- */
.store-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .store-grid { grid-template-columns: 1fr 1fr; } }
.store-card {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 24px;
}
.store-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-300); }
.store-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.hours-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-300); padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 14px 4px; list-style: none; position: relative;
  padding-right: 30px; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--green);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 16px; color: var(--gray-700); }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-md);
  padding: 18px; height: 100%;
}
.review-stars { color: var(--green); letter-spacing: 2px; font-size: 1rem; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field .hint { font-size: 0.8rem; color: var(--gray-500); font-weight: 400; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 0.75em 0.9em;
  font-size: 1rem; font-family: var(--font-body); width: 100%; background: #fff;
}
.field input:invalid.touched, .field textarea:invalid.touched { border-color: var(--status-confirm); }
.field .error-msg { color: var(--status-confirm); font-size: 0.82rem; display: none; }
.field .error-msg.show { display: block; }
.form-card { background: var(--cream); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 24px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 14px; }
.honeypot-field { position: absolute; left: -9999px; }
.form-success {
  display: none; background: var(--status-in-stock-bg); color: var(--status-in-stock);
  border: 1px solid var(--status-in-stock); border-radius: var(--radius-md); padding: 16px; font-weight: 600;
}
.form-success.show { display: block; }
.form-error-banner {
  display: none; background: var(--status-confirm-bg); color: var(--status-confirm);
  border: 1px solid var(--status-confirm); border-radius: var(--radius-md); padding: 16px; font-weight: 600;
}
.form-error-banner.show { display: block; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #cfd8e6; padding: 40px 0 24px; margin-top: 40px; }
footer.site-footer h2, footer.site-footer h3 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfd8e6; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 18px;
  font-size: 0.8rem; color: #9fb0c9; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
}
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); padding: 14px 0 0; }
.breadcrumb a { color: var(--gray-500); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--cream); padding: 30px 0; border-bottom: 1px solid var(--gray-300); }
.page-hero p { color: var(--gray-700); }

/* ---------- Table of specs (product-style pages) ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-300); font-size: 0.95rem; }
.spec-table th { width: 40%; color: var(--gray-500); font-weight: 600; }

/* ---------- Misc utilities ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.callout {
  background: #fff8e1; border: 1px solid #e8d38a; color: #6b5400; border-radius: var(--radius-md);
  padding: 14px 18px; font-size: 0.92rem;
}
.divider { height: 1px; background: var(--gray-300); border: none; margin: 32px 0; }

/* ---------- Landing page (ad campaigns) specific ---------- */
body.landing { padding-bottom: 0; }
.landing-header { padding: 16px 0; text-align: center; }
.landing-header img { height: 44px; margin: 0 auto; }
.landing-hero { background: var(--navy); color: #fff; padding: 34px 0; text-align: center; }
.landing-hero h1 { color: #fff; }
.landing-points { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; text-align: left; max-width: 460px; margin-inline: auto; }
.landing-points li { display: flex; gap: 10px; align-items: flex-start; }
.landing-points li::before { content: "\2713"; color: var(--green-light); font-weight: 700; }
.landing-sticky-cta {
  position: sticky; bottom: 0; background: #fff; box-shadow: 0 -3px 14px rgba(0,0,0,0.15);
  padding: 12px 16px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) { .landing-sticky-cta { grid-template-columns: repeat(3, auto); justify-content: center; } }
