/* ============================================
   Animet Ltd — Bootstrap Theme & Custom Styles
   Load after vendor/bootstrap.min.css (or via style.css)
   ============================================ */

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

/* Animet design tokens + Bootstrap 5 variable bridge */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface2: #ede8df;
  --border: #d9d0c0;
  --navy: #1a2c4e;
  --navy-dark: #0e1d35;
  --gold: #d9232e;
  --gold-light: #faf6eb;
  --gold-dark: #a8861e;
  --text: #1a1a1a;
  --text-muted: #5c5a55;
  --text-light: #8a857c;
  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --red: #d9232e;
  --green: #1a6b3a;
  --shadow: 0 2px 20px rgba(26, 44, 78, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 44, 78, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-size-root: 100%;

  /* Typography scale (matches live schools.animet.co.ke) */
  --fs-hero: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
  --fs-section: clamp(1.75rem, 2.5vw + 0.5rem, 2.25rem);
  --fs-lead: 1rem;
  --fs-nav: 0.9375rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-stat: 2.25rem;

  /* Bootstrap theme mapping */
  --bs-font-sans-serif: 'DM Sans', sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: var(--navy);
  --bs-primary-rgb: 26, 44, 78;
  --bs-secondary: var(--text-muted);
  --bs-secondary-rgb: 92, 90, 85;
  --bs-danger: var(--gold);
  --bs-danger-rgb: 217, 35, 46;
  --bs-success: var(--green);
  --bs-success-rgb: 26, 107, 58;
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--navy-dark);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-border-radius-sm: 8px;
  --bs-focus-ring-color: rgba(26, 44, 78, 0.25);
  --logo-chip-bg: #f5f3ee;
}

[data-theme="dark"] {
  --bg: #0a0e17;
  --surface: #162235;
  --surface2: #1a2a40;
  --border: #24354f;
  --navy: #2d4a73;
  --navy-dark: #060912;
  --gold: #e8353f;
  --gold-light: #2a1518;
  --gold-dark: #ff5a63;
  --text: #eef2f7;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
  --logo-chip-bg: rgba(255, 255, 255, 0.92);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: var(--navy);
  --bs-primary-rgb: 45, 74, 115;
  --bs-secondary: var(--text-muted);
  --bs-secondary-rgb: 148, 163, 184;
  --bs-danger: var(--gold);
  --bs-danger-rgb: 232, 53, 63;
  --bs-link-color: #94a3b8;
  --bs-link-hover-color: #eef2f7;
  --bs-border-color: var(--border);
}

/* Dark mode — soft logo chip */
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .footer-brand-link,
[data-theme="dark"] .admin-nav-brand-link {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #24354f;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(255, 77, 77, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] p {
  color: #94a3b8;
}

[data-theme="dark"] .about-hero-text,
[data-theme="dark"] .about-hero p,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .contact-hero p,
[data-theme="dark"] .location-slide-hero-desc,
[data-theme="dark"] .location-slide-caption p,
[data-theme="dark"] .home-hero-text,
[data-theme="dark"] .category-slide-caption p {
  color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .school-card:hover,
[data-theme="dark"] .home-service-card:hover,
[data-theme="dark"] .home-welcome-stat:hover,
[data-theme="dark"] #what-we-do .home-offering-card:hover,
[data-theme="dark"] #what-drives-us .home-value-card:hover,
[data-theme="dark"] .about-value-card:hover,
[data-theme="dark"] .about-detail-card:hover,
[data-theme="dark"] .about-offerings-item:hover,
[data-theme="dark"] .faq-item.active,
[data-theme="dark"] .location-thumb.is-active {
  border: 2px solid #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.2);
}

[data-theme="dark"] .location-thumb.is-active {
  background: var(--surface);
  color: #ffffff;
}

[data-theme="dark"] .about-hero-stat {
  background: #162235;
  border-color: rgba(255, 77, 77, 0.35);
}

/* Base — Bootstrap Reboot handles most resets; keep Animet-specific base rules */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-root);
}

body {
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

/* Beat Bootstrap Reboot heading sizes when Animet classes are used */
h1.hero-title,
h1.about-hero-title,
h1.detail-title {
  font-size: var(--fs-hero);
}

h2.section-title,
h2.home-section-title,
h2.about-section-title {
  font-size: var(--fs-section);
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

::selection { background: var(--gold); color: #fff; }

img { max-width: 100%; height: auto; }

/* Animet layout container (overrides Bootstrap .container max-width) */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  flex-wrap: nowrap;
  padding: 0;
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--logo-chip-bg);
  padding: 5px 12px 5px 8px;
  border-radius: 8px;
  line-height: 0;
  transition: background var(--transition);
}

.nav-logo {
  height: 40px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-animet,
.brand-ltd {
  color: var(--gold);
}

.nav-brand-text .brand-animet,
.nav-brand-text .brand-ltd,
.footer-brand-text .brand-animet,
.footer-brand-text .brand-ltd {
  color: var(--gold);
}

.nav-links-desktop { display: flex; align-items: center; gap: 12px; }

.nav-link {
  display: inline-block;
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover { color: var(--navy); background: var(--surface2); }

.nav-cta {
  font-size: var(--fs-nav);
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  padding: 8px 18px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-cta:hover { background: var(--navy-dark); }

.nav-login-btn {
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 8px 18px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-login-btn:hover { background: var(--navy); color: #fff; }

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px 12px;
  cursor: pointer;
  font-family: inherit;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  transition: background var(--transition);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}

[data-theme="dark"] .theme-toggle-track { background: var(--navy); }
[data-theme="dark"] .theme-toggle-thumb { background: var(--gold); transform: translateX(18px); }

.theme-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }

.theme-toggle--admin {
  padding: 2px 10px;
  background: var(--surface2);
}

.theme-toggle--admin .theme-toggle-track {
  width: 38px;
  height: 22px;
}

.theme-toggle--admin .theme-toggle-thumb {
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .theme-toggle--admin .theme-toggle-thumb {
  transform: translateX(16px);
}

/* Mobile Nav */
.nav-actions-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions-mobile .theme-toggle {
  flex-shrink: 0;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  gap: 4px;
  background: var(--surface);
}

.mobile-menu.active { display: flex; }

.mobile-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
}

.mobile-link:hover { background: var(--surface2); color: var(--navy); }

@media (max-width: 767px) {
  .nav-links-desktop { display: none; }
  .nav-actions-mobile { display: flex; }
}

/* ============================================
   Layout
   ============================================ */

/*.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.section { padding: 56px 24px; }
.section-lg { padding: 72px 24px; } */

.section {
    padding-block: 3.5rem;
}

.section-lg {
    padding-block: 4.5rem;
}

/* ============================================
   Hero Banner
   ============================================ */

.hero-banner {
  background: var(--navy);
  padding: 48px 24px 52px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-hero);
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
  font-weight: 700;
}

.hero-title em { color: var(--gold); font-style: normal; }

.hero-subtitle {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-stat);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero-stats { gap: 24px; }
  .hero-stat-number { font-size: 2rem; }
}

/* ============================================
   Search Card
   ============================================ */

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -34px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color var(--transition);
}

.search-input-wrap:focus-within { border-color: var(--gold); }

.search-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-small);
  color: var(--text);
}

