/* FortExteriors Systems - main stylesheet
   Light content theme; header/footer/CTA "islands" stay dark navy for contrast. */

:root {
  /* Chrome (header, footer, CTA bands) - dark navy, unchanged from the original theme */
  --navy-950: #060f1f;
  --navy-900: #0a1930;
  --navy-800: #122544;
  --navy-700: #1b3358;
  --navy-600: #294672;
  --chrome-line: rgba(255, 255, 255, 0.1);
  --chrome-border: rgba(255, 255, 255, 0.35);
  --chrome-text: #f6f8fb;
  --chrome-text-muted: #9fadc4;
  --chrome-text-faint: #7c8ba5;

  /* Content - light theme */
  --bg-page: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-card: #ffffff;
  --line: rgba(11, 26, 43, 0.1);
  --line-strong: rgba(11, 26, 43, 0.18);
  --text-primary: #0b1a2b;
  --text-muted: #4d5c70;
  --text-faint: #7c8a9c;

  /* Accent orange - buttons, numbers, icons, hover states only */
  --orange-700: #b8501f;
  --orange-600: #c85a26;
  --orange-500: #d9622b;
  --orange-400: #e67a45;
  --orange-100: #fbe6da;

  --radius: 10px;
  --max-width: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-700); text-decoration: none; }
a:hover { color: var(--orange-500); }

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt { background: var(--bg-alt); }
.section--card { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  color: var(--orange-700);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}
.rating-badge__text { color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }

/* Google review card */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(11, 26, 43, 0.04), 0 6px 16px rgba(11, 26, 43, 0.05);
}
.review-card__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.review-card__id { flex: 1; }
.review-card__name { display: block; color: var(--text-primary); font-size: 0.98rem; }
.review-card__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.15rem; }
.review-card__stars { color: var(--orange-500); font-size: 0.95rem; letter-spacing: 0.08em; }
.review-card__time { color: var(--text-faint); font-size: 0.82rem; }
.review-card__badge {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.review-card__quote { color: var(--text-primary); margin-bottom: 1.1rem; }
.review-card__reply {
  background: var(--bg-alt);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.1rem;
}
.review-card__reply strong { display: block; color: var(--text-primary); font-size: 0.85rem; margin-bottom: 0.3rem; }
.review-card__reply p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.review-card__link { font-weight: 700; font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
}
.btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--orange-400), var(--orange-500)); }

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-primary);
}
.btn--outline:hover { border-color: var(--orange-500); color: var(--orange-500); }

/* Inside dark chrome (CTA bands, header/footer if ever used there), outline
   buttons flip back to light-on-dark since the surrounding bg is navy. */
