/* GoPro Gutters — Mobile-first marketing styles */
:root {
  --navy: #0B1F3A;
  --navy-mid: #132a47;
  --navy-light: #1a3a5c;
  --gold: #C9A227;
  --gold-light: #e0bc4a;
  --gold-dark: #a6851f;
  --cream: #F7F4EC;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6577;
  --border: #d9e0ea;
  --success: #1f7a4d;
  --error: #b33a3a;
  --shadow: 0 8px 30px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.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: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 0.75rem 1rem; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-phone { background: var(--navy); color: var(--white); }
.btn-phone:hover { background: var(--navy-light); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--navy); font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; flex-shrink: 0;
}
.logo-img {
  display: block; height: 140px; width: auto; max-width: 220px;
  object-fit: contain; object-position: left center;
}
.logo-mark {
  /* unused — kept for reference; header uses .logo-img */
  width: 36px; height: 36px; border-radius: 8px; background: var(--gold);
  display: none; place-items: center; color: var(--navy); font-size: 0.85rem; font-weight: 800;
}
.logo span { color: var(--gold-dark); }
.footer-brand {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.footer-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; width: fit-content;
}
.footer-logo-img {
  display: block; height: 120px; width: auto; max-width: 200px;
  object-fit: contain; object-position: left center;
}
@media (max-width: 960px) {
  .logo-img { height: 110px; max-width: 170px; }
  .footer-logo-img { height: 96px; max-width: 160px; }
}
.nav-toggle {
  display: none; background: var(--navy); color: var(--white); border: 0;
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer; font-size: 1.25rem;
}
.nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.75rem; border-radius: 8px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--cream); color: var(--navy); }
.header-ctas { display: flex; align-items: center; gap: 0.5rem; }
.header-ctas .btn { padding: 0.65rem 1rem; font-size: 0.92rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1rem; border-bottom: 1px solid var(--border); display: none; gap: 0.25rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.85rem 1rem; }
  .header-ctas .btn-text-hide { display: none; }
}

/* Hero — full-bleed photo + dark overlay band (home only; .page-hero unchanged) */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 50vh;
  color: var(--white);
  overflow: hidden;
  background-color: var(--navy);
  background-image: url("../images/products/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .hero { min-height: 60vh; align-items: center; }
}
.hero-band {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 1.5rem 0 1.75rem;
}
@media (min-width: 700px) {
  .hero-band { padding: 2rem 0 2.25rem; }
}
.hero-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 700px) {
  .hero-band-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}
.hero-logo {
  width: auto;
  height: 72px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  /* logo-white.png is on black; blend into translucent band */
  mix-blend-mode: lighten;
}
@media (min-width: 700px) {
  .hero-logo { height: 96px; max-width: 140px; }
}
.hero-copy { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-block; background: rgba(201,162,39,0.18); color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.45); padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.65rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  max-width: 22ch;
}
.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 1.1rem;
}
.hero-cta {
  min-height: 48px;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}

/* Home quote wizard sits directly under photo hero */
.section.section-quote-wizard {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
  background: var(--cream);
}
.quote-wizard-wrap {
  max-width: 640px;
}
@media (min-width: 900px) {
  .quote-wizard-wrap { max-width: 720px; margin-inline: auto; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--text-muted); }
.section-navy .section-head p { color: rgba(255,255,255,0.8); }

/* Cards / grids */
.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(201,162,39,0.15);
  color: var(--gold-dark); display: grid; place-items: center; font-size: 1.35rem;
  margin-bottom: 1rem; font-weight: 800;
}
.promise-strip {
  display: grid; gap: 0.75rem; margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .promise-strip { grid-template-columns: repeat(3, 1fr); }
}
.promise-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(201,162,39,0.35);
  border-radius: var(--radius); padding: 1rem; color: var(--white); text-align: center;
  font-weight: 600; font-size: 0.95rem;
}
.promise-chip strong { display: block; color: var(--gold-light); margin-bottom: 0.25rem; font-family: var(--font-display); }