.search-input::placeholder { color: var(--text-light); }

/* Form Controls */
.form-select, .form-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: var(--fs-small);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  min-width: 160px;
  height: 44px;
  width: auto;
  line-height: 1.5;
  box-shadow: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5a55' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select:focus, .form-input:focus { border-color: var(--navy); }

/* ============================================
   Section Headers
   ============================================ */

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-tag-line {
  height: 1px;
  width: 40px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-desc {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 24px;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .home-section-title,
[data-theme="dark"] .about-section-title {
  color: #e2ecfc;
  font-weight: 700;
}

[data-theme="dark"] .section-desc,
[data-theme="dark"] .home-section-desc,
[data-theme="dark"] .about-section-desc {
  color: #7a8b9e;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================
   School Cards Grid
   ============================================ */

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.school-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

[data-theme="dark"] .school-card {
  background: var(--surface);
}

[data-theme="dark"] .school-name,
[data-theme="dark"] .home-service-card h3,
[data-theme="dark"] #what-we-do .home-offering-title,
[data-theme="dark"] #what-drives-us .home-value-title,
[data-theme="dark"] .about-value-title,
[data-theme="dark"] .about-detail-title,
[data-theme="dark"] .home-cta-title,
[data-theme="dark"] .about-cta-title,
[data-theme="dark"] .faq-question {
  color: #a2b9e3;
  font-weight: 600;
}

[data-theme="dark"] .home-service-card p,
[data-theme="dark"] #what-we-do .home-offering-card p,
[data-theme="dark"] #what-drives-us .home-value-card p,
[data-theme="dark"] .about-value-card p,
[data-theme="dark"] .about-detail-card p,
[data-theme="dark"] .home-welcome-stat-label,
[data-theme="dark"] .home-cta-desc,
[data-theme="dark"] .about-cta-desc {
  color: #8fa0b5;
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-theme="dark"] .about-offerings-item {
  color: #8fa0b5;
  background-color: #162235;
  border: 1px solid #24354f;
}

[data-theme="dark"] .about-offerings-item:hover {
  color: #ffffff;
  border-color: #ff4d4d;
}

.school-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--navy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.school-card:hover::before { transform: scaleX(1); }

.school-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--navy);
}

.school-card:nth-child(3n) .school-avatar { background: var(--green); }
.school-card:nth-child(3n+2) .school-avatar { background: var(--gold); }

.school-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  flex: 1;
  transition: color var(--transition);
}

.school-card:hover .school-name { color: var(--gold); }

.curriculum-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--gold-light);
  color: var(--gold-dark);
  width: fit-content;
}

.school-branches {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.school-branches strong {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-container { max-width: 800px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--gold); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-item.active .faq-question { color: var(--gold); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer { max-height: 600px; }

/* ============================================
   School Detail Page
   ============================================ */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: var(--transition);
}

.back-btn:hover { border-color: var(--navy); color: var(--navy); }

.detail-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.detail-pill {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--gold-light);
  color: var(--gold-dark);
}

.detail-pill.secondary { background: var(--surface2); color: var(--text-muted); }

/* Branch Cards */
.branch-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 14px;
}

.branch-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.branch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
  flex-wrap: wrap;
}

