/* =========================================
   Orchids International School – Chemsandra
   ========================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #7a001a;
  --green:        #9d0022;
  --green-light:  #bf0028;
  --gold:         #fdb022;
  --gold-light:   #fec955;
  --text-dark:    #1a1a2e;
  --text-body:    #3d3d3d;
  --text-muted:   #6b7280;
  --bg-light:     #fdf7f0;
  --bg-white:     #ffffff;
  --border:       #e8ddd5;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --transition:   0.25s ease;
  --max-width:    1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,122,74,.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }

.logo-text-fallback {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}
.logo-orchids {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.nav-links a:hover { color: var(--green); background: var(--bg-light); }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   HERO / BANNER
   ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(157,0,34,.85) 0%, rgba(26,10,15,.75) 100%),
    url('images/Orchids_International_School_Chemmasandra.webp') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(253,176,34,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.3));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 100px 80px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--green-dark);
  padding-block: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item { color: #fff; }
.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =========================================
   SECTIONS – shared
   ========================================= */
.section { padding-block: 88px; }

.section-about    { background: var(--bg-white); }
.section-principal{ background: var(--bg-light); }
.section-why      { background: var(--bg-white); }
.section-fees     { background: var(--bg-light); }
.section-contact  { background: var(--bg-white); }
.section-mandatory{ background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-contact .section-eyebrow { color: var(--green); }

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-header-light h2 { color: #fff; }

.section-divider {
  width: 52px;
  height: 4px;
  background: var(--green);
  border-radius: 4px;
  margin-inline: auto;
}
.section-divider-light { background: var(--gold); }

.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}
.section-contact .section-desc { color: var(--text-muted); }

/* =========================================
   ABOUT US
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #d4e8d8;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 3rem;
}
.about-image.img-placeholder::after { content: '🏫'; }

.about-text p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-text .btn { margin-top: 8px; }

/* =========================================
   MEET THE PRINCIPAL
   ========================================= */
.section-principal { background: var(--bg-light); }

.principal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

/* Card */
.principal-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.principal-photo-wrap {
  position: relative;
  background: #fff4e0;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 32px;
}

.principal-drop {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 260px;
  background: var(--gold);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.55;
  z-index: 0;
}

.principal-photo {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.principal-photo-wrap.photo-missing {
  min-height: 260px;
  background: #f0f7f3;
  justify-content: center;
  align-items: center;
}
.principal-photo-wrap.photo-missing::after {
  content: '👩‍🏫';
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

.principal-nameplate {
  background: var(--green-dark);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.principal-nameplate strong {
  font-size: 1.1rem;
  font-weight: 700;
}
.principal-nameplate span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.75);
}

/* Bio */
.principal-bio { display: flex; flex-direction: column; gap: 18px; }

.principal-quote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--green-dark);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.principal-bio p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   FEE STRUCTURE
   ========================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 380px;
  border: 1.5px solid var(--border);
}

.fee-table thead tr {
  background: var(--green);
  color: #fff;
}

.fee-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,.2);
}

.fee-table td {
  padding: 13px 18px;
  border: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
}

.fee-table tbody tr:nth-child(even) { background: var(--bg-light); }

.fee-table tbody tr:hover { background: #fdf1d8; }

.fee-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================
   MANDATORY DISCLOSURE
   ========================================= */
.md-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(157,0,34,.07);
  border-left: 4px solid var(--green);
  padding: 10px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.md-table-wrap { margin-bottom: 36px; }

.mandatory-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 6%;
  text-align: center;
}
.mandatory-table td:nth-child(2) { width: 52%; }
.mandatory-table td:nth-child(3) { width: 42%; }

.md-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.md-link:hover { color: var(--green-dark); text-decoration: underline; }

.md-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 12px;
}

.md-sub-row {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 32px !important;
  font-style: italic;
}

/* =========================================
   CONTACT & LOCATION
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info-block {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.contact-details { display: flex; flex-direction: column; gap: 22px; }

.contact-details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-body);
}

.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.contact-details a {
  color: var(--green);
  font-weight: 600;
}
.contact-details a:hover { color: var(--green-dark); text-decoration: underline; }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #4d0011;
  color: rgba(255,255,255,.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-block: 60px;
}

.footer-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,.6); max-width: 280px; line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-contact a { color: var(--gold-light); }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding-block: 64px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .nav-cta { margin-left: 0 !important; }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero-content { padding-block: 80px 60px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  /* Principal */
  .principal-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 36px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Why */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
