/* ============================================================
   Hairpot Salon — Public Site & Login Design System
   Warm, elegant brand: deep navy primary, soft teal accent,
   coral + gold/amber used sparingly as highlight colors
   (inspired by three accent strokes in the logo).
   ============================================================ */

:root {
  /* Brand Colors */
  --navy:        #2E4A60;
  --navy-deep:   #1A2D3D;
  --navy-dark:   #0F1C2A;
  --teal:        #5BC4C9;
  --teal-dark:   #3AABB1;
  --teal-light:  #A0DEE1;
  --coral:       #E85C4B;
  --coral-light: #F08C80;
  --amber:       #F4C935;
  --amber-light: #FAE07A;
  --gold:        #C9A84C;

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --light-grey:  #EEF0F3;
  --mid-grey:    #C8D0DA;
  --text-body:   #3A4A58;
  --text-muted:  #6B7E96;
  --text-light:  #9AAAB8;

  /* Dark sections */
  --dark-bg:     #0F1C2A;
  --dark-card:   rgba(255,255,255,0.04);
  --dark-border: rgba(255,255,255,0.1);

  /* Utility tokens */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 8px rgba(46,74,96,0.08);
  --shadow-md:   0 8px 28px rgba(46,74,96,0.12);
  --shadow-lg:   0 20px 60px rgba(46,74,96,0.16);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);

  /* Legacy alias names kept so existing markup/inline styles resolve to
     the new palette without needing every template touched */
  --ink:        var(--navy-deep);
  --ink-soft:   var(--text-muted);
  --paper:      var(--off-white);
  --paper-alt:  var(--light-grey);
  --card:       var(--white);
  --line:       #DEE4EA;
  --gold-dark:  #A3822E;
  --gold-soft:  rgba(244,201,53,0.16);
  --radius-sm:  8px;
  --shadow:     var(--shadow-md);
  --success-bg: #E5F5EC;
  --success-fg: #1E7B3D;
  --error-bg:   #FBEAE8;
  --error-fg:   #B3261E;
  --font:       'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Accessibility: keyboard focus ---------- */
/* A single broad rule instead of hand-adding a focus state to every
   button/link/input across every component — anything interactive gets
   a visible outline when reached by keyboard (not on mouse click, via
   :focus-visible), site-wide, automatically. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  background: var(--navy-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Icons (inline SVG, replaces emoji) ---------- */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.btn .icon, .nav-links .icon { width: 1.05em; height: 1.05em; }
.icon-badge .icon { width: 22px; height: 22px; }
.whatsapp-float .icon { width: 26px; height: 26px; }
.info-list .ic .icon, .branch-meta .icon { width: 18px; height: 18px; }
.nav-toggle .icon { width: 20px; height: 20px; }
.icon-whatsapp { color: #25D366; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* Brand accent bar — echoes the three strokes in the logo */
.card-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--amber));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-navy { background: var(--navy); color: var(--white); }
.btn-primary:hover, .btn-navy:hover { background: var(--navy-deep); box-shadow: 0 10px 28px rgba(46,74,96,0.3); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 10px 28px rgba(91,196,201,0.4); }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 10px 28px rgba(201,168,76,0.35); }

.btn-light, .btn-white { background: var(--white); color: var(--navy); }
.btn-light:hover, .btn-white:hover { box-shadow: 0 10px 28px rgba(255,255,255,0.2); }

.btn-outline, .btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
}
img.logo-mark { object-fit: cover; flex-shrink: 0; }
.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-deep);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--navy-deep);
}

/* ---------- Hero (photo carousel) ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, var(--navy), var(--navy-dark) 65%);
  color: #fff;
  overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
/* Fixed scrim over whichever slide is showing, for text contrast — not
   per-slide, so it stays consistent as the carousel rotates. */
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,28,42,0.90), rgba(46,74,96,0.76));
  z-index: 1;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 24px 110px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--amber-light);
  background: rgba(244, 201, 53, 0.14);
  border: 1px solid rgba(244, 201, 53, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 780px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-head h2 { margin: 10px 0 12px; }
.section-head p { color: var(--text-muted); }
.section-alt { background: var(--paper-alt); }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card--teal  { border-top-color: var(--teal-dark); }
.card--coral { border-top-color: var(--coral); }
.card--amber { border-top-color: var(--amber); }
.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card--teal .icon-badge  { background: rgba(91,196,201,0.16); color: var(--teal-dark); }
.card--coral .icon-badge { background: rgba(232,92,75,0.14); color: var(--coral); }
.card--amber .icon-badge { background: rgba(244,201,53,0.18); color: var(--gold-dark); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border-top: 3px solid var(--light-grey);
  box-shadow: var(--shadow-sm);
}

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-price { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--teal-dark); }

/* Service category cards (public Services page + homepage teaser) —
   name lists only, never a price; see app/service_catalog.php. */
.service-category-card { display: flex; flex-direction: column; }
.service-category-card p { margin-bottom: 4px; }
.service-tag-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag-list li {
  background: var(--paper-alt);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
}

/* Real photo gallery grid (replaces the old CSS-gradient placeholder tiles) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 18px;
}
.gallery-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-photo:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-photo:hover img { transform: scale(1.05); }
.gallery-photo--wide { grid-column: span 2; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(0deg, rgba(15,28,42,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
/* Reset so a real <button> can wrap a gallery photo (opens the lightbox)
   without looking or behaving like a generic button. */
.gallery-photo-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
}

/* ---------- Overview video ---------- */
.video-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
}
.video-player,
.video-poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(15,28,42,0.55), rgba(46,74,96,0.4));
}
.video-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(15,28,42,0.72);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.video-placeholder-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--amber);
}

