/* ================ GLOBAL ================ */
:root {
  --teal:       #006A64;
  --purple:     #59237A;
  --gold:       #C89A2D;
  --white:      #FFFFFF;
  --gray-light: #F9FAFC;
  --gray-mid:   #666666;
  --gray-dark:  #333333;
  --font-sans:  'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================ HEADER & NAV ================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: #fff;
  position: relative; /* no more sticky */
}

.logo-img {
  max-height: 140px;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  padding: .5rem;
  display: inline-block;
}
/* — Mobile hamburger toggle & submenu accordion — */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

/* at widths ≤768px, toggle nav & submenu */
@media (max-width: 768px) {
  /* show hamburger, hide desktop links */
  .nav-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
  }
  .main-nav.open ul {
    display: flex;
  }

  /* accordion submenu behavior */
  .has-dropdown .dropdown {
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .has-dropdown.open .dropdown {
    display: flex;
  }
}
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  min-width: 200px;
  z-index: 20;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li + li {
  border-top: 1px solid #eee;
}

.dropdown a {
  display: block;
  padding: .75rem 1rem;
  color: var(--gray-mid);
}

.dropdown a:hover {
  background: var(--gray-light);
  color: var(--teal);
}

/* ================ HERO (for other pages) ================ */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('/images/hero-banner.png') center top/cover no-repeat;
}

.hero-overlay {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 15vh;
  color: #fff;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  max-width: 600px;
}

.btn-hero {
  background: var(--gold);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 1rem;
}

/* ================ PILLARS ================ */
.pillars {
  padding: 4rem 0;
}
.pillars h2, .pillar-header {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 1rem;
  text-align: center;
}

/* ================ SERVICE GRID ================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 1.25rem;
  flex: 1;
}

.card-content h3 {
  margin-bottom: .75rem;
  color: var(--teal);
  font-size: 1.3rem;
}

.card-content p {
  color: var(--gray-mid);
  font-size: 1rem;
  margin: 0;
}

/* ================ ABOUT ================ */
.about-us {
  padding: 4rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.about-images img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ================ FOUNDATION PAGE OVERRIDES ======== */
.foundation-banner {
  background: var(--purple);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2rem;
}
.foundation-banner img {
  width: auto;
  height: 100%;
  object-fit: contain;
}
.foundation-founder {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.foundation-founder h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .5rem;
}
.foundation-founder h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}
.foundation-story {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  font-weight: 500;
  line-height: 1.8;
  font-size: 1.1rem;
}
.foundation-story p + p {
  margin-top: 1.5rem;
}

/* ================ FOOTER ================ */
.footer {
  background: var(--purple);
  color: #fff;
  padding: 2rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.footer-col p, .footer-col a {
  font-size: .95rem;
  color: #fff;
}
.social-icons {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.social-icons a {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.social-icons img {
  width: 20px; height: 20px;
  filter: none;
}
.footer-bottom {
  text-align: center;
  font-size: .9rem;
}

/* ================ MEDIA QUERIES ================ */
@media (max-width:768px) {
  .hero { height: 50vh; }
  .hero-overlay { padding-top: 10vh; }
  .hero-overlay h1 { font-size: 1.75rem; }
  .hero-overlay p { font-size: 1rem; max-width: 90%; }
  .main-nav ul {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
  }
  .main-nav.open ul { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .foundation-banner { height: 200px; }
  .service-grid .card img { max-height: 180px; }
}

/* ============================================
   CONTACT PAGE OVERRIDES (only)
   ============================================ */

/* 1) Banner image */
.contact-banner img {
  width: 100%;
  height: 25vh;               /* shorter so form shows above the fold */
  object-fit: cover;
}

/* 2) Split layout: two columns side-by-side */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0;
}

/* 3) Left column: Form */
.contact-form {
  flex: 1 1 50%;
  min-width: 300px;
}

.contact-form h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form p {
  margin-bottom: 1rem;
  color: var(--gray-mid);
  font-size: 1.1rem;
}

/* Form fields */
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

/* “I’m not a robot” checkbox */
.robot-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.robot-check input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--teal);
}

.robot-check label {
  font-weight: 600;
}

/* Modern submit button */
.contact-form button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1);
}

.contact-form button:hover {
  background: #005050;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15);
}

/* 4) Right column: Details */
.contact-details {
  flex: 1 1 40%;
  min-width: 280px;
  padding-left: 2rem;
  border-left: 4px solid var(--teal);
}

.contact-details h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* thin divider before hours */
.contact-details hr {
  border: none;
  border-top: 2px solid var(--gray-light);
  margin: 1.5rem 0;
}

/* 5) Responsive tweaks */
@media (max-width: 768px) {
  .contact-form,
  .contact-details {
    flex: 1 1 100%;
    border-left: none;
    padding-left: 0;
  }
  .contact-banner img {
    height: 20vh;
  }
}
