/* ---------- Base / tokens ---------- */
:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f1ede6;
  --color-ink: #201d1a;
  --color-ink-soft: #57524b;
  --color-accent: #b3492b;
  --color-accent-ink: #ffffff;
  --color-border: #e2dbcf;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-w: 1140px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(32, 29, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: #963c22; }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--outline:hover { background: var(--color-accent); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a { color: var(--color-ink-soft); }
.main-nav a:hover { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-link:hover { background: var(--color-bg-alt); color: var(--color-accent); }

.lang-toggle {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav a {
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}
.mobile-nav.is-open { display: flex; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86vh;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.35) 0%, rgba(20, 17, 14, 0.55) 55%, rgba(20, 17, 14, 0.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1d9cd;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 18px;
}
.hero__tagline {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: #f1ede6;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section-cta { text-align: center; margin-top: 40px; }

.about { max-width: 720px; text-align: center; }
.about h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.about p { font-size: 1.05rem; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.45s ease;
}
.carousel__slide {
  flex: 0 0 100%;
  position: relative;
}
.carousel__slide a { display: block; position: relative; }
.carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.carousel__slide a:hover .carousel__caption,
.carousel__slide a:focus .carousel__caption { opacity: 1; }
.carousel__empty {
  list-style: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-ink-soft);
  width: 100%;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--color-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.carousel__nav--prev { left: -8px; }
.carousel__nav--next { right: -8px; }
.carousel__nav:hover { background: var(--color-accent); color: #fff; }
.carousel__nav[hidden] { display: none; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carousel__dots button.is-active { background: var(--color-accent); width: 22px; border-radius: 4px; }

@media (min-width: 640px) {
  .carousel__slide { flex-basis: 50%; }
}
@media (min-width: 960px) {
  .carousel__slide { flex-basis: 33.3333%; }
}

/* ---------- Exhibition ---------- */
.exhibition-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.exhibition-card__media { background: var(--color-bg-alt); }
.exhibition-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.exhibition-card__body { padding: 40px; }
.exhibition-card__body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.exhibition-card__meta { font-size: 0.92rem; margin-bottom: 6px; }
.exhibition-card__meta span:first-child { font-weight: 600; color: var(--color-ink); }
.exhibition-empty {
  text-align: center;
  padding: 40px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

@media (min-width: 760px) {
  .exhibition-card { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact__info h3 { font-size: 1.2rem; margin-bottom: 20px; }
.contact__info p { margin-bottom: 20px; }
.contact__info a:hover { color: var(--color-accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--color-ink); }
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(179, 73, 43, 0.15);
}
.form-row--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: #2f7a3d; }
.form-status.is-error { color: #b3302b; }

@media (min-width: 780px) {
  .contact__grid { grid-template-columns: 0.9fr 1.4fr; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 28px 0; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--color-ink-soft); }
