/* =========================================================
   Nexera Property Services · shared stylesheet (Tier 1, no build step)
   Direction: "Violet hour". Two main colours, midnight indigo and violet, worked as
   gradients on a pale lavender page. Amber is the hint: it only goes on the button we
   want pressed and the swipe in the logo. The washable slab stays the one loud piece.
   Theme lives in :root. Mobile-first.
   ========================================================= */

@font-face {
  font-family: 'Red Hat Display';
  src: url('../assets/fonts/red-hat-display-latin-wght.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Red Hat Text';
  src: url('../assets/fonts/red-hat-text-latin-wght.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15102e;        /* midnight indigo: text, dark bands (main colour 1) */
  --ink-soft: #57516f;   /* secondary text on pale surfaces */
  --paper: #f8f6fd;      /* page background */
  --stone: #e9e4f6;      /* rules, quiet surfaces */
  --white: #ffffff;
  --violet: #5b35f0;     /* main colour 2: links, rules, buttons. Carries white text */
  --violet-deep: #3d1fc0;
  --violet-soft: #a893ff;/* violet light enough to read on the dark bands */
  --jet: #ffc24b;        /* the hint. Backgrounds only, ink text on top */
  --jet-deep: #5b35f0;   /* accent that can carry text on pale surfaces (the violet) */
  --on-ink-soft: #cdc7e6;/* secondary text on the ink bands */
  --on-grad: #ece9fa;    /* body text on the gradient bands */
  --grad: linear-gradient(120deg, #15102e 0%, #2a1a78 46%, #5b35f0 100%);
  --grad-btn: linear-gradient(120deg, #6a45ff 0%, #3d1fc0 100%);

  --font-display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Red Hat Text', 'Segoe UI', system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: 1.25rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 8.4vw, 5.5rem); line-height: 0.96; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-decoration-color: var(--jet-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, canvas { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--jet-deep); outline-offset: 3px; border-radius: 2px; }
.band--ink :focus-visible, .band--grad :focus-visible, .site-footer :focus-visible { outline-color: var(--jet); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- Demo strip (delete at go-live) ---------- */
.demo-strip { background: var(--stone); font-size: .875rem; line-height: 1.4; }
.demo-strip p { margin: 0; max-width: none; padding: .6rem 0; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--grad-btn) border-box; color: var(--white); cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn { border-color: transparent; }
.btn:hover { filter: brightness(.86); }
.btn--jet { background: var(--jet); border-color: var(--jet); color: var(--ink); }
.btn--jet:hover { background: #ffd27a; border-color: #ffd27a; filter: none; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); filter: none; }
.band--ink .btn--line, .band--grad .btn--line { border-color: var(--white); color: var(--white); }
.band--ink .btn--line:hover, .band--grad .btn--line:hover { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--stone); }
.nav { display: flex; align-items: center; gap: .5rem; min-height: 4.25rem; flex-wrap: wrap; }
/* Logo: a house outline whose walls and one clean swipe make an N. Drawn in code (assets/logo-mark.svg). */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; line-height: 1; margin-right: auto; padding: .5rem 0; }
.brand__mark { flex: none; width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand__sub { font-size: .72rem; font-weight: 600; margin-top: 4px; color: var(--ink-soft); white-space: nowrap; }
.nav__toggle {
  width: 2.75rem; height: 2.75rem; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; }
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; transform: rotate(-45deg); }
.nav__links { display: none; width: 100%; padding: .25rem 0 1rem; }
.nav__links.is-open { display: block; }
.nav__links a:not(.btn) { display: flex; align-items: center; min-height: 2.9rem; font-weight: 600; text-decoration: none; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--jet-deep); }
.nav__links .btn { margin-top: .5rem; width: 100%; }
.nav__quick { min-height: 2.75rem; padding: .5rem .9rem; font-size: .95rem; }

@media (min-width: 860px) {
  :root { --gutter: 2rem; }
  .nav { flex-wrap: nowrap; gap: 2rem; min-height: 5rem; }
  .nav__toggle, .nav__quick { display: none; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 1.55rem; }
  .brand__sub { font-size: .78rem; }
  .nav__links { display: flex; align-items: center; gap: 2rem; width: auto; padding: 0; }
  .nav__links .btn { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */
.band--grad { background: var(--grad); color: var(--white); }
.band--grad p { color: var(--on-grad); }
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.25rem, 5vw, 4rem); overflow: hidden; }
/* one soft glow where the violet is brightest, so the band is not a flat ramp */
.hero::after { content: ""; position: absolute; right: -12%; top: -45%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 147, 255, .5), rgba(168, 147, 255, 0)); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 1.5rem; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: end; }
}

/* The washable slab. .slab__clean is the real, always-visible layer. The canvas grime is
   painted by js/main.js only, so with no JavaScript the slab is simply clean. */
.slab { position: relative; background: #e6e6ec; overflow: hidden; height: clamp(260px, 50vw, 540px); }
.slab__clean {
  position: absolute; inset: 0; display: flex; align-items: center;
  background-color: #e9e9ef;
  background-image:
    linear-gradient(to right, rgba(21, 16, 46, .13) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(21, 16, 46, .13) 2px, transparent 2px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .7), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, .5), transparent 40%);
  background-size: 180px 180px, 180px 180px, 100% 100%, 100% 100%;
}
.slab__words {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -0.04em; line-height: .9;
  font-size: clamp(2.6rem, 11.5vw, 9.5rem); color: var(--ink); margin: 0; max-width: none;
  padding: 0 var(--gutter); width: 100%; max-width: var(--maxw); margin-inline: auto;
}
.slab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: ew-resize; }
.slab__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; font-size: .9375rem; color: var(--ink-soft); }
.slab__bar p { margin: 0; max-width: none; }
.slab__again {
  margin-left: auto; min-height: 2.75rem; padding: .4rem .9rem; cursor: pointer;
  font: 700 .9375rem var(--font-display); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: var(--radius);
}
.slab__again:hover { background: var(--ink); color: var(--paper); }
.slab__again[hidden] { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head p { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }
@media (min-width: 860px) {
  .section__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: end; }
}

