@font-face {
  font-family: 'Gazpacho';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Gazpacho Bold'),
       local('Gazpacho-Bold'),
       local('Gazpacho Heavy'),
       local('Gazpacho-Heavy'),
       local('Gazpacho Black'),
       local('Gazpacho'),
       local('Gazpacho 400'),
       url('../fonts/Gazpacho.woff') format('woff'),
       url('../fonts/Gazpacho.otf') format('opentype'),
       url('../fonts/Gazpacho.ttf') format('truetype'),
       url('https://fonts.cdnfonts.com/s/113714/Gazpacho.woff') format('woff');
}

@font-face {
  font-family: 'Gazpacho';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Gazpacho Bold'),
       local('Gazpacho-Bold'),
       local('Gazpacho Heavy'),
       local('Gazpacho-Heavy'),
       local('Gazpacho Black'),
       local('Gazpacho'),
       url('../fonts/Gazpacho.woff') format('woff'),
       url('../fonts/Gazpacho.otf') format('opentype'),
       url('../fonts/Gazpacho.ttf') format('truetype'),
       url('https://fonts.cdnfonts.com/s/113714/Gazpacho.woff') format('woff');
}

@font-face {
  font-family: 'Gazpacho';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Gazpacho Heavy'),
       local('Gazpacho-Heavy'),
       local('Gazpacho Bold'),
       local('Gazpacho-Bold'),
       local('Gazpacho Black'),
       local('Gazpacho'),
       url('../fonts/Gazpacho.woff') format('woff'),
       url('../fonts/Gazpacho.otf') format('opentype'),
       url('../fonts/Gazpacho.ttf') format('truetype'),
       url('https://fonts.cdnfonts.com/s/113714/Gazpacho.woff') format('woff');
}

