/* FlareLife — The Dawn Desk */
:root {
  --chalk: #F7F3EB;
  --dune: #E7DCC7;
  --pine: #14251F;
  --ember: #D9542B;
  --clay: #9A6B4F;
  --stone: #7C7A72;
  --pine-soft: rgba(20, 37, 31, 0.82);
  --shadow-soft: 0 18px 48px rgba(20, 37, 31, 0.08);
  --shadow-card: 0 12px 32px rgba(20, 37, 31, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --measure: 42rem;
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pine);
  background: var(--chalk);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { opacity: 0.82; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

.surface-chalk { background: var(--chalk); color: var(--pine); }
.surface-dune { background: var(--dune); color: var(--pine); }
.surface-pine { background: var(--pine); color: var(--chalk); }
.surface-ember { background: var(--ember); color: var(--chalk); }

.paper-texture {
  position: relative;
}
.paper-texture::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.025;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 37, 31, 0.35) 1px, transparent 0);
  background-size: 4px 4px;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.eyebrow__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pine);
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--ember);
  color: var(--chalk);
  border-color: var(--ember);
}
.btn--primary:hover {
  filter: brightness(0.94);
  box-shadow: var(--shadow-soft);
  opacity: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn--secondary:hover {
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--chalk);
  border-bottom-color: rgba(20, 37, 31, 0.12);
  box-shadow: 0 4px 24px rgba(20, 37, 31, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand__monogram {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border: 1px solid rgba(20, 37, 31, 0.15);
  border-radius: 2px;
  background: rgba(247, 243, 235, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--pine);
  color: var(--pine);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Hero — The Dawn Desk */
.hero-dawn {
  min-height: 94vh;
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.hero-dawn__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 37, 31, 0.18);
  position: relative;
}

.hero-dawn__top::before,
.hero-dawn__top::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--ember);
  border-left: 2px solid var(--ember);
}
.hero-dawn__top::before { left: 0; transform: rotate(-45deg); }
.hero-dawn__top::after { right: 0; transform: rotate(135deg); border-left: none; border-right: 2px solid var(--ember); }

.hero-dawn__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 18rem;
  text-align: right;
  line-height: 1.5;
}

.hero-dawn__title {
  max-width: 18ch;
  margin-top: 2rem;
}

.hero-dawn__title em {
  font-style: normal;
  color: var(--ember);
}

.hero-dawn__arc {
  position: relative;
  width: min(100%, 28rem);
  height: 2.5rem;
  margin-top: 0.5rem;
}

.hero-dawn__arc svg {
  width: 100%;
  height: 100%;
}

.hero-dawn__standfirst {
  max-width: 35rem;
  color: var(--pine-soft);
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.stage-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ember);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-line span {
  position: relative;
  padding-top: 0.65rem;
}
.stage-line span::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 1px;
  height: 0.55rem;
  background: var(--ember);
}

.hero-plate {
  margin-top: 2.5rem;
  position: relative;
  border: 1px solid rgba(20, 37, 31, 0.22);
  box-shadow: var(--shadow-soft);
}

