/* ==========================================================================
   IKON Living — site styles
   Palette: light neutral (paper, linen, limestone) with restrained pine +
   brass accents. Edit the tokens below to re-skin the whole site.
   ========================================================================== */

:root {
  /* Colour */
  --paper:      #FBFBF9;   /* page background */
  --linen:      #F2F1EC;   /* alternating section background */
  --limestone:  #E8E7E0;   /* panels, quiet fills */
  --line:       #DCDAD1;   /* hairlines and borders */
  --ink:        #1F2724;   /* headings and primary text */
  --slate:      #58625E;   /* body and secondary text */
  --pine:       #2E4A41;   /* primary action colour */
  --pine-deep:  #22382F;   /* hover / dark panels */
  --sage:       #B7C6B8;   /* soft accent fill */
  --brass:      #8E7139;   /* fine rules, small marks — use sparingly */

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --shell: 1180px;
  --radius: 4px;
  --arch: 50% 50% 4px 4px / 28% 28% 4px 4px;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
h4 { font-size: 1.1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pine); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- layout --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--linen { background: var(--linen); }
.band--limestone { background: var(--limestone); }
.band--ink { background: var(--pine-deep); color: #D8DED9; }
.band--ink h2, .band--ink h3 { color: #F6F5F0; }
.band--ink a { color: #F6F5F0; }
.band--ink a.btn--light { color: var(--pine-deep); }
.band--ink a.btn--light:hover { color: var(--pine-deep); }

.band + .band--linen, .band--linen + .band { border-top: 1px solid var(--line); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--slate); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  max-width: 7rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--pine);
  border-radius: var(--radius);
  background: var(--pine);
  color: #FBFBF9;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }

.btn--quiet { background: transparent; color: var(--pine); border-color: var(--line); }
.btn--quiet:hover { background: var(--paper); border-color: var(--pine); color: var(--pine-deep); }

.btn--light { background: #F6F5F0; color: var(--pine-deep); border-color: #F6F5F0; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--pine-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none; color: var(--pine);
}
.textlink span[aria-hidden] { transition: transform 160ms ease; }
.textlink:hover span[aria-hidden] { transform: translateX(3px); }

/* ------------------------------------------------------------- header --- */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .masthead { position: sticky; top: 0; z-index: 40; }
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark b { font-weight: 500; }
.wordmark span { font-size: 0.95rem; letter-spacing: 0.22em; color: var(--slate); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.5rem 0.9rem;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.nav { display: none; flex: 1 0 100%; }
.nav.is-open { display: block; }
@media (min-width: 1000px) { .nav { display: block; flex: 0 1 auto; } }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: none;
}
.nav__list a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__list a[aria-current="page"] { color: var(--pine); font-weight: 700; }
.nav__list .nav__cta a { border-bottom: 0; }
.nav__list .nav__cta a.btn { display: flex; color: #FBFBF9; }
.nav__list .nav__cta a.btn:hover { color: #fff; border-bottom-color: transparent; }
.nav__list .nav__cta .btn { width: 100%; margin-top: 0.75rem; }

@media (min-width: 1000px) {
  .nav__list { flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; }
  .nav__list a {
    padding: 0.4rem 0; border-bottom: 2px solid transparent; font-size: 0.98rem;
  }
  .nav__list a:hover { border-bottom-color: var(--sage); }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--pine); }
  .nav__list .nav__cta .btn { width: auto; margin: 0; min-height: 46px; padding: 0.6rem 1.2rem; }
}

/* --------------------------------------------------------------- hero --- */

.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__intro { max-width: 40rem; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { max-width: 34rem; }

.hero--page { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }

/* The doorways: the two entry paths, framed as arched openings. */

.doorways {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 640px) { .doorways { grid-template-columns: 1fr 1fr; } }

.doorway {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFFEFA 0%, #EEEDE6 100%);
  border: 1px solid var(--line);
  border-radius: var(--arch);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem);
  overflow: hidden;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.doorway > * { position: relative; z-index: 1; }
.doorway h2, .doorway h3 { margin-top: 0.5rem; }
.doorway p { margin-bottom: 1.25rem; }
.doorway:hover { background: linear-gradient(180deg, #FFFFFF 0%, #E9EAE2 100%); border-color: var(--sage); }
.doorway:focus-within { border-color: var(--pine); }

.doorway__link { text-decoration: none; }
.doorway__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.doorway__mark {
  width: 36px; height: 48px;
  border-radius: 18px 18px 2px 2px;
  border: 1.5px solid var(--pine);
  border-bottom-width: 3px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* -------------------------------------------------------------- arches -- */
/* Reusable arched frame. Drop an <img> inside to swap the drawn panel for
   a real photograph — the frame keeps its shape. */

.arch-frame {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFEFA 0%, #E9EDE7 100%);
  aspect-ratio: 4 / 5;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame svg { width: 100%; height: 100%; }
.arch-frame--wide { aspect-ratio: 5 / 4; }

/* ------------------------------------------------------------ features -- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__meta {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.75rem;
}

.trust {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { border-top: 2px solid var(--brass); padding-top: 1.1rem; }
.trust h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.trust p { margin: 0; font-size: 1rem; }

/* Numbered steps — used only where the content is genuinely a sequence. */
.steps { list-style: none; margin: 0; padding: 0; max-width: none; counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 5px 5px 0 0;
  border: 1.5px solid var(--pine);
  border-bottom-width: 2px;
}

/* --------------------------------------------------------------- FAQ ---- */

.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--body); font-size: 1.08rem; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brass); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: 1.25rem; }

/* -------------------------------------------------------------- forms --- */

.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.field .hint { display: block; font-size: 0.92rem; color: var(--slate); margin-bottom: 0.5rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #C9C7BD;
  border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); }

.field--error input, .field--error select, .field--error textarea { border-color: #9B3A2E; border-width: 2px; }
.field__error { display: none; margin-top: 0.4rem; font-size: 0.95rem; font-weight: 600; color: #8C3225; }
.field--error .field__error { display: block; }

.field--check { display: flex; gap: 0.75rem; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 0.25rem; flex: 0 0 auto; }
.field--check label { font-weight: 400; color: var(--slate); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  background: var(--limestone);
  border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}
.form-note p:last-child { margin-bottom: 0; }

.form-status { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: #E7EFE8; color: #22382F; border: 1px solid var(--sage); }
.form-status[data-state="error"] { background: #F6E9E6; color: #8C3225; border: 1px solid #DDBDB6; }

/* ------------------------------------------------------------- footer --- */

.colophon { background: var(--pine-deep); color: #C6CFC9; padding-block: clamp(3rem, 5vw, 4rem) 2rem; }
.colophon a { color: #EDEBE4; text-decoration: none; }
.colophon a:hover { color: #fff; text-decoration: underline; }
.colophon h4 { color: #F6F5F0; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.6rem; }
.colophon .wordmark { color: #F6F5F0; }
.colophon .wordmark span { color: #A8B3AC; }

.colophon__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.colophon__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246,245,240,0.18);
  font-size: 0.9rem; color: #A8B3AC;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.colophon__legal p { margin: 0; max-width: 46rem; }

.disclosure { font-size: 0.92rem; color: #A8B3AC; max-width: 40rem; }

/* ------------------------------------------------------------ utility --- */

.stack > * + * { margin-top: 1.5rem; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.pill {
  display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--slate);
  background: var(--paper);
}
.table-plain { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.table-plain th, .table-plain td { text-align: left; padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-plain th { color: var(--ink); font-weight: 600; }
