/* =========================================================
   Wright's Reupholstery Services — site styles
   Palette: deep forest green, warm ivory, understated antique gold
   ========================================================= */

:root {
  /* Brand palette (from the Wright's brand guide) */
  --forest: #18382D;      /* primary */
  --gold: #B39A65;        /* accents, borders, fine detailing */
  --burgundy: #591F30;    /* secondary statement colour */
  --walnut: #493025;      /* warm traditional accents */
  --charcoal: #292B29;    /* supporting backgrounds */
  --silver: #F2F3F1;      /* light contrast, headings */

  --green-950: #0f251d;
  --green-900: var(--forest);
  --green-800: var(--charcoal);
  --green-700: #22493b;
  --ivory: var(--silver);
  --ivory-dim: #cdd1cb;
  --ivory-faint: #9ca39c;
  --gold-light: #c9b384;
  --gold-line: rgba(179, 154, 101, 0.45);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-900);
  color: var(--ivory-dim);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.075rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ivory); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.2em; }
strong { font-weight: 600; color: var(--ivory); }

.container { width: min(var(--max), 100% - 3rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.6rem 0;
}
.center .rule, .rule.center { margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--green-950); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--gold); color: var(--green-950); }
.btn-solid { background: var(--gold); color: var(--green-950); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-950); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 37, 29, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(179, 154, 101, .22);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1rem 0;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; color: var(--ivory); }
.wordmark:hover { color: var(--ivory); }
.wordmark .wm-name {
  font-family: var(--serif); font-style: normal; font-weight: 500;
  font-size: 1.55rem; letter-spacing: .12em;
}
.wordmark .wm-sub {
  font-size: .62rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); margin-top: .35rem;
}
.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  color: var(--ivory-dim); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--gold); }
.main-nav .nav-cta a { border: 1px solid var(--gold); padding: .6rem 1.1rem; color: var(--ivory); }
.main-nav .nav-cta a:hover { background: var(--gold); color: var(--green-950); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold-line); color: var(--ivory);
  padding: .55rem .8rem; font: inherit; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--green-950);
    border-bottom: 1px solid var(--gold-line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.5rem 1.5rem; align-items: stretch; }
  .main-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(179,154,101,.15); }
  .main-nav .nav-cta { margin-top: 1rem; }
  .main-nav .nav-cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background: var(--green-950) center 55% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,37,29,.35) 0%, rgba(15,37,29,.15) 35%, rgba(15,37,29,.85) 78%, var(--green-900) 100%),
    linear-gradient(90deg, rgba(15,37,29,.75) 0%, rgba(15,37,29,0) 65%);
}
.hero-content { padding: 0 0 6rem; max-width: 760px; }
.hero h1 { margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero p.lead { font-size: 1.2rem; color: var(--ivory); max-width: 34em; }

.page-hero {
  padding: 7rem 0 4rem; text-align: center;
  background: radial-gradient(ellipse at top, var(--green-700) 0%, var(--green-900) 70%);
  border-bottom: 1px solid rgba(179,154,101,.18);
}
.page-hero p { max-width: 640px; margin-inline: auto; font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--green-800); }
.section-head { margin-bottom: 3.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.reverse > :first-child { order: 0; } }

.framed { position: relative; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(207,181,127,.55); pointer-events: none;
}

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--gold-line); }
.trio > div { padding: 2.5rem 2rem 1rem; border-right: 1px solid var(--gold-line); }
.trio > div:last-child { border-right: 0; }
.trio .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: .8rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } .trio > div { border-right: 0; border-bottom: 1px solid var(--gold-line); padding: 2rem 0 1rem; } }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.service { background: var(--green-900); padding: 2.6rem 2.2rem; }
.section-alt .service { background: var(--green-800); }
.service h3 { margin-bottom: .5rem; }
.service p { margin: 0; font-size: 1rem; }
.service ul { margin: 1rem 0 0; padding-left: 1.1rem; font-size: .98rem; }
.service li::marker { color: var(--gold); }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-card { margin: 0; }
.ba-frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-950);
  cursor: pointer; border: 1px solid var(--gold-line);
}
.ba-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s ease;
}
.ba-frame .ba-after { opacity: 0; }
.ba-card.show-after .ba-after { opacity: 1; }
.ba-card.show-after .ba-before { opacity: 0; }
.ba-label {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  background: rgba(15,37,29,.82); color: var(--ivory); border: 1px solid var(--gold-line);
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; padding: .35rem .7rem;
}
.ba-toggle { display: flex; margin-top: 1rem; border: 1px solid var(--gold-line); width: max-content; }
.ba-toggle button {
  background: none; border: 0; color: var(--ivory-dim); font: inherit; font-size: .74rem; letter-spacing: .24em;
  text-transform: uppercase; padding: .55rem 1.2rem; cursor: pointer;
}
.ba-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--green-950); }
.ba-card figcaption { margin-top: 1rem; }
.ba-card figcaption h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.ba-card figcaption p { font-size: .98rem; margin: 0; }