.branch-card:hover {
  transform: translateX(4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.branch-card--primary {
  border-color: var(--gold);
  background: var(--gold-light);
}

.branch-card--primary:hover {
  border-color: var(--gold);
}

.branch-primary-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  background: var(--gold);
  color: #fff;
}

.branch-stock-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.branch-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.branch-info { flex: 1; min-width: 180px; }

.branch-name { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.branch-phone { font-size: 0.9375rem; color: var(--text-muted); margin-top: 2px; }
.branch-hours { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

.branch-actions { display: flex; gap: 8px; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

.btn-gold { background: var(--gold-light); color: var(--navy); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold); color: #fff; }

/* Bulk Orders Banner */
.bulk-banner {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px;
  margin: 20px 0;
}

.bulk-banner p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.bulk-banner a { color: var(--navy); font-weight: 600; }

.bulk-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.bulk-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
}

.bulk-contact strong { color: var(--text); }
.bulk-contact em { font-size: 0.75rem; color: var(--text-muted); font-style: normal; }

.bulk-wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
}

/* Hours Note */
.hours-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hours-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.hours-note strong { color: var(--text); }

/* Detail Actions */
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-detail {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-detail-primary { background: var(--navy); color: #fff; }
.btn-detail-primary:hover { background: var(--navy-dark); }

.btn-detail-primary:disabled {
  background: var(--surface2);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.7;
}

.btn-detail-secondary { background: var(--gold); color: #fff; }
.btn-detail-secondary:hover { background: var(--gold-dark); }

/* ============================================
   Contact Page
   ============================================ */

.contact-hero { background: var(--navy); padding: 48px 24px 40px; text-align: center; }
.contact-hero .hero-title { text-align: center; }
.contact-hero .hero-subtitle { max-width: 520px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover { border-color: var(--red); }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-icon.whatsapp { background: var(--wa-green); }
.contact-icon.phone { background: var(--navy); }
.contact-icon.email { background: var(--red); }
.contact-icon.location { background: #6b4c9a; }

.contact-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-card-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.contact-hours-chip {
  font-size: 0.8125rem;
  color: var(--text-light);
  background: var(--surface2);
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}

.contact-line-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.contact-line-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.contact-office-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.contact-branches-block {
  margin-top: 40px;
}

.contact-branches-title {
  color: var(--navy);
}

.contact-branches-desc {
  margin: 8px 0 24px;
}

.branch-card-phone {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.branch-card-hours {
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--surface2);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.lead-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.lead-text-box {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 16px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin: 16px 0;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-whatsapp { background: var(--wa-green); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }

.btn-email { background: var(--red); color: #fff; }
.btn-email:hover { opacity: 0.9; }

.hours-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hours-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hours-banner strong { color: #fff; font-size: 0.9375rem; }
.hours-banner span { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.branch-card-sm {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.branch-card-sm:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
}

.branch-card-sm .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.branch-card-sm .name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}

/* ============================================
   Admin Dashboard
   ============================================ */

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.admin-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-left { display: flex; align-items: center; gap: 10px; }

.admin-nav-brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--logo-chip-bg);
  padding: 4px 10px 4px 6px;
  border-radius: 8px;
  line-height: 0;
}

.admin-nav-logo {
  height: 34px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.admin-nav-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.admin-nav-brand .gold,
.admin-brand-ltd {
  color: var(--gold);
}

.admin-badge {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--navy);
  color: #fff;
}

.admin-nav-right { display: flex; align-items: center; gap: 12px; }

.btn-logout {
  padding: 7px 14px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover { background: var(--red); color: #fff; }

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2d4a73);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* Admin Header */
.admin-header {
  background: var(--navy);
  padding: 36px 24px 32px;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
}

.admin-header p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-top: 6px;
}

.admin-stats-inline {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-stat-inline .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.admin-stat-inline .number.green { color: #4ade80; }
.admin-stat-inline .number.gold { color: var(--gold); }
.admin-stat-inline .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-number.navy { color: var(--navy); }
.stat-number.green { color: var(--green); }
.stat-number.gold { color: var(--gold); }

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Filter Row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.filter-row .search-input-wrap { flex: 1; min-width: 220px; }

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
}

.btn-filter-secondary {
  background: var(--surface2);
  color: var(--text-muted);
}

.btn-filter-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-filter-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-filter-success:hover {
  background: #145a2d;
  border-color: #145a2d;
}

/* Schools Table */
.schools-table { display: flex; flex-direction: column; gap: 10px; }

/* Table Header */
.schools-table-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.schools-table-header + .school-row {
  border-radius: 0 0 var(--radius) var(--radius);
}

.schools-table-header + .school-row:not(:last-child) {
  border-radius: 0;
}

.header-cell {
  flex-shrink: 0;
  text-align: center;
}

.header-avatar {
  width: 40px;
  flex-shrink: 0;
}

.header-info {
  flex: 1;
  min-width: 180px;
  text-align: left;
}

.header-status {
  min-width: 80px;
}

.header-branches {
  min-width: 100px;
  max-width: 140px;
}

.header-brochure {
  min-width: 90px;
  text-align: center;
}

.header-download {
  min-width: 60px;
  text-align: center;
}

.header-qr-code {
  min-width: 60px;
  text-align: center;
}

.header-actions {
  min-width: 160px;
  margin-left: auto;
  text-align: right;
}

/* Responsive table headers */
@media (max-width: 1023px) {
  .header-branches {
    display: none;
  }
  .header-status,
  .header-brochure,
  .header-download,
  .header-qr-code {
    min-width: auto;
    padding: 0 4px;
  }
  .header-actions {
    min-width: 120px;
  }
}

@media (max-width: 767px) {
  .header-status,
  .header-brochure,
  .header-download,
  .header-qr-code,
  .header-branches {
    display: none;
  }
  .header-actions {
    min-width: auto;
    margin-left: 0;
    text-align: left;
  }
  .schools-table-header {
    padding: 10px 14px;
  }
}


.school-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: var(--transition);
  flex-wrap: wrap;
}

.school-row:hover {
  border-color: var(--gold);
  transform: translateX(2px);
}

.school-row.has-brochure { border-color: rgba(26, 107, 58, 0.3); }

.school-row.has-qr { border-color: rgba(26, 107, 58, 0.3); }

/* School Lists: grid columns so headers align with row data */
.schools-table--school-lists .schools-table-header,
.schools-table--school-lists .school-row {
  display: grid;
  grid-template-columns: 40px minmax(180px, 1fr) 110px 100px 80px 100px;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

.schools-table--school-lists .header-info,
.schools-table--school-lists .row-info {
  flex: none;
  min-width: 0;
}

.schools-table--school-lists .header-actions,
.schools-table--school-lists .row-actions {
  margin-left: 0;
  min-width: 0;
  justify-content: flex-end;
}

.schools-table--school-lists .header-status,
.schools-table--school-lists .header-branches,
.schools-table--school-lists .header-qr-code,
.schools-table--school-lists .header-actions {
  text-align: center;
}

.schools-table--school-lists .row-col-status,
.schools-table--school-lists .row-col-branches,
.schools-table--school-lists .row-col-qr-code {
  min-width: 0;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.schools-table--school-lists .row-col-branches {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schools-table--school-lists .row-col-qr-code {
  gap: 6px;
}

@media (max-width: 1023px) {
  .schools-table--school-lists .schools-table-header,
  .schools-table--school-lists .school-row {
    grid-template-columns: 40px minmax(140px, 1fr) 110px 80px 100px;
  }
}

@media (max-width: 767px) {
  .schools-table--school-lists .schools-table-header,
  .schools-table--school-lists .school-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .schools-table--school-lists .header-actions {
    text-align: right;
  }
}

.row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.row-info { flex: 1; min-width: 180px; }
.row-name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.row-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.status-pill {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}

.status-pill.linked { background: #d4edda; color: #155724; }
.status-pill.none { background: var(--surface2); color: var(--text-light); }

.row-actions { display: flex; gap: 8px; margin-left: auto; }

.btn-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-row-edit { background: var(--navy); color: #fff; }
.btn-row-edit:hover { background: var(--navy-dark); }
.btn-row-edit.green { background: var(--green); }

.btn-row-delete {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
}

.btn-row-delete:hover { background: var(--red); color: #fff; }

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ============================================
   Login Page
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a2c4e 60%, #3d3420 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(26, 44, 78, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.login-brand .gold { color: var(--gold); }

.login-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-top: -12px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Password field with eye icon inside */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .form-input,
.password-wrap input[type="password"],
.password-wrap input[type="text"] {
  width: 100%;
  padding: 12px 44px 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.password-wrap .form-input:focus,
.password-wrap input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 44, 78, 0.1);
}

[data-theme="dark"] .password-wrap .form-input:focus,
[data-theme="dark"] .password-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(45, 74, 115, 0.2);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  z-index: 2;
}

.toggle-pw:hover {
  color: var(--navy);
  background: var(--surface2);
}

.toggle-pw:active {
  transform: translateY(-50%) scale(0.95);
}

/* Email input styling */
.form-group > .form-input,
.form-group > input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group > .form-input:focus,
.form-group > input[type="email"]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 44, 78, 0.1);
}

[data-theme="dark"] .form-group > .form-input:focus,
[data-theme="dark"] .form-group > input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(45, 74, 115, 0.2);
}

.form-group > .form-input::placeholder,
.password-wrap input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

/* Login extras row */
.login-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.forgot-link:hover {
  color: var(--gold);
}

[data-theme="dark"] .forgot-link {
  color: var(--gold);
}

[data-theme="dark"] .forgot-link:hover {
  color: var(--gold-dark);
}

/* Field errors */
.field-error {
  font-size: 0.875rem;
  color: var(--red);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-error::before {
  content: '⚠';
  font-size: 0.875rem;
}

.form-error {
  font-size: 0.875rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a93226;
  animation: shakeIn 0.3s ease-out;
}

@keyframes shakeIn {
  0% { transform: translateX(-8px); opacity: 0; }
  50% { transform: translateX(4px); }
  100% { transform: translateX(0); opacity: 1; }
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 44, 78, 0.25);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-back {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-back:hover {
  background: var(--surface2);
  color: var(--navy);
  border-color: var(--navy);
}

.login-hint {
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
  .login-brand { font-size: 1.4rem; }
  .login-title { font-size: 1.3rem; }
  .login-extras { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================
   Modal (School Edit)
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.98);
  animation: modalIn 0.25s forwards;
}

@keyframes modalIn { to { transform: scale(1); } }

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  padding: 20px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: #fff;
  margin: 0;
}

.modal-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  margin-top: 4px;
  background: var(--surface2);
  color: var(--text-light);
}

.modal-status.linked { background: #d4edda; color: #155724; }

.modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover { color: #fff; }

.modal-body { padding: 28px; }

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-row .form-input,
.form-row .form-select { width: 100%; }

.form-help {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.toggle-label input { width: 16px; height: 16px; accent-color: var(--green); }

/* Branch Checkboxes */
.branch-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.branch-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.branch-check-label:has(input:checked) {
  border-color: var(--navy);
  background: rgba(26, 44, 78, 0.06);
  color: var(--navy);
}

[data-theme="dark"] .branch-check-label:has(input:checked) {
  background: rgba(45, 74, 115, 0.15);
  color: var(--text);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: var(--transition);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--navy);
  background: rgba(26, 44, 78, 0.04);
}

.drop-zone-title { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.drop-zone-hint { font-size: 0.875rem; color: var(--text-light); margin-top: 4px; }

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.file-info.new { background: var(--surface2); border: 1px solid var(--border); }
.file-info.existing { background: rgba(26, 107, 58, 0.07); border: 1px solid rgba(26, 107, 58, 0.25); }

.file-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.file-size { font-size: 0.75rem; color: var(--text-muted); }
.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.file-warning {
  font-size: 0.875rem;
  color: var(--red);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

.modal-footer .btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-left: auto;
  transition: var(--transition);
}

.modal-footer .btn-save:hover { background: var(--navy-dark); }

/* ============================================
   Delete Modal
   ============================================ */

.delete-modal .modal-box { max-width: 420px; padding: 32px 28px; text-align: center; }

.delete-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fdecea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}

.delete-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.delete-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.delete-desc .name { color: var(--red); font-weight: 600; }

/* ============================================
   Toast
   ============================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  max-width: 400px;
}

.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.toast.success { background: var(--green); color: #fff; }
.toast.error { background: var(--red); color: #fff; }
.toast.info { background: var(--navy); color: #fff; }

/* ============================================
   Loading & Back to Top
   ============================================ */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active { display: flex; }

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg { margin: 0 auto 16px; color: var(--text-light); }
.empty-state h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; margin-bottom: 16px; }
.empty-state button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 1.2fr 0.65fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-col-brand { max-width: 320px; }

.footer-col-social {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  background: var(--logo-chip-bg);
  padding: 6px 12px 6px 8px;
  border-radius: 8px;
  line-height: 0;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.footer-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--navy); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-light);
}

.footer-contact-item a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover { color: var(--navy); }

.footer-phones {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-phones a {
  font-weight: 600;
  color: var(--text-muted);
}

.footer-phones a:hover { color: var(--gold); }

.footer-phone-sep {
  color: var(--text-light);
  font-weight: 400;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-powered {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-powered-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 4px 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-powered-badge:hover {
  background: var(--gold-light);
  color: var(--gold);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer { padding: 40px 20px 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================
   Admin Sidebar
   ============================================ */

.admin-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sidebar.no-transition {
  transition: none !important;
}

.admin-sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; }
.sidebar-inner:hover::-webkit-scrollbar-thumb { background: var(--border); }

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: var(--surface2);
  color: var(--navy);
}

.sidebar-item.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.sidebar-item.active svg { stroke: #fff; }

.sidebar-item svg {
  flex-shrink: 0;
  color: currentColor;
  stroke: currentColor;
}

/* Submenu Toggle */
.sidebar-toggle-submenu {
  justify-content: flex-start;
}

.sidebar-toggle-submenu .submenu-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.sidebar-toggle-submenu[aria-expanded="true"] .submenu-chevron {
  transform: rotate(90deg);
}

/* Submenu */
.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 44px;
  animation: submenuSlide 0.2s ease-out;
}

.sidebar-submenu.open {
  display: flex;
}

@keyframes submenuSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-subitem:hover {
  background: var(--surface2);
  color: var(--navy);
}

.sidebar-subitem.active {
  background: rgba(26, 44, 78, 0.08);
  color: var(--navy);
  font-weight: 600;
}

[data-theme="dark"] .sidebar-subitem.active {
  background: rgba(45, 74, 115, 0.15);
  color: var(--text);
}

.subitem-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.sidebar-subitem:hover .subitem-dot,
.sidebar-subitem.active .subitem-dot {
  background: var(--navy);
}

[data-theme="dark"] .sidebar-subitem.active .subitem-dot {
  background: var(--gold);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2d4a73);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar.open ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* Main Content Area */
.admin-main {
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar.open ~ .admin-main {
  margin-left: 260px;
}

/* Sidebar Toggle Button in Nav */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 4px;
}

.sidebar-toggle:hover {
  background: var(--surface2);
  color: var(--navy);
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

/* ============================================
   User Popup (Google-style)
   ============================================ */

.user-menu-wrap {
  position: relative;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2d4a73);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

.admin-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(26, 44, 78, 0.25);
}

.admin-avatar:active {
  transform: scale(0.98);
}

/* Google-style popup */
.user-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  overflow: hidden;
  animation: popupSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}

.user-popup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2d4a73);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-popup-info {
  min-width: 0;
  overflow: hidden;
}

.user-popup-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-popup-email {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-popup-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.user-popup-actions {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}

.user-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.user-popup-item:hover {
  background: var(--surface2);
  color: var(--navy);
}

.user-popup-item svg {
  flex-shrink: 0;
  color: var(--text-light);
  stroke: var(--text-light);
  transition: color var(--transition-fast);
}

.user-popup-item:hover svg {
  color: var(--navy);
  stroke: var(--navy);
}

/* ============================================
   Admin Nav Adjustments
   ============================================ */

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0;
}

.admin-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-left { display: flex; align-items: center; gap: 8px; }

/* ============================================
   Admin Row Columns & QR Button
   ============================================ */

.row-col-status,
.row-col-branches,
.row-col-brochure,
.row-col-download,
.row-col-qr-code {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.row-col-branches {
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.row-col-brochure {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.row-col-download {
  min-width: 60px;
}

.row-col-qr-code {
  min-width: 60px;
}

/* Brochure status tick/cross */
.brochure-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
}

.brochure-status.yes {
  background: #d4edda;
  color: #155724;
}

.brochure-status.no {
  background: #fdecea;
  color: #a93226;
}

/* Icon buttons for table actions */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.btn-icon-add {
  background: var(--green);
  color: #fff;
}

.btn-icon-add:hover {
  background: #145a2d;
  transform: scale(1.1);
}

.btn-icon-replace {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}

.btn-icon-replace:hover {
  background: var(--gold);
  color: #fff;
  transform: scale(1.1);
}

.btn-icon-download {
  background: var(--navy);
  color: #fff;
}

.btn-icon-download:hover {
  background: var(--navy-dark);
  transform: scale(1.1);
}

.btn-icon-qr {
  background: var(--green);
  color: #fff;
}

.btn-icon-qr:hover {
  background: #145a2d;
  transform: scale(1.1);
}

.btn-icon-disabled {
  background: var(--surface2);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Tooltip on hover via title attribute enhancement */
.btn-icon[title],
.brochure-status[title] {
  position: relative;
}

/* Responsive columns */
@media (max-width: 1023px) {
  .row-col-branches {
    display: none;
  }
  .row-col-status,
  .row-col-brochure,
  .row-col-download,
  .row-col-qr-code {
    min-width: auto;
    padding: 0 4px;
  }
}

@media (max-width: 767px) {
  .row-col-status,
  .row-col-brochure,
  .row-col-download,
  .row-col-qr-code {
    display: none;
  }
  .row-actions {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
  }
  .row-actions .btn-row {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 250;
    top: 0;
    width: 280px;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2);
  }
  .admin-main {
    margin-left: 0 !important;
  }
  .sidebar-toggle {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .admin-sidebar {
    transform: translateX(0);
    box-shadow: none;
  }
  .admin-sidebar.closed {
    transform: translateX(-100%);
  }
  .admin-main {
    margin-left: 260px;
  }
  .admin-sidebar.closed ~ .admin-main {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: flex;
  }
  .sidebar-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  .section { padding: 40px 16px; }
  .detail-card { padding: 20px; }
  .detail-title { font-size: 1.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-row .search-input-wrap { min-width: 100%; }
  .school-row { padding: 12px 14px; }
  .row-actions { margin-left: 0; width: 100%; margin-top: 8px; }
  .row-actions .btn-row { flex: 1; justify-content: center; }
  .login-card { padding: 28px 20px; }
  .modal-box { max-width: 100%; }
  .admin-header-inner { flex-direction: column; }
  .admin-stats-inline { width: 100%; justify-content: space-between; }
  .user-popup { width: 280px; right: -10px; }
  .admin-nav-inner { padding: 0 16px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar.open ~ .admin-main {
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
  .schools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .schools-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   About Us
   ============================================ */

.about-wide { max-width: 1100px; margin: 0 auto; }

.about-hero {
  background: var(--navy);
  padding: 72px 24px 80px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-eyebrow--dark { color: var(--gold); }

.about-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-hero-title em {
  color: var(--gold);
  font-style: italic;
}

.about-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
}

.about-hero-text-part {
  display: block;
}

.about-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-hero-stat {
  position: relative;
  border: 1px solid rgba(217, 35, 46, 0.35);
  padding: 18px 20px 18px 28px;
  background: rgba(255, 255, 255, 0.03);
}

.about-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.about-hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.about-hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.about-section {
  padding: 72px 24px;
  background: var(--bg);
}

.about-section-light {
  background: var(--bg);
}

.about-section-header {
  margin-bottom: 40px;
}

.about-section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.about-section-desc {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.7;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-value-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.about-value-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.about-offerings-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.about-offerings-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 18px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.4;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.about-offerings-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.about-offerings-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.about-detail-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.about-detail-num {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.about-detail-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.about-cta-section {
  padding-bottom: 88px;
  background: var(--bg);
}

.about-cta-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.about-cta-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(26, 44, 78, 0.1);
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 44, 78, 0.16);
}

.about-btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.about-btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  filter: brightness(0.9);
}

.about-btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--gold);
}

.about-btn-secondary:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.about-animate {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-animate[data-animate="fade-up"] { transform: translateY(36px); }
.about-animate[data-animate="fade-left"] { transform: translateX(-40px); }
.about-animate[data-animate="fade-right"] { transform: translateX(40px); }

.about-animate.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .about-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-value-card:hover,
  .about-offerings-item:hover,
  .about-detail-card:hover { transform: none; }
}

@media (max-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-offerings-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-hero { padding: 56px 20px 64px; }
  .about-section { padding: 56px 20px; }
  .about-offerings-grid { grid-template-columns: 1fr 1fr; }
  .about-cta-panel { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .about-offerings-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Home Page
   ============================================ */

.home-hero {
  --hero-wire-length: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  background: var(--navy);
  padding: 72px 24px 80px;
  overflow: visible;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
}

.home-eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.home-eyebrow--dark { color: var(--gold); }

/* Hanging sign + hero entrance */
.sign-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.sign-mount {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sign-drop {
  opacity: 0;
  animation: signDropIn 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.sign-swing {
  position: relative;
  display: block;
  transform-origin: top center;
  animation: signSwing 4.5s ease-in-out 0.75s infinite;
}

.sign-wire {
  position: relative;
  flex-shrink: 0;
  width: 1px;
  height: var(--hero-wire-length);
  background-color: #bdc3c7;
  pointer-events: none;
}

.sign-wire::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background-color: #95a5a6;
}

.hanging-sign {
  position: relative;
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--gold);
  color: #fff;
  font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.22);
}

.home-hero-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.40625rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  max-width: 90%;
  margin-bottom: 1.125rem;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: heroTextReveal 0.35s ease-out 0.35s forwards;
}

.home-hero-text--waterfall {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-text-line {
  display: block;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: heroTextReveal 0.3s ease-out forwards;
}

.hero-text-line:nth-child(1) { animation-delay: 0.5s; }
.hero-text-line:nth-child(2) { animation-delay: 0.65s; }
.hero-text-line:nth-child(3) { animation-delay: 0.8s; }

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: heroTextReveal 0.35s ease-out 0.95s forwards;
}

.home-hero-showcase--entrance {
  opacity: 0;
  transform: translateX(1.5rem);
  animation: heroShowcaseEntrance 0.55s ease-out 0.25s forwards;
}

@keyframes signSwing {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

@keyframes signDropIn {
  0% {
    opacity: 0;
    transform: translateY(-3rem);
  }
  55% {
    opacity: 1;
    transform: translateY(0.3rem);
  }
  75% {
    transform: translateY(-0.125rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroShowcaseEntrance {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}

.home-hero-title em {
  color: var(--gold);
  font-style: italic;
}

.home-hero-text {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 90%;
  margin-bottom: 1.75rem;
}

.home-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-hero-stat {
  position: relative;
  border: 1px solid rgba(217, 35, 46, 0.35);
  padding: 18px 20px 18px 28px;
  background: rgba(255, 255, 255, 0.03);
}

.home-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.home-hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.home-hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(26, 44, 78, 0.12);
}

.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 44, 78, 0.16);
}

.home-btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.home-btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.home-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.home-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.home-btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.home-btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.home-hero-showcase {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 360px;
  justify-self: start;
}

.category-showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-dark);
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
}

.category-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.category-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1),
              visibility 0.9s,
              transform 0.9s cubic-bezier(0.33, 0, 0.2, 1);
  transform: translateX(12%) scale(0.96);
  display: flex;
  flex-direction: column;
}

.category-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.category-slide.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12%) scale(0.96);
  z-index: 1;
}

.category-slide-visual {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 100%;
}

.category-slide-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-slide-panel--a {
  border-right: 2px solid rgba(255, 255, 255, 0.08);
}

.category-slide-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.88);
}

.category-slide-visual--school .category-slide-panel--a,
.category-slide-visual--school .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.category-slide-visual--healthcare .category-slide-panel--a {
  background: linear-gradient(145deg, #243a5e 0%, var(--navy) 100%);
}

.category-slide-visual--healthcare .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #1a2c4e 100%);
}

.category-slide-visual--hospitality .category-slide-panel--a {
  background: linear-gradient(145deg, #2a3548 0%, var(--navy) 100%);
}

.category-slide-visual--hospitality .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #243a5e 100%);
}

.category-slide-visual--corporate .category-slide-panel--a {
  background: linear-gradient(145deg, #243a5e 0%, var(--navy) 100%);
}

.category-slide-visual--corporate .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #1a2c4e 100%);
}

.category-slide-visual--protective .category-slide-panel--a {
  background: linear-gradient(145deg, #2a3548 0%, var(--navy) 100%);
}

.category-slide-visual--protective .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #243a5e 100%);
}

.category-slide-visual--domestic .category-slide-panel--a {
  background: linear-gradient(145deg, #1e3354 0%, var(--navy) 100%);
}

.category-slide-visual--domestic .category-slide-panel--b {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #2d4a73 100%);
}

.category-slide-visual--photo {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--navy-dark);
}

.category-slide-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: scale(1);
}

.category-slide.is-active .category-slide-photo {
  animation: categoryPhotoKenBurns 5s ease-out forwards;
}

@keyframes categoryPhotoKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.category-slide-label {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 3;
}

.category-carousel-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.category-dots,
.category-arrows {
  pointer-events: auto;
}

.category-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.category-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

.category-arrows {
  display: flex;
  gap: 6px;
}

.category-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 29, 53, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.category-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
}

#who-we-are .home-welcome-stats {
  margin-top: 8px;
}

#who-we-are .home-section-header {
  max-width: 100%;
}

#who-we-are .home-section-title,
#who-we-are .home-section-desc {
  max-width: 100%;
}

#what-we-do .home-section-header {
  max-width: 100%;
}

#what-we-do .home-section-title,
#what-we-do .home-section-desc {
  max-width: 100%;
}

