/* ---------- Font faces (self-hosted) ---------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/oswald-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --color-accent: #D9622B;
  --color-accent-dark: #B84F20;
  --color-bg: #F5F0E8;
  --color-text: #1E2A38;
  --color-surface: #FFFFFF;
  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --max-width: 1120px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn--cta {
  background: var(--color-accent);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 24px;
  width: 100%;
}
.btn--cta:hover { background: var(--color-accent-dark); }
.btn--cta:active { transform: scale(0.99); }
.btn--cta:disabled { opacity: 0.6; cursor: not-allowed; }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(30, 42, 56, 0.3);
  padding: 12px 20px;
  font-size: 0.95rem;
}
.btn--ghost:hover { background: rgba(30, 42, 56, 0.06); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(30, 42, 56, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header__logo img { height: 56px; width: auto; }
.site-header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.2;
}
.site-header__phone-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  opacity: 0.6;
}
.site-header__phone-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent);
}
.site-header__phone-hours {
  font-size: 0.7rem;
  color: var(--color-text);
  opacity: 0.6;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, #EFE7D8 0%, var(--color-bg) 55%);
  padding: 20px 0 32px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "form" "image";
  gap: 20px;
}
.hero__copy { grid-area: copy; }
.hero__form-card { grid-area: form; }
.hero__image { grid-area: image; }
.hero__copy h1 {
  font-size: 1.7rem;
  margin-bottom: 0.35em;
  color: var(--color-text);
}
.hero__subhead {
  font-size: 1rem;
  max-width: 55ch;
  margin-bottom: 0.75em;
}
.trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-strip li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

.hero__image {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(30, 42, 56, 0.12);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Quote form ---------- */
.hero__form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(30, 42, 56, 0.12);
  padding: 24px;
}
.quote-form__title {
  font-size: 1.5rem;
  margin-bottom: 0.15em;
}
.quote-form__subtitle {
  margin-bottom: 20px;
  color: var(--color-text);
  opacity: 0.75;
  font-size: 0.95rem;
}
.quote-form__row {
  display: flex;
  gap: 12px;
}
.quote-form__row .quote-form__field { flex: 1; min-width: 0; }
.quote-form__field {
  margin-bottom: 16px;
}
.quote-form__field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.quote-form__field input[type="text"],
.quote-form__field input[type="tel"],
.quote-form__field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(30, 42, 56, 0.25);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-text);
}
.quote-form__field input:focus,
.quote-form__field select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.quote-form__sms-opt-out {
  margin: 12px 0 16px;
}
.quote-form__sms-opt-out p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  opacity: 0.6;
}
.quote-form__sms-opt-out label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
  cursor: pointer;
}
.quote-form__sms-opt-out input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--color-accent);
}
.quote-form__error {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px 14px;
  background: #FBE7E0;
  border: 1px solid #E8A98D;
  border-radius: 6px;
  color: #8C3A17;
  font-size: 0.9rem;
}
.quote-form__success h2 {
  font-size: 1.4rem;
}
.quote-form__success p {
  font-size: 0.98rem;
}
.quote-form__success a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- How We Work ---------- */
.how-we-work {
  padding: 8px 0 44px;
}
.how-we-work h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.how-we-work__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.how-we-work__steps li {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(30, 42, 56, 0.06);
}
.how-we-work__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.how-we-work__steps h3 {
  font-size: 1rem;
  text-transform: none;
  margin: 0 0 6px;
}
.how-we-work__steps p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Social proof ---------- */
.social-proof {
  padding: 40px 0;
  text-align: center;
}
.social-proof__rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 24px;
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background-color 0.15s ease;
}
.social-proof__rating:hover,
.social-proof__rating:focus-visible {
  background: rgba(217, 98, 43, 0.08);
}
.social-proof__rating:hover .social-proof__count {
  text-decoration: underline;
}
.stars {
  color: var(--color-accent);
  font-size: 1.4rem;
  letter-spacing: 2px;
}
.social-proof__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.social-proof__count {
  opacity: 0.7;
  font-size: 0.95rem;
}
.review-cards {
  display: grid;
  gap: 16px;
  text-align: left;
}
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
  box-shadow: 0 2px 10px rgba(30, 42, 56, 0.06);
}
.review-card p {
  margin: 0 0 10px;
  font-size: 0.98rem;
}
.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.65;
}

