/* ==========================================================================
   Carlos' Boat Works — Trust & Authority Design System
   Premium marine service marketing site
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors — Trust & Authority palette */
  --primary: #0F172A;        /* deep navy */
  --primary-dark: #020617;
  --secondary: #334155;      /* slate */
  --accent: #0369A1;         /* CTA blue */
  --accent-bright: #0EA5E9;
  --highlight: #F59E0B;      /* amber for trust badges */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --text-soft: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --success: #16A34A;
  --danger: #DC2626;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.18);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-bright); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.78); }
.section-tinted { background: var(--surface-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-dark .eyebrow { color: var(--accent-bright); }

.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: all .2s var(--ease);
  cursor: pointer; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0284C7; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--surface-2); color: var(--primary); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 800; color: var(--primary); font-size: 0.95rem; line-height: 1.1; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 72px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; white-space: nowrap; }
.brand-text small { font-weight: 500; font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.footer-logo { height: 110px; width: auto; display: block; margin-bottom: 0.85rem; }

.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.65rem;
  color: var(--text); font-weight: 600; font-size: 0.875rem;
  font-family: var(--font-heading);
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: var(--surface-2); }

.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link::after {
  content: ''; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem;
  min-width: 280px;
  display: none;
  z-index: 110;
}
.dropdown.wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.dropdown.wide.open { display: grid; }
.nav-item.open > .dropdown { display: block; }
.dropdown a {
  display: block; padding: 0.55rem 0.75rem;
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  border-radius: 6px;
}
.dropdown a:hover { background: var(--surface-2); color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 700; font-family: var(--font-heading); white-space: nowrap; }
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }

.nav-toggle {
  display: none; background: transparent; border: 0; padding: 0.5rem;
  color: var(--primary);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1180px) {
  .nav-list, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.open { display: block; }
}

.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--primary);
  color: #fff;
  padding: 5rem 1.5rem 2rem;
  z-index: 90;
  overflow-y: auto;
}
.mobile-nav a {
  display: block; padding: 1rem 0;
  color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav .mn-section { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-bright); margin: 1.5rem 0 0.5rem; }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.75) 60%, rgba(3,105,161,0.55) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.45rem 0.95rem; border-radius: 999px;
  color: #fff; font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero-eyebrow .star { color: var(--highlight); }
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 18ch; }
.hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,0.85); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-trust-item { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; }
.hero-trust-item svg { width: 22px; height: 22px; color: var(--accent-bright); }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem 2rem; align-items: center; }
.trust-bar-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text); font-size: 0.88rem; font-weight: 600; font-family: var(--font-heading); }
.trust-bar-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.trust-bar-item .stars { display: inline-flex; gap: 1px; line-height: 1; align-items: center; }
.trust-bar-item .stars span { color: #f5b400; font-size: 1.15rem; text-shadow: 0 1px 2px rgba(245,180,0,0.25); }
.trust-bar-item small { color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }

/* Global icon container — used by .meet-pill-icon, trust-bar-item, etc. */
.i { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.i svg { width: 1em; height: 1em; }
.meet-pill-icon .i, .meet-pill-icon .i svg { width: 20px; height: 20px; }
.trust-bar-item .i { width: 22px; height: 22px; color: var(--accent); }
.trust-bar-item .i svg { width: 22px; height: 22px; }

/* Mobile: hide grid, show auto-scrolling marquee */
.trust-bar-marquee { display: none; }
@media (max-width: 720px) {
  .trust-bar { padding: 0.9rem 0; }
  .trust-bar-grid { display: none; }
  .trust-bar-marquee {
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .trust-bar-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    width: max-content;
    animation: trust-bar-scroll 28s linear infinite;
  }
  .trust-bar-marquee-track .trust-bar-item { flex-shrink: 0; }
  @keyframes trust-bar-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
}

/* ---------- Stats / Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all .25s var(--ease);
}
.metric:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-value { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 800; color: var(--accent); line-height: 1; }
.metric-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; font-weight: 500; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--surface-2);
  color: var(--accent);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  transition: all .2s var(--ease);
}
.card:hover .card-icon { background: var(--accent); color: #fff; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { margin-bottom: 1rem; font-size: 0.95rem; flex-grow: 1; }
.card-link { font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: auto; }
.card-link::after { content: '→'; transition: transform .2s var(--ease); }
.card:hover .card-link::after { transform: translateX(3px); }

/* Service / area / marina image cards */
.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
}
.image-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.image-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  background-size: cover; background-position: center;
}
.image-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.image-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.image-card p { font-size: 0.92rem; flex-grow: 1; margin-bottom: 1rem; }

/* ---------- Bento Grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.25rem;
}
.bento > .b-feature { grid-column: span 2; grid-row: span 2; }
.bento > .b-tall { grid-row: span 2; }
.bento > .b-wide { grid-column: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .b-feature { grid-column: span 2; grid-row: auto; }
  .bento > .b-tall { grid-row: auto; }
  .bento > .b-wide { grid-column: span 2; }
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
  overflow: hidden;
  position: relative;
}
.bento-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.bento-card.dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.bento-card.dark h3, .bento-card.dark h2 { color: #fff; }
.bento-card.dark p { color: rgba(255,255,255,0.78); }
.bento-card.has-image {
  background-size: cover; background-position: center;
  color: #fff;
  min-height: 240px;
}
.bento-card.has-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.2) 60%);
  z-index: 0;
}
.bento-card.has-image > * { position: relative; z-index: 1; }
.bento-card.has-image h3 { color: #fff; }

/* ---------- Service detail / generic content ---------- */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