.home-locations {
  padding: 56px 0 56px;
  background: var(--bg);
}

.home-locations .home-section-header {
  margin-bottom: 28px;
}

.location-showcase {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.location-showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  background: var(--navy-dark);
  transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-showcase-frame.is-callcenter-active {
  border-color: rgba(217, 35, 46, 0.4);
  box-shadow:
    0 16px 48px rgba(14, 29, 53, 0.22),
    0 0 0 1px rgba(217, 35, 46, 0.12);
}

.location-showcase-frame.is-callcenter-active::before {
  display: none;
}

.home-section-header {
  margin-bottom: 36px;
}

.home-section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.home-section-title em {
  color: var(--gold);
  font-style: italic;
}

.home-section-desc {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.7;
}


.location-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  --waterfall-duration: 1.25s;
  --waterfall-ease: cubic-bezier(0.33, 0, 0.2, 1);
}

.location-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  --location-wire-length: clamp(2.1rem, 4.2vw, 3.5rem);
  transition:
    opacity var(--waterfall-duration) var(--waterfall-ease),
    visibility var(--waterfall-duration),
    transform var(--waterfall-duration) var(--waterfall-ease);
  transform: translateY(-9%);
  z-index: 1;
}

.location-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.location-slide.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateY(11%);
  z-index: 1;
}

