/* ============================================================
   Thinadhoo City — shared stylesheet
   Palette: deep ocean ink, lagoon teal, coral, warm sand
   ============================================================ */

:root {
  --ink: #06222e;
  --ink-soft: #0d3442;
  --teal: #0e7c86;
  --lagoon: #2ec4b6;
  --lagoon-bright: #49e0d2;
  --coral: #ff6f61;
  --sand: #f7f4ee;
  --paper: #fdfcf9;
  --white: #ffffff;
  --text: #23343c;
  --text-muted: #5d7079;
  --line: rgba(6, 34, 46, 0.1);
  --shadow-sm: 0 2px 10px rgba(6, 34, 46, 0.07);
  --shadow-md: 0 10px 34px rgba(6, 34, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 34, 46, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }

::selection { background: var(--lagoon); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--lagoon), var(--teal));
  border-radius: 2px;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-lead { max-width: 640px; color: var(--text-muted); font-size: 1.06rem; }

.dhivehi {
  font-family: "MV Faseyha", "Faruma", "Noto Sans Thaana", sans-serif;
  direction: rtl;
}

/* ---------- Layout ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
section { padding: 96px 0; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(6, 30, 41, 0.94);
  box-shadow: 0 6px 30px rgba(4, 20, 28, 0.35);
}
.nav-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  color: #fff; font-size: 1.06rem; font-weight: 600; letter-spacing: 0.02em;
}
.brand-text span {
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--lagoon-bright), var(--lagoon));
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Pages without a dark hero get a permanently solid nav */
.nav.solid { background: rgba(6, 30, 41, 0.94); }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(255, 214, 150, 0.28), transparent 55%),
    linear-gradient(178deg, #041a2a 0%, #085a72 46%, #17a99b 82%, #43d3c0 100%);
}
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: translateZ(0); /* stable GPU layer, prevents video repaint flicker */
}
.hero-media video.playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 22, 32, 0.55) 0%, rgba(4, 22, 32, 0.25) 45%, rgba(4, 22, 32, 0.72) 100%);
}
.hero-content { padding: 120px 24px 90px; max-width: 900px; }
.hero-kicker {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(6, 30, 41, 0.28);
  margin-bottom: 28px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  font-weight: 600;
  text-shadow: 0 6px 40px rgba(0,0,0,0.35);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #7df0dd, #ffd98e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px auto 40px;
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 80px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(46, 196, 182, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 100%, rgba(255, 111, 97, 0.18), transparent 60%),
    linear-gradient(160deg, #04202e 20%, #0a4457 70%, #0e6d74 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: auto 0 -2px 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C240,110 480,10 720,40 C960,70 1200,20 1440,55 L1440,90 L0,90 Z' fill='%23f7f4ee'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 16px; }
.page-hero .eyebrow { color: var(--lagoon-bright); }
.page-hero .eyebrow::before { background: var(--lagoon-bright); }
.page-hero p.lead { max-width: 640px; color: rgba(255,255,255,0.82); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lagoon-bright), var(--lagoon) 60%, var(--teal));
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(46, 196, 182, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(46, 196, 182, 0.55); }
.btn-ghost {
  background: rgba(6, 30, 41, 0.3);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px 28px 30px; }
.card-body h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.96rem; }
.card-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 34, 46, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(140deg, var(--ink) 30%, #0a3a4a 75%, #0e5560);
  color: #fff;
  border-radius: 26px;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--lagoon-bright);
  font-weight: 600;
}
.stat span {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}

/* ---------- Filter pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.filter-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-pill:hover { border-color: var(--lagoon); color: var(--teal); }
.filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Listings ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s, scale 0.35s;
}
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* Generic hide for filterable items (listings, gallery, etc.) */
.hide { display: none !important; }
.listing-top { display: flex; align-items: center; gap: 16px; }
.listing-avatar {
  width: 54px; height: 54px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.listing h3 { font-size: 1.18rem; }
.listing-cat {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.listing p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.listing-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.listing-meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing-meta a { color: var(--teal); font-variant-numeric: tabular-nums; }
.listing-meta a:hover { color: var(--ink); text-decoration: underline; }
.listing-meta-empty span { color: var(--text-muted); opacity: 0.65; font-style: italic; }

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--lagoon), var(--teal) 60%, var(--coral));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 52px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -37px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--lagoon);
  box-shadow: 0 0 0 5px rgba(46, 196, 182, 0.18);
}
.tl-item.accent::before { border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 97, 0.16); }
.tl-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.tl-item.accent .tl-year { color: var(--coral); }
.tl-item h3 { font-size: 1.28rem; margin-bottom: 10px; }
.tl-item p { color: var(--text-muted); font-size: 0.98rem; }

.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 22px; font-size: 1.05rem; color: #35474f; }
.prose h2 { font-size: 1.9rem; margin: 46px 0 18px; }
.pull-quote {
  margin: 40px 0;
  padding: 34px 38px;
  background: var(--white);
  border-left: 4px solid var(--lagoon);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
.masonry { columns: 3; column-gap: 22px; }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.masonry-item img { width: 100%; transition: transform 0.7s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(4, 22, 32, 0.78));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.masonry-item:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(3, 16, 23, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.lightbox img {
  max-width: 100%; max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: rgba(255,255,255,0.12);
  border: 0; color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.25s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-caption {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Album tiles (gallery) ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.album {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.album:hover, .album:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.album:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }
.album img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
}
.album:hover img { transform: scale(1.06); }
.album::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,16,23,0.85) 0%, rgba(3,16,23,0.25) 45%, rgba(3,16,23,0) 70%);
  pointer-events: none;
}
.album-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px 22px;
  text-align: left;
}
.album-name {
  font-family: var(--font-display);
  color: #fff; font-size: 1.24rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.album-count {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- Lightbox navigation ---------- */
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 0; color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.25s;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 3vw; }
.lightbox-next { right: 3vw; }
.lightbox-counter {
  position: absolute; top: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem; letter-spacing: 0.14em;
}

@media (max-width: 980px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .album-grid { grid-template-columns: 1fr; gap: 16px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox-prev { left: 2vw; }
  .lightbox-next { right: 2vw; }
  .album-name { font-size: 1.08rem; }
}

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 100% at 20% 0%, rgba(46, 196, 182, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 90% at 90% 100%, rgba(255, 111, 97, 0.3), transparent 60%),
    linear-gradient(135deg, #052635, #0a4557);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 70px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: #fff; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.94rem; transition: color 0.25s; }
.footer-grid a:hover { color: var(--lagoon-bright); }
.footer-about p { font-size: 0.94rem; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 44px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(5, 24, 33, 0.97);
    backdrop-filter: blur(18px);
    padding: 18px 22px 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s, transform 0.35s var(--ease);
    box-shadow: 0 30px 50px rgba(0,0,0,0.4);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 18px; font-size: 1rem; }
  .nav.menu-open { background: rgba(5, 24, 33, 0.97); }
}

@media (max-width: 620px) {
  .grid-3, .grid-2, .listing-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 54px 26px; }
  .timeline { padding-left: 30px; }
  .tl-item { padding-left: 18px; }
  .tl-item::before { left: -27px; }
}
