/* === Tokens === */
:root {
  --color-primary: #0F172A;
  --color-secondary: #1E3A8A;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-muted: #475569;
  --color-border: #E2E8F0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(2,6,23,0.06);
  --shadow-md: 0 10px 30px -12px rgba(2,6,23,0.18);
}

/* === Reset === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--color-accent); margin: 0 0 1rem; }
.sub { color: var(--color-muted); font-size: 1.1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding-block: 3.5rem; }
.section--alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .sub { max-width: 60ch; margin: 0 auto; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  border: 0; background: transparent; padding: .5rem;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-primary); }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); }
.primary-nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.primary-nav a { color: var(--color-primary); font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-accent); }

/* === Hero split === */
.hero { padding-block: 3rem; background: var(--color-neutral-light); }
.hero-split__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-split__text h1 { margin-bottom: 1rem; }
.hero-split__text .sub { max-width: 52ch; margin-bottom: 1.5rem; }
.hero-split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hero-split__grid--single { grid-template-columns: 1fr; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--color-secondary); color: #fff; }
.btn--primary:hover { background: #142c66; }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #a67104; }

/* === Intro section === */
.section--intro { background: var(--color-neutral-light); }
.section--intro h2 { text-align: center; }
.section--intro p { font-size: 1.075rem; }
.section--intro .narrow p { max-width: 65ch; margin-inline: auto; }

/* === Grid cards === */
.grid { display: grid; gap: 1.25rem; }
.grid--cards { grid-template-columns: 1fr; }
.grid--two { grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card .icon { color: var(--color-accent); margin-bottom: .75rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; }
a.card-link { display: block; color: inherit; }
a.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
a.card-link h3 { color: var(--color-primary); }

/* === Testimonial === */
.section--testimonial { background: #fff; }
.quote { margin: 0; text-align: center; }
.quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-style: italic;
}
.quote cite { color: var(--color-muted); font-style: normal; font-size: .95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: var(--color-neutral-light); padding-block: 3.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(248,250,252,0.85); margin-bottom: 1.5rem; }
.cta-band__inner { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }

/* === Article === */
.article { max-width: 68ch; margin-inline: auto; padding: 2.5rem 1.25rem 3rem; }
.article__head { margin-bottom: 1.5rem; }
.article__head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article__sub { font-size: 1.2rem; color: var(--color-muted); line-height: 1.5; }
.article__hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-block: 2rem; border-radius: var(--radius); }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; color: #1e293b; }
.back-link { margin-top: 3rem; font-weight: 500; }
.back-link a { color: var(--color-secondary); }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; background: #fff; padding: 1.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(248,250,252,0.8); padding-top: 3rem; margin-top: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: rgba(248,250,252,0.8); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer .logo img { height: 60px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.site-footer .tagline { color: rgba(248,250,252,0.7); font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer address { font-style: normal; font-size: .95rem; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.site-footer__copy { border-top: 1px solid rgba(248,250,252,0.12); padding-block: 1.25rem; font-size: .85rem; color: rgba(248,250,252,0.65); }

/* === 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.1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  border: 0; padding: .55rem .9rem; border-radius: 6px; font-weight: 500; font-size: .9rem;
  background: rgba(248,250,252,0.12); color: var(--color-neutral-light);
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions button:hover { filter: brightness(1.1); }
.cookie-banner__prefs { margin-top: .9rem; display: grid; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button {
  margin-top: .5rem;
  align-self: flex-start;
  border: 0; padding: .5rem .9rem; border-radius: 6px;
  background: var(--color-neutral-light); color: var(--color-primary); font-weight: 500;
}

/* === Responsive === */
@media (min-width: 640px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--two { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-footer .logo img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; border: 0; background: transparent; }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 1.5rem; }
  .hero-split__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero { padding-block: 5rem; }
  .section { padding-block: 5rem; }
  .cta-band__inner { grid-template-columns: 2fr 1fr; }
  .cta-band__inner .btn { justify-self: end; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 3rem; }
}
@media (min-width: 960px) {
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
}
