/* Google Fonts – Barlow Condensed (Display) + Inter (Body) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #172126;
  --muted: #5a6870;
  --soft: #f4f1ec;
  --paper: #ffffff;
  --line: #ded8cf;
  --slate: #273239;
  --roof: #9d2f25;
  --roof-dark: #732019;
  --sand: #d9c8ae;
  --focus: #f2b84b;
  --shadow: 0 22px 55px rgba(23, 33, 38, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img, svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── HEADER ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 33, 38, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  transition: box-shadow 280ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 28px rgba(23, 33, 38, 0.13);
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.topbar a {
  color: var(--sand);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms;
}

.topbar a:hover {
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
  transition: min-height 260ms ease;
}

.site-header.is-scrolled .nav-inner {
  min-height: 60px;
}

/* ── BRAND ───────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
  transition: opacity 180ms;
}

.brand:hover {
  opacity: 0.82;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  color: var(--roof);
  transition: background 200ms, color 200ms;
}

.brand:hover .brand-mark {
  background: var(--ink);
  color: var(--sand);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── NAV ─────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 33, 38, 0.18);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
}

.nav-toggle:hover {
  background: var(--soft);
  border-color: rgba(23, 33, 38, 0.28);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--slate);
  transition: color 180ms, background 180ms;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--roof);
  background: rgba(157, 47, 37, 0.07);
}

/* ── BUTTONS ─────────────────────────────────────── */
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--roof);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--roof-dark);
  box-shadow: 0 8px 24px rgba(157, 47, 37, 0.28);
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  background: var(--ink);
}

.button.secondary:hover {
  background: var(--slate);
  box-shadow: 0 8px 22px rgba(23, 33, 38, 0.26);
}

.button.ghost {
  border-color: rgba(23, 33, 38, 0.2);
  background: #fff;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--roof);
  color: var(--roof);
  background: rgba(157, 47, 37, 0.04);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(23, 33, 38, 0.93), rgba(23, 33, 38, 0.78)),
    repeating-linear-gradient(135deg, #263137 0 18px, #303d44 18px 36px);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -24vw auto;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(ellipse, rgba(157, 47, 37, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.68fr);
  gap: 54px;
  align-items: center;
  min-height: 680px;
  padding: 74px 0 82px;
}

/* ── TYPOGRAPHY ──────────────────────────────────── */
.eyebrow {
  margin: 0 0 14px;
  color: var(--sand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.7rem, 6.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── TRUST PILLS (pill-style) ────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-pill {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ── HERO PANEL ──────────────────────────────────── */
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ── IMAGE PLACEHOLDER ───────────────────────────── */
.placeholder-image {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(157, 47, 37, 0.14), rgba(217, 200, 174, 0.16)),
    repeating-linear-gradient(135deg, rgba(23, 33, 38, 0.07) 0 12px, transparent 12px 24px);
  color: var(--slate);
  font-weight: 700;
  text-align: center;
}

.hero .placeholder-image {
  min-height: 320px;
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── PHOTO CARD ──────────────────────────────────── */
.photo-card {
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 16px 38px rgba(23, 33, 38, 0.08);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-card:hover img {
  transform: scale(1.03);
}

.photo-card figcaption {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.68;
}

.hero .photo-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero .photo-card img {
  min-height: 320px;
}

.hero .photo-card figcaption {
  color: rgba(255, 255, 255, 0.52);
}

/* ── SECTIONS ────────────────────────────────────── */
.section {
  padding: 92px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-head p,
.page-intro p {
  max-width: 710px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.dark .section-head p,
.dark .text-muted {
  color: rgba(255, 255, 255, 0.72);
}

/* ── GRID ────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── CARD ────────────────────────────────────────── */
.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(23, 33, 38, 0.055);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-left-color 240ms ease,
    box-shadow 240ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-left-color: var(--roof);
  box-shadow: 0 20px 48px rgba(23, 33, 38, 0.11);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(157, 47, 37, 0.1);
  color: var(--roof);
  transition: background 220ms, color 220ms;
}

.card:hover .icon {
  background: var(--roof);
  color: #fff;
}

.card p,
.content p,
.content li {
  color: var(--muted);
  line-height: 1.65;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--roof);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 180ms;
}

.card a:hover {
  gap: 9px;
}

/* ── SPLIT ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 54px;
  align-items: center;
}

/* ── LISTS ───────────────────────────────────────── */
.check-list,
.link-list {
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.check-list li,
.link-list a {
  position: relative;
  padding-left: 28px;
  font-size: 0.97rem;
}

.check-list li::before,
.link-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 3px;
  transform: rotate(-35deg);
  background: var(--roof);
  border-radius: 2px;
}

.link-list a {
  display: block;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms;
}

.link-list a:hover {
  color: var(--roof);
}

/* ── STEPS ───────────────────────────────────────── */
.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding-left: 72px;
}

.step::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--roof);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

/* ── PAGE HERO (sub-pages) ───────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 82px 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -20vw auto;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(ellipse, rgba(157, 47, 37, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--sand);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.65;
}

/* ── CONTENT (text pages) ────────────────────────── */
.content {
  max-width: 820px;
}

.content h2 {
  margin-top: 44px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

.content h3 {
  margin-top: 28px;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.faq-item:hover {
  box-shadow: 0 6px 22px rgba(23, 33, 38, 0.08);
}

.faq-item[open] {
  border-color: rgba(157, 47, 37, 0.28);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.01rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 200ms;
}

.faq-item[open] .faq-question {
  color: var(--roof);
}

.faq-question svg {
  flex: 0 0 auto;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-question svg {
  transform: rotate(45deg);
}

/* smooth accordion via max-height */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 420ms ease;
}

.faq-item[open] .faq-answer {
  max-height: 500px;
  padding-bottom: 22px;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 36px;
  align-items: start;
}

.contact-data {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.contact-data a {
  color: var(--sand);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms;
}

.contact-data a:hover {
  color: #fff;
}

/* ── FORM ────────────────────────────────────────── */
.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid rgba(23, 33, 38, 0.2);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms, box-shadow 180ms;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--roof);
  box-shadow: 0 0 0 3px rgba(157, 47, 37, 0.12);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-status {
  min-height: 24px;
  font-weight: 700;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  padding: 62px 0 90px;
  background: #111920;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.site-footer strong {
  display: block;
  margin-bottom: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 180ms;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  font-size: 0.93rem;
}

/* ── MOBILE CONTACT BAR ──────────────────────────── */
.mobile-contact-bar {
  display: none;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .cards-4,
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 117px 0 auto 0;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 117px);
    overflow: auto;
    padding: 12px 20px 24px;
    border-top: 1px solid rgba(23, 33, 38, 0.1);
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(0.25, 1, 0.5, 1), opacity 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(23, 33, 38, 0.08);
    font-size: 1rem;
  }

  .hero-grid {
    padding: 54px 0 60px;
  }

  .trust-row,
  .cards-4,
  .cards-3,
  .cards-2,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .section-head {
    display: block;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(23, 33, 38, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 36px rgba(23, 33, 38, 0.18),
      0 0 0 1px rgba(23, 33, 38, 0.05);
    backdrop-filter: blur(12px);
  }

  .mobile-contact-bar .button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 440px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .hero-grid {
    padding: 48px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
