/* ================================================================
   Serenity Plus AFH — Shared Stylesheet
   All pages import this file via <link rel="stylesheet" href="../css/shared.css">
   (or href="./css/shared.css" from root)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  --teal:        #0e6c81;
  --teal-mid:    #0b5a6d;
  --teal-dark:   #083d4e;
  --teal-pale:   #e8f4f7;
  --amber:       #e07010;
  --amber-h:     #c4600b;
  --amber-pale:  #fdf3e7;
  --cream:       #faf8f5;
  --white:       #ffffff;
  --ink:         #18273a;
  --ink-mid:     #374151;
  --muted:       #6b7280;
  --border:      #e5e9ef;
  --border-soft: #f0f3f7;

  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --wrap:  1200px;
}

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(14,108,129,.15); }

/* ----------------------------------------------------------------
   SCROLLBAR
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(14,108,129,.28); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ----------------------------------------------------------------
   FOCUS
   ---------------------------------------------------------------- */
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

/* ----------------------------------------------------------------
   TYPOGRAPHY HELPERS
   ---------------------------------------------------------------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
.label::before {
  content: ''; display: block;
  width: 20px; height: 2px;
  background: var(--amber); border-radius: 2px; flex-shrink: 0;
}

h2.page-h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--teal-dark);
  line-height: 1.2; margin-bottom: 14px;
}
.sec-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 600px; line-height: 1.76; margin-bottom: 52px;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              box-shadow .22s var(--ease), transform .18s var(--ease);
  white-space: nowrap; letter-spacing: .01em;
}
.btn-amber {
  background: var(--amber); color: #fff;
  box-shadow: 0 2px 10px rgba(224,112,16,.28);
}
.btn-amber:hover {
  background: var(--amber-h);
  box-shadow: 0 6px 22px rgba(224,112,16,.38);
  transform: translateY(-2px);
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,108,129,.3); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ----------------------------------------------------------------
   TOP BAR
   ---------------------------------------------------------------- */
#topbar {
  background: var(--teal-dark); color: rgba(255,255,255,.75);
  font-size: .775rem; font-weight: 500; padding: 8px 0;
  letter-spacing: .01em;
}
#topbar .wrap {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
}
#topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
#topbar a:hover { color: var(--amber); }
#topbar .topbar-icon { display: inline; vertical-align: -2px; margin-right: 5px; opacity: .7; }

/* ----------------------------------------------------------------
   HEADER — CENTER-LOGO SPLIT NAV
   Logo is absolutely positioned, centered, and elevated above the bar.
   ---------------------------------------------------------------- */
#hdr {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow .3s;
  /* Must be relative so the absolute logo is positioned relative to it,
     and overflow visible so logo can break out above */
  position: sticky;
  overflow: visible;
}
#hdr.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.12); }

.hdr-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 28px;
  /* Taller bar so the elevated logo has a proper pedestal */
  height: 84px;
  position: relative;
}