.location-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.location-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.location-slide.is-active .location-slide-img {
  animation: location-kenburns 14s ease-in-out infinite alternate;
}

.location-slide-img--promo {
  object-fit: cover;
  object-position: 58% center;
  background: linear-gradient(135deg, #1a3a6b 0%, #4a90c2 50%, #87ceeb 100%);
}

.location-slide.is-active .location-slide-img--promo {
  animation: location-kenburns-promo 14s ease-in-out infinite alternate;
}

@keyframes location-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -0.5%, 0);
  }
}

@keyframes location-kenburns-promo {
  from {
    transform: scale(1);
    object-position: 58% center;
  }
  to {
    transform: scale(1.06);
    object-position: 54% center;
  }
}

@keyframes location-waterfall-in {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes location-waterfall-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(26px);
  }
}

.location-slide-btn--whatsapp {
  background: var(--wa-green);
  color: #fff;
}

.location-slide-btn--whatsapp:hover {
  filter: brightness(1.08);
  color: #fff;
}

.location-thumb-img--promo {
  object-fit: cover;
  object-position: 70% center;
}

.location-thumb--callcenter {
  gap: 12px;
  padding-left: 10px;
  border-color: rgba(217, 35, 46, 0.35);
}

.location-thumb--callcenter.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light) 0%, #fff 100%);
  box-shadow: 0 4px 16px rgba(217, 35, 46, 0.18);
}

