/* ==========================================================================
   Crestview Academy — core stylesheet
   Palette: crimson red / navy blue / warm greys / white
   Display face: Fraunces (academic, ink-trap serif)
   Body face: Public Sans
   ========================================================================== */

:root{
  /* --- colour tokens --- */
  --red:        #D0111F;
  --red-dark:   #9A0B17;
  --red-tint:   #FBE6E7;
  --blue:       #0C6E9E;
  --blue-light: #1CA7E0;
  --blue-tint:  #E3F4FB;
  --grey-900:   #24262B;
  --grey-700:   #4B4E55;
  --grey-500:   #7B7F87;
  --grey-300:   #C7CAD1;
  --grey-200:   #E6E7EA;
  --grey-100:   #F4F5F6;
  --surface-silver: #E8EAED;
  --white:      #FFFFFF;

  /* --- type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- layout --- */
  --max-w: 1180px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(12,110,158,0.08);
  --shadow-md: 0 16px 40px rgba(12,110,158,0.16);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--surface-silver);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Soft blended logo watermark behind all content — subtle, fixed, low-opacity */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/logo-icon.png');
  background-repeat: no-repeat;
  background-position: center 20vh;
  background-size: 60vw auto;
  opacity: 0.035;
  filter: grayscale(1) contrast(1.1);
}
body > *{ position: relative; z-index: 1; }
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--blue);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; color: var(--grey-700); }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- eyebrow / section labels --- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-weight:700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--red);
  display:inline-block;
}

/* --- buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:focus-visible{ outline: 3px solid var(--blue-light); outline-offset: 2px; }
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover{ background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-navy{ background: var(--blue); color: var(--white); }
.btn-navy:hover{ background: #0f2545; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--blue); border-color: var(--grey-300); }
.btn-ghost:hover{ border-color: var(--blue); background: var(--blue-tint); }
.btn-block{ width:100%; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.topbar{
  background: var(--blue);
  color: var(--blue-tint);
  font-size: 0.82rem;
}
.topbar .container{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a{ color: var(--blue-tint); }
.topbar a:hover{ color: var(--white); text-decoration: underline; }
.topbar-ribbon{
  display:inline-block;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--red) 50%, var(--white) 50%);
  margin-right: 6px;
  border-radius: 1px;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-mark{ width: 56px; height: 56px; flex-shrink:0; object-fit:contain; }
.site-header .navbar .brand-mark{ width: 100px; height: 100px; }
.site-footer .brand-mark{ width: 68px; height: 68px; }
.page-hero .brand-mark, .hero .brand-mark{ width: 60px; height: 60px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{
  font-family: var(--font-display);
  font-weight:800;
  font-size: 1.28rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.brand-sub{
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight:600;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 28px;
}
.nav-links a{
  font-weight:600;
  font-size: 0.94rem;
  color: var(--grey-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  color: var(--blue);
  border-color: var(--red);
}
.nav-cta{ display:flex; align-items:center; gap: 10px; }
.nav-cta .btn{ padding: 10px 18px; font-size: 0.88rem; }

.nav-toggle{
  display:none;
  background:none;
  border: 2px solid var(--grey-300);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width: 20px; height: 2px;
  background: var(--blue);
  position:relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width: 900px){
  .nav-links{
    position: absolute;
    top: 100%; left:0; right:0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open{ max-height: 420px; }
  .nav-links a{ width:100%; padding: 14px 24px; border-bottom: 1px solid var(--grey-100); border-left: 3px solid transparent; }
  .nav-links a:hover, .nav-links a[aria-current="page"]{ border-left-color: var(--red); background: var(--grey-100); }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  background:
    radial-gradient(ellipse 900px 620px at 12% 15%, rgba(169,34,43,0.30), transparent 62%),
    radial-gradient(ellipse 760px 760px at 88% 88%, rgba(28,167,224,0.28), transparent 60%),
    linear-gradient(155deg, #123354 0%, var(--blue) 45%, #1B4A73 78%, var(--grey-900) 130%);
  color: var(--white);
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute;
  right: -8%;
  top: -25%;
  width: 62%;
  height: 150%;
  background: radial-gradient(ellipse 60% 55% at 60% 40%, rgba(169,34,43,0.55), transparent 70%);
  filter: blur(40px);
  opacity: 0.85;
  pointer-events:none;
}
.hero::before{
  content:"";
  position:absolute;
  left: -10%;
  bottom: -30%;
  width: 46%;
  height: 90%;
  background: radial-gradient(ellipse 55% 55% at 40% 60%, rgba(255,255,255,0.10), transparent 70%);
  filter: blur(30px);
  pointer-events:none;
}
.hero .container{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items:center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero .photo-frame.wide{ aspect-ratio: 16 / 12; min-height: 420px; }
.hero-eyebrow{
  color: #FFD9DB;
}
.hero-eyebrow::before{ background: var(--white); }
.hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.4em;
}
.hero p{
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-actions{ display:flex; gap: 14px; margin-top: 28px; flex-wrap:wrap; }
.hero-stats{
  display:flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat b{ font-family: var(--font-display); font-size: 1.6rem; display:block; color: var(--white); }
.hero-stat span{ font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform:uppercase; letter-spacing:.06em; }

.page-hero{
  background:
    radial-gradient(ellipse 700px 500px at 10% 10%, rgba(169,34,43,0.28), transparent 60%),
    radial-gradient(ellipse 600px 600px at 90% 90%, rgba(28,167,224,0.26), transparent 60%),
    linear-gradient(155deg, #123354 0%, var(--blue) 50%, var(--grey-900) 140%);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow:hidden;
}
.page-hero::after{
  content:"";
  position:absolute;
  right:-8%; bottom:-45%;
  width: 46%; height: 175%;
  background: radial-gradient(ellipse 55% 50% at 55% 45%, rgba(169,34,43,0.5), transparent 70%);
  filter: blur(36px);
  opacity:.85;
  pointer-events:none;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero .eyebrow{ color:#FFD9DB; }
.page-hero .eyebrow::before{ background: var(--white); }
.page-hero h1{ color:var(--white); margin-bottom: 10px; }
.page-hero p{ color: rgba(255,255,255,0.85); max-width: 60ch; }
.breadcrumb{ font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.breadcrumb a{ color: rgba(255,255,255,0.9); }
.breadcrumb a:hover{ text-decoration:underline; }

/* ==========================================================================
   Image placeholders — swap these for real photos later
   ========================================================================== */
.img-placeholder{
  background: repeating-linear-gradient(135deg, var(--grey-100), var(--grey-100) 10px, var(--grey-200) 10px, var(--grey-200) 20px);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: var(--grey-500);
  gap: 8px;
  padding: 24px;
  min-height: 220px;
}
.img-placeholder svg{ width:34px; height:34px; opacity:.6; }
.img-placeholder span{ font-size: 0.82rem; font-weight:600; letter-spacing:.02em; }
.img-placeholder small{ font-size: 0.72rem; color: var(--grey-500); }
.img-placeholder.tall{ min-height: 340px; }
.img-placeholder.square{ aspect-ratio: 1/1; min-height:0; }
.img-placeholder.wide{ min-height: 280px; }
.img-placeholder.avatar{ min-height:0; aspect-ratio:1/1; border-radius:50%; padding:10px; }

/* Real photo frames — fill the box exactly via aspect-ratio + object-fit,
   unlike .img-placeholder which only has a min-height and can't give
   height:100% children a definite reference. */
.photo-frame{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-100);
}
.photo-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-frame.tall{ aspect-ratio: 4 / 5; }
.photo-frame.wide{ aspect-ratio: 16 / 10; }
@media (max-width: 720px){
  .photo-frame.tall{ aspect-ratio: 4 / 3; }
  .photo-frame.wide{ aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: 76px 0; }
.section-alt{ background: var(--grey-100); }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-foot{ margin-top: 40px; text-align:center; }

.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; padding-top:48px; padding-bottom:48px; }
  .hero::after{ display:none; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid-4, .grid-3{ grid-template-columns: 1fr; }
  section{ padding: 52px 0; }
}

