@import url("fonts.css");

/* ============================================================
   Villa Bougainvillea — design tokens
   ============================================================ */
:root {
  --sand:        #faf7f2;
  --sand-deep:   #f2ece3;
  --paper:       #ffffff;
  --ink:         #1b2523;
  --body:        #4a5754;
  --muted:       #7d8987;
  --sea:         #0e5b56;
  --sea-deep:    #093f3b;
  --sea-soft:    #e4efed;
  --bougain:     #b6255f;
  --line:        #e3ddd3;
  --line-soft:   #eee9e1;

  --shadow-sm: 0 1px 2px rgba(27,37,35,.06), 0 2px 8px rgba(27,37,35,.05);
  --shadow-md: 0 4px 12px rgba(27,37,35,.07), 0 14px 40px rgba(27,37,35,.08);
  --shadow-lg: 0 10px 30px rgba(27,37,35,.10), 0 30px 70px rgba(27,37,35,.12);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px;
  /* A sideways-scrollable page moves position:fixed elements out of view on
     phones. Clip rather than scroll, so one stray wide element cannot break
     the header. (clip, not hidden: hidden would make html a scroll container
     and break scroll-padding / sticky.) */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.14; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--sea); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius); font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand-deep); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bougain); margin-bottom: .9rem;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-title em { font-style: italic; color: var(--sea); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--body); margin-top: 1.1rem; }

.rule { width: 44px; height: 2px; background: var(--bougain); border: 0; margin: 1.4rem 0 0; }
.section-head--center .rule { margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { background:transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .875rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sea); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sea-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--sea); color: var(--sea); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9,25,23,.55), rgba(9,25,23,0));
  transition: opacity .35s var(--ease);
}
.site-header.is-stuck { background: rgba(250,247,242,.92); backdrop-filter: saturate(150%) blur(12px); border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(27,37,35,.06); }
.site-header.is-stuck::before { opacity: 0; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; position: relative; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; transition: filter .35s var(--ease); }
.site-header:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: #fff; padding-block: .35rem;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.site-header.is-stuck .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-header.is-stuck .nav a:hover { color: var(--sea); }

.header-cta { display: inline-flex; align-items: center; gap: .5rem; }
.header-cta .btn { padding: .6rem 1.25rem; font-size: .82rem; }
.site-header.is-stuck .btn--ghost { border-color: var(--sea); color: var(--sea); background: transparent; }
.site-header.is-stuck .btn--ghost:hover { background: var(--sea); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; position: relative; transition: background-color .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: inherit;
  transition: transform .3s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.site-header.is-stuck .nav-toggle span, .site-header.is-open .nav-toggle span { background: var(--ink); }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header.is-open { background: var(--sand); border-bottom-color: var(--line); }
  .site-header.is-open::before { opacity: 0; }
  .site-header.is-open .brand img { filter: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-top: 1px solid var(--line-soft);
    padding: .5rem var(--gutter) 1.5rem;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .4s var(--ease), visibility .4s;
  }
  .site-header.is-open .nav { max-height: 70vh; visibility: visible; overflow-y: auto; }
  .nav a { color: var(--ink); font-size: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav .nav-phone { color: var(--sea); font-weight: 600; border-bottom: 0; }
}
.nav-phone { display: none; }
@media (max-width: 900px) { .nav-phone { display: block; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--sea-deep); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 16s ease-out both; }
.hero-slide.is-active img { animation: heroDrift 16s ease-out both; }
@keyframes heroDrift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide img { animation: none; } }

.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(9,25,23,.62) 0%, rgba(9,25,23,.3) 42%, rgba(9,25,23,0) 72%),
    linear-gradient(to bottom, rgba(9,25,23,.42) 0%, rgba(9,25,23,.05) 32%, rgba(9,25,23,.2) 62%, rgba(9,25,23,.74) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(4rem, 9vw, 7rem); padding-top: 8rem; color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.6); }
.hero h1 {
  color: #fff; font-size: clamp(2.9rem, 8.5vw, 6.2rem); font-weight: 400;
  line-height: .98; letter-spacing: -.02em; max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 em { font-style: italic; }
.hero-sub {
  margin-top: 1.5rem; max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(0,0,0,.3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(4rem, 9vw, 7rem); z-index: 3; display: flex; flex-direction: column; gap: .7rem; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.75); background: transparent;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
@media (max-width: 700px) { .hero-dots { flex-direction: row; left: var(--gutter); right: auto; bottom: 1.6rem; } }

/* ============================================================
   Facts strip
   ============================================================ */
.facts { background: var(--sea); color: #fff; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.14);
}
.fact { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.8rem); border-right: 1px solid rgba(255,255,255,.14); }
.fact dt { font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: .5rem; }
.fact dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: #fff; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } .fact { border-bottom: 1px solid rgba(255,255,255,.14); } }

/* ============================================================
   Split / feature blocks
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media .stamp {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 1rem 1.35rem; text-align: center; border: 1px solid var(--line-soft);
}
.stamp strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--sea); line-height: 1; }
.stamp span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.spec-list { list-style: none; display: grid; gap: .55rem; margin-top: 1.6rem; }
.spec-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.spec-list li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: .62rem;
  border-radius: 50%; background: var(--bougain);
}

/* ============================================================
   Amenities
   ============================================================ */
.amenities { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.amenity { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.1rem); transition: background-color .3s var(--ease); }
.amenity:hover { background: var(--sea-soft); }
.amenity svg { width: 26px; height: 26px; stroke: var(--sea); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .95rem; }
.amenity h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: -.005em; }
.amenity p { font-size: .85rem; color: var(--muted); margin-top: .3rem; line-height: 1.6; }