/* ---------- Before & After ---------- */
.before-after {
  padding: 8px 0 44px;
}
.before-after h2 {
  font-size: 1.5rem;
}
.before-after__subhead {
  opacity: 0.75;
  margin-bottom: 4px;
}
.before-after__credit {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 20px;
}
.before-after__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.before-after__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.before-after__item {
  position: relative;
  aspect-ratio: 4 / 3.6;
  border-radius: var(--radius);
  overflow: hidden;
}
.before-after__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.before-after__label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.before-after__label--before { background: rgba(30, 42, 56, 0.85); }
.before-after__label--after { background: var(--color-accent); }

/* ---------- Gallery ---------- */
.gallery {
  padding: 8px 0 44px;
}
.gallery h2 {
  font-size: 1.5rem;
}
.gallery__subhead {
  opacity: 0.75;
  margin-bottom: 20px;
}
.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gallery__tile {
  position: relative;
  flex: 0 0 calc(50% - 6px);
  width: calc(50% - 6px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-text);
  padding: 32px 0;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cta-band__inner p {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.cta-band .btn--cta { width: auto; padding: 14px 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(30, 42, 56, 0.08);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.site-footer__inner img { height: 48px; width: auto; }
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}
.site-footer__contact a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}
.site-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.6;
}
.site-footer__copyright a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 32px 0 60px;
}
.legal__wrap {
  max-width: 760px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.legal__back:hover { text-decoration: underline; }
.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.2em;
}
.legal__updated {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 1.15rem;
  text-transform: none;
  margin-top: 1.6em;
}
.legal p, .legal li {
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { color: var(--color-accent); }
.legal__reset-btn { margin-top: 8px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--color-surface);
  border-top: 1px solid rgba(30, 42, 56, 0.12);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  padding: 16px 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner__inner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-banner__actions .btn { flex: 1; width: auto; padding: 12px; font-size: 0.9rem; }

/* ---------- Sticky mobile CTA bar ---------- */
body:has(.mobile-cta-bar) { padding-bottom: 66px; }
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-text);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.mobile-cta-bar.is-visible {
  transform: translateY(0);
}
/* Cookie banner takes priority at the bottom edge while it's up */
body.cookie-banner-visible .mobile-cta-bar {
  transform: translateY(100%);
}
.mobile-cta-bar__call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-cta-bar .btn--cta {
  flex: 1.4;
  width: auto;
  padding: 12px;
  font-size: 0.9rem;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .hero__copy h1 { font-size: 2.3rem; }
  .gallery__tile { flex-basis: calc(33.333% - 8px); width: calc(33.333% - 8px); }
  .before-after__grid { grid-template-columns: 1fr 1fr; }
  .how-we-work__steps li { flex-basis: calc(50% - 10px); max-width: calc(50% - 10px); }
  .cta-band__inner { flex-direction: row; justify-content: space-between; }
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner__inner p { flex: 1; }
  .cookie-banner__actions { flex: none; }
  .cookie-banner__actions .btn { flex: none; width: auto; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas: "copy form" "image form";
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
  }
  .hero__copy { padding-top: 12px; }
  .hero__form-card { max-width: 400px; justify-self: center; align-self: center; }
  .hero__image { aspect-ratio: 16 / 10; }
  .hero__copy h1 { font-size: 2.3rem; }
  .review-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery__tile { flex-basis: calc(25% - 9px); width: calc(25% - 9px); }
  .before-after__grid { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 0; }
  .mobile-cta-bar { display: none; }
}

@media (min-width: 1180px) {
  .hero__copy h1 { font-size: 2.5rem; }
  .how-we-work__steps li { flex-basis: calc(20% - 16px); max-width: calc(20% - 16px); }
}
