/* ═══════════════════════════════════════════════════════════
  HERITAGE HAVEN CORPORATION — main.css
  Palette: Navy · Red accent · White · Soft neutral backgrounds
   ═══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Core palette */
  --slate:        #172A4A;
  --slate-2:      #203A62;
  --slate-3:      #3D5678;
  --slate-light:  #687D9B;

  --copper:       #E31B2B;
  --copper-2:     #C81424;
  --copper-light: #FF3543;
  --copper-pale:  rgba(227,27,43,0.10);

  --stone:        #5D6878;
  --stone-2:      #8993A1;
  --stone-pale:   #F0F3F7;
  --stone-light:  #E1E6ED;

  --bg:           #F7F9FC;
  --bg-2:         #EEF2F7;
  --white:        #FFFFFF;
  --text:         #202337;
  --text-2:       #505365;
  --text-muted:   #737F90;

  /* Functional */
  --success:      #2E7D56;
  --error:        #C0392B;
  --warning:      #E31B2B;

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --s9: 56px; --s10: 80px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Montserrat', system-ui, sans-serif;
  --font-body:    'Lato', system-ui, sans-serif;

  /* Effects */
  --shadow-xs:  0 1px 3px rgba(23,42,74,0.08);
  --shadow-sm:  0 2px 8px rgba(23,42,74,0.10);
  --shadow-md:  0 4px 20px rgba(23,42,74,0.12);
  --shadow-lg:  0 8px 40px rgba(23,42,74,0.14);
  --shadow-xl:  0 16px 64px rgba(23,42,74,0.16);
  --shadow-copper: 0 4px 20px rgba(227,27,43,0.22);

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition: all 0.28s var(--ease);
  --header-h:   60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s7);
}
.wrap-narrow { max-width: 720px; }
.wrap-wide   { max-width: 1280px; }

.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s6); }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: var(--s5); }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.t-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.t-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.t-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
}
.t-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.t-body  { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }
.t-small { font-size: 0.78rem; color: var(--text-muted); }
.t-slate  { color: var(--slate); }
.t-copper { color: var(--copper); }
.t-white  { color: var(--white); }
.t-muted  { color: var(--text-muted); }
.t-center { text-align: center; }

/* ═══════════════════════════════════════════════
   COLOUR HELPERS
═══════════════════════════════════════════════ */
.bg-slate    { background: var(--slate); }
.bg-slate-2  { background: var(--slate-2); }
.bg-stone    { background: var(--stone-pale); }
.bg-white    { background: var(--white); }
.bg-bg       { background: var(--bg); }
.bg-bg2      { background: var(--bg-2); }

/* ═══════════════════════════════════════════════
   BUTTON SYSTEM
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 10px 22px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.07; }
.btn:active { transform: scale(0.98); }

.btn-slate {
  background: var(--slate);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-slate:hover {
  background: var(--slate-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-copper {
  background: var(--copper);
  color: var(--white);
  box-shadow: var(--shadow-copper);
}
.btn-copper:hover {
  background: var(--copper-2);
  box-shadow: 0 6px 24px rgba(200,20,36,0.28);
  transform: translateY(-1px);
}

.btn-ghost-slate {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid rgba(44,62,80,0.25);
}
.btn-ghost-slate:hover {
  border-color: var(--slate);
  background: var(--slate);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.12);
}

.btn-text {
  background: none;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-text:hover { border-color: var(--copper); }
.btn-text::after { display: none; }

.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.btn-icon-round {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sizes */
.btn-sm { padding: 7px 16px; font-size: 11px; }
.btn-lg { padding: 13px 30px; font-size: 13px; }
.btn-xl { padding: 15px 36px; font-size: 13px; }

/* ═══════════════════════════════════════════════
   PILLS / BADGES
═══════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill-copper  { background: var(--copper-pale); color: var(--copper); border: 1px solid rgba(200,20,36,0.2); }
.pill-slate   { background: rgba(44,62,80,0.08); color: var(--slate); border: 1px solid rgba(44,62,80,0.14); }
.pill-white   { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.2); }
.pill-stone   { background: var(--stone-light); color: var(--stone); }
.pill-success { background: rgba(46,125,86,0.1); color: var(--success); }
.pill-dot     { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ═══════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════ */
.section { padding: var(--s10) 0; }
.section-sm { padding: var(--s9) 0; }
.section-lg { padding: 100px 0; }

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--copper);
  flex-shrink: 0;
}
.section-eyebrow.center::before { display: none; }

.section-title { color: var(--slate); }
.section-title.on-dark { color: white; }