/* ── Left nav ── */
.nav-left  { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
/* ── Right nav ── */
.nav-right { display: flex; align-items: center; justify-content: flex-start; gap: 2px; }

.nav-left a, .nav-right a {
  font-size: .875rem; font-weight: 500; color: var(--ink-mid);
  padding: 8px 14px;
  transition: color .2s, background .2s;
  white-space: nowrap; position: relative;
}
.nav-left a::after, .nav-right a::after {
  content: '';
  position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-left a:hover, .nav-right a:hover { color: var(--teal); }
.nav-left a:hover::after, .nav-right a:hover::after { transform: scaleX(1); }
.nav-left a.active, .nav-right a.active { color: var(--teal); font-weight: 600; }
.nav-left a.active::after, .nav-right a.active::after { transform: scaleX(1); }

/* Has-dropdown nav items */
.nav-has-drop { position: relative; }
.nav-drop {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  min-width: 230px; z-index: 1100;
  padding: 8px 0;
}
.nav-has-drop:hover .nav-drop { display: block; }
.nav-drop a {
  display: block; padding: 10px 18px;
  font-size: .865rem; font-weight: 500; color: var(--ink-mid);
  transition: background .15s, color .15s;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: var(--teal-pale); color: var(--teal); }
.nav-drop a.active { background: var(--teal-pale); color: var(--teal); font-weight: 600; }

/* ────────────────────────────────────────────────
   CENTER LOGO — absolutely positioned, sits on top
   of the header bar, vertically centered so roughly
   half of it floats above the bar line.
   ──────────────────────────────────────────────── */
.nav-logo {
  /* Take it out of the grid flow but keep the grid column
     as a 0-width spacer so left/right navs still push apart */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;    /* above the header bar itself */

  display: flex;
  align-items: center;
  justify-content: center;
}

/* White circular plinth behind the logo — the "floating badge" effect */
.nav-logo::before {
  content: '';
  position: absolute;
  inset: -14px -18px;          /* padding around the logo */
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 50% / 40%;    /* a wide pill — oval, not a full circle */
  box-shadow:
    0 -4px 20px rgba(14,108,129,.10),   /* upward glow */
    0  8px 28px rgba(0,0,0,.10);        /* downward shadow */
  z-index: -1;
}

/* Remove the old decorative left/right rules — the plinth replaces them */
.nav-logo::after { display: none; }

/* Logo image — doubled in size */
.nav-logo img {
  height: 108px;        /* ~2× the original 52px */
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Subtle drop shadow on the logo itself */
  filter: drop-shadow(0 2px 8px rgba(8,61,78,.15));
  transition: transform .3s var(--ease), filter .3s;
}
.nav-logo:hover img {
  transform: scale(1.04) translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(8,61,78,.22));
}

/* Grid placeholder column — stays auto so left+right navs
   are pushed to the edges, even though the logo is absolute */
.nav-logo-spacer {
  width: 180px;   /* wide enough to give the logo breathing room */
  pointer-events: none;
  flex-shrink: 0;
}

.nav-cta { margin-left: 10px; padding: 9px 18px; font-size: .85rem; }

/* Hamburger */
.hbg {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--border);
  cursor: pointer; border-radius: 4px; padding: 8px;
  transition: border-color .2s;
}
.hbg:hover { border-color: var(--teal); }
.hbg span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
#mobile-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); z-index: 898;
  flex-direction: column; align-items: stretch;
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.1); gap: 2px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink-mid);
  padding: 11px 14px; border-radius: 4px;
  transition: color .2s, background .2s;
}
#mobile-nav a:hover { color: var(--teal); background: var(--teal-pale); }
#mobile-nav .mobile-section-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
  padding: 12px 14px 4px; display: block;
}
#mobile-nav .btn { margin-top: 8px; justify-content: center; width: 100%; }

/* ----------------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); padding: 14px 0;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); font-size: .7rem; }

/* ----------------------------------------------------------------
   PAGE HERO (inner pages)
   Each page sets --hero-img and optionally --hero-pos via a
   local <style> block or inline style on the .page-hero element.
   The shared rule handles the overlay + typography consistently.
   ---------------------------------------------------------------- */
.page-hero {
  /* Fallback gradient when no image is set */
  background:
    linear-gradient(120deg, rgba(8,61,78,.88) 0%, rgba(11,90,109,.80) 100%),
    var(--teal-dark);

  /* When --hero-img is defined by the page, layer it underneath the gradient */
  background:
    linear-gradient(120deg, rgba(8,61,78,.82) 0%, rgba(11,90,109,.70) 55%, rgba(8,61,78,.50) 100%),
    var(--hero-img, none) center var(--hero-pos, 40%) / cover no-repeat,
    var(--teal-dark);

  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}

/* Subtle top-right decorative arc */
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none; z-index: 0;
}
/* Bottom-left amber accent ring */
.page-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(224,112,16,.06); pointer-events: none; z-index: 0;
}
/* Keep all content above decorative rings */
.page-hero .wrap { position: relative; z-index: 1; }

