/* ============================================================
   Keiner & Co. — style.css
   Palette and type are locked to the brand. Edit copy in HTML.
   ============================================================ */

:root {
  --bg-dark: #0A0A0A;
  --bg-darkest: #060606;
  --bg-light: #F8F5EE;
  --text-dark: #F0F0F0;
  --text-light: #0A0A0A;
  --gold: #C89944;
  --muted: #8A8A8A;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 820px; }

section { padding-block: clamp(4rem, 9vw, 7rem); }

.section--dark  { background: var(--bg-dark);  color: var(--text-dark); }
.section--light { background: var(--bg-light); color: var(--text-light); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

.section__title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__title::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--gold); margin: 1.1rem auto 0;
}
strong, b { font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn--outline { color: var(--gold); background: transparent; }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--gold); color: var(--bg-dark); }
.btn--solid { color: var(--gold); background: transparent; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold); color: var(--bg-dark); }

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--gold); color: var(--bg-dark);
  font-weight: 600; font-size: .95rem; padding: .7rem 1.2rem; border-radius: 2px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 12px); }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__brand img { width: 78px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { font-size: .95rem; color: var(--text-dark); position: relative; }
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold); transition: width .2s ease;
}
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text-dark); transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 1rem; padding: 1.25rem var(--pad) 1.75rem; background: var(--bg-dark); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__mobile a:not(.btn) { font-size: 1.05rem; }
.nav__mobile .btn { text-align: center; }

/* ============================ HERO ============================ */
.hero {
  display: flex; align-items: center;
  background: var(--bg-dark);
  text-align: center;
  padding-block: 0;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 4vh, 2.5rem); padding-block: clamp(2.5rem, 8vh, 5.5rem); }
.hero__wordmark { width: clamp(420px, 92vw, 1120px); height: auto; }
.hero__headline { max-width: 32ch; }
.hero__subhead { max-width: 80ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dark); }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-top: .75rem; }
.hero__secondary { color: var(--muted); font-size: .95rem; }
.hero__secondary:hover { color: var(--gold); }

/* ============================ PROBLEM ============================ */
.problem__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.problem__copy h2 { margin-bottom: 1.5rem; }
.problem__copy p { margin-bottom: 1.1rem; max-width: 52ch; }
.problem__copy p:last-child { margin-bottom: 0; }
.problem__pains { display: grid; gap: .9rem; padding-top: .5rem; }
.problem__pains li {
  position: relative; padding-left: 1.75rem; font-weight: 600;
}
.problem__pains li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}

/* ============================ SERVICES ============================ */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.card {
  border: 1px solid rgba(255,255,255,.1);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255,255,255,.02);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card__icon { color: var(--gold); margin-bottom: 1.1rem; }
.card__icon svg { width: 40px; height: 40px; }
.card__name { margin-bottom: .65rem; }
.card__value { color: var(--text-dark); margin-bottom: 1.1rem; }
.card__list { display: grid; gap: .5rem; }
.card__list li { position: relative; padding-left: 1.25rem; color: var(--muted); font-size: .95rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 1px; background: var(--gold);
}

/* ============================ HOW WE WORK ============================ */
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }
.step { text-align: left; }
.step__num {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem); color: var(--gold); line-height: 1;
}
.step__head { margin: .5rem 0 .65rem; }
.step p { color: var(--text-light); max-width: 34ch; }

/* ============================ ABOUT ============================ */
.about__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__portrait { display: flex; justify-content: center; }
.about__portrait img {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
}
.about__copy h2 { margin-bottom: 1.4rem; }
.about__copy p { margin-bottom: 1.1rem; max-width: 60ch; }
.about__copy p:last-child { margin-bottom: 0; }

/* ============================ FAQ ============================ */
.accordion { display: grid; gap: 0; }
.acc { border-bottom: 1px solid rgba(10,10,10,.14); }
.acc:first-child { border-top: 1px solid rgba(10,10,10,.14); }
.acc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.4rem 0; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  color: var(--text-light); letter-spacing: -0.01em;
}
.acc__icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: var(--gold); transition: transform .25s ease;
}
.acc__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc__icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.acc__trigger[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }
.acc__panel { padding: 0 0 1.4rem; }
.acc__panel p { max-width: 64ch; color: var(--text-light); }

/* ============================ FINAL CTA ============================ */
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cta__head { max-width: 20ch; }
.cta__sub { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.cta__note { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.cta__note a { text-decoration: underline; text-underline-offset: 3px; }
.cta__note a:hover { color: var(--gold); }

/* ============================ FOOTER ============================ */
.footer { background: var(--bg-darkest); padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand img { width: 64px; height: auto; }
.footer__center p { color: var(--muted); font-size: .85rem; }
.footer__center a:hover { color: var(--gold); }
.footer__meta { display: flex; align-items: center; gap: 1.25rem; }
.footer__mn { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.footer__mn .star { color: var(--gold); }
.footer__icon { color: var(--muted); }
.footer__icon:hover { color: var(--gold); }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .problem__grid { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .about__grid { grid-template-columns: 1fr; text-align: center; }
  .about__copy p { max-width: none; }
  .about__portrait img { width: 180px; height: 180px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================ LEGAL PAGES ============================ */
.legal-nav { border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 100; background: var(--bg-dark); }
.legal-nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.legal-nav__brand img { width: 78px; height: auto; }
.legal-nav .legal-back { color: var(--muted); font-size: .95rem; }
.legal-nav .legal-back:hover, .legal-nav .legal-back:focus-visible { color: var(--gold); }

.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal .container { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-size: clamp(2rem, 5vw, 2.8rem); }
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.legal h2 { font-family: var(--serif); font-weight: 700; line-height: 1.2; font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 2.4rem; margin-bottom: .6rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .5rem; }
.legal a.inline { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal a.inline:hover { color: var(--text-dark); }