/* --- feature / info cards --- */
.card{
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.card-icon{
  width: 46px; height:46px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card-icon svg{ width:22px; height:22px; }
.card h3{ font-size: 1.12rem; margin-bottom: 8px; }
.card p{ font-size: 0.94rem; margin-bottom: 0; }
.card.navy .card-icon{ background: var(--blue-tint); color: var(--blue); }

/* --- ribbon divider (signature motif) --- */
.ribbon-divider{
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red), var(--red) 26px,
    var(--blue) 26px, var(--blue) 52px
  );
}

/* --- stat strip --- */
.stat-strip{
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.stat-strip .container{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.stat{ text-align:center; flex:1; min-width: 140px; }
.stat b{ font-family: var(--font-display); font-size: 2.1rem; color: var(--red); display:block; }
.stat span{ font-size: 0.82rem; color: var(--grey-500); text-transform:uppercase; letter-spacing:.06em; }

/* --- announcement / news list --- */
.notice-list{ display:flex; flex-direction:column; }
.notice-item{
  display:flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-200);
  align-items:flex-start;
}
.notice-date{
  flex-shrink:0;
  width: 62px;
  text-align:center;
  background: var(--blue-tint);
  color: var(--blue);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.notice-date b{ display:block; font-family: var(--font-display); font-size:1.25rem; line-height:1; }
.notice-date span{ font-size: 0.68rem; text-transform:uppercase; letter-spacing:.06em; }
.notice-item h4{ margin-bottom:4px; font-size:1.02rem; }
.notice-item p{ margin-bottom:0; font-size: 0.92rem; }
.tag{
  display:inline-block;
  font-size: 0.68rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom:6px;
}
.tag-red{ background: var(--red-tint); color: var(--red); }
.tag-navy{ background: var(--blue-tint); color: var(--blue); }

/* ==========================================================================
   Portal role cards
   ========================================================================== */
.portal-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 900px){ .portal-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .portal-grid{ grid-template-columns: 1fr; } }

.portal-card{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
  border-top: 4px solid var(--blue);
  padding: 30px 24px;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap: 14px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.portal-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.portal-card:nth-child(2){ border-top-color: var(--red); }
.portal-card:nth-child(3){ border-top-color: var(--blue-light); }
.portal-card:nth-child(4){ border-top-color: var(--red-dark); }
.portal-icon{
  width: 52px; height:52px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.portal-icon svg{ width:24px; height:24px; }
.portal-card:nth-child(2) .portal-icon{ background: var(--red-tint); color: var(--red); }
.portal-card h3{ font-size: 1.15rem; margin-bottom:0; }
.portal-card p{ font-size: 0.9rem; flex-grow:1; }

/* --- login modal --- */
.modal-overlay{
  position: fixed; inset:0;
  background: rgba(12,110,158,0.55);
  display:none;
  align-items:center; justify-content:center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open{ display:flex; }
.modal{
  background: var(--white);
  border-radius: var(--radius);
  width: 100%; max-width: 420px;
  padding: 34px 30px;
  position:relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close{
  position:absolute; top:16px; right:16px;
  background:none; border:none; cursor:pointer;
  width:32px; height:32px;
  color: var(--grey-500);
  font-size: 1.2rem;
  line-height:1;
}
.modal-close:hover{ color: var(--red); }
.modal .eyebrow{ margin-bottom:6px; }
.modal h3{ margin-bottom: 4px; }
.modal .sub{ font-size:0.88rem; color:var(--grey-500); margin-bottom:22px; }
.modal-note{
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--grey-500);
  background: var(--grey-100);
  padding: 12px 14px;
  border-radius: var(--radius);
}

/* --- forms --- */
.field{ margin-bottom: 18px; text-align:left; }
.field label{
  display:block;
  font-size: 0.82rem;
  font-weight:600;
  color: var(--grey-700);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea{
  width:100%;
  padding: 11px 13px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field-row{ grid-template-columns:1fr; } }

/* ==========================================================================
   Timeline / process steps (admissions)
   ========================================================================== */
.steps{ counter-reset: step; display:flex; flex-direction:column; }
.step{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position:relative;
}
.step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight:700;
  font-size: 0.95rem;
  width:56px; height:56px;
  border-radius:50%;
  background: var(--blue);
  color: var(--white);
  display:flex; align-items:center; justify-content:center;
  z-index:1;
}
.step:nth-child(even)::before{ background: var(--red); }
.step:not(:last-child)::after{
  content:"";
  position:absolute;
  left:27px; top:56px; bottom:0;
  width:2px;
  background: var(--grey-300);
}
.step h3{ font-size:1.08rem; margin-bottom:6px; }
.step p{ margin-bottom:0; font-size:0.94rem; }

/* --- table (fees / calendar) --- */
.data-table{ width:100%; border-collapse: collapse; background:var(--white); }
.data-table th, .data-table td{
  text-align:left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.92rem;
}
.data-table th{
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  text-transform:uppercase;
  font-size: 0.74rem;
  letter-spacing:.06em;
}
.data-table tr:hover td{ background: var(--grey-100); }
.table-wrap{ overflow-x:auto; border-radius: var(--radius); border:1px solid var(--grey-200); }

/* --- accordion (FAQ) --- */
.accordion-item{ border-bottom: 1px solid var(--grey-200); }
.accordion-trigger{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  cursor:pointer;
  padding: 20px 4px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight:600;
  font-size:1rem;
  color: var(--blue);
}
.accordion-trigger .plus{
  flex-shrink:0;
  width:24px; height:24px;
  border-radius:50%;
  border: 1.5px solid var(--grey-300);
  position:relative;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after{
  content:""; position:absolute; background: var(--red);
  top:50%; left:50%; transform: translate(-50%,-50%);
}
.accordion-trigger .plus::before{ width:10px; height:2px; }
.accordion-trigger .plus::after{ width:2px; height:10px; transition: opacity .15s ease; }
.accordion-item.open .plus::after{ opacity:0; }
.accordion-panel{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
}
.accordion-item.open .accordion-panel{ max-height: 300px; }
.accordion-panel p{ padding: 0 4px 20px; font-size:0.94rem; }

/* ==========================================================================
   Module directory (portal admin modules)
   ========================================================================== */
.module-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .module-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .module-grid{ grid-template-columns: 1fr; } }

.module-card{
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.module-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--grey-300); }
.module-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.module-icon{
  width: 40px; height:40px; flex-shrink:0;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.module-icon svg{ width:20px; height:20px; }
.module-card:nth-child(3n+2) .module-icon{ background: var(--red-tint); color: var(--red); }
.module-card h4{ font-family: var(--font-body); font-weight:700; font-size: 0.98rem; color: var(--grey-900); margin:0; }
.module-card p{ font-size: 0.86rem; margin:0; }
.module-card ul{ margin: 2px 0 0; padding-left: 18px; list-style: disc; }
.module-card ul li{ font-size: 0.84rem; color: var(--grey-700); margin-bottom: 4px; }

/* --- toggle switch --- */
.toggle-row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 9px 12px;
  margin-top: 2px;
}
.toggle-row span{ font-size: 0.78rem; font-weight:600; color: var(--grey-700); }
.toggle-switch{
  position: relative;
  display:inline-block;
  width: 40px; height: 22px;
  flex-shrink:0;
}
.toggle-switch input{ opacity:0; width:0; height:0; }
.toggle-slider{
  position:absolute; inset:0;
  background: var(--grey-300);
  border-radius: 999px;
  cursor:pointer;
  transition: background .18s ease;
}
.toggle-slider::before{
  content:"";
  position:absolute;
  width:16px; height:16px;
  left:3px; top:3px;
  background: var(--white);
  border-radius:50%;
  transition: transform .18s ease;
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider{ background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::before{ transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-slider{ outline: 2px solid var(--blue-light); outline-offset:2px; }

/* --- pull quote / leadership --- */
.person-card{ text-align:center; }
.person-card h4{ margin: 14px 0 2px; font-size:1.02rem; color: var(--grey-900); font-family:var(--font-body); font-weight:700; }
.person-card span{ font-size: 0.82rem; color: var(--red); font-weight:600; }
.person-card p{ font-size: 0.88rem; margin-top:8px; }

/* --- CTA band --- */
.cta-band{
  background:
    radial-gradient(ellipse 700px 500px at 20% 20%, rgba(169,34,43,0.32), transparent 60%),
    radial-gradient(ellipse 650px 550px at 80% 85%, rgba(28,167,224,0.28), transparent 60%),
    linear-gradient(160deg, #123354 0%, var(--blue) 55%, var(--grey-900) 140%);
  color: var(--white);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(-45deg, rgba(169,34,43,0.35) 0, rgba(169,34,43,0.35) 2px, transparent 2px, transparent 60px);
  opacity:.4;
  pointer-events:none;
}
.cta-band .container{ position:relative; z-index:2; }
.cta-band h2{ color:var(--white); }
.cta-band p{ color: rgba(255,255,255,0.82); max-width:52ch; margin-left:auto; margin-right:auto; }
.cta-actions{ display:flex; gap:14px; justify-content:center; margin-top:26px; flex-wrap:wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--grey-900); color: var(--grey-300); }
.footer-top{ padding: 60px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand-name{ color: var(--white); }
.site-footer p{ color: var(--grey-500); font-size:0.9rem; }
.footer-grid h4{ color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a{ color: var(--grey-300); font-size:0.92rem; }
.footer-grid a:hover{ color: var(--white); text-decoration:underline; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--grey-500);
}
.social-row{ display:flex; align-items:center; gap:10px; }
.social-row a{
  width:34px; height:34px;
  border-radius:50%;
  border: 1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center;
  color: var(--grey-300);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.social-row a svg{ width:16px; height:16px; }
.social-row a:hover{ background: var(--red); border-color: var(--red); color:var(--white); }
/* WhatsApp gets a bigger circle/icon than the others so it stands out as the direct-contact channel */
.social-row a.social-whatsapp{ width:44px; height:44px; }
.social-row a.social-whatsapp svg{ width:24px; height:24px; }
.social-row a.social-whatsapp:hover{ background:#25D366; border-color:#25D366; }

/* --- toggle switch (visual only) --- */
.toggle{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.toggle input{ position:absolute; opacity:0; width:0; height:0; }
.toggle .track{ width:40px; height:23px; background:var(--grey-300); border-radius:999px; position:relative; transition:background .18s ease; flex-shrink:0; }
.toggle .track::after{ content:""; position:absolute; top:2.5px; left:2.5px; width:18px; height:18px; border-radius:50%; background:var(--white); transition:transform .18s ease; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.toggle input:checked + .track{ background:var(--blue); }
.toggle input:checked + .track::after{ transform:translateX(17px); }
.toggle .toggle-label{ font-size:0.8rem; font-weight:600; color:var(--grey-700); }

/* --- module cards (portal) --- */
.module-card{ display:flex; flex-direction:column; gap:12px; }
.module-card ul{ display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.module-card ul li{ font-size:0.85rem; color:var(--grey-700); padding-left:14px; position:relative; }
.module-card ul li::before{ content:"–"; position:absolute; left:0; color:var(--red); }
.module-toggle-row{ margin-top:auto; padding-top:6px; border-top:1px solid var(--grey-200); }

/* --- utility --- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.text-center{ text-align:center; }
.small{ font-size: 0.85rem; color: var(--grey-500); }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}