.cta-band .btn--outline,
.site-header .btn--outline,
.site-footer .btn--outline {
  color: var(--chrome-text);
  border-color: var(--chrome-border);
}
.cta-band .btn--outline:hover,
.site-header .btn--outline:hover,
.site-footer .btn--outline:hover {
  color: var(--orange-400);
  border-color: var(--orange-400);
}

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* Header (dark chrome) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 15, 31, 0.97);
  border-bottom: 1px solid var(--chrome-line);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--chrome-text);
  white-space: nowrap;
}
.logo__mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.1rem;
  flex-shrink: 0;
}
.logo__sub { display: block; font-size: 0.68rem; font-weight: 500; color: var(--chrome-text-muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav__list { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.main-nav__list a {
  color: var(--chrome-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.main-nav__list a:hover, .main-nav__list a[aria-current="page"] { color: var(--orange-400); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-800);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 0.5rem;
  display: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 0.55rem 0.7rem; border-radius: 6px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--navy-700); color: var(--chrome-text); }

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-phone { color: var(--chrome-text); font-weight: 700; white-space: nowrap; }
.header-phone small { display: block; font-weight: 500; color: var(--chrome-text-muted); font-size: 0.68rem; }

.nav-toggle {
  position: relative;
  z-index: 101;
  display: none;
  background: none; border: 1px solid var(--chrome-border); border-radius: 8px;
  color: var(--chrome-text); padding: 0.5rem 0.7rem; font-size: 1.1rem; cursor: pointer;
}

/* Hero (light) */
.hero {
  background:
    radial-gradient(circle at 15% 0%, rgba(217, 98, 43, 0.07), transparent 45%),
    linear-gradient(180deg, var(--bg-alt), var(--bg-page));
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero--simple .hero__grid { grid-template-columns: 1fr; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero__trustbar { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__trustbar div { font-size: 0.85rem; color: var(--text-muted); }
.hero__trustbar strong { display: block; color: var(--orange-500); font-size: 1rem; }

.hero-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}
.hero-panel h3 { margin-bottom: 1rem; }
.hero-panel form { display: flex; flex-direction: column; gap: 0.8rem; }
.hero-panel form[hidden] { display: none; }
.hero-panel input, .hero-panel select, .hero-panel textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.hero-panel textarea { min-height: 90px; resize: vertical; }
.hero-panel .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-note { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.6rem; }

.file-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.file-field input[type="file"] {
  border: 1px solid var(--line-strong);
  background: var(--bg-page);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-primary);
}

.form-thanks { text-align: center; padding: 1rem 0; }
.form-thanks .icon-tag { margin: 0 auto 0.8rem; }
.form-thanks h3 { color: var(--text-primary); margin-bottom: 0; font-size: 1.1rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--orange-600); }
.breadcrumbs span[aria-current] { color: var(--text-primary); }

/* Cards / grids */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(11, 26, 43, 0.04), 0 6px 16px rgba(11, 26, 43, 0.05);
}
.card:hover { border-color: var(--orange-400); }

.card--service {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.card--service .icon { color: var(--orange-500); font-size: 1.6rem; }

.icon-tag {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(217, 98, 43, 0.12);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.numbered-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.numbered-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.6rem;
}
.numbered-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  background: var(--orange-500);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.numbered-list h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: 0.65rem; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--orange-600); font-weight: 800;
}

.city-pill-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.city-pill {
  padding: 0.55rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.city-pill:hover { border-color: var(--orange-500); color: var(--orange-600); }
.city-pill--hq {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}
.city-pill--hq:hover { color: #fff; }

.faq {
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange-500); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 0.8rem; color: var(--text-muted); }

/* CTA band stays dark navy - a contrasting "island" on the light page */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border: 1px solid var(--orange-600);
  border-radius: 18px;
  padding: 2.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--chrome-text); margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: var(--chrome-text-muted); }

.local-note {
  background: var(--orange-100);
  border-left: 3px solid var(--orange-500);
  padding: 1.2rem 1.4rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.two-col { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 3rem; align-items: start; }

.stat-row { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.stat { min-width: 120px; }
.stat strong { display: block; font-size: 1.9rem; color: var(--orange-500); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* How It Works steps */
.steps-row { text-align: center; }
.step-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-card__number {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.step-card__icon { font-size: 1.3rem; color: var(--orange-500); margin-bottom: 0.2rem; }
.step-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Project gallery */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 26, 43, 0.04), 0 6px 16px rgba(11, 26, 43, 0.05);
}
.project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__tabs { display: flex; gap: 0.4rem; padding: 0.9rem 1rem 0; flex-wrap: wrap; }
.project-tab {
  border: 1px solid var(--line-strong);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.project-tab:hover { border-color: var(--orange-500); color: var(--orange-600); }
.project-tab.is-active { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.project-card__caption { padding: 0.9rem 1rem 1.1rem; font-weight: 700; color: var(--text-primary); font-size: 0.92rem; margin: 0; }

/* Map embed */
.map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 42%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 720px) {
  .map-frame { padding-bottom: 75%; }
}

/* Footer (dark chrome) */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--chrome-line);
  padding: 3.5rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--chrome-line);
}
.footer-grid h4 { color: var(--chrome-text); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid p { color: var(--chrome-text-muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--chrome-text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--orange-400); }
.social-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--chrome-text-faint);
}
.footer-bottom a { color: var(--chrome-text-faint); }
.footer-bottom a:hover { color: var(--orange-400); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orange-500); color: #fff; padding: 0.7rem 1rem; z-index: 999;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

@media (max-width: 980px) {
  .hero__grid, .two-col { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 0; z-index: 90; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 5.5rem 1.5rem 1.5rem; overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .has-dropdown .dropdown { display: block; position: static; border: none; background: none; padding-left: 0.8rem; box-shadow: none; }
  .nav-toggle { display: block; }
  .header-cta .btn span.btn-label { display: none; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem 0; }
}
