/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Vintage Forge';
  src: url('fonts/Vintage-Forge.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   COLOR TOKENS
   ============================================================ */
:root {
  --color-bg:         #eceae8;   /* page background */
  --color-bg-card:    #f6f6f4;   /* badge / card background */
  --color-primary:    #c93816;   /* red — buttons, borders, accents */
  --color-secondary:  #55828b;   /* teal — nav links, badges section, CTA bg */
  --color-dark:       #2a4a53;   /* dark teal — headings, body text */
  --color-muted:      #687981;   /* footer copyright */
  --color-white:      #ffffff;
  --color-off-white:  #ecece9;   /* heading text on dark bg */
  --color-star:       #f4a015;   /* testimonial stars */

  /* ============================================================
     TYPOGRAPHY TOKENS
     ============================================================ */
  --font-display:  'Vintage Forge', serif;
  --font-body:     'Epilogue', sans-serif;

  /* Scale — adjust here to shift globally */
  --text-xs:   0.75rem;     /* 12px  — footer copyright */
  --text-sm:   0.9375rem;   /* 15px  — service list items */
  --text-base: 1rem;        /* 16px  — body, nav links, testimonials */
  --text-md:   1.0625rem;   /* 17px  — commercial body alt */
  --text-lg:   1.125rem;    /* 18px  — testimonial author */
  --text-xl:   1.25rem;     /* 20px  — buttons, CTA sub */
  --text-2xl:  1.5rem;      /* 24px  — hero sub */
  --text-3xl:  2.5rem;      /* 40px  — services heading */
  --text-4xl:  2.75rem;     /* 44px  — badges */
  --text-5xl:  3.0625rem;   /* 49px  — hero h1, tagline, testimonials h2, CTA h2 */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;

  --tracking-display: 0.055em;  /* Vintage Forge letter spacing */
  --lh-display: 1.1;
  --lh-body:    1.4;

  /* ============================================================
     LAYOUT TOKENS
     ============================================================ */
  --max-width:      1800px;
  --container-pad:  clamp(1.25rem, 3vw, 2.75rem);  /* 44px at ~1600px */
  --section-gap:    5rem;     /* 80px vertical rhythm between sections */
  --card-gap:       0.75rem;  /* 12px gap between service card + image */

  --radius-sm:   0.5rem;     /* 8px  — buttons, cards */
  --radius-md:   1rem;       /* 16px — CTA box */
  --radius-lg:   2.75rem;    /* 44px — hero frame */
  --radius-pill: 1.875rem;   /* 30px — nav CTA button */

  --border-thick: 4px;
  --border-thin:  2px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }


/* ============================================================
   LAYOUT — CONTAINER & SECTIONS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Consistent vertical breathing room for each section */
.tagline,
.services,
.badges,
.testimonials,
.cta {
  padding-block: var(--section-gap);
}

.hero {
  padding: 1.25rem;                    /* 20px around hero frame */
  padding-top: calc(1.25rem + 10px);   /* +10px extra at top of page */
  padding-bottom: 3rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.75rem;
  height: 2.625rem;      /* 42px — ~30% smaller than original 60px */
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn:hover  { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: var(--border-thin) solid var(--color-white);
}

.btn--pill   { border-radius: var(--radius-pill); }
.btn--square { border-radius: var(--radius-sm); }


/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--color-bg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: 1.2rem;   /* ~20% shorter than original 1.5rem */
}

.nav__logo img {
  width: 106px;  /* ~10% larger */
  height: auto;
}

/* Nav right side */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.8125rem;  /* ~13px — slightly smaller than base 16px */
  font-weight: var(--weight-bold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--color-primary); }

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  z-index: 210;
}

.nav__bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X state */
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */
.hero__frame {
  position: relative;
  border: var(--border-thick) solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 842px;
  min-height: 420px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.hero__logo {
  width: clamp(72px, 8vw, 128px);
  height: auto;
  flex-shrink: 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  max-width: 900px;
}

.hero__sub {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-2xl));
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  max-width: 700px;
  line-height: var(--lh-body);
}


/* ============================================================
   TAGLINE
   ============================================================ */
.tagline .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.tagline__headshot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.tagline__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  font-style: normal;
  color: var(--color-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
}


