/*--------------------------------------------------------------
# Keystone Visual Enhancement Layer
# Overrides BootstrapMade "Valera" template defaults
# Design: Trust & Authority — Premium Education
# Typography: Playfair Display + Inter
# Palette: Navy #1E3A8A / Blue #2563EB / Gold #B45309 / Teal #0F766E
--------------------------------------------------------------*/

/* =============================================
   CSS CUSTOM PROPERTIES OVERRIDE
   ============================================= */
:root {
  /* Typography */
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --nav-font: "Inter", system-ui, sans-serif;

  /* Colors — Trust & Authority */
  --background-color: #F8FAFC;
  --default-color: #334155;
  --heading-color: #0F172A;
  --accent-color: #2563EB;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* Extended palette */
  --navy: #1E3A8A;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --gold: #B45309;
  --gold-light: #D97706;
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --dark: #0F172A;
  --dark-surface: #1E293B;
  --slate: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --light-bg: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-out-expo);
}

/* Nav colors override */
:root {
  --nav-color: #ffffff;
  --nav-hover-color: #93C5FD;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #334155;
  --nav-dropdown-hover-color: #2563EB;
}

/* Dark background override */
.dark-background {
  --background-color: #0F172A;
  --default-color: #CBD5E1;
  --heading-color: #F1F5F9;
  --surface-color: #1E293B;
  --contrast-color: #ffffff;
}

/* Light background override */
.light-background {
  --background-color: #F1F5F9;
  --surface-color: #ffffff;
}

/* =============================================
   GLOBAL TYPOGRAPHY
   ============================================= */
body {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 700;
}

/* Sitewide heading family override (keep body copy in Inter) */
h1, h2, h3, h4, h5, h6,
.section-title h2,
.service-item h3,
.icon-box h3, .icon-box h4,
.about .content h3,
.footer .sitename,
.team .member h4,
.page-title h1,
.hero h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  line-height: 1.75;
  color: var(--slate);
}

a {
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

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

/* =============================================
   HEADER & NAVIGATION ENHANCEMENTS
   ============================================= */
.header {
  --background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  transition: var(--transition-smooth);
}

.scrolled .header {
  --background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px) saturate(2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-transform: none;
    opacity: 0.85;
    transition: var(--transition-smooth);
  }

  .navmenu a:hover,
  .navmenu .active {
    opacity: 1;
  }

  .navmenu > ul > li > a:before {
    background: linear-gradient(90deg, var(--blue), var(--teal-light));
    height: 2px;
    border-radius: 2px;
  }
}

/* =============================================
   HERO SECTION — PREMIUM OVERHAUL
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(30, 58, 138, 0.25) 40%,
    rgba(15, 23, 42, 0.35) 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(15, 118, 110, 0.12) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(203, 213, 225, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 8px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.hero .btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
}

/* Geometric decorative shapes in hero */
.hero-shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
}

.hero-shape-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-shape-2 {
  bottom: 15%;
  left: 8%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transform: rotate(45deg);
  animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
  top: 30%;
  left: 15%;
  width: 100px;
  height: 100px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 12s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
  75% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* =============================================
   SECTION TITLES — GRADIENT TEXT
   ============================================= */
.section-title h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 3px;
}

.section-title p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   SECTION STYLING & DIVIDERS
   ============================================= */
.section {
  padding: 80px 0;
  position: relative;
}

/* Wave divider between sections */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider-top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* Alternating section backgrounds */
.section:nth-child(even) {
  background-color: var(--light-bg);
}

.section:nth-child(odd) {
  background-color: var(--background-color);
}

/* =============================================
   SERVICE CARDS — GLASSMORPHISM
   ============================================= */
.service-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 36px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.15);
}

.service-item:hover::before {
  opacity: 1;
}

.service-item .icon {
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.06));
  transition: var(--transition-smooth);
}

.service-item:hover .icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(15, 118, 110, 0.1));
  transform: scale(1.05);
}

.service-item h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}

/* =============================================
   ICON BOXES — ENHANCED
   ============================================= */
.icon-box {
  padding: 28px 24px;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.icon-box:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.icon-box i {
  font-size: 28px;
  color: var(--blue);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.05));
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.icon-box:hover i {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
}

.icon-box h3, .icon-box h4 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

.icon-box h4 a {
  color: var(--heading-color);
  text-decoration: none;
}

.icon-box h4 a:hover {
  color: var(--blue);
}