.hero-plate::before,
.hero-plate::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ember);
  z-index: 2;
}
.hero-plate::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-plate::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-plate__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 84, 43, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-plate img {
  width: 100%;
  max-height: clamp(220px, 38vh, 420px);
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.hero-trust {
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-transform: uppercase;
}

/* Sections */
.section {
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--6 { grid-template-columns: repeat(3, 1fr); }

.dune-card {
  background: var(--dune);
  border: 1px solid rgba(20, 37, 31, 0.12);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.cap-card {
  background: var(--dune);
  border: 1px solid rgba(20, 37, 31, 0.1);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cap-card__num {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  color: rgba(20, 37, 31, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* Craft band */
.craft-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(20, 37, 31, 0.12);
}

.craft-step {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(20, 37, 31, 0.1);
  background: var(--chalk);
}
.craft-step:last-child { border-right: none; }

.craft-step__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

/* Editorial pull quote */
.pull-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.25;
  border-left: 3px solid var(--ember);
  padding-left: 1.5rem;
  margin: 0;
}

/* Work teaser */
.work-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.work-card {
  border: 1px solid rgba(247, 243, 235, 0.15);
  background: rgba(247, 243, 235, 0.04);
}

.work-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  max-height: 260px;
}

.work-card__body { padding: 1.5rem; }

/* Neighbourhood strip */
.neighbourhood {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hours-table {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(20, 37, 31, 0.1);
}

/* Mini FAQ */
.mini-faq details {
  border-bottom: 1px solid rgba(20, 37, 31, 0.12);
  padding: 1rem 0;
}
.mini-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq p { margin-top: 0.75rem; color: var(--pine-soft); }

/* Page hero (inner pages) */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-hero__lead {
  max-width: var(--measure);
  color: var(--pine-soft);
  font-size: 1.12rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.framed-photo {
  border: 1px solid rgba(20, 37, 31, 0.15);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.framed-photo img {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.framed-photo--compact img {
  max-height: 240px;
  aspect-ratio: 3 / 2;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.photo-strip .framed-photo img {
  max-height: 200px;
  aspect-ratio: 4 / 3;
}

/* Services list */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(20, 37, 31, 0.1);
}
.service-block:first-child { padding-top: 0; }

/* FAQ full */
.faq-list details {
  border-bottom: 1px solid rgba(20, 37, 31, 0.12);
  padding: 1.25rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .faq-answer { margin-top: 0.85rem; color: var(--pine-soft); }

/* Forms */
.form-surface {
  background: var(--dune);
  border: 1px solid rgba(20, 37, 31, 0.12);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 37, 31, 0.2);
  border-radius: 2px;
  background: var(--chalk);
  color: var(--pine);
}

.form-group textarea { min-height: 9rem; resize: vertical; }

.form-check {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.form-check input[type="checkbox"] {
  width: 1.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  padding: 0;
}

.form-check label {
  display: block;
  flex: 1;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal prose */
.legal-prose {
  max-width: 46rem;
}
.legal-prose h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}
.legal-prose h2:first-child { margin-top: 0; }

.disclaimer-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(20, 37, 31, 0.12);
  background: rgba(231, 220, 199, 0.35);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(247, 243, 235, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid a { text-decoration: none; display: block; margin-bottom: 0.35rem; font-size: 0.92rem; }

.footer-meta {
  font-size: 0.85rem;
  color: rgba(247, 243, 235, 0.75);
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(247, 243, 235, 0.65);
  line-height: 1.55;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 243, 235, 0.12);
}

.footer-copy {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 235, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  background: var(--pine);
  color: var(--chalk);
  box-shadow: 0 -8px 32px rgba(20, 37, 31, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner p { font-size: 0.88rem; margin: 0; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(247, 243, 235, 0.35);
  background: transparent;
  color: var(--chalk);
}
.cookie-actions button:hover { background: rgba(247, 243, 235, 0.08); }
.cookie-actions .btn-accept { background: var(--ember); border-color: var(--ember); }

.cookie-custom {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 243, 235, 0.15);
}
.cookie-custom.is-open { display: block; }

.cookie-custom label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

/* Reveal animation */
.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease;
}
.js .reveal:not(.is-visible) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal:not(.is-visible) {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid--3,
  .card-grid--6,
  .craft-band,
  .pull-block,
  .work-teaser,
  .neighbourhood,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .craft-step { border-right: none; border-bottom: 1px solid rgba(20, 37, 31, 0.1); }
  .card-grid--2 { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--chalk);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(20, 37, 31, 0.12);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }

  .hero-dawn { min-height: 82vh; }
  .hero-dawn__top { flex-direction: column; }
  .hero-dawn__label { text-align: left; max-width: none; }

  .cookie-banner__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-plate img {
    aspect-ratio: 4 / 3;
    max-height: 240px;
  }

  .photo-strip { grid-template-columns: 1fr; }
}
