:root {
  --color-primary: #1E3A8A;
  --color-secondary: #1E40AF;
  --color-accent: #B45309;
  --color-neutral-dark: #0F172A;
  --color-neutral-light: #F8FAFC;
  --color-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.12);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --shadow-card: 0 30px 60px -30px rgba(15, 23, 42, 0.25);
  --radius-lg: 24px;
  --radius-md: 12px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-neutral-dark);
  background: linear-gradient(180deg, #eef2fb 0%, var(--color-neutral-light) 40%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.005em; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

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

/* === Layout helpers === */
.container { width: 100%; max-width: 1160px; 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(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: 1160px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.logo--footer img { height: 72px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--color-border); border-radius: 8px;
  align-items: center;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-neutral-dark); }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); }
.primary-nav ul { list-style: none; margin: 0; padding: 0.75rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav a { display: block; padding: 0.6rem 0.25rem; text-decoration: none; color: var(--color-neutral-dark); font-weight: 400; border-radius: 6px; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }

@media (min-width: 900px) {
  .logo img, .logo--footer img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: transparent; border: 0; }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 1.75rem; }
  .primary-nav a { padding: 0.25rem 0; }
}

/* === Hero card === */
.hero-card-wrap {
  padding: 3rem 1.25rem 2rem;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(30, 64, 175, 0.10), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(180, 83, 9, 0.08), transparent 60%);
}
.hero-card {
  max-width: 880px; margin-inline: auto;
  padding: 2.5rem 1.5rem;
  background: var(--color-neutral-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.hero-card h1 { max-width: 28ch; }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; }
.hero-cta { margin: 1.75rem 0 0; }
.hero-card__figure {
  margin: 2rem 0 0;
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe6f5;
}
.hero-card__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .hero-card-wrap { padding: 5rem 1.5rem 3rem; }
  .hero-card { padding: 4rem; }
  .hero-card__figure { margin-top: 2.5rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn--primary:hover { background: var(--color-secondary); color: var(--color-neutral-light); transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(30, 58, 138, 0.5); }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-light); }
.btn--accent:hover { background: #92400e; color: var(--color-neutral-light); transform: translateY(-1px); }

/* === Sections === */
.section { padding: 3.5rem 0; }
.section--intro { text-align: left; }
.section--intro .container--narrow h2 { margin-bottom: 1rem; }
.section--alt { background: #eef2fb; }
.section__title { margin-bottom: 2rem; text-align: center; }

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

/* === Cards grid === */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.15);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(30, 64, 175, 0.09); color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.98rem; }

@media (min-width: 640px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Testimonial === */
.section--testimonial { background: var(--color-primary); color: var(--color-neutral-light); }
.section--testimonial h2, .section--testimonial p, .section--testimonial cite { color: var(--color-neutral-light); }
.testimonial { margin: 0; text-align: center; }
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45; font-style: italic;
  max-width: 40ch; margin: 0 auto 1.25rem;
}
.testimonial cite { font-style: normal; font-size: 0.95rem; letter-spacing: 0.06em; opacity: 0.85; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-neutral-light);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2, .cta-band p { color: var(--color-neutral-light); }
.cta-band p { max-width: 55ch; margin-inline: auto; opacity: 0.92; }
.cta-band .btn--accent { margin-top: 0.5rem; }

/* === Contact card === */
.contact-card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.contact-card p { margin: 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-secondary); outline-offset: 1px; border-color: var(--color-secondary);
}
.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.88rem; color: var(--color-muted);
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }
.contact-form .btn { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; margin: 0 0 0.75rem;
}
.site-footer__grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--color-neutral-light); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer address { font-style: normal; font-size: 0.95rem; line-height: 1.7; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; font-size: 1.05rem; color: #e2e8f0; margin: 0.75rem 0 0; }
.footer-legal { margin-top: 1rem; font-size: 0.88rem; }
.copyright {
  max-width: 1160px; margin: 2rem auto 0; padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(203, 213, 225, 0.15);
  font-size: 0.82rem; color: #94a3b8;
}
.site-footer .logo--footer img { filter: brightness(0) invert(1); }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}

/* === 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; border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px; margin-inline: auto;
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: transparent; color: var(--color-neutral-light);
  font-size: 0.85rem; font-weight: 700;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent);
}
.cookie-banner__actions button:hover { filter: brightness(1.1); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs button {
  margin-top: 0.5rem; justify-self: start;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--color-neutral-light); color: var(--color-neutral-dark);
  border: 0; font-weight: 700;
}
