/* ==========================================================================
   A+ Improvements Inc. — Stylesheet
   Mobile-first. All brand values live in :root — change the palette by
   editing tokens here only, nothing else in this file should hardcode a color.
   ========================================================================== */

:root {
  /* Brand colors — from client build kit */
  --color-primary: #8b0e04;
  --color-primary-dark: #5a0903;
  --color-accent: #c9a227;
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-text: #1e1e1e;
  --color-text-muted: #6b7280;
  --color-border: #e5e5e5;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Layout */
  --content-width: 1140px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 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;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: var(--space-1) var(--space-2); z-index: 1000;
}
.skip-link:focus { left: var(--space-1); top: var(--space-1); }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: transparent; border-color: var(--color-surface); color: var(--color-surface); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- Section heading (shared) ---------- */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto var(--space-4); }
.section-heading__eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; color: var(--color-accent); margin-bottom: var(--space-1);
}
.section-heading__eyebrow--light { color: var(--color-accent); }
.section-heading__title { font-size: 1.9rem; margin-bottom: var(--space-2); }
.section-heading__lead { color: var(--color-text-muted); }
.section-heading--light .section-heading__title,
.section-heading--light .section-heading__lead { color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__container {
  max-width: var(--content-width); margin: 0 auto; padding: var(--space-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
}
.site-header__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--color-primary); white-space: nowrap;
}
.site-header__logo-sub { font-size: 0.95rem; color: var(--color-text); font-family: var(--font-body); font-weight: 500; }

.site-nav__toggle {
  display: flex; flex-direction: column; gap: 4px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.site-nav__toggle-bar { width: 22px; height: 2px; background: var(--color-text); }

.site-nav__menu {
  position: fixed; inset: 64px 0 auto 0; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); flex-direction: column;
  padding: var(--space-2); display: none; gap: var(--space-1);
}
.site-nav__menu.is-open { display: flex; }
.site-nav__menu a {
  display: block; padding: var(--space-1) 0; font-weight: 500;
}

.site-header__actions { display: none; align-items: center; gap: var(--space-2); }
.site-header__phone { font-weight: 700; color: var(--color-primary); white-space: nowrap; }

@media (min-width: 900px) {
  .site-nav__toggle { display: none; }
  .site-nav__menu {
    position: static; display: flex; flex-direction: row; gap: var(--space-3);
    border: none; padding: 0; background: transparent;
  }
  .site-header__actions { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
/* .hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: var(--space-6) var(--space-2);
} */

/* .hero {
  background: url(/images/trailer_cr.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top -50px; /* Moves the image 50px upward
  
  color: #fff; 
  padding: var(--space-6) var(--space-2);
} 
.hero__container { max-width: 760px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--color-accent); margin-bottom: var(--space-2);
}
.hero__title { font-size: 2.1rem; margin-bottom: var(--space-2); }
.hero__subtitle { font-size: 1.05rem; opacity: 0.92; margin-bottom: var(--space-3); }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-1); align-items: center; }

@media (min-width: 640px) {
  .hero__title { font-size: 2.9rem; }
  .hero__actions { flex-direction: row; justify-content: center; }
} */

/* ==========================================================================
   HERO
   ========================================================================== */

/* .hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: var(--space-6) var(--space-2);
} */

.hero {
  /* Combines the 40% subtle overlay and your shifted background image */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url(/images/trailer.jpg) no-repeat center / cover;
  color: #fff; 
  padding: var(--space-6) var(--space-2);
}

.hero__container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-size: 2.1rem;
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: var(--space-3);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 2.9rem;
  }
  
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}



