/* ============================================================
   AY Construction — homepage styles
   Design tokens & component styles recreated from the handoff.
   ============================================================ */

:root {
  --navy-900: #0A1F33;
  --navy-800: #0D2840;
  --navy-700: #14395E;
  --orange: #F2691B;
  --orange-dark: #D8560E;
  --off-white: #F8F6F2;
  --white: #FFFFFF;
  --text: #1C2B3A;
  --slate-600: #3D4F63;
  --slate-500: #5A6B7E;
  --slate-400: #8295A8;
  --bluegrey-300: #8FA3B6;
  --bluegrey-200: #B9C7D6;
  --bluegrey-100: #C9D6E2;
  --border-warm: #EEE9E0;
  --border-warm-hover: #E4DACB;
  --input-border: #E5DFD4;

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;

  --container: 1160px;
  --shadow-card: 0 16px 36px rgba(13, 40, 64, 0.12);
  --shadow-cta: 0 4px 18px rgba(242, 105, 27, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* The hidden attribute must always win over component display rules
   (e.g. .form-card form / .form-success use display:flex). */
[hidden] { display: none !important; }

::selection { background: var(--orange); color: #fff; }

a { color: inherit; }

h1, h2, h3 { text-wrap: pretty; }
p { text-wrap: pretty; }

.accent { color: var(--orange); }
.stars { color: var(--orange); letter-spacing: 1px; }
.stars--lg { font-size: 22px; letter-spacing: 3px; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { background: var(--white); }
.section > .container { padding-top: 96px; padding-bottom: 96px; }
.section--alt { background: var(--off-white); }
.section--bordered { border-top: 1px solid var(--border-warm); }
.section--navy { background: var(--navy-800); }

/* ---------- Headings ---------- */
.h2 {
  font-family: var(--font-head);
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy-800);
  margin: 0;
  letter-spacing: -1px;
}
.h2--white { color: var(--white); }

.eyebrow {
  color: var(--orange);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head { margin-bottom: 48px; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head__main { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.section-head__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-500);
  margin: 0;
  max-width: 380px;
}
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.section-head__sub--center { max-width: 600px; }
.section-head--on-navy .h2 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 22px;
  transition: all 0.2s ease;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 105, 27, 0.3);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--lg {
  font-size: 17px;
  padding: 16px 30px;
  border-radius: 12px;
}
.btn--lg.btn--primary { box-shadow: var(--shadow-cta); }
.btn--lg.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn--navy { background: var(--navy-800); color: #fff; padding: 15px 24px; border-radius: 11px; font-size: 16px; }
.btn--navy:hover { background: var(--orange); }
.btn--block { width: 100%; }
.btn--ghost-dark {
  background: #fff;
  border: 1.5px solid var(--border-warm-hover);
  color: var(--navy-800);
  padding: 14px 28px;
  border-radius: 11px;
  font-size: 15px;
}
.btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.badge--hero {
  background: rgba(242, 105, 27, 0.18);
  border: 1px solid rgba(242, 105, 27, 0.5);
  color: #FFB37E;
}
.badge--solid {
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #DCE6EF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: var(--bluegrey-200); font-size: 13.5px; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__left { display: flex; align-items: center; gap: 8px; }
.topbar__phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar__phone:hover { color: var(--orange); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E8E3DA;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.5px;
}
.brand__mark--sm { width: 36px; height: 36px; border-radius: 8px; font-size: 16px; }
.brand__word {
  font-family: var(--font-head);
  font-weight: 700; font-size: 20px;
  color: var(--navy-800);
  letter-spacing: -0.3px;
}
.brand__word--white { color: #fff; font-size: 19px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav__links > a:not(.btn) { color: var(--slate-600); text-decoration: none; }
.nav__links > a:not(.btn):hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-800);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10,31,51,0.93) 0%, rgba(13,40,64,0.78) 45%, rgba(13,40,64,0.25) 100%);
}
.hero__container { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero__content { max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-family: var(--font-head);
  font-size: 58px; line-height: 1.06; font-weight: 800;
  color: #fff; margin: 0; letter-spacing: -1.5px;
}
.hero__sub { font-size: 19px; line-height: 1.6; color: var(--bluegrey-100); margin: 0; max-width: 520px; }
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 22px; margin-top: 8px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--bluegrey-100); font-size: 14.5px; font-weight: 600;
}

/* ---------- Power washing feature ---------- */
.feature {
  background: var(--navy-800);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  box-shadow: 0 18px 50px rgba(13, 40, 64, 0.18);
}
.feature__body { padding: 56px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.feature__title {
  font-family: var(--font-head);
  font-size: 40px; line-height: 1.1; font-weight: 800;
  color: #fff; margin: 0; letter-spacing: -1px;
}
.feature__text { font-size: 16.5px; line-height: 1.65; color: var(--bluegrey-200); margin: 0; }
.feature__actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.feature__note { color: var(--bluegrey-300); font-size: 14px; font-weight: 600; }
.feature__media { position: relative; min-height: 460px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--border-warm-hover); }
.card__img { width: 100%; height: 210px; object-fit: cover; display: block; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.card__title {
  font-family: var(--font-head);
  font-size: 21px; font-weight: 700; color: var(--navy-800);
  margin: 0; letter-spacing: -0.3px;
}
.card__text { font-size: 15px; line-height: 1.6; color: var(--slate-500); margin: 0; }

/* ---------- Quick jobs ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.quick-card {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.25s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 40, 64, 0.1); border-color: var(--border-warm-hover); }
.quick-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(242, 105, 27, 0.10);
  transition: background 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quick-card__icon svg { width: 30px; height: 30px; display: block; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.quick-card:hover .quick-card__icon { background: rgba(242, 105, 27, 0.18); transform: translateY(-2px) rotate(-3deg); }
.quick-card:hover .quick-card__icon svg { transform: scale(1.12) rotate(3deg); }
.quick-card__title { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; color: var(--navy-800); margin: 0; }
.quick-card__text { font-size: 13.5px; line-height: 1.55; color: var(--slate-500); margin: 0; }
.quick-card__link {
  margin-top: auto;
  color: var(--orange);
  font-size: 12.5px; font-weight: 800; letter-spacing: 1px;
  text-decoration: none;
}
.quick-card__link:hover { color: var(--orange-dark); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: 16px;
}
.gallery__tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--navy-800);
  border: none;
  padding: 0;
  font: inherit;
}
.gallery__tile--feature { grid-column: span 2; grid-row: span 2; }
.gallery__tile img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  background: linear-gradient(180deg, rgba(10,31,51,0) 0%, rgba(10,31,51,0.78) 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  text-align: left;
  pointer-events: none;
}
.gallery__tile--feature .gallery__caption { font-size: 15px; }

/* ---------- Before & After (comparison gallery) ---------- */
.ba-grid {
  column-count: 3;
  column-gap: 22px;
}
.ba-card {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  border: none;
  background: var(--navy-800);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  box-shadow: 0 10px 30px rgba(13, 40, 64, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ba-card img { display: block; width: 100%; height: auto; }
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13, 40, 64, 0.18); }
.ba-card.is-hidden { display: none; }
.ba-more { display: flex; justify-content: center; margin-top: 34px; }
.ba-more.is-done { display: none; }

/* ---------- Reviews ---------- */
.reviews__rating { display: flex; align-items: center; gap: 10px; }
.reviews__rating-text { color: var(--bluegrey-200); font-size: 15px; font-weight: 600; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review .stars { font-size: 17px; letter-spacing: 2px; }
.review__quote { font-size: 15.5px; line-height: 1.65; color: var(--slate-600); margin: 0; }
.review__footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--off-white); border: 1px solid var(--border-warm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy-800); font-size: 15px;
  flex-shrink: 0;
}
.review__person { display: flex; flex-direction: column; }
.review__name { font-weight: 700; color: var(--navy-800); font-size: 14.5px; }
.review__meta { color: var(--slate-400); font-size: 13px; }

/* ---------- Videos ---------- */
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-800);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-accent {
  color: var(--orange);
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px;
  text-decoration: none; white-space: nowrap;
}
.link-accent:hover { color: var(--orange-dark); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__left { display: flex; flex-direction: column; gap: 22px; }
.contact__left .h2 { font-size: 44px; line-height: 1.08; }
.contact__lead { font-size: 17px; line-height: 1.65; color: var(--slate-500); margin: 0; max-width: 440px; }
.call-card {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 380px;
  transition: all 0.2s ease;
}
.call-card:hover { border-color: var(--orange); box-shadow: 0 8px 24px rgba(13, 40, 64, 0.08); }
.call-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.call-card__text { display: flex; flex-direction: column; gap: 2px; }
.call-card__label { font-size: 13px; color: var(--slate-400); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.call-card__number { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--navy-800); letter-spacing: -0.5px; }
.contact__details { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--slate-500); }
.contact__details strong { color: var(--navy-800); }
.contact__details a { color: var(--slate-500); text-decoration: none; }
.contact__details a:hover { color: var(--orange); }