.location-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #2a1520 100%);
  color: rgba(255, 255, 255, 0.35);
}

.location-slide--no-photo .location-slide-media {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 55%, #1a2c4e 100%);
}

.location-slide:not(.location-slide--callcenter) .location-slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(14, 29, 53, 0.92) 0%,
    rgba(14, 29, 53, 0.68) 34%,
    rgba(14, 29, 53, 0.28) 54%,
    transparent 78%
  );
}

.location-placeholder-label {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.location-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 29, 53, 0.92) 0%,
    rgba(14, 29, 53, 0.72) 32%,
    rgba(14, 29, 53, 0.35) 52%,
    rgba(14, 29, 53, 0.08) 68%,
    transparent 82%
  );
}

.location-slide--callcenter .location-slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(14, 29, 53, 0.94) 0%,
    rgba(14, 29, 53, 0.7) 30%,
    rgba(14, 29, 53, 0.25) 48%,
    transparent 65%
  );
}

.location-slide--callcenter .location-slide-tag--callcenter {
  background: linear-gradient(135deg, var(--gold) 0%, #e85d5d 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 14px rgba(217, 35, 46, 0.35);
}

.location-slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 3;
  color: #fff;
  pointer-events: none;
}

.location-slide-caption-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 58%;
  height: 100%;
  min-height: 100%;
  padding: 48px 56px 56px 64px;
  pointer-events: auto;
}

.location-slide--callcenter .location-slide-caption-inner {
  max-width: 54%;
}

.location-slide-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.location-slide-kicker-accent {
  color: var(--gold);
}

.location-slide-kicker-brand {
  color: #fff;
}

