/* =========================================================================
   BOSS CARPENTRY GROUP — Landing Page Stylesheet
   Full home renovations, Melbourne VIC.
   ========================================================================= */

/* ---------- Fonts (self-hosted, no external requests) ------------------ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/fraunces-800.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500italic.woff2") format("woff2");
}

/* ---------- Design tokens ------------------------------------------------ */
:root {
  --black: #0a0a09;
  --black-soft: #16130f;
  --ink: #1c1a17;
  --muted: #6b6259;
  --muted-on-dark: #b9b0a3;
  --cream: #f6f1e8;
  --cream-deep: #efe7d8;
  --white: #ffffff;
  --gold: #b48c57;
  --gold-light: #cba876;
  --gold-dim: #8a6b41;
  --line: #e4dbc9;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 48px -20px rgba(20, 15, 5, 0.35);
  --shadow-soft: 0 12px 28px -16px rgba(20, 15, 5, 0.25);

  --container: 640px;
  --edge: 24px;
}

/* ---------- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow--dark { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; }
.section-title { font-size: clamp(1.7rem, 5.5vw, 2.35rem); text-align: center; color: var(--ink); }
.section-title--dark { color: var(--white); }
em { font-style: italic; font-weight: 500; color: var(--gold); }

.section-lede {
  text-align: center;
  max-width: 480px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { background: var(--gold-dim); box-shadow: 0 14px 30px -12px rgba(138, 107, 65, 0.55); }
.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline-light {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-dim); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 1rem; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo img { height: 34px; width: auto; }
.site-header__cta { padding: 11px 18px; font-size: 0.82rem; }

/* ---------- Hero -------------------------------------------------------- */
.hero { position: relative; background: var(--black); }
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 9, 0.68) 0%, rgba(10, 10, 9, 0.42) 34%, rgba(10, 10, 9, 0.1) 56%, rgba(10, 10, 9, 0) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 52px var(--edge) 32px;
  text-align: center;
}
.hero__content .eyebrow { justify-content: center; color: var(--gold-light); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.hero__title {
  color: var(--white);
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero__subtitle {
  margin-top: 16px;
  color: var(--muted-on-dark);
  font-size: 0.98rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}


.hero__form-wrap {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) 48px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink);
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
.trust-row svg { flex-shrink: 0; color: var(--gold); }

/* ---------- Quote form card --------------------------------------------- */
.quote-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.quote-card__progress { height: 5px; background: var(--cream-deep); }
.quote-card__progress-bar {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.quote-card__body { padding: 30px 24px 26px; }

.quote-step { display: none; }
.quote-step.is-active { display: block; animation: stepIn 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.quote-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 6px;
}
.quote-card__question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}
.quote-card__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}
.option-btn:hover { border-color: var(--gold); background: #fbf8f2; }
.option-btn:active { transform: scale(0.985); }
.option-btn__arrow { color: var(--gold); opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; transform: translateX(-4px); }
.option-btn:hover .option-btn__arrow { opacity: 1; transform: translateX(0); }
.option-btn.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.option-btn.is-selected .option-btn__arrow { opacity: 1; transform: translateX(0); color: var(--white); }

.quote-step__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.quote-step__back:hover { color: var(--gold-dim); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-size: 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field input.is-invalid { border-color: #c0483a; background: #fdf3f1; }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #c0483a;
  font-weight: 600;
}
.field input.is-invalid + .field__error { display: block; }

.quote-form__submit-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.quote-card__success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.quote-card__success.is-active { display: block; }

/* ---------- Intro / copy section --------------------------------------- */
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--black { background: var(--black); position: relative; overflow: hidden; }
.section--black::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ---------- Full-bleed banner ------------------------------------------- */
.banner { position: relative; }
.banner__media { position: relative; width: 100%; aspect-ratio: 16 / 11; max-height: 460px; overflow: hidden; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 9, 0.82) 0%, rgba(10, 10, 9, 0.15) 55%, rgba(10, 10, 9, 0.45) 100%);
}
.banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 24px;
}
.banner__title { color: var(--white); font-size: clamp(1.5rem, 6vw, 2.1rem); }
.banner__subtitle { margin-top: 10px; color: var(--gold-light); font-size: 0.88rem; letter-spacing: 0.04em; font-weight: 600; }

