/* ===== Fonts ===== */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ===== Design tokens ===== */
:root {
  --color-bg: #F7F5F2;
  --color-surface: #FFFFFF;
  --color-brand: #2F5E56;
  --color-brand-dark: #234A44;
  --color-accent: #A8493A;
  --color-text-strong: #2B2A28;
  --color-text-muted: #6B6560;
  --color-brand-soft: #7FA39C;
  --color-accent-soft: #D98A82;
  --color-gold: #8C6425;
  --color-gold-shimmer: #C9A227;

  --font-display: "Bricolage Grotesque", "Poppins", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-hero: clamp(2.75rem, 1.9rem + 3vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --max-width: 1240px;

  --shadow-soft: 0 12px 30px -12px rgba(43, 42, 40, 0.18);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-strong);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 var(--space-4); color: var(--color-text-strong); overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 var(--space-4); color: var(--color-text-muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-brand); color: #fff;
  padding: var(--space-3) var(--space-4); z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}
@media (min-width: 768px) {
  .section-inner { padding: var(--space-24) var(--space-8); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-base);
  min-height: 44px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn--primary { background: var(--color-brand); color: #fff; }
.btn--primary:hover { background: var(--color-brand-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--color-text-strong); border: 1.5px solid rgba(43,42,40,0.25); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Logo mark ===== */
.logo-mark { width: 40px; height: 40px; overflow: visible; }
.logo-outline { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-spark { fill: currentColor; }
.logo-mark--decorative { width: 220px; height: 220px; color: rgba(255,255,255,0.6); }
.logo-mark--footer { width: 34px; height: 34px; color: #fff; }
.logo-mark--hero { width: 84px; height: 84px; color: #fff; margin-bottom: var(--space-4); position: relative; }

.logo-sweep {
  fill: rgba(255,255,255,0.85);
  mix-blend-mode: screen;
  filter: blur(6px);
  opacity: 0;
}
.logo-mark--animated .logo-sweep { animation: logoSweep 1.1s ease-out 0.3s 1; }
.logo-mark--animated .logo-spark--lg { animation: sparkFlash 260ms ease-out 1.05s 1, sparkIdle 6s ease-in-out 1.4s infinite; transform-origin: 83px 16px; }
.logo-mark--animated .logo-spark--md { animation: sparkFlash 260ms ease-out 1.2s 1, sparkIdle 6s ease-in-out 1.7s infinite; transform-origin: 20px 67px; }
.logo-mark--animated .logo-spark--sm { animation: sparkFlash 260ms ease-out 1.35s 1, sparkIdle 6s ease-in-out 2s infinite; transform-origin: 68px 77px; }

@keyframes logoSweep {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(140px); opacity: 0; }
}
@keyframes sparkFlash {
  0% { transform: scale(0.4); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes sparkIdle {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-sweep { display: none; }
  .logo-mark--animated .logo-spark--lg,
  .logo-mark--animated .logo-spark--md,
  .logo-mark--animated .logo-spark--sm { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 242, 0.96);
  border-bottom: 1px solid rgba(43,42,40,0.08);
}
.nav {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  color: var(--color-brand);
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-strong); }
.nav__brand .logo-mark { color: var(--color-brand); }
.nav__wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); line-height: 1.1; display: flex; flex-direction: column; }
.nav__wordmark small { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text-muted); }

.nav__links { display: flex; gap: var(--space-8); font-weight: 600; }
.nav__links a { padding: var(--space-2) 0; position: relative; }
.nav__links a:hover { color: var(--color-brand); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--color-brand); transition: width 200ms ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__menu { display: flex; align-items: center; gap: var(--space-8); }
.nav__cta { display: none; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-text-strong); margin: 0 auto; transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 899px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0; top: 64px;
    background: var(--color-surface);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: var(--space-8) var(--space-6); gap: var(--space-8);
    transform: translateX(100%); transition: transform 260ms ease;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__links { flex-direction: column; gap: var(--space-6); font-size: var(--text-lg); }
  .nav__cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav__cta { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(24,32,30,0.15) 0%, rgba(20,26,24,0.55) 55%, rgba(16,20,19,0.86) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: var(--space-16) var(--space-6) var(--space-24);
}
.hero__title {
  font-size: var(--text-hero);
  color: #fff;
  max-width: 16ch;
  margin-bottom: var(--space-4);
}
.hero__subtitle {
  color: rgba(255,255,255,0.88);
  font-size: var(--text-md);
  max-width: 44ch;
  margin-bottom: var(--space-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero .btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; }

@media (min-width: 768px) {
  .hero__content { padding: var(--space-24) var(--space-8) var(--space-32); }
}

/* ===== USP strip ===== */
.usp { background: var(--color-brand); color: #fff; }
.usp__list {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--space-6);
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
  font-weight: 600; font-size: var(--text-sm);
}
.usp__list li { display: flex; align-items: center; gap: var(--space-3); }
.usp .icon { width: 20px; height: 20px; flex-shrink: 0; stroke: #fff; }
@media (min-width: 768px) {
  .usp__list { grid-template-columns: repeat(4, 1fr); padding: var(--space-6) var(--space-8); }
}

/* ===== Services ===== */
.services__grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-8);
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
  display: block;
  min-width: 0;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(43,42,40,0.24); }
.service-card h3 { color: var(--color-brand); font-size: var(--text-lg); }
.service-card__link { color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); }

/* ===== Editorial ===== */
.editorial { background: var(--color-brand-dark); }
.editorial__grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .editorial__grid { grid-template-columns: 0.9fr 1.1fr; }
}
.editorial__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.45);
  border: 1px solid rgba(201,162,39,0.35);
}
.editorial__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.editorial__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px 10px rgba(16,20,19,0.35);
  pointer-events: none;
}
.editorial__text h2 { color: #fff; font-size: var(--text-2xl); }
.editorial__text p { color: rgba(255,255,255,0.82); font-size: var(--text-md); max-width: 40ch; }

/* ===== Gallery ===== */
.gallery { background: var(--color-surface); }
.gallery__grid {
  margin-top: var(--space-8);
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery__item {
  position: relative; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease, filter 320ms ease; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(1.03); }

/* ===== Prices ===== */
.prices { background: var(--color-bg); }
.price-group { margin-top: var(--space-8); }
.price-group h3 { color: var(--color-accent); font-size: var(--text-xl); border-bottom: 2px solid var(--color-accent-soft); padding-bottom: var(--space-2); }
.price-list div {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(43,42,40,0.1);
  transition: background 200ms ease;
}
.price-list div:hover { background: rgba(201,162,39,0.08); }
.price-list dt { color: var(--color-text-strong); font-weight: 500; }
.price-list dd { margin: 0; font-weight: 700; white-space: nowrap; }
.price-tag { color: var(--color-gold); font-weight: 600; font-size: var(--text-sm); }
.prices__note { margin-top: var(--space-8); font-size: var(--text-md); color: var(--color-brand); font-weight: 600; max-width: none; }

/* ===== About ===== */
.about { background: var(--color-brand-soft); }
.about__grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1.4fr 1fr; }
}
.about__text h2 { color: var(--color-text-strong); }
.about__text p { color: #2b3f3a; }
.chip {
  display: inline-block; background: var(--color-surface); color: var(--color-brand);
  font-weight: 600; font-size: var(--text-sm); padding: var(--space-2) var(--space-4);
  border-radius: 999px;
}
.about__mark { display: flex; justify-content: center; }

/* ===== Contact ===== */
.contact { background: var(--color-surface); }
.contact__grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1.2fr 1fr; }
}
.contact__card address { font-style: normal; color: var(--color-text-muted); margin-bottom: var(--space-4); font-size: var(--text-md); }
.contact__intro { max-width: 42ch; margin-bottom: var(--space-6); }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.contact__route { color: var(--color-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); }
.hours th, .hours td { text-align: left; padding: var(--space-2) 0; border-bottom: 1px solid rgba(43,42,40,0.1); font-weight: 500; }
.hours th { color: var(--color-text-strong); font-weight: 600; vertical-align: top; }
.hours td { color: var(--color-text-muted); text-align: right; }
.hours-note { display: block; color: var(--color-accent); font-weight: 600; font-size: var(--text-xs); }

.social { display: flex; gap: var(--space-3); }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  transition: background 180ms ease, transform 180ms ease;
}
.social a:hover { background: var(--color-accent); transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--color-brand-dark); color: rgba(255,255,255,0.85); }
.footer__grid { display: grid; gap: var(--space-6); justify-items: start; padding-top: var(--space-12); padding-bottom: var(--space-12); }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); }
.footer__wordmark { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: var(--text-md); }
.footer__meta a { text-decoration: underline; text-underline-offset: 3px; }
.social--footer a { background: rgba(255,255,255,0.12); }
.social--footer a:hover { background: var(--color-accent); }
.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,20,18,0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.24); }
.lightbox__close { top: var(--space-6); right: var(--space-6); }
.lightbox__nav--prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .service-card, .gallery__item img, .btn { transition: none; }
}