.prose { line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: normal;
}

.sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card.dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.sidebar-card.dark h3 { color: #fff; }
.sidebar-card.dark p { color: rgba(255,255,255,0.8); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.sidebar-card .btn { width: 100%; justify-content: center; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { display: block; padding: 0.6rem 0; color: var(--text); font-size: 0.92rem; font-weight: 500; }
.sidebar-list a:hover { color: var(--accent); padding-left: 0.3rem; }

/* ---------- Process Steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
.process-step .step-num {
  position: absolute; top: -16px; left: 1.5rem;
  background: var(--accent); color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700;
  box-shadow: var(--shadow);
}
.process-step h4 { margin: 0.5rem 0; font-size: 1.05rem; }
.process-step p { margin: 0; font-size: 0.92rem; }

/* ---------- Includes / Checklist ---------- */
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem; }
.checklist li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.checklist li::before {
  content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq.open { border-color: var(--accent); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.5rem;
  font-family: var(--font-heading); font-weight: 600;
  color: var(--primary); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--accent); font-size: 1.4rem; font-weight: 300;
  transition: transform .2s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

.faq-section h3 { font-size: 1.2rem; color: var(--accent); margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

/* ---------- Reviews ---------- */
.reviews-summary {
  text-align: center; margin-bottom: 2.5rem;
}
.reviews-summary .stars { color: var(--highlight); font-size: 1.5rem; letter-spacing: 2px; }
.reviews-summary .rating { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-top: 0.5rem; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
}
.review-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.review-stars { color: var(--highlight); margin-bottom: 0.75rem; letter-spacing: 1px; }
.review-text { color: var(--text); flex-grow: 1; line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.95rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.review-author strong { display: block; color: var(--primary); font-family: var(--font-heading); font-size: 0.95rem; }
.review-author span { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: var(--primary);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(3,105,161,0.4), transparent 60%);
}
.cta-banner > .container { position: relative; }
.cta-banner h2 { color: #fff; max-width: 22ch; margin: 0 auto 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Map ---------- */
#service-area-map {
  height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0a1929;
}
.map-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } #service-area-map { height: 400px; } }
/* Scope Leaflet's internal z-indexes so the map can't punch through the sticky header */
#service-area-map { isolation: isolate; z-index: 0; }
#service-area-map .leaflet-pane,
#service-area-map .leaflet-top,
#service-area-map .leaflet-bottom { z-index: auto; }
.area-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-height: 520px; overflow-y: auto;
}
.area-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s var(--ease);
  border-radius: 4px;
}
.area-list-item:last-child { border-bottom: 0; }
.area-list-item:hover, .area-list-item.active {
  background: var(--surface-2);
  padding-left: 0.8rem;
}
.area-list-item strong { color: var(--primary); font-family: var(--font-heading); font-size: 0.95rem; }
.area-list-item small { color: var(--text-muted); font-size: 0.8rem; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.9rem; }
.leaflet-popup-content strong { font-family: var(--font-heading); color: var(--primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li:last-child { color: var(--text); font-weight: 600; }

/* ---------- Page Header (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(3,105,161,0.35), transparent 50%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0.5rem 0 1rem; max-width: 22ch; font-size: clamp(1.85rem, 4vw, 2.75rem); }
.page-hero p.lead { color: rgba(255,255,255,0.85); max-width: 60ch; font-size: 1.1rem; margin: 0 0 1.75rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-brand { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-contact-item { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.5rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background .2s var(--ease);
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary);
  padding: 0.6rem;
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem; width: 100%;
  background: var(--accent); color: #fff;
  font-family: var(--font-heading); font-weight: 700;
  border-radius: var(--radius-sm);
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* ---------- Reveal animations ---------- */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-animate].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tag chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
}
.chip-accent { background: rgba(3,105,161,0.1); color: var(--accent); }

/* ---------- Reviews marquee ---------- */
.marquee { overflow: hidden; padding: 0.5rem 0; }
.marquee-track { display: flex; gap: 1.25rem; animation: marquee 50s linear infinite; }
.marquee-track > * { flex-shrink: 0; width: 380px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Trust badges ---------- */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all .2s var(--ease);
}
.badge:hover { border-color: var(--highlight); transform: translateY(-2px); box-shadow: var(--shadow); }
.badge-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(245,158,11,0.12);
  color: var(--highlight);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.badge-icon svg { width: 26px; height: 26px; }
.badge h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--primary); }
.badge p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--primary); font-size: 0.88rem; margin-bottom: 0.4rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit; font-size: 0.95rem;
  background: var(--surface);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .gap-2 { gap: 1rem; } .items-center { align-items: center; }
