/* Rowan Flooring – styles. Tokens come from the approved Concept A design. */
:root {
  --cream: #F6F2EA;
  --sand: #EBE4D6;
  --ink: #1F1B16;
  --body: #3E372F;
  --line: #DDD3C2;
  --brass: #8A5A2B;
  --white: #FFFFFF;
  --f-display: Manrope, system-ui, sans-serif;
  --f-body: Inter, system-ui, sans-serif;
  --wrap: 1280px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 920px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.eyebrow--light { color: #F6F2EA; }
.h1 { font: 700 clamp(38px, 5.2vw, 68px)/1.04 var(--f-display); letter-spacing: -.03em; text-wrap: balance; margin-bottom: 24px; }
.h2 { font: 700 clamp(30px, 3.8vw, 48px)/1.08 var(--f-display); letter-spacing: -.025em; margin-bottom: 32px; text-wrap: balance; }
.h3 { font: 700 clamp(24px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -.02em; }
.lead { font-size: 17px; line-height: 1.65; color: var(--body); margin-bottom: 16px; max-width: 640px; }
.h1 + .lead { font-size: 19px; line-height: 1.55; margin-bottom: 28px; }
.meta { font-size: 14px; color: var(--body); margin-top: 16px; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font: 600 15px var(--f-body); letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #3A332B; color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.topbar { background: var(--ink); color: var(--cream); font-size: 13px; }
.topbar a { color: var(--cream); }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { font: 700 28px var(--f-display); letter-spacing: -.03em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.crumbs { padding-top: 8px; padding-bottom: 0; font-size: 14px; color: var(--body); }
.crumbs a { text-decoration: underline; }

/* Sections */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0 56px; }
.section--sand { background: var(--sand); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; margin-bottom: 32px; }
.head-row .h2 { margin-bottom: 0; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split--center { align-items: center; }
.split__img { width: 100%; height: 600px; object-fit: cover; }
.split__img--short { height: 460px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; align-content: start; }
.pair img { width: 100%; height: 300px; object-fit: cover; }
.rules { display: grid; gap: 14px; font-size: 17px; line-height: 1.5; align-content: start; }
.rules li { padding-top: 14px; border-top: 1px solid var(--ink); }
.ticks { display: grid; gap: 10px; font-weight: 500; }

/* Hero */
.hero { background: linear-gradient(rgba(31,27,22,.45), rgba(31,27,22,.78)), url('/assets/img/hero-kitchen.jpg') center 80% / cover no-repeat #4A4238; color: var(--white); min-height: 700px; display: flex; align-items: flex-end; }
.hero__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; width: 100%; padding-top: 56px; padding-bottom: 72px; }
.hero__copy { flex: 1 1 520px; }
.hero__h1 { font: 700 clamp(40px, 5.2vw, 72px)/1.04 var(--f-display); letter-spacing: -.03em; max-width: 700px; text-wrap: balance; }
.hero__lead { margin: 24px 0 36px; max-width: 560px; font-size: 19px; line-height: 1.5; }
.hero__form { flex: 1 1 400px; max-width: 480px; background: var(--white); color: var(--ink); padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.hero__form--plain { box-shadow: none; border: 1px solid var(--line); }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; font-size: 15px; color: var(--body); }
.trust__t { font: 700 20px var(--f-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.card img, .crop { width: 100%; height: 340px; object-fit: cover; }
.card--plain img { height: 380px; }
.card figcaption { margin-top: 14px; display: grid; gap: 2px; }
.card figcaption strong { font: 700 21px var(--f-display); letter-spacing: -.02em; }
.card figcaption span { font-size: 15px; color: var(--body); }

/* Brands */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding-top: 36px; padding-bottom: 36px; }
.brands .eyebrow { margin: 0; }
.brands__list { flex: 1 1 560px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font: 800 18px var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--body); }

/* Areas, chips, towns */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.area { border-top: 2px solid var(--ink); padding-top: 20px; }
.area__h { font: 700 30px var(--f-display); letter-spacing: -.02em; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { padding: 10px 16px; border: 1px solid var(--ink); font-size: 14px; }
.chip:hover { background: var(--ink); color: var(--cream); }
.towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.town { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.town:hover { border-color: var(--ink); }

/* How it works */
.band { background: var(--ink); color: var(--cream); padding: 64px 0; }
.band .h2 { color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.steps span { display: block; font: 700 44px var(--f-display); color: #D9B27E; margin-bottom: 8px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; line-height: 1.6; color: #D9D2C4; }

/* FAQ */
.faqs .faq { padding: 24px 0; border-top: 1px solid var(--ink); }
.faqs .faq:last-child { border-bottom: 1px solid var(--ink); }
.faq__q { font: 700 19px/1.3 var(--f-display); margin-bottom: 10px; }
.faq__a { font-size: 16px; line-height: 1.65; color: var(--body); }

/* CTA */
.cta { background: var(--ink); color: var(--cream); padding: 56px 0; }
.cta__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta .h2 { margin: 0; max-width: 640px; }

/* Footer */
.footer { background: var(--ink); color: #D9D2C4; border-top: 1px solid #4A423B; font-size: 14px; line-height: 1.8; }
.footer a { color: #D9D2C4; }
.footer a:hover { color: var(--white); }
.footer__in { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.footer__in > * { flex: 1 1 160px; }
.footer__in > :first-child { flex-basis: 280px; }
.footer__brand { font: 700 24px var(--f-display); color: var(--cream); margin-bottom: 8px; }
.footer__head { font-weight: 600; color: var(--cream); }

/* Quote form */
.quote__bars { display: flex; gap: 6px; margin-bottom: 14px; }
.quote__bars span { flex: 1; height: 4px; background: var(--line); }
.quote__bars span.on { background: var(--ink); }
.quote .eyebrow { margin-bottom: 4px; font-size: 12px; letter-spacing: .1em; }
.quote__title { font: 700 26px/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 20px; }
.quote fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote:not(.is-enhanced) fieldset { margin-bottom: 28px; }
.quote:not(.is-enhanced) [data-back], .quote:not(.is-enhanced) [data-next] { display: none; }
.quote__label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.quote__hint, .quote__note { font-size: 13px; color: var(--body); margin-top: 14px; }
.quote__note { text-align: center; margin-top: 12px; }
.quote__hint a { text-decoration: underline; }
.quote__error { margin-top: 14px; padding: 12px 14px; background: #FBE9E4; color: #7A1F0B; font-size: 14px; font-weight: 500; }
.quote__actions { display: flex; gap: 12px; margin-top: 20px; }
.quote__next, .quote__submit { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { display: block; position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; }
.tile span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 6px 10px; border: 1px solid var(--ink); font-size: 15px; font-weight: 500; background: var(--white); cursor: pointer; }
.tile input:checked + span { background: var(--ink); color: var(--cream); }
.tile input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 54px; padding: 0 14px; border: 2px solid #C5BBAA; font: 400 16px var(--f-body); background: var(--white); color: var(--ink); }
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: #B33A1A; }
.hp { position: absolute; left: -9999px; }
.quote__next-steps { display: grid; gap: 12px; font-size: 15px; line-height: 1.5; counter-reset: s; }
.quote__next-steps li { padding: 14px 16px; background: var(--sand); }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  :root { --gut: 20px; }
  .section { padding: 48px 0; }
  .split__img { height: 380px; }
  .hero { min-height: 0; }
  .hero__in { padding-top: 40px; padding-bottom: 40px; }
  .hero__form { padding: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .town { transition: background-color .15s, color .15s, border-color .15s; }
}