@font-face {
  font-family: 'Gazpacho';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local('Gazpacho Black'),
       local('Gazpacho-Black'),
       local('Gazpacho Heavy'),
       local('Gazpacho-Heavy'),
       local('Gazpacho Bold'),
       local('Gazpacho-Bold'),
       local('Gazpacho'),
       url('../fonts/Gazpacho.woff') format('woff'),
       url('../fonts/Gazpacho.otf') format('opentype'),
       url('../fonts/Gazpacho.ttf') format('truetype'),
       url('https://fonts.cdnfonts.com/s/113714/Gazpacho.woff') format('woff');
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,700..900;1,9..144,700..900&display=swap');

/* SchoolTime - Custom styling replicating Foxford School website */
:root {
  --primary-navy: #002658;
  --primary-dark-navy: #001a3d;
  --accent-red: #aa182c;
  --accent-gold: #a29062;
  --accent-bright-red: #b6121b;
  --light-bg: #f4f4f4;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --card-bg: #ffffff;
  --brand-pill-grad: linear-gradient(135deg, #0070f3 0%, #0051ba 45%, #002658 100%);
  --brand-pill-shadow: none; /* outglow removed */
  --brand-pill-border: rgba(142, 209, 252, 0.4);
  --font-heading: 'Jost', 'Arial', sans-serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-sub: 'Montserrat', 'Arial', sans-serif;
}

/* ============================================================
   BRAND THEME OVERRIDES (Triggered by brand version button)
   Core palette:
   - #111321 (Deep Midnight Navy)
   - #191b29 (Rich Charcoal Indigo)
   - #c97751 (Warm Terracotta Coral)
   - #9fbab0 (Sage Teal Mist)
   - 'Gazpacho Bold' Typography
   ============================================================ */
html.brand-theme {
  --primary-navy: #111321;
  --primary-dark-navy: #0a0b14;
  --accent-red: #c97751;
  --accent-gold: #9fbab0;
  --accent-bright-red: #d98863;
  --light-bg: #191b29;
  --card-bg: #191b29;
  --text-dark: #f1f5f9;
  --text-muted: #9fbab0;
  --border-color: rgba(159, 186, 176, 0.25);
  --brand-pill-grad: linear-gradient(135deg, #c97751 0%, #a65835 50%, #191b29 100%);
  --brand-pill-shadow: rgba(201, 119, 81, 0.5);
  --brand-pill-border: rgba(159, 186, 176, 0.45);
  --font-heading: 'Gazpacho', 'Fraunces', serif;
  --font-body: 'Gazpacho', 'Fraunces', serif;
  --font-sub: 'Gazpacho', 'Fraunces', serif;
}

html.brand-theme body {
  background-color: #111321;
  color: #f1f5f9;
}

html.brand-theme .top-container,
html.brand-theme .nav-container,
html.brand-theme .inner-header-container,
html.brand-theme .main-article {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

html.brand-theme .main-article {
  background-color: #111321;
  color: #f1f5f9;
}

html.brand-theme .brand-creator-section {
  background-color: #191b29;
  border-color: rgba(159, 186, 176, 0.3);
}

html.brand-theme .creator-title a {
  color: #c97751;
}

html.brand-theme .creator-phone,
html.brand-theme .creator-contact-col p {
  color: #f1f5f9 !important;
}

html.brand-theme .creator-quote {
  color: #9fbab0;
  border-right-color: #c97751;
}

html.brand-theme .creator-email a,
html.brand-theme .creator-socials a {
  color: #9fbab0;
}

html.brand-theme .inner-page-header {
  background-color: #111321;
  border-bottom: none;
}

html.brand-theme #main-header {
  background-color: #111321;
}

html.brand-theme #top-header {
  background-color: #c97751;
}

html.brand-theme .primary-nav {
  background-color: transparent !important;
}

html.brand-theme .dropdown-menu {
  background-color: #191b29;
  border-top-color: #c97751;
}

html.brand-theme #main-footer {
  background-color: #111321;
  border-top: none;
}

html.brand-theme .ofsted-section,
html.brand-theme .values-section,
html.brand-theme .news-section {
  background-color: #111321;
  color: #f1f5f9;
}

html.brand-theme .ofsted-typing-wrap {
  background-color: #292659;
  border-left-color: #c97751;
}

html.brand-theme .typing-text {
  color: #f1f5f9;
}

html.brand-theme .quote-icon,
html.brand-theme .typing-cursor {
  color: #c97751;
  background-color: #c97751;
}

html.brand-theme .ofsted-caption {
  color: #9fbab0;
}

html.brand-theme .welcome-section {
  background-color: #191b29;
}

html.brand-theme .section-title-line,
html.brand-theme .section-title,
html.brand-theme h1,
html.brand-theme h2,
html.brand-theme h3,
html.brand-theme h4 {
  color: #f1f5f9;
}

/* Fix text contrast in all sections under brand-theme */
html.brand-theme .challenge-section,
html.brand-theme .ambitions-section,
html.brand-theme .social-section {
  background-color: #111321;
  color: #f1f5f9;
}

html.brand-theme .challenge-top-grid p,
html.brand-theme .challenge-section p,
html.brand-theme .ambitions-section p,
html.brand-theme .welcome-paragraphs p,
html.brand-theme .leadership-content p,
html.brand-theme .support-content-card p,
html.brand-theme .learning-text p {
  color: #f1f5f9 !important;
}

html.brand-theme .role-card {
  background-color: #191b29;
  border-top-color: #c97751;
  border-color: rgba(159, 186, 176, 0.25);
  box-shadow: none;
}

html.brand-theme .role-card h3 {
  color: #f1f5f9;
}

html.brand-theme .role-card p {
  color: rgba(241, 245, 249, 0.9) !important;
}

html.brand-theme .ambition-card {
  background-color: #191b29;
  border-color: rgba(159, 186, 176, 0.25);
  border-left-color: #c97751;
  box-shadow: none;
}

html.brand-theme .ambition-info h3 {
  color: #f1f5f9;
}

html.brand-theme .ambition-info p {
  color: #9fbab0 !important;
}

html.brand-theme .news-card {
  background-color: #191b29;
  border-color: rgba(159, 186, 176, 0.2);
}

html.brand-theme .news-card-title,
html.brand-theme .news-card-excerpt {
  color: #f1f5f9;
}

html.brand-theme .news-card-date {
  color: #9fbab0;
}

html.brand-theme .code-card {
  background-color: #c97751;
  border: none;
  outline: none;
  color: #ffffff;
}

html.brand-theme .code-card h4 {
  color: #ffffff;
}

html.brand-theme .brand-slide-figure {
  border: none;
  outline: none;
  box-shadow: none;
}

html.brand-theme .brand-pill-btn {
  background: var(--brand-pill-grad);
  border-color: var(--brand-pill-border);
  box-shadow: none;
}

html.brand-theme .brand-media-caption {
  background: #111321;
  color: #9fbab0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

body {
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.brand-theme body,
html.brand-theme button,
html.brand-theme input,
html.brand-theme select,
html.brand-theme textarea {
  font-weight: 700;
}

/* ============================================================
   TOP BAR (Secondary Header)
   ============================================================ */
#top-header {
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-info span,
.contact-info a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.contact-info a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.secondary-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px;
  flex-wrap: wrap;
}

.secondary-nav li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  text-transform: capitalize;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.secondary-nav li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================================
   MAIN HEADER & NAVIGATION BAR
   ============================================================ */
#main-header {
  background-color: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: none;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), padding 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Outward shift states when new brand pill appears */
.nav-container.pill-active {
  max-width: 1380px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container.pill-active .logo-link {
  transform: translateX(-14px);
}

.logo-img {
  height: 62px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: none;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

/* Primary Navigation Menu */
.primary-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container.pill-active .primary-nav {
  transform: translateX(-8px);
}

.nav-item {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 24px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: transparent !important;
  background-color: transparent !important;
  transition: color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover > .nav-link {
  color: #ffffff;
  background: transparent !important;
  background-color: transparent !important;
}

.nav-link.active {
  color: #ffffff;
  /* color block removed */
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.nav-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-item:hover > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-navy);
  min-width: 260px;
  box-shadow: none;
  list-style: none;
  padding: 8px 0;
  border-top: 3px solid var(--accent-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, padding-left 0.2s;
}

.dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  padding-left: 24px;
}

/* Nested 2nd-level dropdown */
.has-children > .dropdown-link .sub-arrow {
  font-size: 9px;
  margin-left: 8px;
}

.nested-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #001f47;
  min-width: 250px;
  box-shadow: none;
  list-style: none;
  padding: 8px 0;
  border-left: 2px solid var(--accent-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.dropdown-item:hover > .nested-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Search bar button in nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container.pill-active .nav-actions {
  transform: translateX(10px);
}

.search-toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  padding: 10px;
  font-size: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* search disabled */
  opacity: 0.45;
}

/* Search Dropdown Overlay */
.search-bar-modal {
  display: none;
  position: absolute;
  top: 100%;
  right: 20px;
  background: #ffffff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: none;
  z-index: 1001;
  width: 320px;
}

.search-bar-modal.open {
  display: block;
}

.search-bar-form {
  display: flex;
  gap: 8px;
}

.search-bar-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.search-bar-form button {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.mobile-nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO / INTRO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #101517;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px 140px;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 38, 88, 0.4) 0%, rgba(0, 15, 38, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 25px;
}

.hero-badge {
  width: 170px;
  height: auto;
  filter: none;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: none; /* sentence case */
  margin-bottom: 20px;
  color: #ffffff;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  display: inline-block;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

html.brand-theme .hero-subtitle {
  color: #ffffff;
  border: none;
  background: transparent;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: none; /* sentence case */
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #ffffff;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: none;
}

/* Character animation spans */
.quote-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.26em;
}

.quote-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0070f3 0%, #0051ba 45%, #002658 100%);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 16px 42px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: none;
  border: 1px solid rgba(142, 209, 252, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-enter:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: none;
  background: linear-gradient(135deg, #1a8cff 0%, #0066e6 45%, #003380 100%);
  color: #ffffff;
}

.btn-enter::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: pillSheen 3.5s infinite;
}

/* ============================================================
   OFSTED QUOTE & TYPING SECTION
   ============================================================ */
.ofsted-section {
  position: relative;
  background: #ffffff;
  padding: 80px 20px 90px;
  z-index: 5;
}

.ofsted-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.ofsted-typing-wrap {
  background-color: #292659;
  border-left: 5px solid var(--accent-red);
  padding: 24px 32px;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  height: 220px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.typing-text {
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 700;
  color: #ffffff;
  min-height: 70px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 18px;
  background-color: #ffffff;
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ofsted-badge-column {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ofsted-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  filter: none;
}

.ofsted-caption {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   WELCOME SECTION (Navy Background with Headteacher)
   ============================================================ */
.welcome-section {
  position: relative;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 120px 20px 140px;
}

.welcome-container {
  max-width: 1150px;
  margin: 0 auto;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  text-align: center;
  text-transform: none; /* sentence case */
  letter-spacing: 0.5px;
  margin-bottom: 50px;
}

.strike-foxy {
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--accent-red);
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
}

html.brand-theme .strike-foxy {
  text-decoration-color: #c97751;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 50px;
  align-items: center;
}

.welcome-lead {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 22px;
  color: #ffffff;
}

.welcome-paragraphs p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.welcome-signature {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.signature-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.signature-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-image-wrap {
  text-align: center;
}

.welcome-image {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  box-shadow: none;
  border: none;
  outline: none;
}

/* ============================================================
   PARALLAX / SEPARATOR BANNERS
   ============================================================ */
.parallax-strip {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-strip::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 38, 88, 0.35);
}

/* SVG Curvature Dividers */
.section-divider-top,
.section-divider-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
}

.section-divider-top {
  top: -1px;
}

.section-divider-bottom {
  bottom: -1px;
}

.section-divider-top svg,
.section-divider-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================================================
   STUDENT LEARNING & CODE PRINCIPLES (Dark Section)
   ============================================================ */
.learning-section {
  position: relative;
  background-color: #111321;
  color: #f1f5f9;
  padding: 110px 20px 120px;
}

.learning-container {
  max-width: 1150px;
  margin: 0 auto;
}

.learning-section .section-tag {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c97751;
  margin-bottom: 8px;
}

.learning-section .section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 25px;
}

.learning-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.learning-text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(241, 245, 249, 0.92);
  margin-bottom: 18px;
}

.learning-text strong {
  color: #c97751;
}

.learning-img-wrap {
  text-align: center;
}

.feature-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(159, 186, 176, 0.2);
}

/* CODE Cards */
.code-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.code-card {
  background: #c97751;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: none;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.code-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  border: none;
  outline: none;
  background: #d98863;
}

.code-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.code-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 15px;
  transition: transform 0.3s ease;
}

