/* ============================================================
   Academy Overhead Door — Style System
   Colorado Springs' Trusted Garage Door Experts
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(207, 79, 20, 0.2);
  color: var(--color-text);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, [role="button"], input, textarea, select {
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors — Garage Door Business Palette */
  /* Warm, trustworthy, professional */
  --color-bg:           #f8f7f4;
  --color-surface:      #ffffff;
  --color-surface-alt:  #f2f0eb;
  --color-text:         #1a1a1a;
  --color-text-muted:   #5c5c5c;
  --color-text-light:   #8a8a8a;
  --color-text-inverse: #ffffff;
  --color-border:       #e0ddd6;

  /* Charcoal — primary brand color (authority, strength) */
  --color-charcoal:       #2d2d2d;
  --color-charcoal-light: #404040;
  --color-slate:          #4a4f54;

  /* Accent — Bold orange for CTAs (energy, urgency, warmth) */
  --color-accent:       #cf4f14;
  --color-accent-hover: #b8440f;
  --color-accent-dark:  #9c3a0d;
  --color-accent-light: rgba(207, 79, 20, 0.08);

  /* Warm wood tone — complementary */
  --color-warm:         #8b6914;
  --color-warm-light:   rgba(139, 105, 20, 0.08);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.18);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}


/* ── Header / Navigation ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.nav-desktop a:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
}

.header-cta {
  display: none;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone span {
  display: none;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 480px) {
  .header-phone span {
    display: inline;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: var(--space-4) var(--space-8);
  }

  .logo-icon {
    width: 44px;
    height: 44px;
  }

  .logo-name {
    font-size: 1.25rem;
  }

  .logo-tagline {
    font-size: 0.7rem;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .header-cta {
    display: block;
  }

  .header-phone {
    display: none;
  }
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  border: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-accent-dark);
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-charcoal);
  color: var(--color-text-inverse);
}

.btn-secondary:hover {
  background: var(--color-charcoal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

.btn-lg svg {
  width: 22px;
  height: 22px;
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./images/hero-carriage-door.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-32) var(--space-6) var(--space-16);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(207, 79, 20, 0.9);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 40ch;
  font-weight: 400;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  font-weight: 500;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-stars {
  display: flex;
  gap: 2px;
}

.hero-stars svg {
  width: 14px;
  height: 14px;
  color: #f5a623;
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-32) var(--space-8) var(--space-20);
  }
}


/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* ── Services Section ─────────────────────────────────────── */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.service-icon.emergency {
  background: rgba(207, 79, 20, 0.15);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.service-link:hover {
  gap: var(--space-3);
}

.service-link svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ── Gallery Section ──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.gallery-item-overlay p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.featured {
    grid-column: span 2;
    aspect-ratio: 2/1;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}


/* ── Why Choose Us ────────────────────────────────────────── */
.why-us {
  background: var(--color-charcoal);
  color: white;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(207, 79, 20, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-us .section-label {
  color: var(--color-accent);
  opacity: 0.9;
}

.why-us .section-title {
  color: white;
}

.why-us .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: background 200ms ease;
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(207, 79, 20, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.trust-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.trust-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ── Showroom / About Section ─────────────────────────────── */
.showroom {
  background: var(--color-surface);
}

.showroom-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.showroom-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.showroom-images img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.showroom-images .img-interior {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.showroom-images .img-exterior {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.showroom-content h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.showroom-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.showroom-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.showroom-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.showroom-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.showroom-detail span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.showroom-detail strong {
  color: var(--color-text);
  display: block;
}

.brand-logos {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .showroom-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .showroom-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
  }
}


/* ── Contact / CTA Section ────────────────────────────────── */
.contact {
  background: var(--color-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.contact-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.contact-item-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-1);
}

.contact-item-text span,
.contact-item-text a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.5;
}

.contact-item-text a:hover {
  color: var(--color-accent);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
  margin-top: var(--space-6);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-form-wrapper h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.contact-form-wrapper > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(207, 79, 20, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-submit {
  width: 100%;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
  }
}


/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-charcoal);
  color: white;
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-brand .logo-name {
  color: white;
}

.footer-brand > p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 35ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

.footer-badge svg {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}


/* ── Mobile Sticky CTA ────────────────────────────────────── */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-accent);
  padding: var(--space-3) var(--space-6);
  safe-area-inset-bottom: env(safe-area-inset-bottom);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  width: 100%;
  padding: var(--space-2) 0;
}

.mobile-cta a svg {
  width: 22px;
  height: 22px;
  animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-12deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-6deg); }
  25% { transform: rotate(0deg); }
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* Add padding to body bottom on mobile for sticky CTA */
@media (max-width: 1023px) {
  body {
    padding-bottom: 64px;
  }
}


/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
