﻿/* ===========================================================
   Bluebonnet Home Resolutions - Design Tokens & Base Styles
   Palette derived from the brand logo (bluebonnet blue / leaf
   green / near-black navy) plus a red accent per brand direction.
   =========================================================== */

:root {
  /* --- Brand colors (sampled from logo) --- */
  --navy-950: #000000;      /* true black - matches the reprocessed logo background so it blends seamlessly */
  --navy-900: #151515;
  --navy-800: #222222;
  --blue-700: #33528c;      /* deep bluebonnet blue */
  --blue-500: #6f9dc4;      /* mid bluebonnet blue */
  --blue-300: #a9c9e0;      /* light petal blue */
  --green-600: #52883a;     /* leaf green */
  --green-400: #7fb35c;
  --red-600: #b8272c;       /* CTA / accent red ("Fixing", "Trust") */
  --red-700: #93201f;
  --red-500: #d43b37;

  /* --- Neutrals --- */
  --cream-50: #faf8f4;
  --cream-100: #f3efe6;
  --ink-900: #191d1a;
  --ink-700: #3d443e;
  --ink-500: #63695f;
  --white: #ffffff;

  /* --- Semantic tokens --- */
  --color-bg: var(--cream-50);
  --color-bg-alt: var(--cream-100);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-700);
  --color-primary: var(--blue-700);
  --color-primary-light: var(--blue-500);
  --color-secondary: var(--green-600);
  --color-accent: var(--red-600);
  --color-accent-hover: var(--red-700);
  --color-dark: var(--navy-950);
  --color-dark-surface: var(--navy-900);

  /* --- Type scale --- */
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5: clamp(3rem, 2.3rem + 3.2vw, 4.6rem);

  /* --- Spacing (8pt rhythm) --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.22);

  --container: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 var(--space-2); color: var(--ink-900); }
p { margin: 0 0 var(--space-2); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

/* Visible focus rings everywhere - accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: var(--space-2);
  background: var(--color-accent); color: var(--white);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  z-index: 1000; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

section { padding-block: var(--space-6); }
@media (max-width: 640px) {
  section { padding-block: var(--space-5); }
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-secondary);
  margin-bottom: var(--space-2);
}
.eyebrow svg { width: 1em; height: 1em; }

.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--color-text-muted); font-size: var(--step-1); }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-primary { background: var(--color-accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-dark { background: var(--color-dark); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }

.btn-block { width: 100%; }

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand img { height: 96px; width: auto; }

.primary-nav {
  display: none;
}
.primary-nav ul { display: flex; gap: var(--space-4); align-items: center; }
.primary-nav a {
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: var(--step--1);
  padding: 0.5em 0.1em; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--white); border-color: var(--red-500); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phones { display: none; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header-phones .label { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.header-phones a { color: var(--white); font-weight: 700; font-size: var(--step--1); }
.header-phones a:hover { color: var(--red-500); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: none;
  color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-900);
  padding: var(--space-2) var(--space-3) var(--space-3);
  gap: 0.25rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.9); font-weight: 600;
  padding: 0.85em 0.25em; border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 44px; display: flex; align-items: center;
}
.mobile-nav .btn { margin-top: var(--space-2); }

@media (min-width: 1024px) {
  .brand img { height: 136px; }
  .primary-nav { display: block; }
  .header-phones { display: flex; }
  .nav-toggle { display: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  color: var(--white);
  background: var(--color-dark);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0,0.35) 0%, rgba(0, 0, 0,0.55) 55%, rgba(0, 0, 0,0.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: var(--space-7) var(--space-6);
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4em 0.9em; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600;
  backdrop-filter: blur(6px);
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.9rem);
  color: var(--white);
  margin-bottom: var(--space-3);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.65),
     1px -1px 0 rgba(0,0,0,0.65),
    -1px  1px 0 rgba(0,0,0,0.65),
     1px  1px 0 rgba(0,0,0,0.65),
     0 2px 10px rgba(0,0,0,0.35);
}
.hero h1 .hero-line { display: block; }
@media (min-width: 680px) {
  .hero h1 .hero-line-1 { white-space: nowrap; }
}
.hero h1 .accent { color: var(--red-500); font-size: 1.1em; }
.hero-sub {
  font-size: var(--step-1);
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin-bottom: var(--space-4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }

.hero-badges {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-3);
}
.hero-badge { display: flex; align-items: center; gap: 0.6em; font-size: var(--step--1); font-weight: 600; }
.hero-badge svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green-400); }

@media (min-width: 640px) {
  .hero-badges { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ===========================================================
   Trust strip
   =========================================================== */
