/* =========================================================
   Cul-De-Sac Contracting — Site Stylesheet
   ========================================================= */

:root {
  /* Palette */
  --navy: #0E1E3A;
  --navy-deep: #081228;
  --navy-line: #1A2A4A;
  --orange: #E94E1B;
  --orange-hover: #C93F14;
  --orange-soft: #F27350;
  --cream: #F5F1EA;
  --cream-warm: #EFEAE0;
  --border: #D9D3C9;
  --charcoal: #1A1A1A;
  --gray-warm: #6B6560;
  --gray-light: #A9A29B;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--orange-hover); }

/* Type scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; font-size: 1.075rem; }
p:last-child { margin-bottom: 0; }

/* Signature flourish — orange "flow" arc under headings */
.flow-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35em;
}
.flow-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 6 Q 50 -2, 100 4 T 198 5' stroke='%23E94E1B' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Layout containers */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--pad-x); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

/* Header */
.site-header {
  background: var(--navy-deep);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--navy-line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo img { height: 56px; width: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-left: 1px solid var(--navy-line);
  padding-left: 1.5rem;
}
.header-phone:hover { color: var(--orange); }
.header-phone svg { width: 18px; height: 18px; fill: var(--orange); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 18, 40, 0.92) 0%, rgba(8, 18, 40, 0.7) 45%, rgba(8, 18, 40, 0.4) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--pad-x);
  width: 100%;
}
.hero-content { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--orange);
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 78, 27, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn svg { width: 18px; height: 18px; }

/* Trust band under hero */
.trust-band {
  background: var(--orange);
  color: var(--white);
  padding: 1.25rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.trust-band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
}
.trust-band .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }

/* Section headers */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-head p {
  font-size: 1.125rem;
  color: var(--gray-warm);
  margin-top: 0.5rem;
}
.section-navy .section-head p { color: rgba(255, 255, 255, 0.75); }

/* Two-column feature */
.feature-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-two .feature-body p { font-size: 1.1rem; line-height: 1.7; }
.feature-two .feature-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 50px rgba(14, 30, 58, 0.15);
}
.feature-two .feature-media iframe,
.feature-two .feature-media img {
  width: 100%;
  height: 100%;
  border: 0;
}
.feature-two .feature-media.frame-orange {
  border: 4px solid var(--orange);
  padding: 6px;
  background: var(--navy);
  box-shadow: 12px 12px 0 var(--orange);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--orange);
}
.service-card-body {
  padding: 2.25rem 2rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--cream);
}
.service-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 1.05rem;
}
.service-card ul li:last-child { border-bottom: 0; }
.service-card ul li strong { color: var(--white); font-weight: 600; }
.service-card p.desc {
  color: rgba(245, 241, 234, 0.8);
  font-size: 1.05rem;
  margin-top: auto;
  margin-bottom: 1.75rem;
}
.service-card .card-cta {
  display: block;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  transition: background 0.18s ease;
}
.service-card .card-cta:hover { background: var(--orange-hover); color: var(--white); }

/* Why us / value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.value-item { text-align: center; }
.value-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.value-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.section-navy .value-item h3 { color: var(--white); }
.value-item p {
  font-size: 1.05rem;
  color: var(--gray-warm);
}
.section-navy .value-item p { color: rgba(255, 255, 255, 0.75); }

/* Service area strip */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.areas span {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.areas span.primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--orange);
  opacity: 0.08;
  border-radius: 50%;
}
.cta-banner .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; margin: 0; }
.cta-banner .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.cta-banner .btn { width: auto; }
.cta-banner .cta-phone {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta-banner .cta-phone strong {
  display: block;
  color: var(--white);
  font-size: 1.7rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.2rem;
}

/* Interior page hero (smaller) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 260px; height: 260px;
  background: var(--orange);
  opacity: 0.08;
  border-radius: 50%;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); max-width: 800px; }
.page-hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin-top: 1rem;
  line-height: 1.55;
}
.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--orange); }

/* Pricing highlight (service pages) */
.pricing-strip {
  background: var(--cream);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--orange);
  margin: 2rem 0;
  border-radius: 3px;
}
.pricing-strip h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1rem;
}
.pricing-strip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.pricing-strip li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1.05rem;
}
.pricing-strip li:last-child { border-bottom: 0; }
.pricing-strip li strong { color: var(--navy); font-family: var(--font-display); }

/* Prose (long-form content) */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; color: var(--navy); font-size: 1.3rem; }
.prose p { font-size: 1.1rem; line-height: 1.75; color: var(--charcoal); }
.prose ul { padding-left: 1.5rem; margin: 1em 0; }
.prose ul li { font-size: 1.075rem; padding: 0.35rem 0; line-height: 1.6; }
.prose ul li strong { color: var(--navy); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(14, 30, 58, 0.08);
}
.contact-form h2 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.75rem; }
.contact-form .form-intro { color: var(--gray-warm); margin-bottom: 1.75rem; font-size: 1.05rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233, 78, 27, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .hint { font-size: 0.875rem; color: var(--gray-warm); margin-top: 0.3rem; }
.form-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--orange);
  color: var(--white);
  border: 0;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
}
.form-submit:hover { background: var(--orange-hover); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-info {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 4px;
}
.contact-info h2 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.6rem; }
.contact-info .info-block {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--navy-line);
}
.contact-info .info-block:last-child { border-bottom: 0; }
.contact-info .info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info .info-icon svg { width: 20px; height: 20px; fill: var(--white); }
.contact-info .info-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.contact-info .info-value { color: var(--white); font-size: 1.1rem; line-height: 1.5; }
.contact-info .info-value a { color: var(--white); border-bottom: 1px dashed rgba(255,255,255,0.3); }
.contact-info .info-value a:hover { color: var(--orange); border-color: var(--orange); }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.alert-success {
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
  color: #1B5E20;
}
.alert-error {
  background: #FFEBEE;
  border-left: 4px solid #C62828;
  color: #B71C1C;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p {
  color: rgba(245, 241, 234, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: var(--orange);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 0.6rem; font-size: 1rem; }
.footer-col a { color: var(--cream); }
.footer-col a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--orange); margin-top: 4px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(245, 241, 234, 0.6);
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid,
  .value-grid,
  .feature-two,
  .contact-grid,
  .cta-banner .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cta-banner .cta-actions { align-items: stretch; }
}
@media (max-width: 780px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 1rem var(--pad-x) 1.5rem;
    border-top: 1px solid var(--navy-line);
  }
  .site-nav.open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.open li { border-bottom: 1px solid var(--navy-line); }
  .site-nav.open a {
    display: block;
    padding: 1rem 0;
    border-bottom: 0;
  }
  .nav-toggle { display: block; }
  .header-phone {
    border-left: 0;
    padding-left: 0;
    font-size: 1rem;
  }
  .header-phone span { display: none; }
  .header-phone svg { width: 24px; height: 24px; }
  .hero { min-height: 520px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-logo img { height: 44px; }
  .trust-band .wrap { flex-direction: column; gap: 0.5rem; }
  .trust-band .dot { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
