/* Grey Lite Restoration, mockup 3
   Structure follows the layout extracted from the second reference site;
   colours are the second client palette. */

:root {
  --night: #262A29;   /* page base */
  --slate: #464B47;   /* raised surfaces */
  --sage: #849576;    /* secondary accent: icons, rules */
  --tan: #C2AD8D;     /* primary accent: headings, buttons */
  --bone: #EEEAE0;    /* text, light section */

  --serif: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 50px);
  --radius: 15px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

h2 { font-size: clamp(34px, 5vw, 64px); }

h2 em, h2.accent { font-style: normal; color: var(--tan); }

h3 { font-size: clamp(24px, 2.6vw, 32px); }

p { margin: 0; }

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head {
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  text-align: center;
}

.section-head p {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: clamp(18px, 1.7vw, 22px);
}

.lead { font-size: clamp(18px, 1.6vw, 21px); }

/* Pill buttons with an arrow disc */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 26px;
  border-radius: 100px;
  background: var(--tan);
  color: var(--night);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.pill:hover { background: var(--bone); }

.pill.ghost {
  background: rgba(238, 234, 224, 0.16);
  color: var(--bone);
  border: 1px solid rgba(238, 234, 224, 0.5);
  backdrop-filter: blur(6px);
}

.pill.ghost:hover { background: rgba(238, 234, 224, 0.28); }

.arrow {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--night);
  transition: transform 0.2s;
}

.pill.ghost .arrow { background: var(--tan); }

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--tan);
  border-right: 2px solid var(--tan);
  transform: translate(-65%, -50%) rotate(45deg);
}

.pill.ghost .arrow::after { border-color: var(--night); }

.pill:hover .arrow { transform: translateX(3px); }

/* Header: centred logo above the nav row, laid over the hero */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px var(--gutter) 0;
}

.logo img {
  width: 150px;
  filter: url(#logo-key);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 52px);
}

.site-nav a:not(.pill) {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:not(.pill):hover { border-bottom-color: var(--tan); }

.nav-toggle { display: none; }

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(760px, 100vh);
  padding: 260px var(--gutter) 100px;
  text-align: center;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(38, 42, 41, 0.92) 0, rgba(38, 42, 41, 0.55) 34%, rgba(38, 42, 41, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 1;
}

.hero .sub {
  max-width: 760px;
  margin: 26px auto 44px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
}

/* Understanding section */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.split + .split { margin-top: clamp(56px, 8vw, 110px); }

.split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.split img.tall { aspect-ratio: 4 / 5; }

.questions, .checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.questions li, .checks li {
  position: relative;
  padding: 18px 0 18px 54px;
  border-bottom: 1px solid rgba(194, 173, 141, 0.45);
  font-size: clamp(18px, 1.6vw, 21px);
}

.questions li:first-child, .checks li:first-child {
  border-top: 1px solid rgba(194, 173, 141, 0.45);
}

.questions li::before, .checks li::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 29px;
  text-align: center;
}

.questions li::before { content: "?"; }

.checks li::before { content: "✓"; font-family: var(--sans); font-size: 15px; }

.understand h3 { margin-bottom: 16px; color: var(--tan); }

.understand .pill { margin-top: 36px; }

/* Services */

.services { background: var(--slate); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards article {
  padding: 34px 28px 38px;
  border-radius: var(--radius);
  background: var(--night);
  text-align: center;
}

.cards svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: block;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cards h3 { margin-bottom: 14px; }

.cards p { font-size: 17px; }

.also {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--tan);
}

/* Before and after pairs */

.pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 28px;
}

.pair { margin: 0; }

.pair.wide { grid-column: 1 / -1; }

.pair > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pair.wide .shot img { aspect-ratio: 3 / 2; }

.shot b {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--night);
  color: var(--bone);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot:last-child b { background: var(--tan); color: var(--night); }

.pair figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 24px;
}

/* Process */