.section-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-top: 12px;
}
.section-sub.center { margin: 12px auto 0; text-align: center; }

.rule {
  width: 36px; height: 2px;
  background: var(--copper);
  border-radius: 2px;
  margin: 14px 0 20px;
}
.rule.center { margin: 14px auto 20px; }
.rule.wide { width: 60px; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(44,62,80,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(44,62,80,0.28);
  background: rgba(44,62,80,0.99);
}
.header-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}
/* Logo in header */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.header-logo-mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.header-logo-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: white;
}
.header-logo-text small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.nav-btn:hover, .nav-btn.active { color: white; background: rgba(255,255,255,0.07); }
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 20px; height: 1.8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(28,40,52,0.98);
  backdrop-filter: blur(20px);
  z-index: 899;
  padding: var(--s6) var(--s7) var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
}
.mobile-nav-btn:last-of-type { border-bottom: none; }
.mobile-nav-btn:hover { color: white; }

/* ═══════════════════════════════════════════════
   PAGE SYSTEM — full overlay pages with animation
═══════════════════════════════════════════════ */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  /* hidden state */
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.page-overlay.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.page-overlay.closing {
  opacity: 0;
  transform: translateY(-16px) scale(1.005);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
/* Dark background pages */
.page-overlay.dark { background: var(--slate); }

/* Page navigation bar */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: rgba(44,62,80,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: var(--s4);
}
.page-nav-left, .page-nav-right {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.page-nav-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  flex: 1;
  text-align: center;
}
.page-nav-arrow {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.page-nav-arrow:hover { color: white; background: rgba(255,255,255,0.12); }
.page-nav-arrow:disabled { opacity: 0.2; cursor: not-allowed; }
.page-nav-close {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  cursor: pointer;
}
.page-nav-close:hover { background: rgba(192,57,43,0.2); border-color: rgba(192,57,43,0.3); color: #e88; }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--slate);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-slides-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2b3a 0%, #253c52 40%, #1d3048 100%);
}
.hero-slide img, .hero-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,42,56,0.90) 0%,
    rgba(28,42,56,0.60) 50%,
    rgba(28,42,56,0.35) 100%
  );
  z-index: 1;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 52px, rgba(255,255,255,1) 52px, rgba(255,255,255,1) 53px),
    repeating-linear-gradient(90deg, transparent, transparent 52px, rgba(255,255,255,1) 52px, rgba(255,255,255,1) 53px);
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-inner { padding: var(--s10) 0; max-width: 640px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s7);
  opacity: 0;
  animation: fadeUp 0.7s 0.15s var(--ease-out) forwards;
}
.hero-eyebrow-line { width: 28px; height: 1.5px; background: var(--copper); }
.hero-eyebrow-text {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-h1 {
  color: white;
  margin-bottom: var(--s5);
  opacity: 0;
  animation: fadeUp 0.7s 0.25s var(--ease-out) forwards;
}
.hero-h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}
.hero-h1 .copper-word { color: var(--copper-light); }
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--s7);
  opacity: 0;
  animation: fadeUp 0.7s 0.35s var(--ease-out) forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s9);
  opacity: 0;
  animation: fadeUp 0.7s 0.45s var(--ease-out) forwards;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: var(--s7);
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: fadeUp 0.7s 0.6s var(--ease-out) forwards;
}
.hero-stat {
  padding: 0 var(--s6) 0 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--copper-light);
  line-height: 1;
}
.hero-stat-l {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 5px;
}