.feature-piece { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
@media (max-width: 860px) { .feature-piece { grid-template-columns: 1fr; } }

.note { font-size: .9rem; color: var(--ivory-faint); font-style: italic; }

/* ---------- Price list ---------- */
.price-group { margin-bottom: 3.5rem; }
.price-group h3 { border-bottom: 1px solid var(--gold-line); padding-bottom: .8rem; margin-bottom: 0; }
.price-row {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.05rem 0;
  border-bottom: 1px solid rgba(179,154,101,.15);
}
.price-row .item { color: var(--ivory); font-weight: 400; }
.price-row .item small { display: block; color: var(--ivory-faint); font-weight: 300; font-size: .9rem; }
.price-row .dots { flex: 1; border-bottom: 1px dotted rgba(179,154,101,.4); transform: translateY(-4px); }
.price-row .price { font-family: var(--serif); font-style: italic; color: var(--gold-light); white-space: nowrap; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 4.5rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid rgba(179,154,101,.18); }
.contact-list .label { display: block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.contact-list a, .contact-list span.value { color: var(--ivory); font-size: 1.1rem; }

.enquiry-form { background: var(--green-800); border: 1px solid var(--gold-line); padding: 2.8rem; }
@media (max-width: 600px) { .enquiry-form { padding: 1.6rem; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: .45rem; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--ivory-faint); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--green-950); border: 1px solid rgba(179,154,101,.35); color: var(--ivory);
  font: inherit; font-weight: 400; font-size: 1rem; padding: .85rem 1rem; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(179,154,101,.18); }

.dropzone {
  border: 1px dashed var(--gold); background: rgba(15,37,29,.55); padding: 2rem 1.5rem; text-align: center;
  cursor: pointer; transition: background .2s;
}
.dropzone:hover, .dropzone.drag { background: rgba(179,154,101,.08); }
.dropzone strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; display: block; margin-bottom: .2rem; }
.dropzone span { font-size: .92rem; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .8rem; margin-top: 1rem; }
.thumbs .thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--gold-line); overflow: hidden; background: var(--green-950); }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb .fname { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; padding: .3rem; text-align: center; word-break: break-all; }
.thumbs .thumb button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(15,37,29,.88); color: var(--ivory); border: 1px solid var(--gold-line); cursor: pointer; line-height: 1; font-size: 15px;
}
.field label.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ivory-dim); line-height: 1.6; }
.field label.check input { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; margin: .2rem 0 0; accent-color: var(--gold); box-shadow: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1.2rem; font-size: .98rem; min-height: 1.5em; }
.form-status.error { color: #e6a58f; }
.form-status.ok { color: var(--gold-light); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 6rem 0; text-align: center;
  background-color: var(--burgundy); background-position: center; background-size: cover;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--ivory-dim); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(179,154,101,.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--ivory-faint);
}

/* Prose pages (privacy) */
.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li::marker { color: var(--gold); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ba-frame img { transition: none; }
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.quote {
  margin: 0; padding: 2.2rem 2.2rem 2rem; border: 1px solid var(--gold-line); position: relative;
  background: rgba(73, 48, 37, .45); display: flex; flex-direction: column; justify-content: space-between;
}
.quote::before {
  content: "\201C"; display: block; font-family: var(--serif); font-size: 3.6rem; color: var(--gold);
  line-height: .6; height: .45em; margin-bottom: .6rem;
}
.quote p { font-family: var(--serif); font-style: italic; color: var(--ivory); font-size: 1.15rem; line-height: 1.6; }
.quote cite {
  font-style: normal; font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}

.terms { margin-top: 1rem; padding: 2rem 2.2rem; background: rgba(73, 48, 37, .45); border-left: 2px solid var(--gold); }
.terms p { margin-bottom: .8em; font-size: 1rem; }
.terms p:last-child { margin-bottom: 0; }
.price-row .price { min-width: 0; }

/* Home hero: the keyword H1 is styled as a small label; the tagline is the big display line */
h1.eyebrow { font-size: .78rem; line-height: 1.6; margin-bottom: 1rem; }
.display {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ivory);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.2; margin: 0 0 .3em;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}

/* FAQs */
.faq { border-bottom: 1px solid var(--gold-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: 1.35rem; margin: 0; }
.faq summary::after { content: "+"; font-family: var(--serif); color: var(--gold); font-size: 1.8rem; line-height: 1; transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 1.6rem; margin: 0; max-width: 62ch; }

/* SiteLock security badge (home page footer) */
.trust-badge { margin-top: 2.5rem; }
.trust-badge img { height: 48px; width: auto; }
