/* === Tokens === */
:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-line: rgba(15, 23, 42, 0.12);
  --color-muted: #475569;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 12px 30px -18px rgba(2, 6, 23, 0.35);
  --container: 1160px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.15; margin: 0 0 1rem; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-primary:hover { background: var(--color-secondary); color: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-light); }
.btn-accent:hover { background: #a86f03; color: var(--color-neutral-light); }
.btn-ghost { background: transparent; color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.35); }
.btn-ghost:hover { background: rgba(248, 250, 252, 0.1); color: var(--color-neutral-light); }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-line);
  color: var(--color-primary); padding: 0.5rem; border-radius: var(--radius); cursor: pointer;
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-line);
  flex-direction: column; gap: 0;
}
.nav-list.is-open { display: flex; }
.nav-list li { border-top: 1px solid var(--color-line); }
.nav-list a {
  display: block; padding: 1rem 1.25rem;
  color: var(--color-primary); text-decoration: none; font-weight: 500;
}
.nav-list a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; position: static;
    flex-direction: row; gap: 2rem;
    background: transparent; border: 0;
  }
  .nav-list li { border: 0; }
  .nav-list a { padding: 0.5rem 0; }
}

/* === Hero (stacked) === */
.hero { padding-block: 3rem 2rem; }
.hero-inner { max-width: 780px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-image { margin: 2rem 0 2rem; }
.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}
.hero-cta { margin: 0; }

@media (min-width: 768px) {
  .hero { padding-block: 5rem 3rem; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-head { text-align: left; margin-bottom: 2rem; max-width: 60ch; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 0; }
.section-intro .container.narrow { text-align: left; }
.section-intro p { font-size: 1.075rem; color: var(--color-primary); }

/* === Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; color: var(--color-muted); font-size: 0.98rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(30, 58, 138, 0.08);
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.card-link {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-link:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(2, 6, 23, 0.4); color: inherit; }

/* === Testimonial === */
.section-testimonial { background: transparent; }
.pull-quote {
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 1rem;
}
.pull-quote cite {
  font-family: var(--font-body); font-style: normal;
  color: var(--color-muted); font-size: 0.95rem; font-weight: 500;
}
.testimonial-with-portrait {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  align-items: center;
}
.testimonial-portrait img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%;
  max-width: 220px;
}
@media (min-width: 768px) {
  .testimonial-with-portrait { grid-template-columns: 220px 1fr; }
}

/* === About split === */
.about-split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.about-image img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 900px) {
  .about-split { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
}

/* === Contact band on About === */
.contact-band {
  padding: 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: left;
}
.contact-line { color: var(--color-muted); font-size: 0.98rem; }

/* === CTA Band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding-block: 4rem;
}
.cta-band-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248, 250, 252, 0.85); font-size: 1.075rem; }

/* === FAQ === */
.section-faq details {
  border-bottom: 1px solid var(--color-line);
  padding: 1.1rem 0;
}
.section-faq details:first-of-type { border-top: 1px solid var(--color-line); }
.section-faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  font-size: 1.15rem; list-style: none; position: relative; padding-right: 2rem;
}
.section-faq summary::-webkit-details-marker { display: none; }
.section-faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 1.5rem; color: var(--color-accent); font-weight: 400;
  transition: transform 0.2s ease;
}
.section-faq details[open] summary::after { content: '−'; }
.section-faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 500; font-size: 0.95rem; color: var(--color-primary); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff; color: var(--color-primary);
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent);
}
.form-consent {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.9rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, 0.82);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; margin-bottom: 1rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(248, 250, 252, 0.82); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.footer-tag { color: rgba(248, 250, 252, 0.65); font-size: 0.95rem; }
.logo--footer img { height: 60px; filter: brightness(1.4); }
.site-footer address { font-style: normal; color: rgba(248, 250, 252, 0.82); line-height: 1.7; margin-bottom: 1rem; }
.legal-links { border-top: 1px solid rgba(248, 250, 252, 0.12); padding-top: 1rem; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding-top: 1.25rem; margin-top: 2.5rem;
  color: rgba(248, 250, 252, 0.55); font-size: 0.85rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  max-width: 720px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; color: rgba(248, 250, 252, 0.9); }
.cookie-banner p a { color: var(--color-accent); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }
.cookie-banner__prefs {
  display: grid; gap: 0.6rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid rgba(248, 250, 252, 0.15);
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs .btn { justify-self: start; margin-top: 0.5rem; }
