/* ==========================================================================
   Complete Drywall & Taping, Inc. — Main Stylesheet
   Modern, professional, responsive. Targets the exact class names in the HTML.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors — brand */
  --navy: #1b2a41;
  --navy-2: #243447;
  --navy-3: #2f445e;
  --accent: #c8963f;
  --accent-2: #d4a04a;
  --accent-dark: #a87828;

  /* Colors — neutrals */
  --bg: #f5f5f0;
  --surface: #ffffff;
  --surface-alt: #faf8f3;
  --border: #e3e0d6;
  --border-strong: #c9c9bf;
  --text: #1a1a1a;
  --text-muted: #5a6473;

  /* Status */
  --error: #b3261e;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(27, 42, 65, 0.05);
  --shadow-sm: 0 2px 6px rgba(27, 42, 65, 0.08);
  --shadow-md: 0 6px 18px rgba(27, 42, 65, 0.1);
  --shadow-lg: 0 14px 40px rgba(27, 42, 65, 0.16);
  --shadow-xl: 0 24px 60px rgba(27, 42, 65, 0.22);

  /* Transitions */
  --t-fast: 160ms ease;
  --t: 240ms ease;
  --t-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   3. Base Typography & Elements
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

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

a {
  color: var(--accent-dark);
  transition: color var(--t-fast);
}
a:hover { color: var(--navy); }

ul { list-style: none; }

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

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 80px;
}

.section-alt {
  background-color: var(--surface-alt);
}

.text-center {
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast),
              transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(27, 42, 65, 0.06);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-icon svg { width: 100%; height: 100%; fill: currentColor; }

.logo-text { color: var(--navy); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--t-fast);
}
.primary-nav a:hover { color: var(--navy); }

.primary-nav a.active,
.primary-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}
.primary-nav a.active::after,
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile nav (dropdown panel) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .primary-nav ul li { width: 100%; }

  .primary-nav ul a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav ul a.active::after,
  .primary-nav ul a[aria-current="page"]::after {
    display: none;
  }

  .nav-cta {
    margin: 1rem 0 0;
    width: 100%;
  }
  .nav-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212, 160, 74, 0.28) 0%, rgba(212, 160, 74, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-line {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.hero-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.05);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image { max-height: 50vh; order: 2; }
}

/* --------------------------------------------------------------------------
   8. Page Hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -15%;
  width: 55vw;
  max-width: 680px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212, 160, 74, 0.24) 0%, rgba(212, 160, 74, 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero-subtitle,
.page-hero-intro {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 560px;
}

.page-hero-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.05);
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .page-hero-image {
    aspect-ratio: 16 / 9;
    max-height: 40vh;
  }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-image img { transform: scale(1.05); }

.card h3 { color: var(--navy); font-size: 1.2rem; }
.card p { color: var(--text-muted); flex: 1; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: auto;
  transition: color var(--t-fast), gap var(--t-fast);
}
.card-link::after {
  content: "\2192";
  font-size: 1.1em;
  transition: transform var(--t-fast);
}
.card-link:hover {
  color: var(--navy);
  gap: 0.6rem;
}
.card-link:hover::after { transform: translateX(3px); }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. Features
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(200, 150, 63, 0.12);
  color: var(--accent);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature h3 { color: var(--navy); font-size: 1.15rem; }
.feature p { color: var(--text-muted); }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   11. Serve (Who We Serve)
   -------------------------------------------------------------------------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.serve-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.serve-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.serve-image {
  flex: 0 0 45%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.serve-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serve-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.serve-body h3 { color: var(--navy); }
.serve-body p { color: var(--text-muted); }

@media (max-width: 600px) {
  .serve-grid { grid-template-columns: 1fr; }
  .serve-card { flex-direction: column; }
  .serve-image { flex: none; aspect-ratio: 16 / 9; }
}

/* --------------------------------------------------------------------------
   12. Stats Strip
   -------------------------------------------------------------------------- */
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding-block: 2.5rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  color: var(--accent-2);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   13. Process (Services)
   -------------------------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: process;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.process-step h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.25rem; }
.process-step p { color: var(--text-muted); }

