/* ==========================================================================
   OceanView Sliding Doors - Main Stylesheet
   Brand tokens from spec: navy #102938, teal #137C8B, sand #F6F3EE, white #FFFFFF
   ========================================================================== */

:root {
  --navy: #102938;
  --navy-light: #1c3f54;
  --teal: #137C8B;
  --teal-dark: #0e5e6a;
  --teal-light: #1a95a7;
  --sand: #F6F3EE;
  --sand-dark: #e8e2d8;
  --white: #FFFFFF;
  --text: #1a2b34;
  --text-muted: #4a5a63;
  --border: #d5cec3;
  --error: #b3261e;
  --success: #0e6b3f;
  --focus: #ffb703;
  --shadow-sm: 0 1px 3px rgba(16,41,56,0.10);
  --shadow-md: 0 4px 14px rgba(16,41,56,0.14);
  --shadow-lg: 0 10px 30px rgba(16,41,56,0.18);
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

/* -------- Accessibility helpers -------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: 3.5rem 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.section--tight { padding: 2.25rem 0; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand img { height: 46px; width: auto; }
.brand__text { line-height: 1.1; }
.brand__text small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: #a9c7cd;
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: #e7eff1;
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--teal);
  color: var(--white);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.header-phone:hover { background: var(--teal-light); }
.header-phone:active { transform: translateY(1px); }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #14374a 55%, var(--teal-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  max-width: 720px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9fd3db;
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--white);
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero p { font-size: 1.15rem; margin: 0 0 1.75rem; color: #eaf2f4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #bcd7dc;
}

/* -------- Hero with full-frame video (home) -------- */
.hero--video .hero__inner { padding: 3rem 0; max-width: var(--maxw); }
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-split__copy { max-width: 620px; }
.hero-video-box {
  width: 100%;
  max-width: 460px;
  margin-left: auto;      /* sit toward the right, tidy on desktop */
  aspect-ratio: 16 / 9;
  max-height: 300px;
  background: #06141d;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-video-box video,
.hero-video-box img.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* full frame visible, per media spec */
  display: block;
  background: #06141d;
}
.hero-video-pause {
  position: absolute;
  bottom: 0.6rem; right: 0.6rem;
  background: rgba(6,20,29,0.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 2;
}
.hero-video-pause:hover { background: rgba(6,20,29,0.9); }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-split__copy { max-width: none; }
  .hero-video-box { margin-left: 0; max-width: 100%; max-height: none; }
  .hero--video .hero__inner { padding: 2.25rem 0; }
}

/* -------- Blog -------- */
.hero--article .hero__inner { max-width: 820px; }
.article-byline {
  font-size: 0.95rem;
  color: #bfe3e9;
  margin: 0.5rem 0 1.25rem;
}
.article-byline a { color: #fff; text-decoration: underline; }
.article-hero-img { background: var(--navy); }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card .card-img { height: 200px; }
.blog-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}
.blog-card__body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.blog-card__body p { flex: 1; }
.article-hero-img { max-height: 507px; object-fit: cover; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.1s, border-color 0.2s;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-light); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--solid-navy { background: var(--navy); color: var(--white); }
.btn--solid-navy:hover { background: var(--navy-light); }
.btn--block { width: 100%; }

/* -------- Typography helpers -------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 0.5rem;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 65ch; }
.measure-wide { max-width: 78ch; }

/* -------- Service links (bold clickable phrases) -------- */
.service-link {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.service-link:hover { color: var(--teal); }

/* -------- Cards / grids -------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal);
}
.card h3 { margin-top: 0; color: var(--navy); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card--media { padding: 0; overflow: hidden; }
.card--media h3 { margin: 1.1rem 1.25rem 0.4rem; }
.card--media p { margin: 0 1.25rem; }
.card--media .card__more { margin: 0.85rem 1.25rem 1.4rem; }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.card__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.group-label {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* -------- Content blocks -------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; color: var(--teal-dark); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.4rem; }

.callout {
  background: var(--sand);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.callout--navy {
  background: var(--navy);
  color: var(--white);
  border-left-color: var(--focus);
}
.callout--navy a { color: #bfe3e9; }

/* -------- Split layout -------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.split--reverse { grid-template-columns: 1fr 1.4fr; }

/* -------- FAQ -------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.85rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { color: var(--text-muted); }

/* -------- Process steps -------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.steps li {
  list-style: none;
  position: relative;
  padding-left: 3.5rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.steps ol { padding: 0; }

/* -------- Forms -------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.section--navy .form-wrap { color: var(--text); }
.inquiry-form { display: grid; gap: 1rem; }
.inquiry-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19,124,139,0.18);
}
.form-note { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
[data-form-status] { font-weight: 600; margin: 0; }
[data-form-status].is-error { color: var(--error); }
[data-form-status].is-success { color: var(--success); }
.inquiry-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.inquiry-submit {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 1.15rem 1.5rem;
  margin-top: 0.35rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19,124,139,0.4);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.inquiry-submit:hover {
  background: var(--teal-light);
  box-shadow: 0 8px 24px rgba(19,124,139,0.5);
  transform: translateY(-2px);
}
.inquiry-submit:active { transform: translateY(0); }

/* -------- Breadcrumbs -------- */
.breadcrumbs {
  font-size: 0.9rem;
  padding: 0.9rem 0;
  color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0; padding: 0;
}
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* -------- Coverage note (partial areas) -------- */
.coverage-flag {
  background: #fff6e0;
  border: 1px solid #f0d488;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: #6b4e07;
}

/* -------- ZIP list -------- */
.zip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.zip-list li {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* -------- Directory (counties) -------- */
.area-group { margin-bottom: 1.5rem; }
.area-group > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  padding: 0.85rem 1.1rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
  list-style: none;
}
.area-group > summary::-webkit-details-marker { display: none; }
.area-group > summary::after { content: " ▾"; color: var(--teal); }
.area-group[open] > summary::after { content: " ▴"; }
.area-links {
  columns: 3 220px;
  column-gap: 1.5rem;
  padding: 1rem 0.5rem;
}
.area-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--teal-dark);
  text-decoration: none;
  break-inside: avoid;
}
.area-links a:hover { text-decoration: underline; }

/* -------- Video -------- */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-frame video { width: 100%; height: auto; display: block; }
.video-caption { font-size: 0.92rem; color: var(--text-muted); margin-top: 0.6rem; }

/* -------- Mascot -------- */
.mascot { max-width: 150px; height: auto; }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy);
  color: #d5e2e6;
  padding: 3rem 0 1.5rem;
}
.site-footer h4 { color: var(--white); margin: 0 0 0.9rem; font-size: 1.05rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer a { color: #bcd7dc; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* -------- Mobile bottom bar -------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--navy);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  padding: 0.55rem;
  gap: 0.55rem;
}
.mobile-cta .btn { flex: 1; padding: 0.7rem; font-size: 0.95rem; }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .main-nav a { padding: 0.8rem 0.75rem; }
  .site-header__bar { position: relative; flex-wrap: wrap; }
  .header-phone { order: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__inner { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .area-links { columns: 1; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 5rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