/* ============================================================
   SERVICES (shared by residential & commercial)
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr clamp(200px, 30vw, 556px);
  gap: var(--card-gap);
  align-items: stretch;
}

.services__grid--reverse {
  grid-template-columns: clamp(200px, 30vw, 556px) 1fr;
}

/* Text card */
.services__card {
  border: var(--border-thick) solid var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: stretch;
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2rem, 8vw, 8.625rem) clamp(1.5rem, 4vw, 3.5rem);
  justify-content: center;
}

.services__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, var(--text-3xl));
  font-weight: var(--weight-regular);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
}

.services__body {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  line-height: var(--lh-body);
  max-width: 580px;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.services__list li {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.services__list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Photo card */
.services__image {
  border: var(--border-thick) solid var(--color-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.services__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   VALUE BADGES
   ============================================================ */
.badges__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.badge {
  background-color: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.6875rem clamp(1rem, 4.2vw, 4.2rem);
  min-height: 6.9375rem;  /* 111px */
  overflow: hidden;
}

.badge__icon {
  width: auto;
  height: clamp(1.75rem, 3vw, 2.9375rem);
  flex-shrink: 0;
}

.badge__label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, var(--text-4xl));
  font-weight: var(--weight-regular);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  white-space: nowrap;
}


/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us {
  background-color: var(--color-dark);
  padding-block: var(--section-gap);
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

/* Left column — text */
.why-us__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  color: var(--color-off-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  margin-bottom: 1.75rem;
}

.why-us__body {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: rgba(236, 234, 232, 0.75);
  line-height: var(--lh-body);
  margin-bottom: 2rem;
}

.why-us__cta-text {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(236, 234, 232, 0.6);
  line-height: var(--lh-body);
  margin-bottom: 2rem;
}

/* Right column — feature list */
.why-us__list {
  display: flex;
  flex-direction: column;
}

.why-us__item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, var(--text-3xl));
  font-weight: var(--weight-regular);
  color: var(--color-off-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  padding-block: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: color 0.2s ease;
}

.why-us__list .why-us__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Red square bullet */
.why-us__item::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
  max-width: 660px;
  margin-bottom: 5.25rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
}

/* Two-up layout for when only 2 testimonials are present */
.testimonials__grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.testimonial {
  border: var(--border-thin) solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__stars {
  color: var(--color-star);
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.testimonial__quote {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-dark);
  line-height: 1.375;
}

.testimonial__author {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  text-transform: uppercase;
  margin-top: auto;
}


/* ============================================================
   CTA
   ============================================================ */
.cta__box {
  background-color: var(--color-secondary);
  border-radius: var(--radius-md);
  padding: clamp(3.5rem, 8vw, 7.1875rem) clamp(2rem, 20vw, 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.375rem;
  text-align: center;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-regular);
  color: var(--color-off-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-display);
}

.cta__sub {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-white);
}

.cta__buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}


/* ============================================================
   SERVICE AREAS (local SEO — inside footer)
   ============================================================ */
.service-areas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.service-areas__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.service-areas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
}

.service-areas__list li {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.service-areas__list li:not(:last-child)::after {
  content: '·';
  margin-inline: 0.5rem;
  color: var(--color-muted);
}

.service-areas__list a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.service-areas__list a:hover {
  color: var(--color-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 1.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer__seal {
  width: 100px;
  height: auto;
}

.footer__wordmark {
  width: 120px;
  height: auto;
}

.footer__copy {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-muted);
  text-align: center;
  text-transform: uppercase;
}


/* ============================================================
   RESPONSIVE — TABLET  (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badges__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   RESPONSIVE — MOBILE NAV  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 200;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav__link {
    font-size: var(--text-xl);
  }

  .nav__cta {
    width: 200px;
    justify-content: center;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
  }

  /* Hero */
  .hero__frame {
    border-radius: var(--radius-md);
    aspect-ratio: auto;
    min-height: 540px;
  }

  .hero__content {
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  /* Services — stack vertically */
  .services__grid,
  .services__grid--reverse {
    grid-template-columns: 1fr;
  }

  .services__image {
    height: 280px;
    width: 100%;
  }

  /* On reverse grid, image comes first visually */
  .services__grid--reverse .services__image {
    order: -1;
  }

  /* Badges — 2 columns */
  .badges__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge {
    min-height: auto;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  /* Why Choose Us — stack */
  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Testimonials — single column */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__heading {
    margin-bottom: 2rem;
  }

  /* CTA */
  .cta__box {
    padding: 3rem 1.5rem;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta__buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__frame {
    min-height: 460px;
  }

  .hero__logo {
    width: 72px;
  }

  .badges__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge__label {
    font-size: 1.25rem;
  }
}