.icon-box h4 span {
  color: var(--blue);
  font-weight: 700;
  font-family: var(--nav-font);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.icon-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}

/* =============================================
   ABOUT / CONTENT SECTIONS
   ============================================= */
.about .content h3 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.about .content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

/* =============================================
   STATS / COUNTER SECTION
   ============================================= */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(15, 118, 110, 0.1), transparent 60%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item .stat-number {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-family: var(--nav-font);
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact .info-item {
  padding: 24px;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.contact .info-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-md);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--blue);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.05));
  margin-right: 16px;
}

.contact .info-item h3 {
  font-family: var(--nav-font);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact .info-item p {
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 0;
  font-weight: 500;
}

/* Contact form */
.contact .php-email-form .form-control {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--default-font);
  font-size: 15px;
  color: var(--heading-color);
  background: var(--surface-color);
  transition: var(--transition-smooth);
}

.contact .php-email-form .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.contact .php-email-form .form-control::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.contact .php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 48px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.contact .php-email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

/* Google Maps iframe */
.contact iframe {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* =============================================
   FOOTER — MODERN
   ============================================= */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #070B14 100%);
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(15, 118, 110, 0.3), transparent);
}

.footer .sitename {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer p {
  color: rgba(148, 163, 184, 0.8);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.7);
  margin: 0 5px;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.footer .social-links a:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer .copyright {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.7);
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .copyright .sitename {
  font-size: 0.85rem;
  font-family: var(--nav-font);
  color: rgba(148, 163, 184, 0.9);
}

/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
.scroll-top {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: var(--transition-smooth);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.scroll-top i {
  color: #ffffff;
  font-size: 20px;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
  background: var(--dark);
}

#preloader::before {
  border-top-color: var(--blue);
}

/* =============================================
   CUSTOM AOS ANIMATIONS
   ============================================= */
[data-aos="fade-up-premium"] {
  opacity: 0;
  transform: translateY(40px);
  transition-property: transform, opacity;
}
[data-aos="fade-up-premium"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="scale-up"] {
  opacity: 0;
  transform: scale(0.92);
  transition-property: transform, opacity;
}
[data-aos="scale-up"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

[data-aos="slide-right"] {
  opacity: 0;
  transform: translateX(-60px);
  transition-property: transform, opacity;
}
[data-aos="slide-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="slide-left"] {
  opacity: 0;
  transform: translateX(60px);
  transition-property: transform, opacity;
}
[data-aos="slide-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   TEAM PAGE CARDS
   ============================================= */
.team .member {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-color);
  transition: var(--transition-smooth);
}

.team .member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team .member .member-info {
  padding: 24px 20px;
}

.team .member h4 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 600;
}

/* =============================================
   PORTFOLIO / GALLERY
   ============================================= */
.portfolio .portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portfolio .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  .service-item {
    padding: 28px 24px;
  }

  .icon-box {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero .btn-get-started {
    padding: 14px 32px;
    font-size: 15px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .wave-divider svg {
    height: 35px;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    animation: none;
  }

  .service-item:hover,
  .icon-box:hover,
  .hero .btn-get-started:hover {
    transform: none;
  }
}

/* =============================================
   FOCUS STATES (Accessibility)
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================
   PAGE TITLE BANNER (Inner Pages)
   ============================================= */
.page-title {
  padding: 200px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(30, 58, 138, 0.25) 50%,
    rgba(15, 23, 42, 0.35) 100%
  );
}

.page-title::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 60%, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.page-title h1 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-title p {
  color: rgba(203, 213, 225, 0.85);
  font-weight: 400;
  line-height: 1.7;
}

.page-title .breadcrumbs ol {
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
}

.page-title .breadcrumbs ol a {
  color: rgba(147, 197, 253, 0.8);
  transition: var(--transition-smooth);
}

.page-title .breadcrumbs ol a:hover {
  color: #ffffff;
}

/* =============================================
   PAGE-SPECIFIC: COMPLIANCE
   ============================================= */
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(15, 118, 110, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* =============================================
   MOBILE NAVIGATION FIX (v3)
   ============================================= */
@media (max-width: 1199px) {
  .header {
    padding: 24px 0 !important;
  }

  .mobile-nav-active .header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.12) !important;
    z-index: 10001 !important;
  }

  .mobile-nav-toggle {
    font-size: 28px;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #0a1e3f !important;
    position: fixed !important;
    top: 22px !important;
    right: 24px !important;
    margin-right: 0 !important;
    z-index: 10002 !important;
  }

  .mobile-nav-active .navmenu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0a1e3f !important;
    overflow: hidden !important;
    padding-top: 88px !important;
  }

  .mobile-nav-active .navmenu > ul {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 24px !important;
    overflow-y: auto !important;
  }

  .mobile-nav-active .navmenu > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .mobile-nav-active .navmenu > ul > li:last-child {
    border-bottom: none !important;
  }

  .mobile-nav-active .navmenu ul a,
  .mobile-nav-active .navmenu ul a:focus {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 22px 0 !important;
    display: block !important;
    line-height: 1.2 !important;
    background: transparent !important;
  }

  .mobile-nav-active .navmenu ul a:hover,
  .mobile-nav-active .navmenu ul .active,
  .mobile-nav-active .navmenu ul .active:focus {
    color: #ffffff !important;
    opacity: 0.85;
  }

  .mobile-nav-active .mobile-nav-cta {
    display: block !important;
    flex-shrink: 0 !important;
    padding: 20px 24px 30px !important;
  }

  .mobile-nav-active .mobile-cta-btn {
    display: block !important;
    width: 100% !important;
    background: #2563eb !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
  }
}