.note {
  display: flex; gap: 1rem; align-items: center; margin-top: 1.75rem;
  background: var(--sea-soft); border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
  font-size: .9rem; color: var(--sea-deep);
}
.note img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   Gallery
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.25rem; }
.filter {
  padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--body);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter:hover { border-color: var(--sea); color: var(--sea); }
.filter[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.filter .count { opacity: .55; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); }
.tile {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; border-radius: var(--radius); background: var(--sand-deep);
  aspect-ratio: 4 / 3;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,25,23,.4), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile[hidden] { display: none; }
.tile.is-entering { animation: tileIn .45s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.gallery-more { display: flex; justify-content: center; margin-top: 2rem; }

/* ============================================================
   Location & map
   ============================================================ */
.map-frame {
  /* width MUST be stated. With only aspect-ratio + min-height the browser
     derives the width from the height (340 x 16/9 = 604px), which overflows a
     phone viewport and drags the fixed header off-screen. */
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--sand-deep); box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9; min-height: 300px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: .9rem; text-align: center; padding: 2rem;
  background: linear-gradient(150deg, var(--sea-soft), var(--sand-deep));
}
.map-consent p { max-width: 38ch; font-size: .9rem; color: var(--body); }
.map-consent svg { width: 34px; height: 34px; stroke: var(--sea); fill: none; stroke-width: 1.3; }

.directions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 1.5rem;
}
.direction { background: var(--paper); padding: 1.4rem 1.5rem; }
.direction dt { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.direction dd { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }

.callout {
  display: flex; gap: .9rem; margin-top: 1.5rem; padding: 1.15rem 1.4rem;
  border-radius: var(--radius-lg); background: #fdf3f7; border: 1px solid #f4dae5;
  font-size: .9rem; color: #7d1e44;
}
.callout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .22rem; stroke: var(--bougain); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.callout strong { color: #661636; }

/* ============================================================
   Beaches
   ============================================================ */
.beach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.beach {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.beach:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.beach-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-deep); }
.beach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.beach:hover .beach-img img { transform: scale(1.05); }
.beach-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.beach h3 { font-size: 1.55rem; }
.beach p { font-size: .9rem; margin-top: .7rem; }
.beach-access {
  margin-top: auto; padding-top: 1.1rem; display: flex; gap: .55rem; align-items: flex-start;
  font-size: .82rem; color: var(--sea); border-top: 1px solid var(--line-soft);
}
.beach-access svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .22rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--sea-deep); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background: url("../img/hero/slide4.jpg") center/cover no-repeat;
}
.contact > .wrap { position: relative; z-index: 1; }
.contact .eyebrow { color: #f0a9c4; }
.contact .section-title { color: #fff; }
.contact .section-title em { color: #8fd2c9; }
.contact .rule { background: #f0a9c4; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; display: grid; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.contact-list li { background: rgba(255,255,255,.05); padding: 1.15rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.contact-list svg { width: 19px; height: 19px; flex-shrink: 0; stroke: #8fd2c9; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-list .label { display: block; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact-list a, .contact-list span.value { color: #fff; font-size: 1.02rem; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: #8fd2c9; text-decoration: underline; }

.contact-aside { font-size: .92rem; }
.contact-aside .btn { margin-top: 1.4rem; }
.licence { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1.5rem; }
.licence div { font-size: .8rem; }
.licence dt { color: rgba(255,255,255,.5); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.licence dd { margin: .2rem 0 0; color: #fff; font-variant-numeric: tabular-nums; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #071f1d; color: rgba(255,255,255,.55); padding-block: 2.4rem; font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.site-footer a { color: rgba(255,255,255,.75); }
.footer-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(7,20,18,.96);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[open], .lightbox.is-open { display: block; }
.lightbox.is-visible { opacity: 1; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(3.5rem, 8vw, 5rem) clamp(1rem, 7vw, 5.5rem); }
.lb-figure { margin: 0; display: grid; place-items: center; gap: 1rem; max-width: 100%; max-height: 100%; }
.lb-img {
  max-width: 100%; max-height: calc(100svh - 11rem); width: auto; height: auto;
  object-fit: contain; border-radius: 2px; box-shadow: 0 24px 80px rgba(0,0,0,.5);
  transition: opacity .25s var(--ease);
}
.lb-img.is-loading { opacity: .35; }
.lb-caption { color: rgba(255,255,255,.66); font-size: .82rem; text-align: center; max-width: 60ch; }

.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; backdrop-filter: blur(8px);
  transition: background-color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn:disabled { opacity: .25; cursor: default; }
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); }
.lb-prev { left: clamp(.6rem, 2.5vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.6rem, 2.5vw, 1.75rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter {
  position: absolute; top: clamp(1rem, 3vw, 1.9rem); left: 50%; transform: translateX(-50%);
  font-size: .78rem; letter-spacing: .12em; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-img { max-height: calc(100svh - 9rem); }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .hero-dots, .filters, .gallery-more, .lightbox, .map-consent, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 40vh; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }
