/*
Theme Name: Warsis Education System
Theme URI: https://warsis.edu.pk/
Author: Warsis Education System
Author URI: https://warsis.edu.pk/
Description: A clean, trustworthy, mobile-first WordPress theme built for Warsis Education System, PECHS Karachi. Includes a home page with hero slider, About, Academics, Montessori, Primary, Secondary, Admissions, Principal's Message, Gallery and Contact page templates, an admission enquiry form, a contact form and a floating WhatsApp widget.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warsis
Tags: education, school, custom-menu, custom-logo, featured-images, translation-ready, two-columns, right-sidebar
*/

/* ---------------------------------------------------------------
   1. Tokens and resets
--------------------------------------------------------------- */
:root {
  --ink: #16323a;
  --ink-deep: #0d2429;
  --teal: #1596ae;
  --teal-dark: #0e6f82;
  --teal-pale: #eef7f9;
  --teal-light: #7fd0de;
  --gold: #f4b81c;
  --paper: #f7f5f1;
  --white: #ffffff;
  --muted: #44585e;
  --muted-2: #5a6a70;
  --muted-3: #9fb4b8;
  --line: rgba(22, 50, 58, 0.12);
  --line-strong: rgba(22, 50, 58, 0.28);
  --error: #b0004e;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe, svg, video { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--teal-dark); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { text-wrap: pretty; }

*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 20px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   2. Layout helpers
--------------------------------------------------------------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 96px; }
.section--first { padding-top: 80px; }
.section--panel { background: var(--white); padding: 80px 0; margin-top: 96px; }
.section--tight { padding-top: 64px; }

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0;
}
.eyebrow--gold { color: var(--gold); letter-spacing: 0.24em; }

.h1 { margin: 18px 0 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; }
.h2 { margin: 18px 0 0; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.13; font-weight: 700; }
.h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.18; font-weight: 700; }
.h4 { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 700; }