.trust-strip {
  background: var(--color-dark-surface);
  color: var(--white);
  padding-block: var(--space-4);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-3);
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.trust-item svg { width: 30px; height: 30px; color: var(--red-500); }
.trust-item strong { font-size: var(--step-0); }
.trust-item span { font-size: var(--step--1); color: rgba(255,255,255,0.7); }

@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ===========================================================
   Services
   =========================================================== */
.services-cta-hint {
  text-align: center;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}
/* Center a lone trailing card in the middle of a 4-column row */
@media (min-width: 1180px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-grid > .service-card:nth-child(4n + 1):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 3 * var(--space-3)) / 4);
  }
}
.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  color: inherit;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-card:hover, .service-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.35em;
  margin-top: 0.5rem;
  font-size: var(--step--1); font-weight: 700;
  color: var(--red-500);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-card:hover .service-card-link,
.service-card:focus-visible .service-card-link { opacity: 1; transform: none; }
.service-card-link svg { width: 1em; height: 1em; }
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0,0) 35%, rgba(0, 0, 0,0.88) 100%);
  z-index: 1;
}
.service-card:hover img { transform: scale(1.06); }
.service-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--space-3);
  color: var(--white);
}
.service-card-body h3 { color: var(--white); font-size: var(--step-1); margin-bottom: 0.25rem; }
.service-card-body p { color: rgba(255,255,255,0.82); font-size: var(--step--1); margin: 0; }

/* ===========================================================
   Gallery
   =========================================================== */
.gallery-nav {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.gallery-nav a {
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1.5px solid #d8d3c6;
  font-size: var(--step--1); font-weight: 600;
  color: var(--color-text);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.gallery-nav a:hover, .gallery-nav a:focus-visible {
  border-color: var(--color-accent); color: var(--color-accent); background: var(--white);
}

.gallery-category {
  scroll-margin-top: 150px;
  margin-bottom: var(--space-7);
}
.gallery-category:last-child { margin-bottom: 0; }
.gallery-category-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 2px solid #e4dfd2;
  padding-bottom: var(--space-2);
}
.gallery-category-head h3 { font-size: var(--step-2); margin: 0; }
.gallery-category-head p { margin: 0; color: var(--color-text-muted); font-size: var(--step--1); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--navy-900);
  border: none; padding: 0;
  aspect-ratio: 4/3;
  min-height: 44px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { aspect-ratio: 4/5; }

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-3);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: var(--space-2); }
.lightbox-next { right: var(--space-2); }
@media (min-width: 768px) {
  .lightbox-prev { left: var(--space-4); }
  .lightbox-next { right: var(--space-4); }
}
.lightbox-nav[hidden] { display: none; }

.lightbox-counter {
  position: absolute; left: 0; right: 0; bottom: var(--space-3);
  text-align: center; color: rgba(255,255,255,0.85);
  font-size: var(--step--1); font-weight: 600;
  margin: 0; z-index: 3;
}

/* ===========================================================
   Category modal (service card -> popup gallery)
   =========================================================== */
