/* Dr. LKR Visvodaya Boys High School — Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --green-deep: #0d3d2e;
  --green: #1a5c42;
  --green-mid: #2a7a58;
  --green-soft: #e8f2ec;
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --gold-soft: #f7f0d8;
  --ink: #1a1f1c;
  --ink-muted: #4a554e;
  --paper: #faf9f6;
  --white: #ffffff;
  --border: rgba(26, 61, 46, 0.12);
  --shadow: 0 20px 50px rgba(13, 61, 46, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* —— Top bar —— */
.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--gold-bright);
  transition: color 0.2s;
}

.topbar a:hover {
  color: #fff;
}

/* —— Navigation —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #7eb8e8 0%, #4a90c8 55%, transparent 56%),
    conic-gradient(from 0deg, #e8a0b8, #f5d0a0, #e8a0b8);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px var(--green-deep);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: #f5f5f5;
  border-radius: 50% 50% 45% 45%;
  clip-path: polygon(50% 15%, 80% 45%, 70% 80%, 30% 80%, 20% 45%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  position: relative;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active,
.nav-links > li.active > button {
  color: var(--green-deep);
}

.nav-links > li > a::after,
.nav-links > li > button::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after,
.nav-links > li:hover > button::after {
  transform: scaleX(1);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.28s var(--ease);
  z-index: 50;
}

.nav-links > li:hover > .dropdown,
.nav-links > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
}

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.55rem 1.1rem !important;
  margin-left: 0.35rem;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--green-deep) !important;
  color: #fff !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 61, 46, 0.35) 0%, rgba(13, 61, 46, 0.15) 35%, rgba(13, 61, 46, 0.82) 100%),
    linear-gradient(90deg, rgba(13, 61, 46, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.3s forwards;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.6s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-deep);
}

/* —— Page hero (inner) —— */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: var(--green-deep);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../images/back1.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--green-deep), var(--green));
  opacity: 0.25;
  mix-blend-mode: soft-light;
}

.page-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero .crumb {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.page-hero .crumb a {
  color: var(--gold-bright);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  animation: riseIn 0.8s var(--ease) forwards;
}

.page-hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  font-size: 1.05rem;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split.reverse .split-media {
  order: -1;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.title-banner {
  background: var(--white);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.split-copy p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.split-copy p:last-of-type {
  margin-bottom: 1.5rem;
}

/* —— Link grid (explore) —— */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.explore-item {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 140px;
}

.explore-item:hover {
  background: var(--green-soft);
}

.explore-item .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.explore-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.2;
}

.explore-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

.explore-item .arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-top: 0.35rem;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.explore-item:hover .arrow {
  transform: translateX(6px);
}

/* —— Ribbon / quote —— */
.ribbon {
  background:
    linear-gradient(120deg, var(--green-deep) 0%, var(--green) 55%, #1f6b4a 100%);
  color: #fff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.ribbon::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -20%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25), transparent 70%);
  pointer-events: none;
}

.ribbon-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.ribbon blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.ribbon cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* —— Content page —— */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--green-deep);
  margin: 2rem 0 0.85rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.content-block ul {
  margin: 0 0 1.25rem 1.15rem;
  list-style: disc;
  color: var(--ink-muted);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.content-block a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.side-panel {
  background: var(--green-soft);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.side-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.side-panel a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(26, 61, 46, 0.1);
  transition: color 0.2s, padding-left 0.2s;
}

.side-panel a:last-child {
  border-bottom: none;
}

.side-panel a:hover {
  color: var(--green);
  padding-left: 0.35rem;
}

/* —— Timeline —— */
.timeline {
  border-left: 2px solid var(--gold);
  padding-left: 1.75rem;
  margin: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .year {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— Table —— */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--green-deep);
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:nth-child(even) td {
  background: var(--green-soft);
}

.data-table td {
  color: var(--ink-muted);
}

/* —— Album / gallery —— */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.album-tile {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  aspect-ratio: 16 / 10;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s;
  opacity: 0.92;
}

.album-tile:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.album-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(13, 61, 46, 0.9));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-block {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 0.65rem;
}

.contact-block p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.contact-block a {
  color: var(--green);
  font-weight: 500;
}

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

/* —— Events strip —— */
.events-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease);
}

.events-list a:hover {
  padding-left: 0.5rem;
}

.events-list .ev-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-deep);
  font-weight: 600;
}

.events-list .ev-meta {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* —— Footer —— */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--gold-bright);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Notice —— */
.notice {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .split,
  .split.reverse,
  .two-col,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .explore-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

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

  .nav-links > li > a,
  .nav-links > li > button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--green-soft);
    display: none;
    margin: 0 0.5rem 0.5rem;
  }

  .nav-links > li.open > .dropdown {
    display: block;
  }

  .nav-cta {
    margin: 0.5rem 0.75rem !important;
    text-align: center !important;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
}
