/* =========================================
   Lindenhof International School
   Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --green: #173b2a;
  --green-light: #28543d;
  --cream: #f7f5ee;
  --white: #ffffff;
  --text: #243129;
  --muted: #68736c;
  --border: #dfe3de;
  --gold: #b99a5b;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

/* =========================================
   Header
   ========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 238, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--max-width);
  margin: auto;
  min-height: 78px;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: var(--green);
  color: var(--white);

  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--gold);
}

.nav-button {
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--green);
  color: white;
}

.nav-button:hover {
  color: white;
  background: var(--green-light);
}

/* =========================================
   Hero
   ========================================= */

.hero {
  min-height: 680px;
  max-width: var(--max-width);
  margin: auto;
  padding: 100px 30px;

  display: flex;
  align-items: center;

  position: relative;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 20px;

  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 25px;

  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 600;
  line-height: 1.05;
}

.hero p {
  max-width: 650px;
  margin-bottom: 35px;

  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  display: inline-block;
  padding: 14px 22px;

  border-radius: 4px;

  background: var(--green);
  color: white;

  font-size: 14px;
  font-weight: 600;

  transition: 0.2s ease;
}

.button:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.button-outline:hover {
  background: var(--green);
  color: white;
}

/* =========================================
   General Sections
   ========================================= */

section {
  max-width: var(--max-width);
  margin: auto;
  padding: 100px 30px;
}

.section-label {
  margin-bottom: 12px;

  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

section h2 {
  margin-bottom: 20px;

  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

.section-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================================
   Stats
   ========================================= */

.stats {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 30px 80px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;

  background: var(--border);
}

.stat {
  padding: 35px;
  background: var(--cream);
}

.stat-number {
  display: block;

  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

/* =========================================
   About
   ========================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--muted);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.detail {
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
}

.detail span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   Academics
   ========================================= */

.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.academic-card {
  padding: 35px;

  background: var(--white);
  border: 1px solid var(--border);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(23, 59, 42, 0.08);
}

.card-number {
  margin-bottom: 30px;

  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.academic-card h3 {
  margin-bottom: 12px;

  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: 25px;
}

.academic-card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   Campus Image
   ========================================= */

.campus-photo {
  position: relative;
  overflow: hidden;

  width: 100%;
  min-height: 500px;
  margin-top: 45px;

  background:
    linear-gradient(
      135deg,
      #d9ddd6,
      #aeb9af
    );
}

.campus-photo img {
  display: block;

  width: 100%;
  height: 540px;

  object-fit: cover;
}

.photo-label {
  position: absolute;
  left: 25px;
  bottom: 25px;

  padding: 10px 15px;

  background: rgba(23, 59, 42, 0.95);
  color: white;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* =========================================
   Facilities
   ========================================= */

.facilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.facility {
  padding: 20px;

  background: white;
  border: 1px solid var(--border);

  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* =========================================
   Admissions
   ========================================= */

.admissions {
  background: var(--green);
  color: white;

  max-width: none;
}

.admissions-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 100px 30px;
}

.admissions h2 {
  color: white;
}

.admissions p {
  max-width: 650px;
  margin-bottom: 30px;

  color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   Contact
   ========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-info {
  display: grid;
  gap: 25px;
  margin-top: 30px;
}

.contact-item strong {
  display: block;
  color: var(--green);
}

.contact-item span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   Footer
   ========================================= */

footer {
  padding: 40px 30px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: auto;

  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 850px) {

  nav {
    display: none;
  }

  .hero {
    min-height: 560px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .campus-photo {
    min-height: 350px;
  }

  .campus-photo img {
    height: 350px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {

  .navbar {
    padding: 0 20px;
  }

  section {
    padding: 70px 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .stats {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stat {
    padding: 25px 18px;
  }

  .stat-number {
    font-size: 32px;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

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

  .campus-photo img {
    height: 300px;
  }
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 850px) {
  .menu-button {
    display: block;
  }

  nav.mobile-open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}