.category-modal {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-3);
}
.category-modal.is-open { display: flex; }
.category-modal-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  width: min(1000px, 100%);
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.category-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid #e4dfd2;
  flex-shrink: 0;
}
.category-modal-header h3 { margin: 0; font-size: var(--step-2); }
.category-modal-header p { margin: 0.2rem 0 0; color: var(--color-text-muted); font-size: var(--step--1); }
.category-modal-close {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-bg-alt); border: none;
  color: var(--color-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.category-modal-close:hover { background: var(--color-accent); color: var(--white); }
.category-modal-close svg { width: 20px; height: 20px; }
.category-modal-body {
  padding: var(--space-4);
  overflow-y: auto;
}
.category-modal-body .gallery-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .category-modal-body .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   About
   =========================================================== */
.about-grid {
  display: grid; gap: var(--space-5);
  align-items: center;
}
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.slideshow { position: relative; aspect-ratio: 4 / 3; background: var(--navy-950); }
.slideshow-track { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.slide.is-active { opacity: 1; }

.slideshow-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}
.slideshow-dots { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.dot {
  width: 32px; height: 32px; padding: 0; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  min-height: auto;
}
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background-color 0.2s, width 0.2s, border-radius 0.2s;
}
.dot.is-active::before { background: var(--white); width: 20px; border-radius: 4px; }
.slideshow-pause {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.slideshow-pause:hover { background: rgba(255,255,255,0.28); }
.slideshow-pause svg { width: 18px; height: 18px; }
.about-list { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.about-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.about-list svg { width: 24px; height: 24px; color: var(--color-secondary); flex-shrink: 0; margin-top: 0.1em; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================
   Financing
   =========================================================== */
.financing {
  background: var(--color-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid; gap: var(--space-4);
  align-items: center;
}
.financing h2 { color: var(--white); }
.financing p { color: rgba(255,255,255,0.82); }
.financing-icon { width: 56px; height: 56px; color: var(--green-400); margin-bottom: var(--space-2); }

@media (min-width: 900px) {
  .financing { grid-template-columns: auto 1fr auto; padding: var(--space-6); }
}

/* ===========================================================
   Contact
   =========================================================== */
.contact-grid {
  display: grid; gap: var(--space-5);
}
.contact-info { display: grid; gap: var(--space-3); }
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-card svg { width: 26px; height: 26px; color: var(--color-accent); flex-shrink: 0; margin-top: 0.1em; }
.contact-card h3 { font-size: var(--step-0); margin-bottom: 0.2rem; }
.contact-card a, .contact-card p { color: var(--color-text-muted); font-size: var(--step--1); }
.contact-card a { display: block; font-weight: 600; color: var(--color-text); }
.contact-card a:hover { color: var(--color-accent); }

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: grid; gap: var(--space-2);
}
.form-row { display: grid; gap: var(--space-2); }
@media (min-width: 560px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .required { color: var(--color-accent); }
.field input, .field select, .field textarea {
  border: 1.5px solid #d8d3c6;
  border-radius: var(--radius-sm);
  padding: 0.8em 0.9em;
  font-family: inherit; font-size: var(--step--1);
  min-height: 44px;
  background: var(--white);
  color: var(--color-text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--color-primary);
}
.form-hint { font-size: 0.8rem; color: var(--color-text-muted); }
.form-status { font-size: var(--step--1); font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--color-secondary); }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background:
    radial-gradient(1200px 400px at 15% 0%, rgba(184,39,44,0.14), transparent 60%),
    var(--color-dark);
  color: rgba(255,255,255,0.72);
  padding-block: var(--space-6) var(--space-4);
  border-top: 3px solid var(--color-accent);
}

/* Footer CTA band */
.footer-cta {
  display: grid; gap: var(--space-3);
  align-items: center;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-cta h3 {
  color: var(--white);
  font-size: var(--step-2);
  margin: 0 0 0.35rem;
}
.footer-cta p { margin: 0; font-size: var(--step--1); color: rgba(255,255,255,0.7); }
.footer-cta-badge {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.45em 0.9em;
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 860px) {
  .footer-cta { grid-template-columns: 1fr auto; gap: var(--space-4); }
  .footer-cta-actions { justify-content: flex-end; }
}

.footer-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-4); }
}

.footer-brand img { height: 190px; }
.footer-brand p { max-width: 32ch; font-size: var(--step--1); line-height: 1.6; }
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: var(--space-3);
}
.footer-badges span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.4em 0.8em;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  color: rgba(255,255,255,0.72);
  font-size: var(--step--1);
  transition: color 0.15s var(--ease-out), padding-left 0.15s var(--ease-out);
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--white); padding-left: 4px; }

.footer-contact ul { gap: var(--space-2); }
.footer-contact li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: var(--step--1); line-height: 1.5;
}
.footer-contact svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15em;
  color: var(--red-500);
}
.footer-contact a:hover { padding-left: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom span:last-child { font-family: var(--font-display); letter-spacing: -0.01em; color: rgba(255,255,255,0.65); }

/* ===========================================================
   Sticky mobile call bar
   =========================================================== */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--color-dark);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  color: var(--white); font-weight: 700; font-size: var(--step--1);
  padding: 0.9em; min-height: 52px;
}
.call-bar a:first-child { border-right: 1px solid rgba(255,255,255,0.12); }
.call-bar svg { width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .call-bar { display: none; }
}
body { padding-bottom: 0; }
@media (max-width: 1023px) {
  body { padding-bottom: 60px; }
}

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