.process {
  background: var(--slate);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--tan);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--tan);
}

.steps h3 { margin-bottom: 12px; }

.steps p { max-width: 320px; margin: 0 auto; }

.ornament {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 44px;
  color: var(--tan);
  font-size: 22px;
}

.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(238, 234, 224, 0.55);
}

/* Service area: the one light section */

.area {
  background: var(--bone);
  color: var(--night);
}

.area h2 { margin-bottom: 20px; }

.area img { aspect-ratio: 5 / 4; }

.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
}

/* dashed outline marks these as placeholders */
.towns li {
  padding: 12px 18px;
  border: 1.5px dashed rgba(38, 42, 41, 0.4);
  border-radius: 100px;
  font-size: 17px;
  font-weight: 400;
}

.pill.dark { background: var(--night); color: var(--bone); }

.pill.dark:hover { background: var(--slate); }

.pill.dark .arrow { background: var(--tan); }

.pill.dark .arrow::after { border-color: var(--night); }

/* FAQ */

.faq .wrap { max-width: 1100px; }

details { border-bottom: 1px solid rgba(194, 173, 141, 0.45); }

details:first-of-type { border-top: 1px solid rgba(194, 173, 141, 0.45); }

summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--tan);
}

details[open] summary::after { content: "–"; }

details p {
  max-width: 760px;
  padding: 0 0 26px;
}

/* Closing call to action */

.cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  text-align: center;
  overflow: hidden;
}

.cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(38, 42, 41, 0.86);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.cta p {
  margin: 22px 0 36px;
  font-size: clamp(18px, 1.8vw, 22px);
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.contact .lead { margin-top: 24px; }

.details { margin: 36px 0 0; }

.details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(194, 173, 141, 0.45);
}

.details div:first-child { border-top: 1px solid rgba(194, 173, 141, 0.45); }

.details dt { font-weight: 500; color: var(--tan); }

.details dd { margin: 0; text-align: right; }

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: var(--slate);
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(238, 234, 224, 0.3);
  border-radius: 8px;
  background: var(--night);
  color: var(--bone);
  font: 300 17px var(--sans);
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--tan);
  outline-offset: 1px;
}

.contact-form button {
  justify-self: start;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

.form-note { font-size: 16px; color: var(--tan); }

/* Footer */

.site-footer {
  background: var(--slate);
  padding: 72px 0 28px;
  font-size: 17px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--tan);
}

.brand img {
  width: 170px;
  margin-bottom: 24px;
  filter: url(#logo-key);
}

.brand p { margin-bottom: 18px; }

.col a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  text-decoration: none;
}

.col a:hover { color: var(--tan); }

.copy {
  margin-top: 56px;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(238, 234, 224, 0.2);
  text-align: center;
  font-size: 15px;
}

/* Smaller screens */

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }

  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 14px;
  }

  .logo img { width: 96px; }

  .nav-toggle {
    display: block;
    padding: 10px 18px;
    border: 1px solid rgba(238, 234, 224, 0.6);
    border-radius: 100px;
    background: rgba(38, 42, 41, 0.5);
    color: var(--bone);
    font: 500 13px var(--sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-radius: var(--radius);
    background: var(--night);
  }

  .site-nav.open { display: flex; }

  .site-nav a:not(.pill) {
    padding: 14px 0;
    border-bottom: 1px solid rgba(238, 234, 224, 0.18);
  }

  .site-nav .pill { margin-top: 18px; justify-content: space-between; }

  .hero {
    min-height: 680px;
    padding-top: 170px;
    padding-bottom: 72px;
  }

  .split { grid-template-columns: 1fr; }

  .split.reverse img { order: 2; }

  .cards { grid-template-columns: 1fr; }

  .pairs { grid-template-columns: 1fr; }

  .pair.wide .shot img { aspect-ratio: 4 / 5; }

  .steps { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-form .row { grid-template-columns: 1fr; }

  .pill { font-size: 13px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .arrow { transition: none; }
}
