/*
Theme Name: CITPS School Theme
Theme URI: https://cittumkur.org
Author: CIT Public School
Author URI: https://cittumkur.org
Description: Custom WordPress theme for CIT Public School, Tumakuru. CBSE school from Montessori to Grade X.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: citps
Tags: education, school, cbse, custom-menu, featured-images, responsive-layout
*/

:root {
  --navy: #102a43;
  --blue: #1769aa;
  --green: #2f9e44;
  --gold: #f2b705;
  --sky: #eaf6ff;
  --surface: #f7fafc;
  --line: #d9e2ec;
  --text: #1f2933;
  --muted: #5f6f7f;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(16, 42, 67, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar a,
.topbar strong {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ffe48a);
  border: 2px solid rgba(16, 42, 67, 0.12);
}

.brand-name {
  display: grid;
  line-height: 1.1;
}

.brand-name strong {
  color: var(--navy);
  font-size: 18px;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 28px 0;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--blue);
  border-bottom-color: var(--gold);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 26px;
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #ffd95a;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 680px;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--hero-image) center/cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 42, 67, 0.88), rgba(16, 42, 67, 0.45), rgba(16, 42, 67, 0.2));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 48px;
  min-height: 680px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  line-height: 1.12;
}

.hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
}

.hero p {
  max-width: 660px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lead-form {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.lead-form p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.field {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  background: var(--white);
}

textarea.field {
  min-height: 112px;
  resize: vertical;
}

select.field {
  appearance: none;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--surface);
}

.section-sky {
  background: var(--sky);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 42px;
}

.section-head.center {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-navy .section-head p,
.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card-body {
  padding: 26px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  transition: 180ms ease;
}

.image-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.icon-card {
  padding: 28px;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 25px;
  font-weight: 900;
  background: var(--sky);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
}

.stat {
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}

.split img {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  content: "✓";
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.timeline {
  counter-reset: steps;
  display: grid;
  gap: 18px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.step::before {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  content: counter(steps);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.page-hero {
  position: relative;
  padding: 132px 0 90px;
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--hero-image) center/cover no-repeat;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.42));
}

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

.page-hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(40px, 5vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 230px;
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery img:first-child {
  grid-row: span 2;
}

.quote {
  padding: 34px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  color: var(--text);
  font-size: 21px;
}

.quote strong {
  display: block;
  margin-top: 18px;
  color: var(--blue);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  color: var(--navy);
  font-weight: 900;
}

.faq p {
  max-width: 820px;
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

.contact-panel {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(16, 42, 67, 0.72), rgba(16, 42, 67, 0.72)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.cta-band {
  padding: 64px 0;
  background: var(--navy);
  color: var(--white);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
}

.cta-band p {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: #071827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding: 62px 0;
}

.footer-main h3,
.footer-main h4 {
  margin-bottom: 14px;
  color: var(--white);
}

.footer-main a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.mobile-cta {
  display: none;
}

/* WordPress default styles */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { margin: 0 auto; display: block; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { max-width: 100%; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

@media (max-width: 1020px) {
  .main-nav,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav.open {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner,
  .split,
  .section-head {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    padding-bottom: 52px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar .container,
  .topbar-links,
  .cta-band .container,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-name strong {
    font-size: 16px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    gap: 28px;
    padding: 72px 0 42px;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .section {
    padding: 68px 0;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .stat-band,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery img:first-child {
    grid-row: auto;
  }

  .split img {
    height: 330px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -8px 24px rgba(16, 42, 67, 0.18);
  }

  .mobile-cta a {
    padding: 14px 12px;
    text-align: center;
    font-weight: 900;
  }

  .mobile-cta a:first-child {
    background: var(--white);
    color: var(--navy);
  }

  .mobile-cta a:last-child {
    background: var(--gold);
    color: var(--navy);
  }
}