.band--ink { background: var(--ink); color: var(--paper); }
.band--ink p { color: var(--on-ink-soft); }
.band--stone { background: linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%); }

/* ---------- Surfaces list (services) ---------- */
.surfaces { border-top: 2px solid var(--violet); }
.surface { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid #d3cdea; align-items: start; }
.surface h3 { align-self: center; }
.surface p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.surface__more { grid-column: 1 / -1; font-weight: 700; display: inline-flex; align-items: center; min-height: 2.75rem; width: fit-content; }
@media (min-width: 860px) {
  .surface { grid-template-columns: 200px minmax(0, 4fr) minmax(0, 5fr) 13rem; gap: 2.5rem; padding: 2rem 0; align-items: center; }
  .surface p, .surface__more { grid-column: auto; }
  .surface__more { justify-self: end; text-align: right; }
}


/* Photos. Stock for now (assets/photos/CREDITS.md), labelled so they never pass for
   Nexera's own jobs. Swap for his real job photos when he sends them. */
.shot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--stone); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__tag { position: absolute; left: .6rem; bottom: .6rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3; background: rgba(21, 16, 46, .82); color: var(--white); }
.photo-note { margin: 1.25rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.detail .shot { aspect-ratio: 16 / 10; }
@media (min-width: 860px) { .detail .shot { aspect-ratio: 4 / 3; position: sticky; top: 1.5rem; } }

/* ---------- How a quote works ---------- */
.steps { display: grid; gap: 2.5rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: block;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .9;
  color: var(--violet-soft); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .6rem; }
.step p { margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem; } }

/* ---------- Areas ---------- */
.areas { display: grid; gap: 2.5rem; }
.areas__list { columns: 2; column-gap: 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 4.5vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em; }
.areas__list li { padding: .25rem 0; break-inside: avoid; }
.areas p { color: var(--ink); }
@media (min-width: 860px) {
  .areas { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
  .areas__list { column-gap: 3rem; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--violet); max-width: 860px; }
.faq details { border-bottom: 1px solid #d3cdea; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; min-height: 3.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; font-weight: 700; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: 1.25rem; margin: 0; }

/* ---------- Quote band ---------- */
.cta { display: grid; gap: 1.75rem; align-items: center; }
.cta p { font-size: 1.125rem; margin: 1rem 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 860px) { .cta { grid-template-columns: minmax(0, 7fr) auto; gap: 4rem; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background: var(--grad); color: var(--white); }
.page-head h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); max-width: 16ch; }
.page-head p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-grad); margin: 1.5rem 0 0; }

/* ---------- Service detail (services.html) ---------- */
.detail { display: grid; gap: 1.25rem 1.25rem; grid-template-columns: minmax(0, 1fr); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid #d3cdea; scroll-margin-top: 1rem; }
.detail:last-child { border-bottom: 0; }
.detail__body h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.detail__body p { color: var(--ink-soft); }
.detail__list { display: grid; gap: .5rem; margin: 1.25rem 0 1.5rem; }
.detail__list li { padding-left: 1.5rem; position: relative; }
.detail__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 3px; background: var(--jet-deep); }
@media (min-width: 860px) { .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; } .detail__body { max-width: 720px; } }

/* ---------- Quote page ---------- */
.quote { display: grid; gap: 3rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 9vw, 7rem); }
.quote__side h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.quote__side ol { margin: 0 0 2rem; padding-left: 1.25rem; display: grid; gap: .6rem; color: var(--ink-soft); }
.quote__call { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; display: inline-flex; min-height: 2.75rem; align-items: center; }
@media (min-width: 860px) { .quote { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 5rem; align-items: start; } }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 700; margin-bottom: .4rem; }
.form .hint { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 3.25rem; padding: .8rem .9rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #8a84a8; border-radius: var(--radius);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--jet-deep); outline-offset: 1px; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form__status { margin: 0; padding: .9rem 1rem; border-radius: var(--radius); background: var(--stone); font-weight: 600; }
.form__status.is-ok { background: #e2dbff; }
.form__status.is-err { background: #fde2dd; }
.form__status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 2rem; border-top: 4px solid var(--violet); }
.site-footer p { color: var(--on-ink-soft); margin: 0; max-width: none; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__name { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--paper) !important; margin-bottom: .75rem !important; }
.footer__phone { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--paper); display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-color: var(--jet); }
.footer__links { display: grid; gap: .15rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-decoration-color: var(--jet); }
.footer__legal { border-top: 1px solid #332a5c; padding-top: 1.5rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 4rem; } }