/* Hero text panel for focal clarity */
.hero .hero-text-panel,
.page-title .hero-text-panel {
  width: min(90%, 1400px);
  margin: 0 auto;
  padding: 40px 56px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.6);
  border-radius: 2px;
}

.hero .hero-text-panel p,
.page-title .hero-text-panel p {
  margin-bottom: 0;
}

.hero .btn-get-started {
  margin-top: 24px;
}

/* Homepage Section 1: services card weight and rhythm */
#index-page-services .row,
#services .row.g-5 {
  row-gap: 2rem;
}

#services .service-item {
  padding: 46px 40px;
  min-height: 100%;
}

#services .service-item .icon {
  width: 96px;
  height: 96px;
  font-size: 52px;
}

#services .service-item:hover {
  transform: translateY(-8px);
}

/* Homepage Section 2: editorial outcomes band */
#idea-assessments .outcomes-band {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 38px 20px;
}

#idea-assessments .outcome-item {
  text-align: center;
  padding: 8px 32px;
}

#idea-assessments .outcome-item + .outcome-item {
  border-left: 1px solid rgba(148, 163, 184, 0.45);
}

#idea-assessments .outcome-item i {
  font-size: 34px;
  color: var(--blue);
  margin-bottom: 14px;
  display: inline-block;
}

#idea-assessments .outcome-item h3 {
  margin-bottom: 12px;
}

/* Homepage Section 3: process journey */
#how-it-works .icon-box {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  padding-top: 12px;
  position: relative;
}

#how-it-works .icon-box .d-flex {
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px !important;
}

#how-it-works .icon-box i {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  margin: 0;
}

#how-it-works .icon-box h4 {
  margin: 0;
}

#how-it-works .icon-box:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% + 44px);
  width: calc(100% - 88px);
  height: 2px;
  background: rgba(147, 197, 253, 0.75);
}

/* Homepage Section 4: image + stacked reasons */
#who-we-work-with .reasons-image-wrap {
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

#who-we-work-with .reasons-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#who-we-work-with .reasons-list {
  display: grid;
  gap: 18px;
}

#who-we-work-with .reason-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

#who-we-work-with .reason-item:last-child {
  border-bottom: none;
}

#who-we-work-with .reason-item i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  font-size: 22px;
  flex-shrink: 0;
}

#who-we-work-with .reason-item h3 {
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .hero .hero-text-panel,
  .page-title .hero-text-panel {
    width: min(92%, 900px);
    padding: 24px 24px;
  }

  #idea-assessments .outcome-item + .outcome-item {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 18px;
    padding-top: 24px;
  }

  #how-it-works .icon-box:not(:last-child)::after {
    left: 50%;
    top: calc(100% - 10px);
    transform: translateX(-50%);
    width: 2px;
    height: 28px;
  }

  #who-we-work-with .reasons-image-wrap {
    min-height: 300px;
  }
}


/* Header logo: icon + wordmark */
.header .logo img.logo-icon {
  height: 44px;
  max-height: 44px;
  width: auto;
  margin-right: 0;
  flex-shrink: 0;
  align-self: center;
}

.header .logo .logo-wordmark {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .header .logo img.logo-icon {
    height: 46px;
    max-height: 46px;
  }

  .header .logo .logo-wordmark {
    font-size: 16px;
  }
}
