/* ApexPro Exteriors — brand colors */
:root {
  --red: #D30509;        /* Apex Red */
  --red-text: #FF4545;   /* brighter red for small text on black */
  --black: #101010;      /* Apex Black */
  --card-dark: #1C1C1C;
  --white: #FFFFFF;
  --gray: #F4F4F4;       /* Light Gray */
  --muted-dark: #C8C8C8; /* body text on black */
  --muted-light: #444444;/* body text on gray */
  --border: #E2E2E2;
  --display: 'Anton', 'Impact', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; } /* keeps headings clear of the sticky header */
body { margin: 0; background: var(--black); color: var(--gray); font-family: var(--body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--red-text); }
a:hover { color: #FF7A7A; }
input, select, textarea, button { font: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--red-text); text-transform: uppercase; }
.light .eyebrow { color: var(--red); }
.h1, .h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.h1 { font-size: clamp(34px, 6.4vw, 84px); line-height: 1.06; overflow-wrap: break-word; }
.h1 span { color: var(--red); }
.h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.08; overflow-wrap: break-word; }
.h2.sm { font-size: clamp(28px, 4vw, 48px); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-dark); }
.light .lead { color: var(--muted-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #B00004; color: var(--white); }
.btn-outline { border: 2px solid var(--gray); color: var(--gray); }
.btn-outline:hover { background: var(--gray); color: var(--black); }
.btn-black { background: var(--black); color: var(--gray); }
.btn-black:hover { background: #2a2a2a; color: var(--white); }

/* Top strip + header */
.strip { background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; }
.strip .wrap { padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; }
.strip a { color: var(--white); text-decoration: none; }
.strip .where { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.strip .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-header { border-bottom: 1px solid rgba(244,244,244,0.12); position: sticky; top: 0; z-index: 40; background: rgba(16,16,16,0.92); backdrop-filter: blur(8px); }
.site-header .wrap { padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--gray); text-decoration: none; }
.nav a:hover { color: var(--red-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid rgba(244,244,244,0.3); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--gray); transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Wave dividers */
.has-wave { position: relative; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

/* Hero */
.hero { padding: 72px 24px 130px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { font-size: 19px; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px 24px; padding: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--muted-dark); }
.stars { color: var(--red-text); letter-spacing: 2px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,16,16,0.92) 0%, rgba(16,16,16,0.75) 50%, rgba(16,16,16,0.45) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero .wave { z-index: 2; }

/* Light sections */
.light { background: var(--gray); color: var(--black); }
.section { padding: 72px 24px 130px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head.row { max-width: none; flex-direction: row; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 44px; }

/* Services */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card .num { width: 52px; height: 52px; border-radius: 14px; background: var(--black); color: var(--red-text); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-light); }
.card .more { margin-top: auto; color: var(--red); font-weight: 800; text-decoration: none; font-size: 15px; }
.coming { background: var(--black); color: var(--gray); border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.coming .title { font-family: var(--display); font-size: 30px; text-transform: uppercase; display: block; margin-top: 6px; }

/* Before / after */
.work { padding: 64px 24px 96px; }
.ba-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 760px) { .ba-grid { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 36px; } }
.ba { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ba-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--card-dark); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-frame .before { clip-path: inset(0 50% 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--gray); pointer-events: none; }
.tag { position: absolute; top: 16px; font-weight: 800; font-size: 13px; letter-spacing: 2px; padding: 8px 12px; border-radius: 8px; }
.tag.b { left: 16px; background: var(--black); color: var(--gray); }
.tag.a { right: 16px; background: var(--red); color: var(--white); }
.ba label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.ba input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.ba figcaption { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); text-align: center; border-top: 1px solid rgba(244,244,244,0.14); padding-top: 40px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 56px; color: var(--red); line-height: 1.05; }
.stat span { font-weight: 600; color: var(--muted-dark); }

/* Sliding text band */
.band { padding: 8px 0 96px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.band div { width: min(1200px, 100% - 48px); margin: 0 auto; text-align: center; text-wrap: balance; font-family: var(--display); font-size: clamp(30px, 5vw, 72px); line-height: 1.1; text-transform: uppercase; }
.band .outline { color: transparent; -webkit-text-stroke: 2px var(--gray); }
.band .solid { color: var(--red); }

/* How it works */
.how { padding: 0 24px 130px; }
.how .box { background: var(--card-dark); border-radius: 28px; padding: 48px; display: flex; flex-direction: column; gap: 36px; }
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { font-weight: 800; color: var(--red-text); letter-spacing: 2px; }
.step h3 { margin: 0; font-size: 22px; font-weight: 800; }
.step p { margin: 0; color: var(--muted-dark); line-height: 1.6; }

/* Reviews */
.reviews { padding: 64px 24px 96px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review .stars { color: var(--red); font-size: 20px; letter-spacing: 3px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: #2A2A2A; }
.review figcaption { margin-top: auto; font-weight: 800; }
.review figcaption small { display: block; margin-top: 4px; font-weight: 500; font-size: 14px; color: var(--muted-light); }
.review .source { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #1B5FD9; }

/* Leave a review */
.review-box { background: var(--black); color: var(--gray); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.review-intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.review-intro .eyebrow { color: var(--red-text); }
.review-intro .h2 { margin: 0; }
.review-intro p { margin: 0; color: var(--muted-dark); line-height: 1.6; }
.review-form { flex: 999 1 520px; padding: 32px; }
.review-form .opt { font-weight: 500; color: #666666; font-size: 13px; }
.rating-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rating-field legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 40px; line-height: 1; color: #C9C9C9; cursor: pointer; padding: 2px; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--red); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid rgba(211,5,9,0.35); border-radius: 8px; }
.form-status { margin: 0; font-weight: 700; font-size: 15px; min-height: 1em; }
.form-status.ok { color: #137A2E; }
.form-status.err { color: var(--red); }
.review.is-new { border-color: var(--red); }

/* Service area */
.area { padding: 0 24px 130px; }
.area .box { background: var(--red); color: var(--white); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; }
.area .copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.area .copy .eyebrow { color: var(--white); }
.area .copy p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 500; }
.states { flex: 1 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.state { background: var(--black); color: var(--gray); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; }
.state b { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.05; }
.state span { font-weight: 600; color: var(--muted-dark); }

/* Estimate */
.estimate { padding: 64px 24px 96px; }
.estimate .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-col { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--card-dark); border-radius: 18px; padding: 20px 24px; color: var(--gray); }
.contact-card:hover { color: var(--white); background: #262626; }
.contact-card small { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--muted-dark); }
.contact-card .big { font-family: var(--display); font-size: 34px; }
.contact-card .email { font-size: clamp(12px, 3.6vw, 16px); font-weight: 700; white-space: nowrap; }
.form { flex: 999 1 520px; min-width: 0; background: var(--gray); color: var(--black); border-radius: 28px; padding: 40px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { padding: 14px 16px; border-radius: 12px; border: 1.5px solid #BDBDBD; background: var(--white); min-height: 48px; color: var(--black); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(211,5,9,0.35); border-color: var(--red); }
.form textarea { resize: vertical; }
.form button { justify-content: center; min-height: 52px; font-size: 17px; }
.form .note { margin: 0; font-size: 14px; color: #555555; }

/* Footer */
.site-footer { border-top: 1px solid rgba(244,244,244,0.12); padding: 40px 24px 100px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; font-size: 15px; color: var(--muted-dark); }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer img { height: 80px; width: auto; max-width: none; align-self: flex-start; object-fit: contain; }
.social { display: flex; gap: 12px; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.social-lg { margin-top: 8px; }
.social-lg a { width: 44px; height: 44px; border-radius: 50%; background: var(--card-dark); color: var(--gray); }
.social-lg a:hover { background: var(--red); color: var(--white); }
.contact-card .follow { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.contact-card .follow a { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); text-decoration: none; font-weight: 700; }
.contact-card .follow a:hover { color: var(--red-text); }

/* Floating call button */
.call-fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 50; }
.call-fab:hover { color: var(--white); background: #B00004; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; position: relative; }
  .menu-toggle { display: flex; }
  .logo { flex-shrink: 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 8px 24px 20px; background: rgba(16,16,16,0.98); border-bottom: 1px solid rgba(244,244,244,0.12); font-size: 18px; }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(244,244,244,0.08); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  section[id] { scroll-margin-top: 76px; }
  .lead, .hero-copy .lead { font-size: 17px; }
  .eyebrow { font-size: 12px; letter-spacing: 2px; }

  /* Top strip: short and centered; email lives in the contact section */
  .strip { font-size: 13px; }
  .strip .wrap { padding: 8px 16px; justify-content: center; text-align: center; gap: 2px 16px; }
  .strip .where { justify-content: center; gap: 2px 16px; }
  .strip-email { display: none; }

  /* Header */
  .site-header .wrap { padding: 10px 16px; gap: 12px; }
  .logo img { height: 44px; }
  .header-actions { gap: 10px; }
  .header-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .nav { padding: 4px 16px 16px; }

  /* Hero */
  .hero { padding: 36px 16px 90px; }
  .hero .wrap { gap: 40px; }
  .hero-copy { gap: 22px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { justify-content: center; width: 100%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 14px; padding-top: 0; }
  .trust li { display: flex; align-items: flex-start; gap: 8px; background: rgba(244,244,244,0.06); border-radius: 12px; padding: 12px; line-height: 1.35; }
  .hero-bg::after { background: rgba(16,16,16,0.78); }

  /* Wave dividers are shallower on small screens */
  .wave { height: 48px; }

  /* Sections */
  .section { padding: 48px 16px 90px; }
  .work, .reviews, .estimate { padding: 48px 16px 72px; }
  .how, .area { padding: 0 16px 90px; }
  .stack { gap: 32px; }
  .section-head.row { flex-direction: column; align-items: stretch; }
  .section-head.row .btn { justify-content: center; }
  .grid { gap: 16px; }
  .card, .review { padding: 22px; border-radius: 18px; }
  .review-box { padding: 24px 16px; border-radius: 22px; }
  .review-form { padding: 22px; border-radius: 20px; }
  .card h3, .coming .title { font-size: 24px; }
  .coming { padding: 24px 22px; }
  .coming .btn { width: 100%; justify-content: center; }

  /* Before / after */
  .ba-grid { gap: 36px; }
  .ba-frame { aspect-ratio: 4 / 5; border-radius: 18px; }
  .tag { top: 12px; font-size: 12px; padding: 6px 10px; }
  .tag.b { left: 12px; } .tag.a { right: 12px; }
  .ba figcaption { font-size: 22px; }
  .ba input[type=range] { height: 36px; }
  .stats { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .stat b { font-size: 46px; }

  /* Services band */
  .band { padding: 0 0 72px; }
  .band div { width: calc(100% - 32px); font-size: clamp(26px, 8.5vw, 40px); }
  .band .outline { -webkit-text-stroke: 1.5px var(--gray); }

  /* Boxes */
  .how .box, .area .box { padding: 28px 20px; border-radius: 22px; gap: 28px; }
  .steps { gap: 24px; }
  .step { padding-left: 16px; border-left: 3px solid var(--red); }
  .step h3 { font-size: 20px; }
  .states { gap: 10px; }
  .state { padding: 16px; border-radius: 14px; }
  .state b { font-size: 40px; }

  /* Estimate */
  .estimate .wrap { gap: 32px; }
  .contact-card .big { font-size: 28px; }
  .contact-card { padding: 18px; }
  .form { padding: 24px 18px; border-radius: 22px; gap: 16px; grid-template-columns: 1fr; }
  .form input, .form select, .form textarea { font-size: 16px; } /* 16px stops iPhones zooming in on focus */

  /* Footer: stacked, with room for the call button */
  .site-footer { padding: 32px 16px 104px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; font-size: 14px; }
  .site-footer img { height: 64px; }
  .site-footer .col span { overflow-wrap: anywhere; }

  .call-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
}

@media (max-width: 420px) {
  .hide-sm { display: none; }
  .logo img { height: 40px; }
  .trust { grid-template-columns: 1fr; }
  .contact-card .big { font-size: 26px; }
}

/* ---------- Scroll effects ----------
   Driven purely by scroll position (no JavaScript). Browsers without
   support simply show everything with no motion. */
.progress { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: var(--red); transform-origin: 0 50%; z-index: 60; animation: grow linear both; animation-timeline: scroll(root); }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .reveal-h { animation: wipe linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .hero-copy { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(70px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { opacity: .2; clip-path: inset(-40% 100% -40% -10%); transform: translateX(-30px); } to { opacity: 1; clip-path: inset(-40% -10% -40% -10%); transform: none; } }
@keyframes drift { to { opacity: 0; transform: translateY(-140px); } }
