/* ============================================================
   Palazzi Venice — editorial venetian
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --ivory: #F5F0E6;
  --ivory-warm: #FAF6EE;
  --ink: #1A1410;
  --ink-soft: #3A3128;
  --muted: #6B5F4D;
  --rule: #D9CFBC;
  --rule-soft: #E8DFCD;
  --bordeaux: #7A1E1E;
  --bordeaux-deep: #5C1515;
  --gold: #A47B3C;
  --gold-soft: #C8A86B;
  --gold-ink: #7C5A22;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --max: 1340px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--bordeaux); color: var(--ivory); }

/* Skip link */
.skip {
  position: absolute; top: -40px; left: 1rem;
  background: var(--ink); color: var(--ivory);
  padding: .6rem 1rem; z-index: 1000; transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ============================================================ */
/* Typography                                                   */
/* ============================================================ */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }
.serif-italic { font-style: italic; font-weight: 400; }

p { font-size: 1rem; line-height: 1.7; max-width: 65ch; }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; font-weight: 400; line-height: 1.45; color: var(--ink-soft); max-width: 38ch; }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bordeaux);
}
.eyebrow--muted { color: var(--muted); }

.num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--gold-ink); font-size: 1rem;
}

/* ============================================================ */
/* Layout                                                       */
/* ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.divider { height: 1px; background: var(--rule); margin-block: 0; }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: .75rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: 1fr auto; gap: 2rem; }
}
.section-head__title { display: flex; align-items: baseline; gap: 1.25rem; }
.section-head__title .num { font-size: 1.1rem; }
.section-head__link {
  font-size: .8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.section-head__link:hover { color: var(--bordeaux); }

/* ============================================================ */
/* Header                                                       */
/* ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .55rem;
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 30px; height: 30px;
  border: 1px solid var(--bordeaux);
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.1rem; color: var(--bordeaux);
  align-self: center;
}
.brand:hover .brand__mark { background: var(--bordeaux); color: var(--ivory); transition: .3s; }

.nav { display: flex; gap: 2.25rem; align-items: center; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; }
.nav__link {
  font-size: .82rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; position: relative; padding: .5rem 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--bordeaux);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--bordeaux); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--bordeaux); }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 2px;
}
.menu-toggle__bars { display: block; width: 18px; height: 1px; background: var(--ink); position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 879.98px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h, 64px) 0 auto 0;
    z-index: 90;
    background: var(--ivory); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
    box-shadow: 0 20px 30px -25px rgba(26,20,16,.2);
    max-height: calc(100dvh - var(--header-h, 64px));
    overflow-y: auto;
    transform: translateY(-100%) translateY(calc(-1 * var(--header-h, 64px) - 4px));
    visibility: hidden;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s linear 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; letter-spacing: 0.08em; }
  body[data-menu-open] { overflow: hidden; }
}

/* ============================================================ */
/* Hero                                                         */
/* ============================================================ */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.1fr 1fr; } }

.hero__eyebrow { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.hero__eyebrow .line { flex: 0 0 38px; height: 1px; background: var(--gold); }

.hero__title { font-size: clamp(3rem, 7vw, 6.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.hero__title .it { font-style: italic; color: var(--bordeaux); font-weight: 500; }
.hero__title .am { display: block; }

.hero__lede { margin-top: 2rem; max-width: 42ch; }
.hero__cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__visual {
  aspect-ratio: 4/5;
  background: var(--ivory-warm);
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  display: flex; justify-content: space-between; align-items: end;
  font-size: .75rem; color: var(--ivory); letter-spacing: 0.1em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  pointer-events: none;
}

/* ============================================================ */
/* Buttons                                                      */
/* ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.6rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--ivory); }
.btn--primary:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); color: var(--ivory); }
.btn--ghost { border-color: var(--rule); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .25s, gap .25s var(--ease);
}
.text-link:hover { color: var(--bordeaux); gap: .85rem; }

/* ============================================================ */
/* Slider (horizontal scroll)                                  */
/* ============================================================ */
.slider {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem .25rem 2rem .25rem; margin-inline: -.25rem;
  scrollbar-color: var(--rule) transparent;
}
@media (min-width: 760px) { .slider { grid-auto-columns: minmax(300px, 380px); gap: 2rem; } }
.slider::-webkit-scrollbar { height: 4px; }
.slider::-webkit-scrollbar-thumb { background: var(--rule); }
.slider > * { scroll-snap-align: start; }

.slider-controls { display: flex; gap: .5rem; align-items: center; }
.slider-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.slider-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.slider-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ============================================================ */
/* Cards                                                        */
/* ============================================================ */
.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
}
.card__media {
  aspect-ratio: 4/5;
  background: var(--ivory-warm);
  position: relative; overflow: hidden;
  border: 1px solid var(--rule);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__category {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--ivory); color: var(--bordeaux);
  font-size: .65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: .4rem .65rem;
}
.card__num { font-family: var(--serif); font-style: italic; color: var(--gold-ink); font-size: .95rem; margin-top: 1rem; }
.card__title { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.15; margin-top: .25rem; transition: color .25s; }
.card:hover .card__title { color: var(--bordeaux); }
.card__desc { color: var(--muted); font-size: .92rem; margin-top: .5rem; max-width: 32ch; }
.card__meta { font-size: .72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: .9rem; }

/* Image placeholder (.ph) */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, transparent 49%, var(--rule-soft) 49%, var(--rule-soft) 51%, transparent 51%) 0 0/22px 22px,
    linear-gradient(45deg, transparent 49%, var(--rule-soft) 49%, var(--rule-soft) 51%, transparent 51%) 0 0/22px 22px,
    var(--ivory-warm);
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(26,20,16,0.04));
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.ph:has(> img)::after { display: none; }

