/* ==========================================================================
   New Castle Recovery — DESIGN B: "Clean / Minimal"
   Calm, editorial, premium. Warm neutrals, soft edges, restrained accent.
   Mobile-first. No frameworks. Same markup as the current build.
   ========================================================================== */

@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-heading: 'Syne', 'Trebuchet MS', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --c-heading: #1c1f26;        /* 14.8:1 on --c-bg */
  --c-body: #5b6068;           /* 6.4:1 on --c-bg, 6.0:1 on --c-surface */
  --c-bg: #fdfcfa;             /* warm off-white */
  --c-surface: #f5f2ed;        /* warm sand */
  --c-border: #e6e1d9;
  --c-accent: #ffd500;
  --c-accent-ink: #8a6d00;     /* 4.9:1 on --c-bg — for accent-coloured text */
  --c-dark: #1c1f26;
  --c-on-dark: #cdd0d6;        /* 9.4:1 on --c-dark */

  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --wrap: 1140px;
  --gap: 1.75rem;
  --section-y: 4rem;

  --shadow: 0 1px 2px rgba(28, 31, 38, 0.04), 0 6px 20px -8px rgba(28, 31, 38, 0.08);
  --shadow-lg: 0 2px 4px rgba(28, 31, 38, 0.04), 0 24px 48px -20px rgba(28, 31, 38, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--c-body);
  background: var(--c-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-heading);
  line-height: 1.14;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.45rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-heading); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; }

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

ul, ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }

strong { color: var(--c-heading); font-weight: 600; }

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

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.35rem;
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); }

.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-heading);
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.25);
}

.lead { font-size: 1.12rem; line-height: 1.7; color: var(--c-body); }