.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.prose p { font-size: 19px; line-height: 1.72; margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.measure { max-width: 620px; }
.measure-sm { max-width: 460px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 64px;
  align-items: start;
}
.split--center { align-items: center; }

.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack--sm { gap: 12px; }

.grid { display: grid; gap: 36px 48px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--photos { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.photo { display: block; width: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 3 / 4; }
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--tall { aspect-ratio: 4 / 5; }

/* ---------------------------------------------------------------
   3. Buttons and links
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover, .btn--gold:focus { background: var(--ink); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover, .btn--teal:focus { background: var(--teal-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn--outline:hover, .btn--outline:focus { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.link-arrow {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--teal-dark); }
.link-quiet {
  font-size: 17px;
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 111, 130, 0.4);
  padding-bottom: 2px;
}
.link-quiet:hover { color: var(--ink); }

/* ---------------------------------------------------------------
   4. Header and navigation
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__rule { height: 4px; background: var(--ink); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 10px 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.brand__sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-dark); }

.nav-desktop { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus { color: var(--teal-dark); border-bottom-color: var(--gold); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .is-current > a { color: var(--teal-dark); border-bottom-color: var(--gold); }

.nav-list .sub-menu, .nav-list .children {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 224px;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(22, 50, 58, 0.14);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 5;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu,
.nav-list li:hover > .children,
.nav-list li:focus-within > .children { display: flex; }
.nav-list .sub-menu a, .nav-list .children a {
  display: block;
  padding: 10px 20px;
  border-bottom: none;
  width: 100%;
}
.nav-list .sub-menu a:hover, .nav-list .children a:hover { background: var(--teal-pale); color: var(--teal-dark); }
.menu-item-has-children > a::after,
.page_item_has_children > a::after { content: "\25BE"; font-size: 10px; color: var(--teal-dark); }

.nav-cta { white-space: nowrap; }
.nav-cta.btn { min-height: 46px; padding: 12px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  background: none;
  border: 1px solid rgba(22, 50, 58, 0.2);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 20px; height: 2px; background: var(--ink); }

.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 0 4px; }
.nav-mobile a {
  display: block;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 50, 58, 0.08);
}
.nav-mobile .sub-menu, .nav-mobile .children { padding: 0; }
.nav-mobile .sub-menu a, .nav-mobile .children a { padding-left: 20px; }
.nav-mobile .sub-menu a::before, .nav-mobile .children a::before { content: "\2014\00a0"; color: var(--teal-dark); }
.nav-mobile__cta { padding: 18px 0 24px; }
.nav-mobile__cta .btn { width: 100%; }

@media (max-width: 1139px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------
   5. Hero slider
--------------------------------------------------------------- */
.hero {
  position: relative;
  height: 68vh;
  min-height: 460px;
  max-height: 660px;
  background: var(--ink-deep);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 26, 31, 0.9) 0%, rgba(9, 26, 31, 0.66) 46%, rgba(9, 26, 31, 0.2) 100%);
}
.hero__body { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__copy { max-width: 620px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero__title { margin: 0; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.06; font-weight: 700; color: var(--white); }
.hero__text { margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #dfe8e9; max-width: 520px; }
.hero__nav { position: absolute; right: var(--gutter); bottom: 22px; z-index: 4; display: flex; gap: 10px; }
.hero__arrow {
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 17px;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
}
.hero__arrow:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hero__dots { position: absolute; left: var(--gutter); bottom: 26px; z-index: 4; display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 6px; padding: 0; border: none; cursor: pointer; background: rgba(255, 255, 255, 0.45); }
.hero__dot.is-active { background: var(--gold); }

/* ---------------------------------------------------------------
   6. Page hero and breadcrumbs
--------------------------------------------------------------- */
.page-hero { background: var(--ink); color: var(--white); padding: 56px 0 72px; }
.page-hero .h1 { color: var(--white); max-width: 20ch; }
.page-hero .lead { color: #c3d2d4; }
.page-hero--image { position: relative; min-height: 440px; background: var(--ink-deep); display: flex; align-items: flex-end; }
.page-hero--image .page-hero__media { position: absolute; inset: 0; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 26, 31, 0.92) 0%, rgba(9, 26, 31, 0.62) 55%, rgba(9, 26, 31, 0.25) 100%);
}
.page-hero--image .container { position: relative; padding-top: 56px; padding-bottom: 72px; }

.breadcrumbs { font-size: 14px; color: var(--muted-3); margin-bottom: 34px; }
.breadcrumbs a { color: var(--muted-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-current] { color: #eef2f1; }
.breadcrumbs .sep { padding: 0 8px; }

/* ---------------------------------------------------------------
   7. Content blocks
--------------------------------------------------------------- */
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-dark); }
.fact p { margin: 0; font-size: 17px; line-height: 1.55; }

.reason-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.reason {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}
.reason__num { font-size: 13px; letter-spacing: 0.1em; color: var(--teal-dark); font-weight: 400; }
.reason p { margin: 0; }

.feature { border-top: 2px solid var(--gold); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.feature--teal { border-top-color: var(--teal); }

.value-word { margin: 0; font-size: 22px; font-weight: 700; border-top: 2px solid var(--teal); padding-top: 16px; }

.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.ticks--muted { color: var(--muted); }

.program-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(22, 50, 58, 0.1); }
.program-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.program-card__body { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.program-card h3 { margin: 0; font-size: 27px; font-weight: 700; }
.program-card__meta { margin: 0; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); }
.program-card ul { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.program-card__link { margin-top: auto; padding-top: 22px; font-size: 17px; font-weight: 600; color: var(--teal-dark); text-decoration: none; }
.program-card__link:hover { color: var(--ink); }

.stage { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--gold); padding-top: 22px; }
.stage--two { border-top-color: var(--teal); }
.stage--three { border-top-color: var(--ink); }
.stage__label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-dark); }
.stage h3 { margin: 0; font-size: 28px; font-weight: 700; }
.stage p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.quote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}
.quote--plain { border: 0; padding: 0; font-size: 20px; line-height: 1.7; }
.byline { display: flex; flex-direction: column; gap: 3px; }
.byline__name { font-size: 19px; font-weight: 600; }
.byline__role { font-size: 14px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; }

.editable-note {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-2);
  background: var(--white);
  border: 1px dashed var(--line-strong);
  padding: 18px 20px;
}

.wp-content { max-width: 70ch; }
.wp-content h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; }
.wp-content h3 { font-size: 22px; margin: 32px 0 12px; }
.wp-content p, .wp-content li { font-size: 18px; line-height: 1.72; }
.wp-content img { height: auto; }
.wp-content blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }

.map-frame { width: 100%; height: 420px; border: 1px solid var(--line); display: block; }
.map-frame--sm { height: 340px; }
.address { margin: 0; font-size: 20px; line-height: 1.6; }

.gallery-figure { margin: 0; position: relative; }
.gallery-figure figcaption, .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(9, 26, 31, 0.78);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* ---------------------------------------------------------------
   8. Gallery page
--------------------------------------------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font-family: inherit;
  font-size: 16px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(22, 50, 58, 0.24);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-item { display: block; }