/* Location carousel — hanging welcome sign */
.location-sign {
  margin: 0 0 16px;
  width: fit-content;
}

.location-sign .sign-wire {
  height: var(--location-wire-length);
  background-color: rgba(255, 255, 255, 0.55);
}

.location-sign .sign-wire::before {
  background-color: rgba(255, 255, 255, 0.8);
}

.location-sign .sign-swing--location {
  transform-origin: top center;
  animation: none;
}

.location-slide.is-active .location-sign .sign-swing--location {
  animation: locationSignSwing 3.2s ease-in-out 0.9s infinite;
}

.location-sign .hanging-sign,
.location-sign .hanging-sign--location,
.hanging-sign--location {
  background-color: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.875rem, 1.54vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  border: none;
}

@keyframes locationSignSwing {
  0%, 100% { transform: rotate(-4.5deg); }
  50% { transform: rotate(4.5deg); }
}

@keyframes location-sign-waterfall-in {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  55% {
    opacity: 1;
    transform: translateY(6px);
  }
  75% {
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-slide.is-active .location-slide-caption-inner > .location-sign {
  animation: location-sign-waterfall-in 1.15s cubic-bezier(0.33, 0, 0.2, 1) 0.08s forwards;
}

.location-slide.is-exiting .location-slide-caption-inner > .location-sign {
  animation: location-waterfall-out 0.95s cubic-bezier(0.4, 0, 0.55, 1) 0s forwards;
}

.location-slide-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
  max-width: 520px;
}

.location-slide-hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
  max-width: 480px;
}

.location-slide-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.location-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 14px;
  background: #fff;
  color: var(--navy);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.location-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  color: var(--navy);
}

.location-slide-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}

.location-slide-cta--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.location-slide-cta--ghost .location-slide-cta-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.location-slide-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.location-slide-meta {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.location-slide-phone {
  margin: 14px 0 0;
}

.location-slide-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--transition);
}

.location-slide-phone-link:hover {
  color: var(--gold);
}

.location-slide-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  flex-shrink: 0;
}

.location-slide .location-slide-caption-inner > * {
  opacity: 0;
  transform: translateY(-20px);
}

.location-slide.is-active .location-slide-caption-inner > * {
  animation: location-waterfall-in 1.1s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.location-slide.is-active .location-slide-caption-inner > *:nth-child(1) { animation-delay: 0.08s; }
.location-slide.is-active .location-slide-caption-inner > *:nth-child(2) { animation-delay: 0.2s; }
.location-slide.is-active .location-slide-caption-inner > *:nth-child(3) { animation-delay: 0.32s; }
.location-slide.is-active .location-slide-caption-inner > *:nth-child(4) { animation-delay: 0.44s; }
.location-slide.is-active .location-slide-caption-inner > *:nth-child(5) { animation-delay: 0.56s; }

.location-slide.is-exiting .location-slide-caption-inner > * {
  animation: location-waterfall-out 0.95s cubic-bezier(0.4, 0, 0.55, 1) forwards;
}

.location-slide.is-exiting .location-slide-caption-inner > *:nth-child(1) { animation-delay: 0s; }
.location-slide.is-exiting .location-slide-caption-inner > *:nth-child(2) { animation-delay: 0.05s; }
.location-slide.is-exiting .location-slide-caption-inner > *:nth-child(3) { animation-delay: 0.1s; }
.location-slide.is-exiting .location-slide-caption-inner > *:nth-child(4) { animation-delay: 0.15s; }
.location-slide.is-exiting .location-slide-caption-inner > *:nth-child(5) { animation-delay: 0.2s; }

.location-slide:not(.is-active):not(.is-exiting) .location-slide-caption-inner > * {
  animation: none;
  opacity: 0;
  transform: translateY(-20px);
}

.location-slide-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.location-slide-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.location-slide-address {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
  max-width: 520px;
  line-height: 1.5;
}

.location-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
}

.location-slide-btn--call {
  background: var(--gold);
  color: #fff;
}

.location-slide-btn--call:hover {
  filter: brightness(1.1);
  color: #fff;
}

.location-slide-btn--map {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.location-slide-btn--map:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.location-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  opacity: 0.92;
}

.location-nav-btn:hover {
  background: var(--navy);
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}

.location-nav-prev { left: 20px; }
.location-nav-next { right: 20px; }

.location-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.location-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.location-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 4px 8px 4px;
  scrollbar-width: thin;
}

.location-thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  min-width: 0;
}

.location-thumb:hover {
  border-color: var(--gold);
}

.location-thumb.is-active {
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: var(--shadow);
}

.location-thumb-img,
.location-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.location-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.location-slide-address--detail {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.location-thumb-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.location-thumb-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

.location-thumb-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.branch-callcenter-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 35, 46, 0.25);
}

.home-services {
  background: var(--bg);
}

.home-welcome {
  background: var(--bg);
}

.home-welcome-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-welcome-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-welcome-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.home-welcome-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.home-welcome-stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.home-services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-services-grid.home-services-grid--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-services-grid.home-services-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-services-grid.home-services-grid--values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* What Drives Us — large value cards grid */
#what-drives-us .home-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

#what-drives-us .home-value-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 300px;
  padding: 44px 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#what-drives-us .home-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

#what-drives-us .home-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 28px;
  flex-shrink: 0;
}

#what-drives-us .home-value-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.35;
  max-width: 280px;
}

#what-drives-us .home-value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  max-width: 320px;
}

[data-theme="dark"] #what-drives-us .home-value-icon {
  background: var(--navy);
}

/* What We Do — tall offerings card row */
#what-we-do .home-offerings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

#what-we-do .home-offering-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 340px;
  padding: 32px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#what-we-do .home-offering-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

#what-we-do .home-offering-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-light);
  color: var(--gold);
  margin-bottom: 22px;
  flex-shrink: 0;
}

#what-we-do .home-offering-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

#what-we-do .home-offering-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.home-service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.home-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-light);
  color: var(--gold);
  margin-bottom: 16px;
}

.home-service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.home-service-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-cta-section {
  padding: 0 24px 80px;
  background: var(--bg);
}

.home-cta-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.home-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.home-cta-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.home-who-cta {
  justify-content: flex-start;
  margin-top: 28px;
}

.home-cta-actions .home-btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}

.home-cta-actions .home-btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--gold);
}

.home-cta-actions .home-btn-secondary:hover {
  background: var(--gold);
  color: #fff;
}