/* When .ph is nested inside an aspect-ratio container, make it fill */
.hero__visual > .ph,
.place-hero__visual > .ph,
.card__media > .ph,
.cat-tile > .ph {
  position: absolute;
  inset: 0;
}
.place-hero__visual { position: relative; overflow: hidden; }

/* ============================================================ */
/* Categories grid                                              */
/* ============================================================ */
.cat-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }

.cat-tile {
  display: block; position: relative; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid var(--rule); background: var(--ivory-warm);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,20,16,0.7) 100%);
}
.cat-tile__label {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  color: var(--ivory);
}
.cat-tile__label .num { color: var(--gold-soft); font-size: .85rem; }
.cat-tile__label .name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-top: .35rem; display: block; }
.cat-tile__label .count { font-size: .7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,240,230,0.7); margin-top: .5rem; display: block; }

/* ============================================================ */
/* Catalog (places list)                                        */
/* ============================================================ */
.cat-section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.cat-section__title {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.cat-section__title .num { font-size: 1rem; }
.cat-section__title h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cat-section__title .count { margin-left: auto; font-size: .75rem; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; }

.places-grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ============================================================ */
/* Place page                                                   */
/* ============================================================ */
.place-hero {
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 980px) { .place-hero { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.place-hero__visual {
  aspect-ratio: 4/5; border: 1px solid var(--rule);
}
.place-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.place-hero__title { font-size: clamp(2.5rem, 6vw, 4.75rem); margin-top: 1.25rem; }
.place-hero__sub { color: var(--muted); margin-top: .85rem; font-size: .82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.place-hero__lede { margin-top: 1.75rem; }

.place-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.place-section__head { display: flex; align-items: baseline; gap: 1.25rem; margin-bottom: 2rem; }
.place-section__head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.place-prose { display: grid; gap: 1.5rem; max-width: 70ch; }
.place-prose p { font-size: 1.05rem; }
.place-prose .pullquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.75rem);
  border-left: 2px solid var(--bordeaux); padding-left: 1.25rem;
  color: var(--ink-soft); margin-block: 1rem;
}

.highlights {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 760px) { .highlights { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.highlight__num {
  font-family: var(--serif); font-style: italic; color: var(--gold-ink);
  font-size: 1.1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--rule);
}
.highlight h3 { margin-top: 1rem; font-size: 1.4rem; }
.highlight p { margin-top: .65rem; color: var(--muted); }

.visit {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .visit { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.visit dl { display: grid; grid-template-columns: max-content 1fr; gap: .85rem 1.5rem; }
.visit dt {
  font-size: .72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  padding-top: .15rem;
}
.visit dd { font-size: 1rem; color: var(--ink); }
.visit dd a { border-bottom: 1px solid var(--rule); transition: color .25s; }
.visit dd a:hover { color: var(--bordeaux); }

.map {
  border: 1px solid var(--rule);
  background: var(--rule-soft);
  position: relative; overflow: hidden;
  margin: 0;
}
.map img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 8/5;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.96);
}
.map figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .5rem .75rem;
  font-size: .72rem; letter-spacing: 0.06em;
  background: rgba(245, 240, 230, 0.94);
  border-top: 1px solid var(--rule);
}
.map__coords {
  font-family: var(--sans); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.map figcaption a {
  color: var(--bordeaux); border-bottom: 1px solid currentColor;
  font-weight: 500;
}
.map figcaption a:hover { color: var(--bordeaux-deep); }

/* ============================================================ */
/* See also                                                     */
/* ============================================================ */
.see-also { padding-block: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--rule); background: var(--ivory-warm); }

/* ============================================================ */
/* Page header (catalog/category/about pages)                   */
/* ============================================================ */
.page-head {
  padding-block: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}
.page-head__inner { display: grid; gap: 1.5rem; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.page-head .lede { margin-top: 1rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--bordeaux); }
.crumbs .sep { color: var(--rule); }

/* ============================================================ */
/* About / Contact                                              */
/* ============================================================ */
.two-col { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col--lopsided { grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col--lopsided { grid-template-columns: 1.2fr 1fr; } }

/* ============================================================ */
/* Legal (long-form prose)                                      */
/* ============================================================ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.65rem; margin-top: 3rem; margin-bottom: 1rem; }
.legal h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .65rem; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { font-size: 1rem; color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.5rem; margin-top: .75rem; }
.legal li + li { margin-top: .5rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: .85rem 1rem; border: 1px solid var(--rule); }
.legal th { background: var(--ivory-warm); font-weight: 600; font-size: .78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal__meta { font-size: .82rem; color: var(--muted); padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.legal__caps { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }

/* ============================================================ */
/* Footer                                                       */
/* ============================================================ */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; margin-top: clamp(4rem, 8vw, 7rem); }
.site-footer .wrap { display: grid; gap: 3rem; }
.footer-top { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1; }
.footer-brand .it { font-style: italic; color: var(--gold-soft); }
.footer-tag { color: rgba(245,240,230,0.65); margin-top: 1rem; max-width: 32ch; font-size: .95rem; }
.footer-col h3 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: rgba(245,240,230,0.85); font-size: .92rem; transition: color .25s; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid rgba(245,240,230,0.12);
  font-size: .78rem; color: rgba(245,240,230,0.55);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a:hover { color: var(--ivory); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ============================================================ */
/* Cookie banner                                                */
/* ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: var(--ivory);
  border-top: 3px solid var(--bordeaux);
  padding: 1.1rem var(--gutter);
  display: flex; gap: 1.25rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.3);
  transform: translateY(0); transition: transform .35s var(--ease);
}
.cookie-banner[hidden] { display: flex !important; transform: translateY(110%); }
.cookie-banner p { font-size: .88rem; color: rgba(245,240,230,0.85); margin: 0; max-width: 60ch; }
.cookie-banner a { color: var(--gold-soft); border-bottom: 1px solid currentColor; }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner button {
  font-size: .72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: .65rem 1rem; border: 1px solid rgba(245,240,230,0.4); color: var(--ivory);
  transition: all .25s;
}
.cookie-banner button:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.cookie-banner button[data-consent="accept"] { background: var(--bordeaux); border-color: var(--bordeaux); }
.cookie-banner button[data-consent="accept"]:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); color: var(--ivory); }

/* Cookie modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(26,20,16,0.6);
  display: grid; place-items: center;
  padding: 1rem;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel {
  background: var(--ivory); color: var(--ink);
  width: min(560px, 100%); padding: 2rem; border: 1px solid var(--rule);
  max-height: 90vh; overflow-y: auto;
}
.cookie-modal h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 1rem; }
.cookie-modal__row {
  display: flex; justify-content: space-between; align-items: start; gap: 1rem;
  padding-block: 1rem; border-bottom: 1px solid var(--rule-soft);
}
.cookie-modal__row:last-of-type { border-bottom: 0; }
.cookie-modal__row h3 { font-size: 1rem; font-weight: 600; }
.cookie-modal__row p { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { position: absolute; inset: 0; background: var(--rule); border-radius: 12px; transition: background .25s; cursor: pointer; }
.toggle__track::before { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .toggle__track { background: var(--bordeaux); }
.toggle input:checked + .toggle__track::before { transform: translateX(20px); }
.toggle input:disabled + .toggle__track { opacity: .5; cursor: not-allowed; }
.cookie-modal__actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ============================================================ */
/* Animations                                                   */
/* ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
  .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .stagger.is-in > * { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* Utility                                                      */
/* ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* logo (brand) */
.brand__logo {
  display: inline-block;
  height: clamp(60px, 7vw, 88px); margin: -16px 0;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