/* Quote wizard */
.wizard {
  background: var(--white); color: var(--text); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25); overflow: hidden;
  border: 1px solid rgba(201,162,39,0.35);
}
.wizard-header {
  background: var(--navy); color: var(--white); padding: 1.1rem 1.35rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.wizard-header h2 { color: var(--white); font-size: 1.15rem; margin: 0; }
.wizard-steps {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
}
.wizard-steps span {
  width: 28px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25);
}
.wizard-steps span.active { background: var(--gold); }
.wizard-body { padding: 1.35rem; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--navy);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.form-row {
  display: grid; gap: 1rem;
}
@media (min-width: 560px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1.4fr 0.6fr 0.8fr; }
}
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.35rem; }
.wizard-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.scan-loading {
  text-align: center; padding: 0.75rem 0.25rem 0.25rem;
}
.scan-status { font-weight: 700; color: var(--navy); min-height: 1.4em; margin: 0; }
.area-banner {
  border-radius: 10px; padding: 0.75rem 0.95rem; margin: 0.75rem 0 1rem;
  font-size: 0.95rem; font-weight: 600; line-height: 1.35;
}
.area-banner--in { background: #e8f6ee; color: var(--success); border: 1px solid #b7dfc7; }
.area-banner--out { background: #fff8e8; color: #6a4e00; border: 1px solid #efd48a; }
.lead-map-layout { display: block; }
.lead-fields { margin-top: 0.25rem; }
.quote-lf-muted {
  font-size: 0.8rem; color: var(--text-muted); margin: 0.4rem 0 0; font-weight: 500;
}
.form-row.three.compact-opts {
  display: grid; gap: 0.65rem; grid-template-columns: 1fr;
  margin-top: 0.25rem;
}
@media (min-width: 560px) {
  .form-row.three.compact-opts { grid-template-columns: 1.2fr 1fr 0.7fr; }
}
.compact-opts .form-group { margin-bottom: 0.65rem; }
.compact-opts label { font-size: 0.82rem; }
.price-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-top: 0.5rem;
}
.price-box .range {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-light); font-weight: 700; margin: 0.5rem 0;
}
.alert {
  border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; font-size: 0.95rem;
}
.alert-info { background: #eef4fb; color: var(--navy); border: 1px solid #c5d6ea; }
.alert-warn { background: #fff8e8; color: #6a4e00; border: 1px solid #efd48a; }
.alert-success { background: #e8f6ee; color: var(--success); border: 1px solid #b7dfc7; }
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-group.has-error input, .form-group.has-error select { border-color: var(--error); }
.form-group.has-error .field-error { display: block; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  margin-bottom: 0.75rem; overflow: hidden;
}
.faq-item button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 1.1rem 1.25rem; font: inherit; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq-item button .chevron {
  flex-shrink: 0; transition: transform 0.2s; color: var(--gold-dark); font-size: 1.2rem;
}
.faq-item.is-open button .chevron { transform: rotate(180deg); }
.faq-panel {
  display: none; padding: 0 1.25rem 1.15rem; color: var(--text-muted);
}
.faq-item.is-open .faq-panel { display: block; }

/* Area pages / lists */
.area-list {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.area-list a {
  display: block; text-decoration: none; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; font-weight: 700; color: var(--navy); text-align: center;
  transition: 0.15s ease;
}
.area-list a:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--navy); }

.breadcrumb {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-dark); }


/* Gutters page — full-bleed black K-style hero */
.hero.hero--gutters {
  background-image: url("../images/products/hero-bg-kstyle.webp");
  min-height: 52vh;
}
@media (min-width: 900px) {
  .hero.hero--gutters { min-height: 62vh; }
}
.hero .hero-breadcrumb {
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.hero .hero-breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}
.hero .hero-breadcrumb a:hover { color: #fff; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); padding: 2.75rem 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 58ch; margin: 0; }

.feature-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--navy);
}
.split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li {
  padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy); padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: var(--navy); }
.cta-band .btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
}
.tagline { color: var(--gold-light); font-weight: 700; }

/* Misc */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.two-col-copy { max-width: 75ch; }

/* Native satellite quote map */
.quote-map-wrap { margin-top: 1rem; }
.quote-map-wrap[hidden] { display: none !important; }
.quote-map {
  width: 100%;
  height: 240px;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.45);
  background: #0B1F3A;
  position: relative;
  z-index: 0;
}
/* L.map() adds .leaflet-container to the same element as .quote-map */
.quote-map.leaflet-container,
.quote-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #0B1F3A;
}
.quote-map--lead { height: 240px; min-height: 220px; }
.quote-map--mini { height: 160px; min-height: 140px; }
.quote-map--mini.leaflet-container,
.quote-map--mini .leaflet-container { min-height: 140px; height: 160px; }
.quote-map-wrap--mini { margin-bottom: 1rem; }
.quote-map-meta { font-size: 0.95rem; color: var(--navy); margin: 0.65rem 0 0.25rem; line-height: 1.45; font-weight: 600; }
.leaflet-tooltip.quote-map-perimeter-label {
  background: rgba(11, 31, 58, 0.92);
  color: #fff;
  border: 1px solid rgba(201, 162, 39, 0.7);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  white-space: nowrap;
  pointer-events: none;
}
.leaflet-tooltip.quote-map-perimeter-label::before { display: none; }
.quote-map-meta .locked-badge {
  display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.45rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: #eef4fb; color: var(--navy); border: 1px solid #c5d6ea; border-radius: 999px;
  vertical-align: middle;
}
.quote-map-tile-error {
  position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; background: rgba(11,31,58,0.92); color: #fff; font-size: 0.95rem;
}
.map-attr { margin-top: 0.25rem; }
.price-lf { margin: 0.35rem 0 0.5rem; }
.wizard .leaflet-container { font: inherit; }
.wizard-panel[data-step="2"].active .quote-map-wrap:not([hidden]) {
  display: block;
}
@media (max-width: 560px) {
  .quote-map, .quote-map--lead { height: 200px; min-height: 180px; }
  .quote-map.leaflet-container,
  .quote-map .leaflet-container { min-height: 180px; }
  .wizard-body { padding: 1.1rem; }
}


/* Product photos + gallery */
.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0B1F3A;
}
.product-gallery {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .product-gallery { grid-template-columns: repeat(3, 1fr); }
}
.product-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.product-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.product-gallery figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.65rem 0.85rem 0.85rem;
  background: var(--white);
}
.section-navy .product-gallery figcaption {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.gallery-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 0.25rem;
}
.gallery-head h3 { margin-bottom: 0.35rem; }
.gallery-head p { color: var(--text-muted); margin-bottom: 0; }


/* Manual lead fallback when map/geocode fails */
.manual-fallback {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  background: #fff8e8;
  border: 1px solid #efd48a;
  border-radius: 10px;
}
.manual-fallback-copy {
  margin: 0 0 0.85rem;
  color: #6a4e00;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.optional {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
}
