/* === Root === */
:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --border-soft: rgba(2, 6, 23, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--color-secondary); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* === Layout helpers === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 760px; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}
.logo--footer img { height: 64px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-primary); border-radius: 2px; }

.primary-nav { display: none; width: 100%; }
.primary-nav.is-open { display: block; order: 3; }
.primary-nav ul {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.primary-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--border-soft);
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; padding: 0; }
  .primary-nav a { border: 0; padding: 0.25rem 0; position: relative; }
  .primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--color-accent);
  }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-neutral-light); }
.btn--primary:hover { background: #a76f03; }
.btn--accent { background: var(--color-neutral-light); color: var(--color-primary); }
.btn--accent:hover { background: #e2e8f0; }

/* === Hero (fullscreen archetype) === */
.hero--fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-neutral-light);
  text-align: center;
  padding: 6rem 1.25rem;
}
.hero--compact { min-height: 60vh; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.75));
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}
.hero--fullscreen h1 { color: var(--color-neutral-light); max-width: 22ch; margin-inline: auto; }
.hero__sub {
  color: rgba(248, 250, 252, 0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero .eyebrow { color: var(--color-accent); }

/* === Sections === */
.section { padding: 4.5rem 0; }
.section__header { text-align: center; margin-bottom: 3rem; max-width: 60ch; margin-inline: auto; }
.section--intro { padding: 4.5rem 0; }
.section--intro h2 { text-align: left; }
.section--intro p { font-size: 1.05rem; line-height: 1.75; }

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

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

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card svg { color: var(--color-accent); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; }
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(2, 6, 23, 0.35);
  border-color: var(--color-accent);
}

/* === Testimonial === */
.section--quote { background: var(--color-primary); color: var(--color-neutral-light); }
.section--quote blockquote {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-neutral-light);
}
.section--quote blockquote p { color: var(--color-neutral-light); margin-bottom: 1.5rem; }
.section--quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.7);
  letter-spacing: 0.05em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 4rem 1.25rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); max-width: 28ch; margin: 0 auto 1rem; }
.cta-band p { color: rgba(248, 250, 252, 0.75); max-width: 50ch; margin: 0 auto 2rem; }

/* === Stats === */
.stats-band { padding: 4rem 0; background: #fff; border-block: 1px solid var(--border-soft); }
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat__label { color: var(--color-secondary); max-width: 30ch; margin-inline: auto; font-size: 0.95rem; }

/* === Contact band === */
.section--contact-band .card { text-align: left; }
.section--contact-band a { color: var(--color-primary); }

/* === Form === */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-secondary); }
.form-consent input { margin-top: 0.25rem; }
.form-consent a { color: var(--color-accent); }

/* === FAQ === */
.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0.75rem 0 0; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, 0.75);
  padding: 4rem 0 2rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(248, 250, 252, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer p { color: rgba(248, 250, 252, 0.65); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__grid address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem !important; display: flex !important; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.5);
  margin: 0 1.25rem;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 9999;
  max-width: 480px;
  margin-inline: auto;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(248, 250, 252, 0.9); margin: 0 0 0.75rem; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner__actions button {
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-neutral-light);
}
.cookie-banner__prefs {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
}
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs button {
  justify-self: start;
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 0;
  background: var(--color-accent);
  color: var(--color-neutral-light);
  cursor: pointer;
}