.visually-hidden-heading {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-dark); color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-dark);
  background: var(--c-dark);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-heading);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(28, 31, 38, 0.45);
}
.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-heading); }
.btn--accent:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-heading); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-heading); border-color: var(--c-heading); color: #fff; }
.btn--block { width: 100%; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: relative;
  background: rgba(253, 252, 250, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 148px; height: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--c-heading);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.35rem 1.35rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--c-heading);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.site-nav a:hover { color: #000; }
.site-nav a[aria-current='page'] { color: var(--c-accent-ink); }

.header-cta { display: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 3.25rem 3.5rem;
  background:
    radial-gradient(60% 70% at 88% 12%, rgba(255, 213, 0, 0.16), transparent 62%),
    var(--c-bg);
}
.hero-grid { display: grid; gap: 2.25rem; }
.hero h1 { margin-bottom: 1.05rem; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

/* --- Page banner --------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(52% 80% at 88% 14%, rgba(255, 213, 0, 0.14), transparent 62%),
    var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding-block: 3rem;
}
.page-banner h1 { margin-bottom: 0.6rem; }
.page-banner p { max-width: 46rem; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 0.85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--c-border); }
.breadcrumb a { color: var(--c-body); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Feature strip ------------------------------------------------------- */
.feature-strip { display: grid; gap: 0.85rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.feature-strip li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--c-heading);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-strip li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-strip li::before {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(255, 213, 0, 0.22);
}

/* --- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h2, .card h3 { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }

.card-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1.15rem; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-heading);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-badge svg { display: block; width: 30px; height: 30px; }
.card:hover .icon-badge { background: var(--c-accent); color: var(--c-heading); transform: scale(1.06); }

/* --- Split --------------------------------------------------------------- */
.split { display: grid; gap: 2.25rem; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.subblock {
  margin-top: 1.85rem;
  padding: 1.4rem 1.5rem;
  background: var(--c-surface);
  border-radius: var(--radius);
}
.subblock h3 { margin-bottom: 0.4rem; }

/* --- Areas --------------------------------------------------------------- */
.area-card { display: flex; flex-direction: column; gap: 0.8rem; }
.area-card h2 { font-size: 1.18rem; margin: 0; }
.area-card .btn { align-self: flex-start; margin-top: 0.35rem; }

/* --- Blog ---------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.45s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-card__body { padding: 1.6rem 1.7rem 1.8rem; }
.post-card h2, .post-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }

.post-meta {
  font-size: 0.81rem;
  letter-spacing: 0.02em;
  color: var(--c-body);
  margin-bottom: 0.7rem;
}
.post-meta span + span::before { content: '\00b7'; margin: 0 0.45rem; }

.post-hero { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 2.25rem; }
.post-body { max-width: 44rem; }
.post-body h2 { margin-top: 2.5rem; }
.post-body h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.post-body h2:first-child, .post-body h3:first-child { margin-top: 0; }

.post-nav { margin-top: 3rem; padding-top: 1.85rem; border-top: 1px solid var(--c-border); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 52rem; }
.faq details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  background: var(--c-bg);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-heading);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 0.45rem;
  border-right: 2px solid var(--c-heading);
  border-bottom: 2px solid var(--c-heading);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: #000; }
.faq details > div { padding: 0 1.35rem 1.35rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- CTA banner ---------------------------------------------------------- */
.cta-banner {
  position: relative;
  background:
    radial-gradient(50% 120% at 82% 8%, rgba(255, 213, 0, 0.22), transparent 60%),
    var(--c-dark);
  color: var(--c-on-dark);
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.85rem;
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner h2 span { color: var(--c-accent); }
.cta-banner p { max-width: 44rem; margin-inline: auto; }
.cta-banner .btn { margin-top: 1.5rem; background: var(--c-accent); border-color: var(--c-accent); color: var(--c-heading); }
.cta-banner .btn:hover { background: #fff; border-color: #fff; color: var(--c-heading); }

/* --- Contact ------------------------------------------------------------- */
.contact-card { text-align: center; }
.contact-card h2, .contact-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.contact-card a { font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; color: var(--c-heading); text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin-bottom: 0.35rem; font-size: 0.92rem; }

.contact-direct { max-width: 34rem; display: flex; flex-direction: column; gap: 0.85rem; }
.contact-note { font-size: 0.85rem; margin-top: 0.3rem; }

/* --- Stats --------------------------------------------------------------- */
.stats { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.stats li {
  margin: 0;
  text-align: center;
  padding: 1.5rem 0.6rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.stats b { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 2.1rem; color: var(--c-heading); line-height: 1; margin-bottom: 0.3rem; }
.stats span { font-size: 0.84rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: 3.5rem 1.6rem;
  margin-top: var(--section-y);
}
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }

.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
.footer-brand img { width: 158px; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 30rem; font-size: 0.94rem; }

.site-footer h2 {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.94rem; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-social a:hover svg { fill: var(--c-heading); }

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  text-align: center;
}
.footer-bottom .credit { display: block; margin-top: 0.4rem; }
.footer-bottom .credit a { text-decoration: underline; }

@media (min-width: 480px) {
  .footer-bottom .credit { display: inline; margin-top: 0; }
  .footer-bottom .credit::before { content: "\00b7"; margin: 0 0.5rem; opacity: 0.6; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cta-banner { padding: 3.5rem 2.75rem; }
}

@media (min-width: 900px) {
  :root { --section-y: 5.5rem; }

  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none;
    border: 0; box-shadow: none; padding: 0; z-index: auto;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.75rem; }
  .site-nav a { padding: 0.35rem 0; border-bottom: 1px solid transparent; font-size: 0.95rem; }
  .site-nav a:hover { border-bottom-color: var(--c-heading); }
  .site-nav a[aria-current='page'] { color: var(--c-heading); border-bottom-color: var(--c-accent); }

  .header-cta { display: inline-flex; }

  .hero { padding-block: 5rem 5.5rem; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center; }

  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }

  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--reverse .split__media { order: 2; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.75rem; }
  .page-banner { padding-block: 4.25rem; }
}

/* --- Motion preferences -------------------------------------------------- */
@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;
  }
}