.code-card:hover .code-icon {
  transform: scale(1.08);
}

/* ============================================================
   STUDENT LEADERSHIP SECTION (Navy Overlay on web-56)
   ============================================================ */
.leadership-section {
  position: relative;
  background-image: linear-gradient(180deg, rgba(0, 38, 88, 0.88) 0%, rgba(0, 26, 61, 0.96) 100%),
                    url('../images/foxford-web-56.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 130px 20px 140px;
}

.leadership-container {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 55px;
  align-items: center;
}

.leadership-content .section-title {
  color: #ffffff;
}

.leadership-content p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

/* ============================================================
   STUDENT CHALLENGE SECTION
   ============================================================ */
.challenge-section {
  position: relative;
  background-color: #ffffff;
  padding: 120px 20px 130px;
}

.challenge-container {
  max-width: 1150px;
  margin: 0 auto;
}

.challenge-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.challenge-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.role-card {
  background-color: #fbfbfc;
  border-top: 4px solid var(--accent-red);
  padding: 30px 25px;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.role-card:hover {
  transform: translateY(-5px);
}

.role-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.role-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ============================================================
   STUDENT SUPPORT SECTION (Navy overlay with web-35)
   ============================================================ */
.support-section {
  position: relative;
  background-image: linear-gradient(180deg, rgba(0, 38, 88, 0.9) 0%, rgba(0, 20, 50, 0.98) 100%),
                    url('../images/foxford-web-35.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 130px 20px 150px;
}

.support-container {
  max-width: 1150px;
  margin: 0 auto;
}

.support-content-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 45px 50px;
  max-width: 950px;
  margin: 0 auto;
}

.support-content-card .section-title {
  color: #ffffff;
}

.support-lead {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #ffffff;
}

.attainers-block {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.attainers-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.attainers-block p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

/* ============================================================
   CPT VISION & VALUES SECTION (Gold-to-Red gradient)
   ============================================================ */
.cpt-values-section {
  position: relative;
  background: linear-gradient(145deg, #a29062 0%, #aa182c 100%);
  color: #ffffff;
  padding: 140px 20px 150px;
  text-align: center;
}

.cpt-container {
  max-width: 1150px;
  margin: 0 auto;
}

.cpt-badge {
  max-width: 120px;
  height: auto;
  margin: 0 auto 20px;
  filter: none;
}

.cpt-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  text-transform: none; /* sentence case */
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cpt-subtitle {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.95;
}

.cpt-tagline {
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 600;
  text-transform: none; /* sentence case */
  letter-spacing: 1.5px;
  margin-bottom: 50px;
  opacity: 0.85;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.value-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.value-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.value-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 14px;
}

.value-label {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none; /* sentence case */
}

/* ============================================================
   OUR 6 AMBITIONS SECTION
   ============================================================ */
.ambitions-section {
  position: relative;
  background-color: #ffffff;
  padding: 120px 20px 130px;
}

.ambitions-container {
  max-width: 1150px;
  margin: 0 auto;
}

.ambitions-header {
  text-align: center;
  margin-bottom: 60px;
}

.ambitions-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 900;
  color: var(--accent-gold);
  text-transform: none; /* sentence case */
}

.ambitions-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: center;
}

.ambitions-lock-img {
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
  filter: none;
}

.ambitions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ambition-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-left: 5px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.ambition-card:hover {
  transform: translateX(8px);
  box-shadow: none;
  border-left-color: var(--accent-red);
}

.ambition-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.ambition-info h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.ambition-info p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============================================================
   LATEST NEWS SECTION (Carousel / Slider)
   ============================================================ */
.news-section {
  position: relative;
  background-color: var(--light-bg);
  padding: 110px 20px 120px;
}

.news-container {
  max-width: 1150px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.news-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  color: var(--primary-navy);
  text-transform: none; /* sentence case */
}

/* Slider Controls */
.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-btn {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--accent-red);
  transform: scale(1.05);
}

.news-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
  min-height: 440px;
}