.form-card {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 14px 40px rgba(13, 40, 64, 0.07);
}
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card__title { font-family: var(--font-head); font-size: 23px; font-weight: 800; color: var(--navy-800); margin: 0; letter-spacing: -0.3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card input,
.form-card textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #FDFCFA;
  width: 100%;
}
.form-card textarea { resize: vertical; }
.form-card input:focus,
.form-card textarea:focus { border-color: var(--orange); }
.form-card input::placeholder,
.form-card textarea::placeholder { color: var(--slate-400); }
.form-card__note { font-size: 13px; color: var(--slate-400); text-align: center; }
.form-card input.invalid,
.form-card textarea.invalid { border-color: var(--orange-dark); background: #FFF7F2; }

.form-success { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 48px 12px; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.form-success__title { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--navy-800); margin: 0; }
.form-success__text { font-size: 15.5px; color: var(--slate-500); margin: 0; }
.form-success__text a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--bluegrey-200); }
.footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__blurb { font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 320px; color: var(--bluegrey-300); }
.footer__rating { color: var(--bluegrey-300); font-size: 14px; }
.footer__rating .stars { letter-spacing: 1.5px; font-size: 14px; margin-right: 4px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer__col > a { color: var(--bluegrey-300); text-decoration: none; }
.footer__col > a:hover { color: var(--orange); }
.footer__heading { color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.footer__phone { color: #fff !important; font-weight: 700; font-size: 17px; }
.footer__social { display: flex; gap: 14px; margin-top: 6px; font-size: 13.5px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 13px; color: #5F758A;
  gap: 16px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 31, 51, 0.93);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: 48px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92%; max-height: 76vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__caption { color: #fff; font-size: 16px; font-weight: 700; }
.lightbox__hint { color: var(--bluegrey-300); font-size: 13px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card:hover, .quick-card:hover, .ba-card:hover { transform: none; }
  .quick-card:hover .quick-card__icon, .quick-card:hover .quick-card__icon svg { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .h2 { font-size: 36px; }
  .hero__title { font-size: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { column-count: 2; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 300px; order: -1; }
  .feature__body { padding: 40px; }
}

@media (max-width: 820px) {
  .nav__links > a:not(.btn) { display: none; }
  .section > .container { padding-top: 72px; padding-bottom: 72px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
  .hero__sub { font-size: 17px; }
  .topbar__left span:last-child { display: none; }
}

@media (max-width: 600px) {
  .h2 { font-size: 30px; }
  .contact__left .h2 { font-size: 34px; }
  .feature__title { font-size: 30px; }
  .hero__title { font-size: 34px; letter-spacing: -1px; }
  .hero { min-height: 560px; }
  .services-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { column-count: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__tile--feature { grid-column: span 2; grid-row: span 2; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}