.gallery-item[hidden] { display: none; }
.gallery-item button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform 400ms ease; }
.gallery-item button:hover img, .gallery-item button:focus img { transform: scale(1.03); }
.gallery-count { margin: 32px 0 0; font-size: 16px; color: var(--muted-2); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 18, 21, 0.94);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 1000px; }
.lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; display: block; }
.lightbox figcaption { color: #dfe8e9; font-size: 16px; line-height: 1.5; text-align: center; max-width: 720px; }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 22px;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 18px; right: 20px; width: 48px; height: 48px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ---------------------------------------------------------------
   9. Forms
--------------------------------------------------------------- */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(21, 150, 174, 0.28);
  outline-offset: 0;
}
.field__error { font-size: 14px; color: var(--error); display: none; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }

.form-note {
  margin: 0;
  padding: 16px 18px;
  font-size: 17px;
  line-height: 1.6;
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
}
.form-note--error { background: #fdeef3; border-left-color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------
   10. CTA band and footer
--------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--white); margin-top: 104px; padding: 88px 0; }
.cta-band .h2 { color: var(--white); max-width: 20ch; }
.cta-band p { margin: 0; font-size: 19px; line-height: 1.65; color: #c3d2d4; max-width: 62ch; }

.site-footer { background: var(--ink); color: #eef2f1; padding: 72px 0 32px; margin-top: 96px; }
.cta-band + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 40px; }
.site-footer h2 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-light); font-weight: 600; }
.site-footer p { font-size: 16px; line-height: 1.65; color: #c3d2d4; margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { font-size: 16px; color: #eef2f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.site-footer__brand .brand { color: #eef2f1; padding: 0; }
.site-footer__brand .brand img { height: 46px; }
.site-footer__brand .brand__sub { color: var(--teal-light); }
.site-footer__brand .brand__name { font-size: 21px; }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(238, 242, 241, 0.28);
  color: #eef2f1;
  text-decoration: none;
}
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-wa { color: var(--gold) !important; }
.footer-wa:hover { color: var(--white) !important; }
.site-footer__base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 242, 241, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted-3);
}

/* ---------------------------------------------------------------
   11. WhatsApp widget
--------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-pop {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 290px;
  max-width: calc(100vw - 44px);
  background: var(--white);
  border: 1px solid rgba(22, 50, 58, 0.14);
  box-shadow: 0 16px 40px rgba(22, 50, 58, 0.18);
  padding: 22px 20px 20px;
}
.wa-pop.is-open { display: flex; }
.wa-pop__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); padding-right: 22px; }
.wa-pop p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); }
.wa-pop__close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted-2);
  cursor: pointer;
  padding: 4px 6px;
}
.wa-pop .btn { min-height: 46px; padding: 13px 16px; font-size: 16px; }
.wa-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  background: #25d366;
  color: #0b2b12;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(22, 50, 58, 0.24);
  font-size: 16px;
  font-weight: 600;
}
.wa-fab:hover { background: #1eb455; color: #0b2b12; }
.wa-fab svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------------------------------------------------------------
   12. Blog, archive and 404 fallbacks
--------------------------------------------------------------- */
.entry-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.entry { background: var(--white); border: 1px solid rgba(22, 50, 58, 0.1); padding: 28px 26px; }
.entry h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a:hover { color: var(--teal-dark); }
.entry__meta { font-size: 14px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.entry p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.pagination { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); background: var(--white);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar .widget { background: var(--white); border: 1px solid rgba(22, 50, 58, 0.1); padding: 24px 22px; }
.sidebar .widget-title { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-dark); }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------
   13. Responsive refinements
--------------------------------------------------------------- */
@media (max-width: 900px) {
  .section { padding-top: 72px; }
  .section--panel { padding: 64px 0; margin-top: 72px; }
  .cta-band { margin-top: 80px; padding: 68px 0; }
  .split { gap: 36px 40px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__slide { position: relative; inset: auto; display: none; }
  .hero__slide.is-active { display: block; }
  .hero__body { position: relative; inset: auto; padding: 56px 0 96px; }
  .hero__img { position: absolute; }
  .hero__title { font-size: clamp(30px, 8vw, 40px); }
  .page-hero--image { min-height: 380px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .section { padding-top: 60px; }
  .section--panel { padding: 56px 0; margin-top: 60px; }
  .cta-band { margin-top: 64px; padding: 56px 0; }
  .site-footer { padding-top: 56px; }
  .form-card { padding: 24px 20px; }
  .btn { width: 100%; }
  .btn-row { gap: 12px; }
  .nav-cta.btn { width: auto; }
  .hero__nav, .hero__dots { bottom: 16px; }
  .program-card img { height: 190px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lightbox__prev, .lightbox__next { bottom: 24px; top: auto; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
  .wa-widget { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