.news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.news-slide.active {
  opacity: 1;
  visibility: visible;
}

.news-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 38, 88, 0.4) 0%, rgba(0, 20, 50, 0.92) 90%);
}

.news-slide-content {
  position: relative;
  z-index: 2;
  padding: 45px 50px;
  max-width: 800px;
  color: #ffffff;
}

.news-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.news-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  font-weight: 500;
}

.news-excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 22px;
}

.btn-read-more {
  display: inline-block;
  background: var(--accent-red);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-read-more:hover {
  background: #c71b31;
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  background: var(--primary-navy);
  transform: scale(1.3);
}

/* ============================================================
   SOCIAL MEDIA SECTION
   ============================================================ */
.social-section {
  position: relative;
  background-image: linear-gradient(rgba(0, 38, 88, 0.85), rgba(0, 38, 88, 0.85)),
                    url('../images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.social-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--primary-navy);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ============================================================
   FOOTER SECTION
   ============================================================ */
#main-footer {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 70px 20px 40px;
  border-top: none;
}

.footer-container {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-badge {
  text-align: center;
}

.footer-badge {
  max-width: 90px;
  height: auto;
  margin-bottom: 15px;
  filter: none;
}

.footer-headteacher {
  font-size: 13px;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-headteacher-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  display: none;
}

.footer-col p,
.footer-col address {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1150px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .primary-nav .nav-link {
    padding: 20px 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .secondary-nav {
    display: none;
  }
  .top-container {
    justify-content: center;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  
  /* Mobile drawer */
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    flex-direction: column;
    align-items: stretch;
    box-shadow: none;
    max-height: 80vh;
    overflow-y: auto;
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background-color: #001f47;
    display: none;
    padding: 0;
    border-top: none;
  }

  .nav-item.mobile-open > .dropdown-menu {
    display: block;
  }

  .nested-dropdown {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background-color: #001633;
    display: none;
  }

  .dropdown-item.mobile-open > .nested-dropdown {
    display: block;
  }

  .ofsted-container,
  .welcome-grid,
  .learning-grid,
  .leadership-container,
  .challenge-top-grid,
  .ambitions-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .code-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-roles-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .code-principles-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .news-slide-content {
    padding: 25px 20px;
  }
}

/* ============================================================
   BRAND PILL BUTTON & MOTION PATTERNS
   ============================================================ */
.brand-pill-item {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  /* hidden initially until 5s timer triggers */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: center center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.brand-pill-item.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brand-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0070f3 0%, #0051ba 45%, #002658 100%);
  background-size: 200% 200%;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: none; /* outglow removed */
  border: 1px solid rgba(142, 209, 252, 0.4);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}

.brand-pill-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: none; /* outglow removed */
  background: linear-gradient(135deg, #1a8cff 0%, #0066e6 45%, #003380 100%);
}

.brand-pill-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: pillSheen 3.5s infinite;
}

@keyframes pillSheen {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

.pill-sparkle {
  color: #8ed1fc;
  font-size: 14px;
  animation: sparkleTwinkle 1.8s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.3) rotate(45deg); opacity: 1; }
}

/* ============================================================
   BRAND PAGE: INACTIVE NAV BRAND BUTTON
   (Inactive, non-clickable, dimmed, no hover or motion)
   ============================================================ */
body.brand-page .brand-pill-item,
body.brand-page .brand-pill-btn,
body.brand-page .brand-pill-btn::before,
body.brand-page .pill-sparkle {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

body.brand-page .brand-pill-btn {
  opacity: 0.55 !important;
  pointer-events: none !important;
  cursor: default !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
}

body.brand-page .brand-pill-btn:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

html.brand-theme body.brand-page .brand-pill-btn {
  background: rgba(159, 186, 176, 0.15) !important;
  border-color: rgba(159, 186, 176, 0.25) !important;
  color: rgba(159, 186, 176, 0.7) !important;
}

/* ------------------------------------------------------------
   MOTION PATTERN 1: LENS BLUR ANIMATION
   Depth-of-field optical rack focus & chromatic dispersion
   ------------------------------------------------------------ */
.pattern-lens-blur.animate-in {
  animation: lensBlurRackFocus 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lensBlurRackFocus {
  0% {
    opacity: 0;
    filter: blur(28px) brightness(2.2) contrast(1.4);
    transform: scale(2.4) translateZ(0);
  }
  35% {
    opacity: 0.75;
    filter: blur(14px) brightness(1.6) contrast(1.2);
    transform: scale(1.35) translateZ(0);
  }
  70% {
    opacity: 0.95;
    filter: blur(4px) brightness(1.15);
    transform: scale(0.96) translateZ(0);
  }
  88% {
    filter: blur(1px) brightness(1.05);
    transform: scale(1.03) translateZ(0);
  }
  100% {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1) translateZ(0);
  }
}

.pattern-lens-blur.idle {
  animation: none;
  filter: none !important;
}

/* ------------------------------------------------------------
   MOTION PATTERN 2: SPRING BOUNCE
   Elastic pop-in & gentle buoyant hover
   ------------------------------------------------------------ */
.pattern-spring-bounce.animate-in {
  animation: springBouncePop 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes springBouncePop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-15deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.22) rotate(4deg);
  }
  75% {
    transform: scale(0.92) rotate(-2deg);
  }
  90% {
    transform: scale(1.05) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.pattern-spring-bounce.idle {
  animation: gentleSpringFloat 2.6s ease-in-out infinite alternate;
}

@keyframes gentleSpringFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* ------------------------------------------------------------
   MOTION PATTERN 3: SHIMMER & PULSE
   Radiant gradient expansion & energetic heartbeat
   ------------------------------------------------------------ */
.pattern-shimmer-pulse.animate-in {
  animation: shimmerPulseIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes shimmerPulseIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
    box-shadow: none;
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
    box-shadow: none;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: none;
  }
}

.pattern-shimmer-pulse.idle {
  animation: rhythmicGlowPulse 2.2s infinite ease-in-out;
}

@keyframes rhythmicGlowPulse {
  0%, 100% {
    box-shadow: none;
    background-position: 0% 50%;
  }
  50% {
    box-shadow: none;
    background-position: 100% 50%;
  }
}

/* ------------------------------------------------------------
   MOTION PATTERN 4: KINETIC SLIDE & SNAP
   High-speed horizontal inertia deceleration
   ------------------------------------------------------------ */
.pattern-kinetic-slide.animate-in {
  animation: kineticSlideSnap 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes kineticSlideSnap {
  0% {
    opacity: 0;
    transform: translateX(120px) skewX(-20deg) scaleX(1.3);
  }
  60% {
    opacity: 1;
    transform: translateX(-8px) skewX(4deg) scaleX(0.96);
  }
  85% {
    transform: translateX(3px) skewX(-1deg) scaleX(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg) scaleX(1);
  }
}

.pattern-kinetic-slide.idle {
  /* subtly slides when hovered */
}

/* ------------------------------------------------------------
   MOTION PATTERN 5: 3D FLIP REVEAL
   Perspective card rotation
   ------------------------------------------------------------ */
.pattern-flip-reveal.animate-in {
  perspective: 600px;
  animation: flipCard3D 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flipCard3D {
  0% {
    opacity: 0;
    transform: rotateX(85deg) translateY(-20px);
  }
  60% {
    opacity: 1;
    transform: rotateX(-15deg) translateY(3px);
  }
  85% {
    transform: rotateX(8deg) translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

/* ------------------------------------------------------------
   MOTION PATTERN 6: GENTLE LEVITATION
   ------------------------------------------------------------ */
.pattern-floating-float.animate-in {
  animation: levitateFadeIn 1s ease-out forwards;
}

@keyframes levitateFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pattern-floating-float.idle {
  animation: smoothLevitation 3.6s ease-in-out infinite;
}

@keyframes smoothLevitation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ============================================================
   SPACEBAR CONTROL PANEL MODAL
   ============================================================ */
.brand-control-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.brand-control-panel.open {
  opacity: 1;
  visibility: visible;
}

.cp-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 38, 0.45);
  /* no blur on screen */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cp-window {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-control-panel.open .cp-window {
  transform: translateY(0) scale(1);
}

.cp-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent-red);
}

.cp-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-header-title h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
}

.cp-icon {
  font-size: 18px;
  color: var(--accent-gold);
}

.cp-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: opacity 0.2s, background 0.2s;
}

.cp-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cp-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.cp-select-wrapper {
  position: relative;
}

.cp-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #1a202c;
  background-color: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}

.cp-select:focus {
  border-color: var(--primary-navy);
  background-color: #ffffff;
  box-shadow: none;
}

.cp-hint {
  font-size: 12.5px;
  color: #718096;
  margin-top: 6px;
  line-height: 1.4;
}

.cp-controls-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.cp-action-btn {
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cp-action-btn.primary {
  background: var(--primary-navy);
  color: #ffffff;
}

.cp-action-btn.primary:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

.cp-action-btn.secondary {
  background: #edf2f7;
  color: #2d3748;
}

.cp-action-btn.secondary:hover {
  background: #e2e8f0;
}

.cp-status-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.status-label {
  color: #64748b;
  font-weight: 600;
}

.status-value {
  color: #1e293b;
  font-weight: 700;
}

.status-value.active-badge {
  background: #fee2e2;
  color: var(--accent-red);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-footer {
  background: #f1f5f9;
  padding: 12px 24px;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
}

.cp-key-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

/* Toast hint in bottom corner (hidden per request) */
.spacebar-hint-toast {
  display: none !important;
}

.toast-key {
  background: #ffffff;
  color: var(--primary-navy);
  font-family: monospace;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: none;
}

/* ============================================================
   INNER PAGE TEMPLATE (Careers / New Brand Layout)
   ============================================================ */
.inner-page-header {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 40px 20px 30px;
  border-bottom: none;
}

.inner-header-container {
  max-width: 1240px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.inner-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.inner-page-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  text-transform: none; /* sentence case */
  letter-spacing: 0.5px;
  margin: 0;
}

/* Button to change the site to brand version */
.theme-brand-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #c97751 0%, #aa182c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: none; /* sentence case */
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.theme-brand-toggle-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: none;
  background: linear-gradient(135deg, #d98863 0%, #b82236 100%);
}

.theme-brand-toggle-btn:active {
  transform: translateY(0) scale(0.98);
}

html.brand-theme .theme-brand-toggle-btn {
  background: linear-gradient(135deg, #0070f3 0%, #0051ba 50%, #002658 100%);
  color: #ffffff;
  box-shadow: none;
  border-color: rgba(142, 209, 252, 0.45);
}

html.brand-theme .theme-brand-toggle-btn:hover {
  background: linear-gradient(135deg, #1a82ff 0%, #0060db 50%, #003375 100%);
  color: #ffffff;
}

.inner-content-layout {
  max-width: 1240px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 50px;
}

/* Full-width layout when right column is removed */
.inner-content-layout.brand-fullwidth-layout {
  display: block;
  max-width: 1360px;
  margin: 40px auto 90px;
  padding: 0 24px;
}

.brand-fullwidth-layout .main-article {
  width: 100%;
}

.brand-fullwidth-layout .brand-slides-container {
  gap: 40px;
  margin-bottom: 60px;
}

.brand-fullwidth-layout .brand-slide-figure {
  border-radius: 14px;
  box-shadow: none;
}

.brand-fullwidth-layout .brand-slide-img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-fullwidth-layout .brand-creator-section {
  max-width: 1100px;
  margin: 50px auto 20px;
}

.main-article {
  background: #ffffff;
}

/* ============================================================
   BRAND PRESENTATION SLIDES & VIDEO SHOWCASE (Squarespace Import)
   ============================================================ */
.brand-greeting-banner {
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.08) 0%, rgba(0, 38, 88, 0.05) 100%);
  border-left: 5px solid #0070f3;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 35px;
}

.brand-greeting-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  color: #071a4b;
  line-height: 1.3;
  margin: 0;
}

.brand-greeting-sub {
  font-weight: 500;
  font-size: 0.72em;
  color: #4a5568;
  display: inline-block;
  margin-top: 6px;
}

.brand-slides-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.brand-slide-figure {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  border: none;
  outline: none;
  background: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-slide-figure:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.brand-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.brand-video-figure {
  background: #0a0e17;
  position: relative;
}

.brand-reveal-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
}

.brand-media-caption {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #0f172a;
  color: #94a3b8;
  text-align: right;
}

.brand-creator-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px 32px;
  margin-top: 40px;
}

.creator-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.creator-title a {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #3e11f5;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.creator-title a:hover {
  color: #0051ba;
  transform: translateX(4px);
}

.creator-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.creator-contact-col p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.creator-phone {
  font-weight: 700;
  color: #0f172a !important;
}

.creator-email a, .creator-socials a {
  color: #3e11f5;
  text-decoration: none;
  font-weight: 600;
}

.creator-email a:hover, .creator-socials a:hover {
  text-decoration: underline;
}

.creator-quote {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  color: #475569;
  text-align: right;
  line-height: 1.5;
  border-right: 4px solid #3e11f5;
  padding-right: 18px;
}

@media (max-width: 768px) {
  .creator-contact-grid {
    grid-template-columns: 1fr;
  }
  .creator-quote {
    text-align: left;
    border-right: none;
    border-left: 4px solid #3e11f5;
    padding-left: 18px;
    padding-right: 0;
  }
}

.article-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #1a202c;
  margin-bottom: 30px;
  font-weight: 500;
}

.content-section {
  margin-bottom: 35px;
}

.content-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: none;
}

.content-heading span {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  display: inline-block;
}

.content-section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 14px;
}

.highlight-box {
  background: #f8fafc;
  border-left: 4px solid #0070f3;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.highlight-box p {
  margin: 0;
  font-weight: 600;
  color: #1e293b;
}

/* Feature grid in template */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px;
  box-shadow: none;
}

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* Sidebar Widgets */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-red);
}

.widget-crest-wrap {
  text-align: center;
}

.widget-crest {
  width: 140px;
  height: auto;
  margin: 0 auto;
}

.widget-search-form {
  display: flex;
}

.widget-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}

.widget-search-btn {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-search-btn:hover {
  background: var(--accent-red);
}

.widget-contact-details p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

.widget-contact-details a {
  color: var(--primary-navy);
  font-weight: 700;
  text-decoration: none;
}

.widget-contact-details a:hover {
  text-decoration: underline;
}

.recent-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-news-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.recent-news-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-news-info a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
}

.recent-news-info a:hover {
  color: var(--accent-red);
}

.recent-news-date {
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .inner-content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