.home-animate {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-animate[data-animate="fade-up"] { transform: translateY(36px); }
.home-animate[data-animate="fade-left"] { transform: translateX(-40px); }
.home-animate[data-animate="fade-right"] { transform: translateX(40px); }

.home-animate.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .location-slide-img,
  .location-slide {
    transition: none;
  }

  .location-slide .location-slide-caption-inner > *,
  .location-slide.is-active .location-slide-caption-inner > *,
  .location-slide.is-exiting .location-slide-caption-inner > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .location-slide:not(.is-active) .location-slide-caption-inner > * {
    opacity: 0;
  }

  .location-slide.is-active .location-slide-caption-inner > * {
    opacity: 1;
  }

  .location-slide.is-active .location-sign .sign-swing--location {
    animation: none;
  }

  .location-slide.is-active .location-slide-img {
    animation: none;
    transform: scale(1);
  }

  .location-slide--callcenter.is-active .location-slide-img--promo {
    animation: none;
  }

  .location-showcase-frame.is-callcenter-active::before {
    animation: none;
  }

  .location-slide.is-active .location-slide-img {
    transform: scale(1);
  }

  .home-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hanging-sign,
  .sign-drop,
  .sign-swing,
  .sign-mount,
  .home-hero-headline,
  .hero-text-line,
  .home-hero-actions,
  .home-hero-showcase--entrance {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-service-card:hover,
  .home-welcome-stat:hover,
  #what-we-do .home-offering-card:hover,
  #what-drives-us .home-value-card:hover {
    transform: none;
  }

  .category-slide {
    transition: none;
  }

  .category-slide.is-active .category-slide-photo {
    animation: none;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-hero-content { align-items: center; }
  .sign-container { align-self: center; }
  .home-hero-headline,
  .home-hero-text--waterfall,
  .home-hero-actions {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }
  .home-hero-showcase {
    max-width: min(360px, 82vw);
    justify-self: center;
    margin-inline: auto;
  }
  .category-carousel { max-height: none; }
  .category-showcase-frame { max-height: min(68vh, 560px); }
  .home-services-grid.home-services-grid--values { grid-template-columns: 1fr; }
  #what-drives-us .home-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #what-drives-us .home-value-card {
    min-height: 0;
    padding: 36px 28px;
  }
  #what-we-do .home-offerings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #what-we-do .home-offering-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .home-services-grid.home-services-grid--five { grid-template-columns: repeat(2, 1fr); }
  .home-services-grid.home-services-grid--pairs { grid-template-columns: 1fr; }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-welcome-stats { grid-template-columns: repeat(3, 1fr); }
  .location-carousel { aspect-ratio: 16 / 10; min-height: 340px; }
  .location-slide-caption-inner {
    max-width: 72%;
    padding: 36px 40px 44px 48px;
  }
  .location-slide--callcenter .location-slide-caption-inner { max-width: 68%; }
  .location-slide-hero-title { max-width: 100%; }
  .location-slide-hero-desc { max-width: 100%; }

  .location-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
    padding: 4px 4px 0;
    margin-top: 12px;
    scrollbar-width: auto;
  }

  .location-thumb {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 8px 10px 8px 8px;
    border-radius: 12px;
    gap: 8px;
  }

  .location-thumb--callcenter {
    grid-column: 1 / -1;
    padding: 8px 12px 8px 10px;
  }

  .location-thumb-img,
  .location-thumb-placeholder {
    width: 38px;
    height: 38px;
  }

  .location-thumb-name {
    font-size: 0.8125rem;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
  }

  .location-thumb-sub {
    white-space: normal;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }
}

@media (max-width: 600px) {
  .category-showcase-frame { max-height: min(62vh, 480px); }
  .category-slide-label { font-size: 0.875rem; bottom: 44px; }
  .home-hero {
    --hero-wire-length: clamp(1.75rem, 5vw, 3.5rem);
    padding: 56px 20px 64px;
  }

  .home-hero-headline {
    font-size: clamp(1.125rem, 4.5vw, 1.25rem);
    letter-spacing: 0.03em;
  }

  .hanging-sign {
    letter-spacing: 0.14em;
    padding: 0.5rem 1rem;
  }
  .home-locations { padding: 12px 0 40px; }
  #what-we-do .home-offerings-grid {
    grid-template-columns: 1fr;
  }

  .home-services-grid,
  .home-services-grid.home-services-grid--five,
  .home-services-grid.home-services-grid--pairs,
  .home-services-grid.home-services-grid--values {
    grid-template-columns: 1fr;
  }
  #what-drives-us .home-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #what-drives-us .home-value-card {
    min-height: 0;
    padding: 36px 28px;
  }
  .home-welcome-stats { grid-template-columns: 1fr; }
  .location-carousel { aspect-ratio: 4 / 3; min-height: 300px; }
  .location-slide-caption-inner {
    max-width: 100%;
    padding: 28px 20px 36px;
  }
  .location-slide--callcenter .location-slide-caption-inner { max-width: 100%; }
  .location-slide-hero-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .location-slide-cta-row { gap: 8px; }
  .location-slide-cta {
    padding: 12px 16px 12px 12px;
    font-size: 0.75rem;
  }
  .location-slide-cta-icon { width: 32px; height: 32px; }
  .location-nav-btn { width: 40px; height: 40px; }
  .location-nav-prev { left: 10px; }
  .location-nav-next { right: 10px; }
  .home-cta-panel { padding: 36px 24px; }

  .location-thumbs {
    gap: 6px;
    padding: 4px 2px 0;
  }

  .location-thumb {
    padding: 7px 8px 7px 7px;
    gap: 6px;
  }

  .location-thumb-name {
    font-size: 0.75rem;
  }

  .location-thumb-label,
  .location-thumb-sub {
    font-size: 0.6875rem;
  }

  .location-thumb-img,
  .location-thumb-placeholder {
    width: 34px;
    height: 34px;
  }
}

/* ============================================
   Bootstrap component bridges (Animet brand)
   Use .btn-primary, .btn-danger, etc. in new markup
   ============================================ */

.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-dark);
  --bs-btn-hover-border-color: var(--navy-dark);
  --bs-btn-active-bg: var(--navy-dark);
  --bs-btn-active-border-color: var(--navy-dark);
  --bs-btn-disabled-bg: var(--navy);
  --bs-btn-disabled-border-color: var(--navy);
}

.btn-danger {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: var(--gold-dark);
  --bs-btn-hover-border-color: var(--gold-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy-dark);
  --bs-btn-active-border-color: var(--navy-dark);
}

.form-control,
.login-form .form-input {
  border-color: var(--border);
  border-radius: var(--radius);
}

.form-control:focus,
.login-form .form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}

.card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-content {
  border-radius: var(--radius-lg);
  border-color: var(--border);
}

/* ============================================
   Admin dark mode refinements
   ============================================ */

[data-theme="dark"] .status-pill.linked,
[data-theme="dark"] .modal-status.linked {
  background: rgba(26, 107, 58, 0.22);
  color: #7ddea8;
}

[data-theme="dark"] .form-error {
  background: rgba(217, 35, 46, 0.15);
  border-color: rgba(217, 35, 46, 0.35);
  color: #ff8a92;
}

[data-theme="dark"] .schools-table-header {
  background: var(--surface2);
}

[data-theme="dark"] .school-row:hover {
  background: var(--surface2);
}

[data-theme="dark"] .user-popup {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .admin-avatar {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}