/* Hero bottom controls */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--s7) var(--s6);
}
.hero-thumb-strip {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-thumb {
  width: 48px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  transition: border-color 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.hero-thumb.active { border-color: var(--copper-light); }
.hero-thumb img, .hero-thumb video { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb svg { opacity: 0.3; }

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
}
.hero-scroll-hint span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-hint .scroll-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* Hero media upload button */
.hero-upload-pill {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: var(--s7);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(44,62,80,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
}
.hero-upload-pill:hover { background: rgba(44,62,80,0.85); border-color: rgba(255,255,255,0.25); color: white; }

/* ═══════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--copper);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}
.ticker-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.45); }

/* ═══════════════════════════════════════════════
   SERVICE HUBS (home)
═══════════════════════════════════════════════ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stone-light);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hub-card {
  background: var(--white);
  padding: var(--s7) var(--s6);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.hub-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.hub-card:hover { background: var(--bg); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(44,62,80,0.04);
  line-height: 1;
}
.hub-icon-box {
  width: 42px; height: 42px;
  background: rgba(44,62,80,0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  transition: background 0.25s;
}
.hub-card:hover .hub-icon-box { background: var(--copper-pale); }
.hub-icon { color: var(--slate); transition: color 0.25s; }
.hub-card:hover .hub-icon { color: var(--copper); }
.hub-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.hub-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.hub-arrow {
  position: absolute;
  bottom: 16px; right: 16px;
  color: var(--stone-2);
  transition: var(--transition);
}
.hub-card:hover .hub-arrow { color: var(--copper); transform: translateX(3px); }

/* ═══════════════════════════════════════════════
   CARDS (general)
═══════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--stone-light);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: var(--s6); }
.card-header {
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--stone-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-icon {
  width: 32px; height: 32px;
  background: var(--copper-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
}

/* Service tile */
.service-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.service-tile:hover {
  border-color: var(--copper);
  background: #FFFDF5;
  box-shadow: 0 2px 12px rgba(200,20,36,0.1);
  transform: translateY(-1px);
}
.service-tile-icon {
  width: 32px; height: 32px;
  background: rgba(44,62,80,0.06);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
  flex-shrink: 0;
  transition: var(--transition);
}
.service-tile:hover .service-tile-icon { background: var(--copper-pale); color: var(--copper); }
.service-tile-name { font-size: 13px; font-weight: 500; color: var(--slate); }
.service-tile.hidden { display: none; }

/* ═══════════════════════════════════════════════
   PORTFOLIO GRID
═══════════════════════════════════════════════ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.port-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--slate-2);
}
.port-item.large { grid-column: span 2; grid-row: span 2; }
.port-placeholder {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.3s;
}
.port-item.large .port-placeholder { min-height: 404px; }
.port-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s var(--ease); }
.port-item:hover .port-img { transform: scale(1.05); }
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,42,56,0.88) 0%, rgba(28,42,56,0.15) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-info h4 { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: white; }
.port-info p { font-size: 11px; color: var(--copper-light); margin-top: 2px; }
.port-eye {
  width: 34px; height: 34px;
  background: var(--copper);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  color: white;
}

/* ═══════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════ */
.gallery-tabs {
  display: inline-flex;
  background: var(--stone-light);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
  margin-bottom: var(--s7);
}
.gallery-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-tab.active { background: var(--white); color: var(--slate); box-shadow: var(--shadow-xs); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 10px;
}
.public-updates { display: grid; gap: 18px; }
.public-update { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr); gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--stone-light); }
.update-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.update-images:empty { display: none; }
.update-images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); background: var(--stone-light); }
.update-copy h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--slate); margin: 5px 0 8px; }
.update-copy > p:not(.section-eyebrow) { color: var(--text-2); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.update-copy time { display: block; margin-top: 10px; color: var(--text-muted); font-size: 11px; }
.updates-empty { padding: 16px 0; color: var(--text-muted); font-size: 13px; }
.form-fallback { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--copper); background: var(--bg-2); color: var(--text-2); font-size: 12px; line-height: 1.5; }
.form-fallback a { color: var(--copper-2); font-weight: 700; text-decoration: underline; }
.admin-update-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone-light); }
.admin-update-row:last-child { border-bottom: 0; }
.admin-update-row strong { color: var(--slate); font-size: 13px; }
.admin-update-row p { color: var(--text-muted); font-size: 11px; margin-top: 3px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--slate-2);
  aspect-ratio: 4/3;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  background: linear-gradient(135deg, var(--slate), var(--slate-2));
}
.gallery-hover-mask {
  position: absolute; inset: 0;
  background: rgba(28,42,56,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-item:hover .gallery-hover-mask { opacity: 1; }
.gallery-play {
  width: 48px; height: 48px;
  background: var(--copper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  transform: scale(0.8);
  transition: transform 0.25s var(--ease-spring);
}
.gallery-item:hover .gallery-play { transform: scale(1); }

/* ═══════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s10); align-items: center; }
.about-img-wrap { position: relative; }
.about-img-box {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate), var(--slate-2));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.about-img-box img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--copper);
  border-radius: var(--radius-lg);
  padding: var(--s5) var(--s5);
  text-align: center;
  box-shadow: var(--shadow-copper);
  min-width: 96px;
}
.about-badge-n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: white; line-height: 1; }
.about-badge-l { font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 4px; }
.value-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s7); }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border-left: 2.5px solid var(--copper);
  transition: var(--transition);
}
.value-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.value-item h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 2px; }
.value-item p { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s10); }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: var(--s6); }
.contact-icon-box {
  width: 42px; height: 42px;
  background: var(--copper-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
}
.contact-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.contact-val { font-size: 14px; font-weight: 500; color: var(--slate); }
.contact-val a { color: var(--slate); transition: color 0.2s; }
.contact-val a:hover { color: var(--copper); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 240px; border: 1px solid var(--stone-light); margin-top: var(--s7); }
.map-embed iframe { width: 100%; height: 100%; border: none; filter: saturate(0.85) contrast(1.02); }

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--stone-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1.5px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--copper);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,20,36,0.08);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: white; }
.form-success { display: none; text-align: center; padding: var(--s7) 0; }
.form-success-icon {
  width: 56px; height: 56px;
  background: rgba(46,125,86,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s4);
  color: var(--success);
}

/* ═══════════════════════════════════════════════
   POPUP SYSTEM
═══════════════════════════════════════════════ */
.popup-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,30,40,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.popup-bg.open { opacity: 1; pointer-events: all; }
.popup-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s var(--ease-spring);
}
.popup-bg.open .popup-box { transform: scale(1) translateY(0); }
.popup-box.wide { max-width: 820px; }
.popup-head {
  background: var(--slate);
  padding: var(--s6) var(--s7) var(--s5);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}
.popup-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: white; }
.popup-head p { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.popup-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer; transition: var(--transition);
}
.popup-close:hover { background: rgba(255,255,255,0.18); color: white; }
.popup-body { padding: var(--s7); }
.popup-footer {
  padding: var(--s5) var(--s7);
  border-top: 1px solid var(--stone-light);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.lightbox-bg {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(8,14,20,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox-bg.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
}
.lightbox-inner img, .lightbox-inner video {
  max-width: 100%; max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.lightbox-close {
  position: fixed; top: 18px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--copper); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.09);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer;
  transition: var(--transition);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--copper); }
.lightbox-count {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════════ */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--slate);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-logo-area { padding: var(--s6) var(--s5) var(--s5); border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-nav { padding: var(--s4) var(--s3); flex: 1; }
.s-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  cursor: pointer; transition: var(--transition);
  margin-bottom: 2px;
  background: none; border: none; width: 100%; text-align: left;
}
.s-link:hover { color: white; background: rgba(255,255,255,0.07); }
.s-link.active { color: white; background: rgba(227,27,43,0.18); border-left: 2px solid var(--copper); padding-left: 10px; }
.sidebar-footer { padding: var(--s3); border-top: 1px solid rgba(255,255,255,0.06); }
.admin-main { padding: var(--s7) var(--s8); background: var(--bg); min-height: 100vh; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s7); }
.admin-h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--slate); }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: var(--s7); }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--stone-light);
  border-left: 3px solid var(--copper);
  box-shadow: var(--shadow-xs);
}
.stat-card.navy { border-left-color: var(--slate); }
.stat-card.stone { border-left-color: var(--stone-2); }
.stat-card.success { border-left-color: var(--success); }
.stat-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--slate); line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Admin grid panels */
.admin-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-bottom: var(--s6); }
.admin-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.admin-panel.full { grid-column: span 2; }
.panel-head {
  padding: 14px var(--s6);
  border-bottom: 1px solid var(--stone-light);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
}
.panel-head svg { color: var(--copper); }
.panel-body { padding: var(--s6); }

