/* ==========================================================================
   Eddie Axner Construction, Inc. — Site Stylesheet
   Dark luxury black & tan palette, matching original brand design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 100%;

  --card: 0 0% 13%;
  --card-foreground: 0 0% 100%;

  --primary: 35 39% 54%;
  --primary-foreground: 0 0% 7%;
  --primary-hover: 35 42% 60%;

  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 100%;

  --muted: 0 0% 10%;
  --muted-foreground: 34 14% 60%;

  --accent: 35 39% 54%;
  --accent-foreground: 0 0% 7%;

  --destructive: 0 70% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 35 25% 25%;
  --input: 0 0% 18%;
  --ring: 35 39% 54%;

  --radius: 0.5rem;

  --section-dark: 0 0% 10%;
  --section-dark-foreground: 0 0% 100%;

  --hero-overlay: linear-gradient(180deg, hsla(0, 0%, 4%, 0.78) 0%, hsla(0, 0%, 4%, 0.55) 100%);
  --shadow-card: 0 2px 8px hsla(0, 0%, 0%, 0.45), 0 1px 3px hsla(0, 0%, 0%, 0.35);
  --shadow-elevated: 0 12px 32px -8px hsla(0, 0%, 0%, 0.65), 0 4px 12px -4px hsla(35, 39%, 30%, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@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 {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.01em;
  font-weight: 800;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  height: 3rem;
  padding: 0 2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-cta {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-card);
}
.btn-cta:hover { background-color: hsl(var(--primary-hover)); }

.btn-cta-outline {
  background-color: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}
.btn-cta-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid hsl(var(--section-dark-foreground));
  color: hsl(var(--section-dark-foreground));
  height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}
.btn-outline-light:hover {
  background-color: hsl(var(--section-dark-foreground));
  color: hsl(var(--section-dark));
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: hsl(var(--section-dark));
  color: hsl(var(--section-dark-foreground));
  border-bottom: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-elevated); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.site-logo {
  display: block;
  height: 100%;
  padding: 0.5rem 0;
  width: 200px;
}
.site-logo img { height: 100%; width: 100%; object-fit: contain; }

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

.main-nav a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.8);
  transition: color 0.2s ease;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active { color: hsl(var(--section-dark-foreground)); }

.menu-toggle {
  background: none;
  border: none;
  color: hsl(var(--section-dark-foreground));
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  display: none;
  background-color: hsl(var(--section-dark));
  border-top: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.8);
}
.mobile-nav a:not(.btn):hover { color: hsl(var(--section-dark-foreground)); }
.mobile-nav .mobile-cta { padding: 0.5rem 1.5rem 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: hsl(var(--background));
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero .container {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-content { max-width: 48rem; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 1.25rem;
  border-left: 2px solid hsl(var(--accent));
  padding-left: 0.75rem;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.hero p.lead {
  font-size: 1.125rem;
  color: hsla(0,0%,100%,0.85);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .hero p.lead { font-size: 1.25rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Trust badges ---------- */
.trust-badges {
  background-color: hsl(var(--section-dark));
  color: hsl(var(--section-dark-foreground));
  padding: 4rem 0;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}
@media (min-width: 768px) {
  .badges-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}
.badge-stat { text-align: center; }
.badge-stat .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--accent));
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .badge-stat .value { font-size: 3rem; } }
.badge-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(0,0%,100%,0.7);
  font-weight: 500;
}
@media (min-width: 768px) { .badge-stat .label { font-size: 0.875rem; } }