/* Branch cards */
.branch-card { display: flex; flex-direction: column; gap: 10px; }
.branch-card h3 { margin: 0; }
.branch-meta { color: var(--text-muted); font-size: 0.92rem; display: flex; gap: 8px; align-items: flex-start; }
.branch-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; color: #fff; }
.cta-band p { margin: 0 0 28px; color: rgba(255,255,255,0.85); }
.cta-band .btn-light:hover, .cta-band .btn-white:hover { transform: translateY(-2px); }

/* ---------- Our Story (About page) ---------- */
.prose-narrow { max-width: 700px; margin: 0 auto; text-align: center; color: var(--ink-soft); }
.prose-narrow p:first-child { margin-top: 0; }

/* ---------- Meet the CEO (About page) ---------- */
/* Fixed pixel size, not a percentage/aspect-ratio of a grid column — a
   professional headshot should read as the same modest size on a huge
   desktop monitor and a phone, never stretching to fill available width. */
.ceo-block { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ceo-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  margin-bottom: 8px;
}
.ceo-name-title { margin: 0 0 16px; font-weight: 700; color: var(--navy); }
.ceo-bio { margin: 0; color: var(--ink-soft); }

/* ---------- Mission & Promise (About page) ---------- */
.mission-promise-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(91,196,201,0.16); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-list .ic--teal  { background: rgba(91,196,201,0.16); color: var(--teal-dark); }
.info-list .ic--green { background: rgba(37,211,102,0.14); color: #25D366; }
.info-list .ic--coral { background: rgba(232,92,75,0.14); color: var(--coral); }
.info-list .ic--amber { background: rgba(244,201,53,0.18); color: var(--gold-dark); }

.contact-branches-head { text-align: left; max-width: none; margin: 0 0 20px; }
.branch-contact-list { display: flex; flex-direction: column; gap: 14px; }
.branch-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.branch-contact-card .icon-badge { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0; flex-shrink: 0; }
.branch-contact-card strong { display: block; }
.branch-contact-card a { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; font-family: var(--font); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-light);
}
.dev-credit { text-align: center; margin-top: 14px; font-size: 0.78rem; color: var(--text-light); }
.dev-credit a { color: var(--teal-light); font-weight: 600; }
.dev-credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
/* main.js adds .reveal to repeating content blocks (cards, section heads,
   photos, stat items) at load time, then .is-visible once each one enters
   the viewport. If JS never runs, nothing has .reveal in the first place,
   so content is never stuck invisible — this is additive, not a gate. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15,28,42,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 0 80px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close .icon, .lightbox-prev .icon, .lightbox-next .icon { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.26); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  font-size: 1.6rem;
  animation: pulse-wa 2.4s infinite;
}
.whatsapp-float:hover { background: #1ebe5b; }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 250;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  border: 1px solid var(--line);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; font-size: 0.86rem; color: var(--text-muted); }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Page-load progress bar ---------- */
.page-load-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--amber));
  z-index: 999;
  transition: width 0.4s ease, opacity 0.3s ease 0.2s;
  opacity: 0;
}
.page-load-bar.is-loading { width: 75%; opacity: 1; transition: width 4s cubic-bezier(0.1,0.6,0.2,1), opacity 0.2s ease; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px; }
.alert-success { background: var(--success-bg); color: var(--success-fg); }
.alert-error { background: var(--error-bg); color: var(--error-fg); }

/* ---------- Login page ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, var(--navy), var(--navy-dark) 70%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-lg);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--navy-deep); }
.login-brand .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
}
.login-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.login-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 22px; }
.login-card form { display: flex; flex-direction: column; gap: 6px; }
.login-card label { font-size: 0.84rem; font-weight: 600; margin-top: 10px; }
.login-card input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: var(--font);
}
.login-card input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.password-field { position: relative; }
.password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}
.password-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: none; border-radius: var(--radius-sm);
  background: none; color: var(--text-muted); cursor: pointer;
}
.password-toggle:hover { color: var(--navy); background: var(--off-white); }
.password-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.password-toggle.is-visible { color: var(--teal-dark); }
.password-toggle .icon { width: 18px; height: 18px; }
.forgot-password-link { display: block; text-align: right; margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.forgot-password-link:hover { color: var(--teal-dark); }
.login-card .btn { margin-top: 20px; }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: 0.86rem; color: var(--text-muted); }
.login-back:hover { color: var(--navy); }

/* ---------- Page header (interior pages) ---------- */
/* Real <img> + scrim, same technique as .hero-slideshow — a CSS
   custom-property background-image was tried here first but didn't
   render reliably, so this uses the proven approach instead. */
.page-hero {
  position: relative;
  background-color: var(--navy-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,28,42,0.90), rgba(26,45,61,0.86));
  z-index: 1;
}
.page-hero .eyebrow, .page-hero h1 { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--amber-light); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.page-hero h1 { color: #fff; margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ============================================================
   Responsive breakpoints: 1440 / 1024 / 768 / 600 / 400, mobile-first
   ============================================================ */
@media (min-width: 1440px) {
  .container { max-width: 1360px; }
  h1 { font-size: clamp(3.2rem, 5vw, 4.4rem); }
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--line); }
  section { padding: 64px 0; }
  .mission-promise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-photo--wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-photo--wide { grid-column: span 1; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero-inner { padding: 80px 18px 90px; }
}

@media (max-width: 600px) {
  .lightbox { padding: 60px 10px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close .icon, .lightbox-prev .icon, .lightbox-next .icon { width: 17px; height: 17px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-caption { padding: 0 50px; font-size: 0.8rem; }
  .cookie-banner { left: 12px; right: 12px; bottom: 92px; max-width: none; }
}

/* ============================================================
   Reduced motion — belt-and-suspenders on top of the JS-level guard in
   main.js (which skips adding .reveal / animating counters at all).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide { transition: none !important; }
}