/* Leads table */
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th { font-family: var(--font-ui); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 8px 12px; border-bottom: 1.5px solid var(--stone-light); }
.leads-table td { padding: 11px 12px; font-size: 12px; border-bottom: 1px solid var(--stone-light); color: var(--text-2); }
.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: var(--bg-2); }
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.status-new      { background: rgba(227,27,43,0.1); color: var(--copper-2); }
.status-contacted{ background: rgba(46,125,86,0.1);  color: var(--success); }

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--stone-light); }
.toggle-row:last-child { border-bottom: none; }
.toggle-label h4 { font-size: 13px; font-weight: 600; color: var(--slate); }
.toggle-label p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.toggle-sw { position: relative; width: 42px; height: 22px; display: inline-block; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--stone-light); border-radius: 22px; cursor: pointer; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; box-shadow: var(--shadow-xs); }
.toggle-sw input:checked + .toggle-slider { background: var(--copper); }
.toggle-sw input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Admin input */
.a-input {
  width: 100%;
  border: 1.5px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  background: var(--bg); outline: none; transition: var(--transition);
}
.a-input:focus { border-color: var(--copper); background: var(--white); }
.a-label { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 5px; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--stone-light);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s6);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--copper);
  background: rgba(227,27,43,0.03);
}
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 8px;
  margin-top: var(--s4);
}
.upload-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--stone-light);
  display: flex; align-items: center; justify-content: center;
}
.upload-thumb img, .upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb-remove {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(44,62,80,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
}
.upload-thumb:hover .upload-thumb-remove { opacity: 1; }

/* Save feedback */
.save-feedback { font-size: 11px; color: var(--success); margin-top: 8px; display: none; font-weight: 600; }

/* ═══════════════════════════════════════════════
   SEARCH + FILTER
═══════════════════════════════════════════════ */
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--white);
  border: 1.5px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 9px 14px;
}
.search-box:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(227,27,43,0.07); }
.search-box input { border: none; outline: none; font-family: var(--font-body); font-size: 13px; color: var(--text); background: transparent; width: 100%; }
.search-box input::placeholder { color: var(--text-muted); }
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 5px 14px;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--stone-light);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--slate); border-color: var(--slate); color: white; }