.page-hero .label { color: rgba(255,255,255,.60); }
.page-hero .label::before { background: rgba(255,255,255,.45); }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,.3); }

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; color: #fff;
  line-height: 1.13; margin-bottom: 16px;
  letter-spacing: -.015em;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.82);
  max-width: 600px; line-height: 1.78;
}
.page-hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 30px;
}
.page-hero-meta span {
  display: flex; align-items: center; gap: 7px;
  font-size: .825rem; color: rgba(255,255,255,.78); font-weight: 500;
}
.page-hero-meta svg { flex-shrink: 0; }

/* ── Section background image helper classes ──────────────────
   Add .bg-img-companions / .bg-img-dining / .bg-img-hero to any
   section to get a photo background with a teal overlay.
   ──────────────────────────────────────────────────────────── */
.bg-photo {
  position: relative; overflow: hidden;
}
.bg-photo::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--section-img);
  background-size: cover;
  background-position: center var(--section-pos, 40%);
  background-repeat: no-repeat;
  /* Parallax-lite: slight scale so edges don't show on scroll */
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: blur(0);
}
.bg-photo:hover::before { transform: scale(1); }
.bg-photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: var(--section-overlay,
    linear-gradient(135deg, rgba(8,61,78,.85) 0%, rgba(8,61,78,.60) 100%));
}
.bg-photo > * { position: relative; z-index: 2; }

/* ----------------------------------------------------------------
   SIDEBAR LAYOUT  (service detail pages)
   ---------------------------------------------------------------- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: start;
  min-height: 70vh;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  position: sticky; top: 76px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,108,129,.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(14,108,129,.2); }

.sidebar-header {
  padding: 28px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--amber); margin-bottom: 4px;
}
.sidebar-header p {
  font-size: .8rem; color: var(--muted); line-height: 1.5;
}

.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  font-size: .875rem; font-weight: 500; color: var(--ink-mid);
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.sidebar-nav a .sn-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.sidebar-nav a .sn-icon svg { width: 16px; height: 16px; }
.sidebar-nav a:hover { color: var(--teal); background: var(--teal-pale); border-left-color: rgba(14,108,129,.3); }
.sidebar-nav a:hover .sn-icon { background: rgba(14,108,129,.15); }
.sidebar-nav a.active {
  color: var(--teal-dark); font-weight: 700;
  background: var(--teal-pale); border-left-color: var(--teal);
}
.sidebar-nav a.active .sn-icon { background: rgba(14,108,129,.18); }

.sidebar-cta {
  margin: 8px 16px 24px;
  padding: 20px;
  background: var(--teal-dark);
  color: #fff;
}
.sidebar-cta h4 {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.sidebar-cta p { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 14px; }
.sidebar-cta .btn { width: 100%; justify-content: center; padding: 10px; font-size: .85rem; }

/* Main content area */
.page-content {
  padding: 52px 56px;
  background: var(--cream);
}

/* ----------------------------------------------------------------
   CONTENT BLOCKS (used inside service / about / facility pages)
   ---------------------------------------------------------------- */
.content-section { margin-bottom: 56px; }
.content-section:last-child { margin-bottom: 0; }

.content-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--teal-dark);
  line-height: 1.22; margin-bottom: 16px;
}
.content-section h3 {
  font-size: 1rem; font-weight: 700; color: var(--teal-dark);
  margin-bottom: 8px; margin-top: 28px;
}
.content-section p {
  font-size: .9375rem; color: var(--ink-mid);
  line-height: 1.8; margin-bottom: 16px;
}
.content-section p:last-child { margin-bottom: 0; }

