/* =============================================
   SRIVIDYALAYAM — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Raleway:wght@300;400;500;600;700&display=swap');

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

:root {
  --crimson: #6B0020;
  --crimson-light: #85002A;
  --crimson-deep: #1A0008;
  --gold: #C9A84C;
  --gold-light: #E2C272;
  --gold-pale: #F5E9C8;
  --cream: #FDF6E3;
  --dark: #1A0A00;
  --text: #2C1A00;
  --muted: #7A6040;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 0, 5, 0.98);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 70px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: var(--crimson-deep);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 233, 200, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--crimson-deep) !important;
  border-radius: 2px;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-cta.active::after {
  display: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* ---- SHARED UTILITIES ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--crimson);
}

.btn-primary {
  background: var(--gold);
  color: var(--crimson-deep);
  padding: 0.85rem 2.2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 0;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: rgba(201, 168, 76, 0.9);
    padding: 0.85rem 2.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.6);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-3px);
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- PAGE HERO (founder + classes + whychooseus pages) ---- */
.page-hero {
    background: linear-gradient(160deg, #8B5A00 0%, #C07800 40%, #E09010 60%, #C07800 100%);
    padding: 16rem 2rem 12rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(100, 50, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson-deep);
  margin-bottom: 0.8rem;
  display: block;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--crimson-deep);
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.page-hero-title em {
  font-style: italic;
  color: var(--crimson);
}

.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(92, 0, 0, 0.6);
  margin-top: 0.75rem;
  position: relative;
  z-index: 2;
}

/* ---- SHARED FORM STYLES ---- */
.form-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(107, 0, 32, 0.2);
  background: var(--cream);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  background: var(--crimson);
  color: var(--gold-pale);
  border: none;
  padding: 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--crimson-deep);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--crimson);
  font-style: italic;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(201, 168, 76, 0.5);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(201, 168, 76, 0.8);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 168, 76, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201, 168, 76, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(201, 168, 76, 0.5);
    letter-spacing: 0.05em;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(201, 168, 76, 0.4);
    margin: 0 auto 1.5rem;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(201, 168, 76, 0.25);
  margin: 0 auto 1.5rem;
}


/* =============================================
   SHARED RESPONSIVE STYLES
   ============================================= */

@media (max-width: 768px) {

  /* ---- GLOBAL MOBILE SAFETY ---- */

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  /* Prevent grids/flex children from forcing
     the page wider than the viewport */
  .section-inner {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
  }

  /* ---- NAV ---- */

  nav {
    height: 70px;
    padding: 0 1rem;
  }

  .nav-logo img {
    width: 46px;
    height: 46px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--crimson-deep);
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.35s ease,
      padding 0.35s ease;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 0;
  }

  .nav-links a {
    padding: 0.85rem 2rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 2rem 0 !important;
    padding: 0.65rem 1.2rem !important;
    text-align: center !important;
    border-radius: 2px !important;
    display: block !important;
    width: auto !important;
  }

  /* ---- BUTTONS ---- */

  .btn-primary,
  .btn-ghost {
    padding: 0.7rem 1.5rem;
    font-size: 0.72rem;
  }

  /* ---- FORMS ---- */

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    max-width: 100%;
  }

  /* ---- PAGE HERO ---- */

  .page-hero {
    width: 100%;
    min-height: auto;
    padding: 10rem 1.25rem 6rem !important;
  }

  .page-hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .page-hero-sub {
    max-width: 100%;
  }

  .page-hero::before {
    width: 300px;
    height: 300px;
  }

  /* ---- FOOTER ---- */

  footer {
    padding: 2.5rem 1rem;
  }

  .footer-social {
    gap: 1rem;
    flex-wrap: wrap;
  }
}


/* ---- SMALL PHONES ---- */

@media (max-width: 480px) {

  nav {
    padding: 0 0.75rem;
  }

  .nav-logo img {
    width: 42px;
    height: 42px;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-hero {
    padding: 9rem 1rem 5rem !important;
  }

  .page-hero-title {
    font-size: 2.25rem;
  }

  .form-success {
    padding: 1.5rem 0.5rem;
  }
}