/* =====================================================
   ACHARYA APPLIED ART COLLEGE – FINAL CSS
   ===================================================== */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Poppins:wght@400;500;600&family=Noto+Serif+Devanagari:wght@400;500;600&display=swap');

/* ---------- ROOT COLORS ---------- */
:root {
  --maroon: #7A1F2B;
  --ivory: #FAF7F2;
  --olive: #6B7B4E;
  --charcoal: #2E2E2E;
  --ochre: #C29A3A;
}

/* ---------- GLOBAL ---------- */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif Devanagari', serif;
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.8;
  font-size: 17px;
}

/* ---------- HEADER ---------- */
header {
  position: relative;   /* 🔥 MOST IMPORTANT */
  background: #ffffff;
  padding: 20px 60px;
  border-bottom: 1px solid #e6e6e6;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* left side */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* trust text */
.trust-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* logo */
.header-left img {
  height: 44px;
  width: auto;
}

/* navigation */
nav a {
  margin-left: 26px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--maroon);
  text-decoration: none;
}

nav a:hover {
  color: var(--ochre);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--maroon);
  user-select: none;
  z-index: 1100;
   margin-left: auto;
}


/* ---------- HERO / BANNER ---------- */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;

  background-image:
    linear-gradient(rgba(30,15,10,0.75), rgba(30,15,10,0.75)),
    url("images/banner.jpeg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  margin-bottom: 22px;
  letter-spacing: 0.6px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

.hero p {
  font-size: 19px;
  margin-bottom: 36px;
  color: #f2f2f2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* ---------- BUTTON ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  background-color: var(--maroon);
  color: #ffffff;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--ochre);
  color: var(--charcoal);
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 80px;
}

.section-light {
  background-color: #ffffff;
}

.content-wrap {
  max-width: 900px;
}

/* ---------- HEADINGS ---------- */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--maroon);
  margin-bottom: 22px;
  letter-spacing: 0.4px;
}

/* ---------- QUOTE ---------- */
.quote {
  margin-top: 34px;
  padding-left: 22px;
  border-left: 4px solid var(--maroon);
  font-style: italic;
  font-size: 18px;
}

/* ---------- DIRECTOR ---------- */
.director-box {
  background: #ffffff;
  padding: 42px;
  border-left: 6px solid var(--maroon);
}

/* ---------- DIRECTOR LAYOUT ---------- */
.director-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

/* photo */
.director-photo img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--maroon);
}

/* text */
.director-text {
  flex: 1;
}

.director-text p {
  margin-bottom: 16px;
}

/* name */
.director-name {
  font-weight: 600;
  color: var(--maroon);
}

.director-name span {
  font-weight: 400;
  font-size: 15px;
  color: var(--charcoal);
}


/* ---------- CONTACT ---------- */
.contact-box {
  background: #ffffff;
  padding: 42px;
}

/* ---------- DIVIDER ---------- */
.section-divider {
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 0 80px;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--maroon);
  color: #ffffff;
  padding: 60px 60px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 16px;
}

footer p {
  font-size: 15px;
  line-height: 1.6;
  color: #f2eaea;
}

.footer-links a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--ochre);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
  text-align: center;
  font-size: 14px;
  color: #f2eaea;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

  header {
    padding: 16px 24px;
  }

  .trust-text {
    display: none;
  }

  .header-left img {
    height: 38px;
  }
  
   .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;

    /* animation setup */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;

    display: flex;
    flex-direction: column;
    border-top: 1px solid #e6e6e6;
  }

  nav a {
    padding: 14px 0;
    text-align: center;
    font-size: 16px;
    margin: 0;
  }

  /* when menu is open */
  nav.active {
    max-height: 320px; /* enough for menu items */
  }

  section {
    padding: 60px 24px;
  }

  .section-divider {
    margin: 0 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }
  
.director-layout {
    flex-direction: column;
    text-align: center;
  }

  .director-photo img {
    width: 140px;
    height: 140px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