/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-bar__container {
  max-width: var(--content-width); margin: 0 auto; padding: var(--space-3) var(--space-2);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); text-align: center;
}
.trust-bar__value { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--color-primary); font-weight: 700; }
.trust-bar__label { display: block; font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

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

/* ==========================================================================
   SERVICES — left menu / right detail panel
   ========================================================================== */
.services { padding: var(--space-6) var(--space-2); }
.services__container { max-width: var(--content-width); margin: 0 auto; }

.services__layout { display: flex; flex-direction: column; gap: var(--space-2); }

/* Left nav: horizontal scrollable pill row on mobile */
.services__nav {
  display: flex; gap: var(--space-1); overflow-x: auto; padding-bottom: var(--space-1);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.services__nav-item {
  flex: 0 0 auto; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 0.75rem 1.25rem; font-weight: 700;
  font-size: 0.9rem; color: var(--color-text-muted); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.services__nav-item.is-active,
.services__nav-item:hover { color: var(--color-primary); border-color: var(--color-primary); }
.services__nav-item.is-active { background: var(--color-bg); }

.services__panels { background: var(--color-surface); border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.services__panel { display: flex; flex-direction: column; }
.services__panel[hidden] { display: none; }

.services__media {
  background: var(--color-bg); display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.services__media-icon { width: 96px; height: 96px; color: var(--color-primary); }
.services__media-icon svg { width: 100%; height: 100%; }

/* Placeholder for when a service DOES have real photos:
   .services__media img — a single photo — or
   .services__slider  — multiple photos with prev/next controls,
   wired up in js/main.js ServiceTabs.renderMedia(). */
.services__slider { position: relative; width: 100%; }
.services__slider img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.services__slider-controls {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-1); pointer-events: none;
}
.services__slider-btn {
  pointer-events: auto; background: rgba(0,0,0,0.55); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.services__slider-dots { position: absolute; bottom: var(--space-1); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.services__slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.services__slider-dot.is-active { background: #fff; }

.services__content { padding: var(--space-3); }
.services__title { font-size: 1.4rem; color: var(--color-primary); margin-bottom: var(--space-1); }
.services__description { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.services__materials {
  display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3);
}
.services__materials li {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.82rem; color: var(--color-text);
}

@media (min-width: 860px) {
  .services__layout { flex-direction: row; align-items: flex-start; }
  .services__nav {
    flex-direction: column; overflow: visible; flex: 0 0 260px; padding-bottom: 0;
  }
  .services__nav-item { text-align: left; border-left: 3px solid transparent; border-radius: 6px; }
  .services__nav-item.is-active { border-left-color: var(--color-primary); }
  .services__panels { flex: 1; }
  .services__panel.is-active { display: flex; flex-direction: row; }
  .services__media { flex: 0 0 42%; padding: 0; align-self: stretch; }
  .services__media-icon { width: 140px; height: 140px; }
  .services__content { flex: 1; padding: var(--space-4); }
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-us { background: var(--color-primary); color: #fff; padding: var(--space-6) var(--space-2); }
.why-us__container { max-width: var(--content-width); margin: 0 auto; }
.why-us__story {
  max-width: 700px; margin: 0 auto var(--space-4); text-align: center;
  font-size: 1.05rem; opacity: 0.95;
}
.why-us__grid { display: grid; gap: var(--space-3); }
.why-us__item {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: var(--space-3);
}
.why-us__item-title { font-size: 1.1rem; color: var(--color-accent); margin-bottom: var(--space-1); }
.why-us__item-text { opacity: 0.9; font-size: 0.95rem; }

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

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews { padding: var(--space-6) var(--space-2); }
.reviews__container { max-width: var(--content-width); margin: 0 auto; }
.reviews__grid { display: grid; gap: var(--space-3); }
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-3); margin: 0;
}
.review-card__stars { color: var(--color-accent); margin-bottom: var(--space-1); font-size: 1rem; }
.review-card__quote { font-style: italic; color: var(--color-text); margin-bottom: var(--space-2); }
.review-card__author { font-size: 0.85rem; color: var(--color-text-muted); font-style: normal; }

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

/* ==========================================================================
   CONTACT / FINAL CTA
   ========================================================================== */
.contact { background: var(--color-primary-dark); color: #fff; padding: var(--space-6) var(--space-2); }
.contact__container {
  max-width: var(--content-width); margin: 0 auto; display: grid; gap: var(--space-4);
}
.contact__title { font-size: 1.9rem; margin: var(--space-1) 0 var(--space-2); }
.contact__lead { opacity: 0.9; margin-bottom: var(--space-3); }
.contact__info { margin-bottom: var(--space-2); }
.contact__info li { padding: 0.25rem 0; opacity: 0.9; }
.contact__info a:hover { color: var(--color-accent); }
.contact__emergency { font-size: 0.9rem; opacity: 0.85; }
.contact__emergency a { color: var(--color-accent); font-weight: 700; }

.contact-form { background: var(--color-surface); border-radius: var(--radius); padding: var(--space-3); color: var(--color-text); }
.contact-form__row { margin-bottom: var(--space-2); }
.contact-form__row--split { display: grid; gap: var(--space-2); }
.contact-form__label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.contact-form__input {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--color-border);
  border-radius: 6px; font-family: inherit; font-size: 0.95rem; background: var(--color-bg);
}
.contact-form__input:focus { border-color: var(--color-primary); }
.contact-form__helper { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.35rem; }
.contact-form__submit { width: 100%; }
.contact-form__status { margin-top: var(--space-2); font-size: 0.9rem; text-align: center; }
.contact-form__status.is-success { color: #1a7a3d; }
.contact-form__status.is-error { color: var(--color-primary); }

@media (min-width: 640px) {
  .contact-form__row--split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact__container { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #17140f; color: rgba(255,255,255,0.8); padding: var(--space-5) var(--space-2) var(--space-3); }
.site-footer__container {
  max-width: var(--content-width); margin: 0 auto; display: grid; gap: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__logo { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 0.25rem; }
.site-footer__tagline { color: var(--color-accent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.site-footer__fine-print { font-size: 0.8rem; opacity: 0.7; }
.site-footer__heading { color: #fff; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer__col p { margin-bottom: 0.35rem; font-size: 0.9rem; }
.site-footer__col a:hover { color: var(--color-accent); }
.site-footer__bottom { max-width: var(--content-width); margin: 0 auto; padding-top: var(--space-2); font-size: 0.8rem; opacity: 0.6; text-align: center; }

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

/* ==========================================================================
   SCROLL REVEAL (progressive enhancement — see js/main.js ScrollReveal)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