@media (max-width: 1024px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. Gallery (Our Work)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-image img { transform: scale(1.05); }

.gallery-item figcaption {
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Prose / Legal / Mission
   -------------------------------------------------------------------------- */
.prose,
.legal-article {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.prose p,
.legal-article p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose h2,
.legal-article h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose h3,
.legal-article h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul,
.prose ol,
.legal-article ul,
.legal-article ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ol,
.legal-article ol { list-style: decimal; }

.prose li,
.legal-article li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.prose a,
.legal-article a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover,
.legal-article a:hover { color: var(--navy); }

.mission-statement {
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
  padding: 1.5rem;
  border-radius: var(--r-md);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.lead-form-wrapper {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.required {
  color: var(--error);
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form input[type="search"],
.lead-form input[type="url"],
.lead-form input[type="date"],
.lead-form input[type="number"],
.lead-form input[type="password"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: var(--accent);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 150, 63, 0.25);
}

.lead-form textarea {
  min-height: 140px;
  resize: vertical;
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b2a41' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-field fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.form-field fieldset legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  padding: 0;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
  font-weight: 400;
  cursor: pointer;
}
.radio-label input { accent-color: var(--accent); }

.form-consent { margin-top: 0.5rem; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

#consentError,
.consent-error,
.form-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}

.honey {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form input[aria-invalid="true"],
.lead-form select[aria-invalid="true"],
.lead-form textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18);
}

/* --------------------------------------------------------------------------
   17. Contact Info
   -------------------------------------------------------------------------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(200, 150, 63, 0.12);
  color: var(--accent);
}
.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-info-card h3 { color: var(--navy); font-size: 1.1rem; }
.contact-info-card p { color: var(--text-muted); }
.contact-info-card a { color: var(--accent-dark); }
.contact-info-card a:hover { color: var(--navy); }

@media (max-width: 1024px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface-alt);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-section {
  background: var(--surface-alt);
  text-align: center;
  padding: 3rem 0;
}

.cta-inner {
  text-align: center;
}
.cta-inner .hero-cta {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 3.5rem 2.5rem;
  border-top: 4px solid var(--accent);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--t-fast);
}
.site-footer a:hover { color: var(--accent-2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-phone,
.footer-email {
  color: rgba(255, 255, 255, 0.82);
}
.footer-phone:hover,
.footer-email:hover { color: var(--accent-2); }

.footer-heading {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a { font-size: 0.95rem; }

.footer-cookie-btn {
  background: none;
  border: none;
  text-align: left;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.footer-cookie-btn:hover { color: var(--accent-2); }

.footer-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   19. Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1500;
  width: calc(100% - 2rem);
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  animation: cookieSlideIn var(--t-slow) both;
}

@keyframes cookieSlideIn {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.cookie-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}
.cookie-text a { color: var(--accent-dark); }
.cookie-text a:hover { color: var(--navy); }

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-buttons .btn {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; gap: 1rem; }
  .cookie-buttons { width: 100%; }
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: cookieSlideInMobile var(--t-slow) both;
  }
  .cookie-buttons .btn { min-width: 100%; }
}

@keyframes cookieSlideInMobile {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   20. Cookie Settings Modal
   -------------------------------------------------------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 42, 65, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cookie-modal.is-open {
  display: flex;
  animation: cookieModalFade var(--t) both;
}

@keyframes cookieModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
}

.cookie-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  animation: cookieModalSlide var(--t-slow) both;
}

@keyframes cookieModalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.cookie-modal-close:hover {
  background: var(--surface-alt);
  color: var(--navy);
  border-color: var(--border-strong);
}

.cookie-modal h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.cookie-modal-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-category {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-category:last-of-type { border-bottom: none; }

.cookie-cat-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.cookie-cat-head h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.cookie-cat-head p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 360px;
  line-height: 1.55;
}

.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin-top: 2px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background var(--t-fast);
}
.switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-fast);
}
.switch input:checked ~ .switch-slider {
  background: var(--accent);
}
.switch input:checked ~ .switch-slider::before {
  transform: translateX(20px);
}
.switch input:focus-visible ~ .switch-slider {
  box-shadow: 0 0 0 3px rgba(200, 150, 63, 0.25);
}
.switch input:disabled ~ .switch-slider {
  background: var(--navy);
  opacity: 0.6;
  cursor: not-allowed;
}
.switch input:disabled ~ .switch-slider::before {
  transform: translateX(0);
}

.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cookie-modal-buttons .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   21. Accessibility / Misc
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  top: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   22. Responsive Section Padding
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section { padding-block: 56px; }
}
@media (max-width: 600px) {
  .section { padding-block: 48px; }
}

/* --------------------------------------------------------------------------
   23. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .primary-nav,
  .nav-cta,
  .cookie-banner,
  .cookie-modal,
  .skip-link {
    display: none !important;
  }
  body { background: #fff; }
  .hero,
  .page-hero {
    background: none !important;
    color: var(--text) !important;
  }
  .hero h1,
  .page-hero h1,
  .hero-subtitle,
  .page-hero-subtitle,
  .page-hero-intro,
  .trust-line {
    color: var(--text) !important;
  }
  a { color: var(--text); text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   Correction: .card direct-children padding (HTML has no .card-body wrapper)
   -------------------------------------------------------------------------- */
.card > h3,
.card > p,
.card > .card-link {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.card > h3 {
  padding-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.card > p {
  margin-bottom: 0.75rem;
}
.card > .card-link {
  padding-bottom: 1.25rem;
  margin-top: auto;
}
/* If a .card-body wrapper ever exists, keep it working too (harmless). */

/* --------------------------------------------------------------------------
   Correction: compact hero (used on About, Business Model, Terms, Accessibility)
   -------------------------------------------------------------------------- */
.hero.hero-compact {
  padding-block: clamp(2.25rem, 6vh, 3.75rem);
}
.hero.hero-compact .hero-inner {
  gap: 2rem;
}
.hero.hero-compact .hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero.hero-compact .hero-cta {
  margin-top: 0.25rem;
}
.hero-image.hero-image-compact {
  aspect-ratio: 16 / 9;
  max-height: 360px;
}
@media (max-width: 768px) {
  .hero.hero-compact .hero-image.hero-image-compact {
    max-height: 40vh;
  }
}

/* --------------------------------------------------------------------------
   Correction: legal page "last updated" line
   -------------------------------------------------------------------------- */
.last-updated {
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Correction: thank-you page
   -------------------------------------------------------------------------- */
.thankyou-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
}
.thankyou-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.thankyou-icon svg {
  width: 64px;
  height: 64px;
}
.thankyou-card h1 {
  margin-bottom: 0.75rem;
}
.thankyou-message {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.thankyou-next-steps {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.thankyou-actions .btn {
  flex: 0 1 auto;
}
.thankyou-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .thankyou-card { padding: 2.5rem 1.25rem; }
  .thankyou-actions .btn { width: 100%; }
}
