/* ============ TOKENS ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-wide: 1160px;

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}

:root {
  --color-bg: #f8f6f1;
  --color-surface: #fdfcf9;
  --color-surface-offset: #f1ede4;
  --color-border: #ddd7ca;
  --color-divider: #e7e2d6;
  --color-text: #1d2433;
  --color-text-muted: #5c6472;
  --color-text-faint: #a3a8b0;
  --color-text-inverse: #f8f6f1;
  --color-primary: #13306c;
  --color-primary-hover: #0e2451;
  --color-primary-soft: #e5e9f2;
  --color-accent: #8f6b2e;
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 265 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.25 0.02 265 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.02 265 / 0.14);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); font-weight: 500; }
p, li, figcaption { text-wrap: pretty; max-width: 68ch; }
button { cursor: pointer; background: none; border: none; }
::selection { background: oklch(from var(--color-primary) l c h / 0.25); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container { width: min(var(--content-wide), 100% - clamp(2rem, 6vw, 5rem)); margin-inline: auto; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-3); }
.header__logo { height: 54px; width: auto; }
.header__nav { display: flex; gap: var(--space-6); }
.header__nav a {
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  color: var(--color-text-muted); letter-spacing: 0.01em;
}
.header__nav a:hover { color: var(--color-primary); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
}
.btn--sm { padding: var(--space-2) var(--space-4); }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); }
.btn--ghost { color: var(--color-primary); border: 1px solid var(--color-border); background: transparent; }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.btn--light { background: var(--color-bg); color: var(--color-primary); overflow-wrap: anywhere; }
.btn--light:hover { box-shadow: var(--shadow-md); }

/* ============ TYPE HELPERS ============ */
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-4);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-lg); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section--offset { background: var(--color-surface-offset); }
.section__lead { color: var(--color-text-muted); margin-bottom: var(--space-10); }

/* ============ HERO ============ */
.hero { padding-block: clamp(var(--space-12), 6vw, var(--space-24)); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center;
}
.hero__copy h1 { margin-bottom: var(--space-5); }
.hero__lead { font-size: var(--text-lg); font-weight: 400; color: var(--color-text-muted); line-height: 1.5; margin-bottom: var(--space-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.hero__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.hero__media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero__media figcaption { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); }

/* ============ STRIP ============ */
.strip { border-block: 1px solid var(--color-divider); background: var(--color-surface); }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
  gap: var(--space-6); padding-block: var(--space-6);
}
.strip__item { display: flex; flex-direction: column; gap: var(--space-1); }
.strip__num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary); }
.strip__label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); }
.about__body p + p { margin-top: var(--space-4); }
.about__body p { color: var(--color-text-muted); }
.about__body p:first-child { color: var(--color-text); font-size: var(--text-lg); line-height: 1.5; }

/* ============ CARDS ============ */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); margin-top: var(--space-10);
}
.card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.card__num { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--color-accent); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ BEFORE / AFTER ============ */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.ba figcaption { font-size: var(--text-sm); font-weight: 500; margin-top: var(--space-3); color: var(--color-text-muted); }
.ba__frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); background: var(--color-surface-offset);
}
.ba__frame > img { width: 100%; height: 100%; object-fit: cover; }
.ba__before {
  position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 50%;
  border-right: 2px solid #fff;
}
.ba__before img { width: auto; height: 100%; max-width: none; object-fit: cover; }
.ba__frame input[type='range'] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-md);
}
.ba__handle span::before {
  content: '\2194'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #13306c; font-size: 15px;
}
.ba__tag {
  position: absolute; bottom: var(--space-3); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px;
  border-radius: var(--radius-sm); background: oklch(0.2 0.02 265 / 0.65); color: #fff;
  pointer-events: none;
}
.ba__tag--before { left: var(--space-3); }
.ba__tag--after { right: var(--space-3); }

/* ============ GALLERY ============ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin-top: var(--space-12);
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* ============ CTA ============ */
.cta { background: #13306c; color: #f8f6f1; padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.cta__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center;
}
.cta h2 { color: #fff; font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.cta p { color: oklch(0.85 0.02 265); }
.cta__action { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta .btn--light { background: #f8f6f1; color: #13306c; }
.cta__hint { font-size: var(--text-xs); color: oklch(0.75 0.03 265); }

/* ============ FOOTER ============ */
.footer { background: #101827; color: #b9bec9; padding-block: var(--space-16) var(--space-8); }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: var(--space-8); padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(0.35 0.02 265 / 0.5);
}
.footer__brand img { height: 64px; width: auto; margin-bottom: var(--space-4); }
.footer__brand p { font-family: var(--font-display); font-size: var(--text-base); color: #dfe3ea; }
.footer__col h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8d94a3; margin-bottom: var(--space-3);
}
.footer__col a { color: #dfe3ea; text-decoration: none; font-size: var(--text-sm); overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; }
.footer__col p, .footer__col address { font-style: normal; font-size: var(--text-sm); line-height: 1.7; }
.footer__legal { padding-top: var(--space-6); }
.footer__legal p { font-size: var(--text-xs); color: #6d7482; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .hero__grid, .about__grid, .cta__inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

/* Contact form */
.contact-form { width: 100%; display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.85 0.02 265); }
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: var(--text-sm);
  color: #1d2433;
  background: #fdfcf9;
  border: 1px solid oklch(0.55 0.04 265);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #8f6b2e;
  box-shadow: 0 0 0 3px oklch(0.55 0.09 75 / 0.3);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta__email-link { color: #f8f6f1; text-decoration: underline; text-underline-offset: 2px; }
.form-success { background: oklch(0.45 0.07 150); color: #fff; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