/* ═══════════════════════════════════════════════
   LOGIN
═══════════════════════════════════════════════ */
.login-wrap {
  min-height: calc(100vh - 48px);
  background: var(--slate);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s7);
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 52px, white 52px, white 53px),
    repeating-linear-gradient(90deg, transparent, transparent 52px, white 52px, white 53px);
}
.login-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: var(--s8) var(--s7);
  width: 100%; max-width: 380px;
  position: relative;
  z-index: 1;
}
.login-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body); font-size: 13px; color: white; outline: none;
  transition: var(--transition);
}
.login-input::placeholder { color: rgba(255,255,255,0.25); }
.login-input:focus { border-color: var(--copper); background: rgba(255,255,255,0.09); }
.login-label { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-bottom: 5px; }
.login-error { background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.2); color: #e88; font-size: 12px; padding: 9px 13px; border-radius: var(--radius); margin-bottom: 14px; display: none; }
.google-login-btn { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); background: white; color: #27313a; font-family: var(--font-ui); font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.google-login-btn:hover { background: #f2f4f6; box-shadow: var(--shadow-md); }
.google-login-btn:disabled { opacity: 0.65; cursor: wait; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: #18252F;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s8);
}
.footer-brand-desc { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.7; margin-top: 14px; max-width: 220px; }
.footer-col h4 { font-family: var(--font-ui); font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 12px; color: rgba(255,255,255,0.48); margin-bottom: 9px; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover, .footer-col span:hover { color: var(--copper-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-admin-link { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.2); cursor: pointer; transition: color 0.2s; }
.footer-admin-link:hover { color: var(--copper); }

/* ═══════════════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════════════ */
.wa-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 850;
  display: flex; align-items: center; gap: 9px;
}
.wa-label {
  background: var(--slate);
  color: white;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 13px; border-radius: var(--radius-full);
  opacity: 0; transform: translateX(8px);
  transition: var(--transition); pointer-events: none; white-space: nowrap;
}
.wa-wrap:hover .wa-label { opacity: 1; transform: none; }
.wa-btn {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.38);
  transition: var(--transition);
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,0.48); }
.wa-btn svg { width: 26px; height: 26px; fill: white; }

/* Emergency bar */
.emergency-bar {
  background: var(--copper);
  padding: 9px var(--s6);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.emergency-bar p { font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: white; }
.emergency-bar a { color: white; font-weight: 800; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%,100%{ opacity: 0.3; transform: scaleY(1); }
  50%    { opacity: 0.7; transform: scaleY(1.15); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-r.visible { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-l.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.26s; }
.reveal-d4 { transition-delay: 0.34s; }
.reveal-d5 { transition-delay: 0.42s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: repeat(2,1fr); }
  .about-split, .contact-split { grid-template-columns: 1fr; gap: var(--s8); }
  .about-badge { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-item.large { grid-column: span 2; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-panels { grid-template-columns: 1fr; }
  .admin-panel.full { grid-column: span 1; }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav, .header-actions .btn-ghost-slate { display: none; }
  .hamburger { display: flex; }
  .wrap { padding: 0 var(--s5); }
  .section { padding: 60px 0; }
  .hub-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .hero-stat { border-right: none; padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .public-update { grid-template-columns: 1fr; gap: 14px; }
  #atab-updates .panel-body > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-item.large { grid-column: 1; grid-row: auto; }
  .about-img-box { aspect-ratio: 3/2; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: var(--s5) var(--s5); }
  .form-card { padding: var(--s6); }
  .hero-upload-pill { top: auto; bottom: 70px; right: var(--s5); }
  .hero-scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .port-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .upload-preview-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .page-nav { padding: 0 var(--s5); }
  .footer-grid { gap: var(--s6); }
}