.hide-mobile { display: initial; }
@media (max-width: 768px) { .hide-mobile { display: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .cta-banner, .site-footer { display: none; }
}

/* =====================================================
   PREMIUM HOME SECTIONS (gallery, features, meet, etc.)
   ===================================================== */

/* Section dark variant */
.section-dark {
  background: linear-gradient(180deg, #0a1f3a 0%, #061425 100%);
  color: #e7eef9;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(3,105,161,0.18), transparent 60%),
    radial-gradient(700px 350px at 90% 100%, rgba(3,105,161,0.14), transparent 60%);
}
.section-dark > * { position: relative; z-index: 1; }
.section-header.light .eyebrow { color: #7dd3fc; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(231,238,249,0.78); }

/* Gradient text (UI/UX Pro Max — Trust & Authority) */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #7dd3fc 50%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Project gallery — masonry-feel mosaic */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a1f3a;
  cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .35s var(--ease);
  filter: saturate(0.95);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55); }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  color: #fff; display: flex; flex-direction: column; gap: 0.15rem;
  font-size: 0.92rem; font-weight: 600;
  transform: translateY(8px); opacity: 0.92;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-cap-eyebrow {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7dd3fc; font-weight: 700;
}
/* Mosaic spans — first card big, then alternating */
.gallery-item-1 { grid-column: span 6; grid-row: span 2; }
.gallery-item-2 { grid-column: span 3; grid-row: span 1; }
.gallery-item-3 { grid-column: span 3; grid-row: span 1; }
.gallery-item-4 { grid-column: span 3; grid-row: span 1; }
.gallery-item-5 { grid-column: span 3; grid-row: span 1; }
.gallery-item-6 { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(n+7) { grid-column: span 4; grid-row: span 1; }
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .gallery-item-1 { grid-column: span 6; grid-row: span 2; }
  .gallery-item { grid-column: span 3 !important; grid-row: span 1 !important; }
  .gallery-item-1 { grid-column: span 6 !important; grid-row: span 2 !important; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item, .gallery-item-1 { grid-column: span 2 !important; grid-row: span 1 !important; }
}

/* Service Features — alternating rows w/ image + text */
.feature-stack { display: flex; flex-direction: column; gap: 4.5rem; margin-top: 3rem; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }
.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 80px -30px rgba(15,23,42,0.4);
  border: 1px solid var(--border);
}
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.feature-row:hover .feature-media img { transform: scale(1.04); }
.feature-media-glow {
  position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(135deg, transparent 40%, rgba(3,105,161,0.18) 100%);
  border-radius: inherit;
}
.feature-body { display: flex; flex-direction: column; gap: 1rem; }
.feature-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0.25rem 0;
  letter-spacing: -0.01em;
}
.feature-body p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; }
.checklist-tight { padding-left: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin: 0.5rem 0 1.25rem; }
.checklist-tight li {
  position: relative; padding-left: 1.75rem; color: var(--text); font-size: 0.95rem;
  line-height: 1.5;
  display: flex; align-items: center;
  min-height: 1.5em;
}
.checklist-tight li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.12), inset 0 1px 2px rgba(255,255,255,0.25);
}
.checklist-tight li::after {
  content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%) rotate(-45deg);
  width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  margin-top: -1px;
}
@media (max-width: 880px) {
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 1.5rem; direction: ltr; }
  .checklist-tight { grid-template-columns: 1fr; }
}

/* Meet Carlos */
.meet-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center;
}
.meet-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -30px rgba(15,23,42,0.45);
}
.meet-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  background: rgba(15,23,42,0.92); color: #fff;
  border-radius: 999px; padding: 0.6rem 1.2rem;
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-heading);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem;
}
.meet-badge strong { font-size: 1.15rem; letter-spacing: 0; }
.meet-body { display: flex; flex-direction: column; gap: 1rem; }
.meet-body h2 { margin: 0.25rem 0; }
.meet-body .lead { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.meet-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0 1.25rem; }
.meet-pill {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.meet-pill:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 30px -12px rgba(3,105,161,0.25); }
.meet-pill-icon {
  flex: 0 0 36px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(3,105,161,0.1); color: var(--accent);
  border-radius: 8px;
}
.meet-pill div { display: flex; flex-direction: column; gap: 0.15rem; }
.meet-pill strong { font-size: 0.95rem; color: var(--text); }
.meet-pill span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.meet-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 880px) {
  .meet-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .meet-pills { grid-template-columns: 1fr; }
  .meet-portrait { max-width: 380px; margin: 0 auto; }
}

/* Magnetic button — subtle UI/UX Pro Max effect */
.btn.magnetic { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn.magnetic:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(3,105,161,0.35); }

/* Spotlight card (review cards) — radial-gradient cursor follow */
.spotlight-card { position: relative; overflow: hidden; }
.spotlight-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(3,105,161,0.07), transparent 40%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.spotlight-card:hover::after { opacity: 1; }

/* Review enhancements — avatar images + photo grid */
.review-avatar-img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
.review-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0.75rem 0 1rem; }
.review-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in; transition: transform .25s var(--ease);
}
.review-photos img:hover { transform: scale(1.04); }