/* ---------- USP checklist ------------------------------------------------ */
.usp-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-weight: 600;
  font-size: 0.98rem;
}
.usp-item__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Gallery ------------------------------------------------------ */
.gallery { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 20px 16px;
  background: linear-gradient(0deg, rgba(10, 10, 9, 0.75), transparent);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Process (dark) ------------------------------------------------ */
.process-list { margin-top: 36px; display: flex; flex-direction: column; gap: 30px; }
.process-item { display: flex; gap: 20px; align-items: flex-start; }
.process-item__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
}
.process-item__title { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.process-item__text { color: var(--muted-on-dark); font-size: 0.94rem; }
.process-cta { margin-top: 40px; text-align: center; }

/* ---------- Service area ------------------------------------------------- */
.service-map {
  margin: 34px auto 0;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.service-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.55) contrast(1.05) brightness(1.02);
}
.service-rows { margin-top: 34px; border-top: 1px solid var(--line); }
.service-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.service-row svg { color: var(--gold); flex-shrink: 0; }

/* ---------- FAQ ------------------------------------------------------------ */
.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
}
.faq-item__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-item__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__a p { padding: 0 20px 18px; color: var(--muted); font-size: 0.92rem; }
.faq-item.is-open .faq-item__a { max-height: 220px; }

/* ---------- Final CTA ----------------------------------------------------- */
.final-cta { position: relative; }
.final-cta__media { position: relative; width: 100%; min-height: 320px; }
.final-cta__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.final-cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,0.75), rgba(10,10,9,0.94)); }
.final-cta__content { position: relative; padding: 56px var(--edge) 0; text-align: center; }
.final-cta__title { color: var(--white); font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
.final-cta__subtitle { color: var(--muted-on-dark); margin-top: 12px; max-width: 420px; margin-left: auto; margin-right: auto; }
.final-cta__form-wrap { position: relative; padding: 30px var(--edge) 56px; }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { background: var(--black); padding: 40px var(--edge) 100px; text-align: center; }
.site-footer__logo { display: inline-flex; margin: 0 auto 22px; }
.site-footer__logo img { height: 32px; width: auto; }
.site-footer__contact { color: var(--muted-on-dark); font-size: 0.9rem; line-height: 1.9; }
.site-footer__contact a:hover { color: var(--gold-light); }
.site-footer__legal { margin-top: 18px; color: #665f54; font-size: 0.76rem; }

/* ---------- Sticky mobile CTA bar ------------------------------------------ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px var(--edge) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 9, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.sticky-cta.is-hidden { transform: translateY(100%); }
.sticky-cta .btn { flex: 1; padding: 14px 16px; font-size: 0.86rem; }


/* ---------- Thank-you page -------------------------------------------------- */
.thanks-hero { padding: 64px 0 40px; text-align: center; }
.thanks-badge {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks-title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
.thanks-subtitle { margin-top: 16px; color: var(--muted); max-width: 440px; margin-left: auto; margin-right: auto; }
.next-steps { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.next-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--cream); border-radius: var(--radius-md); }
.next-step__num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--black); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.next-step__text { font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.thanks-actions { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.thanks-actions__note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Desktop enhancements -------------------------------------------- */
@media (min-width: 900px) {
  :root { --container: 760px; --edge: 40px; }

  .site-header__logo img { height: 40px; }
  .hero__content { padding: 72px var(--edge) 44px; }
  .hero__form-wrap { padding: 0 var(--edge) 72px; }
  .quote-card__body { padding: 40px 46px 36px; }
  .option-list { flex-direction: row; flex-wrap: wrap; }
  .option-btn { flex: 1 1 30%; justify-content: center; text-align: center; }
  .section { padding: 88px 0; }
  .banner__media { aspect-ratio: 21 / 9; max-height: 420px; }
  .usp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .usp-item:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  /* Masonry-style columns: a plain 2-col flex/grid row would force every
     item in a row to the height of its tallest neighbour, leaving a gap
     under shorter photos. CSS multi-column lets each column flow
     independently so mixed portrait/landscape shots sit flush. */
  .gallery { display: block; columns: 2; column-gap: 6px; }
  .gallery-item { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 6px; }
  .process-list { flex-direction: row; gap: 24px; }
  .process-item { flex-direction: column; }
  .process-item__num { width: auto; margin-bottom: 6px; }
  .final-cta__media { min-height: 420px; }
  .sticky-cta { display: none !important; }
}

@media (min-width: 560px) and (max-width: 899.98px) {
  .option-list { flex-direction: row; flex-wrap: wrap; }
  .option-btn { flex: 1 1 45%; }
}