/* Highlight callout box */
.callout {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: 20px 24px; margin: 28px 0;
}
.callout p { color: var(--teal-dark); font-weight: 500; margin: 0; }
.callout.amber { background: var(--amber-pale); border-color: var(--amber); }
.callout.amber p { color: #7a3a00; }

/* Feature check-list */
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9375rem; color: var(--ink-mid); line-height: 1.6;
}
.check-list li .ci {
  flex-shrink: 0; margin-top: 2px;
  width: 22px; height: 22px;
  background: rgba(14,108,129,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-list li .ci svg { width: 12px; height: 12px; }

/* Two-column feature grid */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 24px 0;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 20px 22px;
}
.feature-card h4 {
  font-size: .9rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px;
}
.feature-card p { font-size: .845rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.stat-cell {
  background: var(--white);
  padding: 24px 20px; text-align: center;
}
.stat-cell .n {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 700; color: var(--teal);
  line-height: 1; display: block;
}
.stat-cell .l {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-top: 5px; display: block;
}

/* Policy table */
.policy-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.policy-table th {
  background: var(--teal-dark); color: #fff;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 16px; text-align: left;
}
.policy-table td {
  padding: 12px 16px; font-size: .9rem; color: var(--ink-mid);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tr:nth-child(even) td { background: var(--cream); }

/* Section divider */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
#footer {
  background: var(--teal-dark); color: rgba(255,255,255,.72);
  padding: 60px 0 26px;
}
.footer-top {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 26px;
}
.fbrand img { height: 58px; width: auto; margin-bottom: 16px; opacity: .9; }
.fbrand p { font-size: .855rem; line-height: 1.76; max-width: 260px; color: rgba(255,255,255,.60); }
.fbrand-tag {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .74rem; font-style: italic;
  color: rgba(255,255,255,.34); letter-spacing: .02em;
}
.fcol h5 {
  font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--amber); margin-bottom: 16px;
}
.fcol ul li { margin-bottom: 10px; }
.fcol ul li a {
  font-size: .855rem; color: rgba(255,255,255,.60);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.fcol ul li a::before {
  content: ''; display: block;
  width: 5px; height: 1px;
  background: rgba(255,255,255,.26); border-radius: 1px;
  transition: width .2s, background .2s;
}
.fcol ul li a:hover { color: #fff; }
.fcol ul li a:hover::before { width: 10px; background: var(--amber); }
.fcol address {
  font-style: normal; font-size: .855rem;
  line-height: 1.8; color: rgba(255,255,255,.60);
}
.footer-btm {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-btm p { font-size: .775rem; color: rgba(255,255,255,.36); }
.footer-btm a { color: rgba(255,255,255,.48); transition: color .2s; }
.footer-btm a:hover { color: var(--amber); }

/* ----------------------------------------------------------------
   SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal { will-change: opacity, transform; }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: span 2; }
}

@media (max-width: 960px) {
  .sidebar-layout { grid-template-columns: 240px 1fr; }
  .page-content { padding: 40px 36px; }
}

@media (max-width: 768px) {
  /* Nav collapses */
  .nav-left, .nav-right { display: none; }
  /* Logo stays absolutely centered, just scale it back a little */
  .nav-logo img { height: 72px; }
  .nav-logo::before { inset: -10px -14px; }
  .hdr-inner {
    height: 66px;
    grid-template-columns: 1fr auto 0 auto; /* left | spacer | (hidden right) | hbg */
  }
  .hdr-inner .hbg { display: flex; }

  /* Sidebar stacks above content */
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-nav a { border-left: none; border-bottom: 3px solid transparent; padding: 12px 14px; }
  .sidebar-nav a.active { border-bottom-color: var(--teal); border-left-color: transparent; }

  .page-content { padding: 32px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .fbrand { grid-column: span 1; }
  .footer-btm { flex-direction: column; text-align: center; }

  #topbar .wrap { justify-content: center; }
  .topbar-right { display: none; }
}

@media (max-width: 560px) {
  .sidebar-nav { grid-template-columns: 1fr; }
  .page-content { padding: 24px 16px; }
}