/* ---------- Sections (generic) ---------- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-bg-dark { background-color: hsl(var(--background)); }
.section-bg-light { background-color: hsl(var(--secondary)); }

.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }
.section-head p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
  border-color: hsla(35, 39%, 54%, 0.4);
}
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--secondary));
  color: hsl(var(--accent));
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-icon {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.service-icon svg { width: 1.75rem; height: 1.75rem; }
.service-card-top .arrow { width: 1.25rem; height: 1.25rem; color: hsla(34,14%,60%,0.4); }
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.5rem;
}
.service-card p { color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Why Us pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.pillar-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-elevated); }
.pillar-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.pillar-icon svg { width: 1.5rem; height: 1.5rem; }
.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.pillar-card p { color: hsl(var(--muted-foreground)); line-height: 1.6; font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: hsl(var(--muted));
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}
.gallery-item:hover { box-shadow: var(--shadow-elevated); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.review-card:hover { box-shadow: var(--shadow-elevated); }
.review-card .quote-icon { width: 2rem; height: 2rem; color: hsl(var(--accent)); margin-bottom: 1rem; }
.review-card blockquote {
  color: hsl(var(--card-foreground));
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.review-stars { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; color: hsl(var(--accent)); }
.review-stars svg { width: 1rem; height: 1rem; }
.review-meta { border-top: 1px solid hsl(var(--border)); padding-top: 1rem; }
.review-meta .name { font-weight: 700; color: hsl(var(--foreground)); }
.review-meta .company { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; }
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.faq-question .chev {
  width: 1.25rem; height: 1.25rem;
  flex-shrink: 0;
  color: hsl(var(--accent));
  transition: transform 0.25s ease;
}
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 40rem; }
.faq-answer p {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  padding-bottom: 1.5rem;
  max-width: 44rem;
}

/* ---------- CTA / Contact ---------- */
.contact-section {
  background-color: hsl(var(--section-dark));
  color: hsl(var(--section-dark-foreground));
  padding: 5rem 0;
}
@media (min-width: 768px) { .contact-section { padding: 7rem 0; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
@media (min-width: 768px) { .contact-info h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-info h2 { font-size: 3.5rem; } }
.contact-info > p {
  font-size: 1.125rem;
  color: hsla(0,0%,100%,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 32rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-detail .icon-wrap {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background-color: hsla(35, 39%, 54%, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail .icon-wrap svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--accent)); }
.contact-detail .detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(0,0%,100%,0.6);
  margin-bottom: 0.125rem;
}
.contact-detail .detail-value { font-size: 1.05rem; font-weight: 600; }
.contact-detail a.detail-value:hover { color: hsl(var(--accent)); }

.contact-form-card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .contact-form-card { padding: 2.5rem; } }
.contact-form-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-form-card > p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; font-size: 0.875rem; }

.form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.form-field::placeholder { color: hsl(var(--muted-foreground)); }
.form-field:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}
textarea.form-field { resize: vertical; min-height: 7rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form-row .form-field { margin-bottom: 1rem; }

.form-success {
  text-align: center;
  padding: 3rem 0;
}
.form-success .check { font-size: 2.5rem; margin-bottom: 1rem; color: hsl(var(--accent)); }
.form-success h4 { font-size: 1.25rem; font-weight: 700; }
.form-success p { color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: hsl(var(--section-dark));
  color: hsl(var(--section-dark-foreground));
  padding: 2.5rem 0 1.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-start; } }
.footer-brand { text-align: center; }
@media (min-width: 768px) { .footer-brand { text-align: left; } }
.footer-brand .name { font-size: 0.95rem; font-weight: 700; }
.footer-brand .addr { font-size: 0.75rem; color: hsla(0,0%,100%,0.6); margin-top: 0.25rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
}
.footer-links a { color: hsla(0,0%,100%,0.7); }
.footer-links a:hover { color: hsl(var(--accent)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsla(0,0%,100%,0.6);
}

/* ---------- Legal / static pages ---------- */
.legal-page {
  padding-top: 130px;
  padding-bottom: 5rem;
  background-color: hsl(var(--background));
  min-height: 60vh;
}
.legal-page .container { max-width: 850px; }
.legal-page h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.legal-page .updated {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent));
}
.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-page p, .legal-page li {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-page ul, .legal-page ol { margin: 0 0 1rem 1.5rem; }
.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page a { color: hsl(var(--accent)); text-decoration: underline; }
.legal-page strong { color: hsl(var(--foreground)); }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: hsl(var(--accent));
  font-weight: 600;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.not-found h1 { font-size: 5rem; color: hsl(var(--accent)); margin-bottom: 1rem; }
.not-found p { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; font-size: 1.125rem; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

.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;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.7s ease-out forwards; }
