/* ====== VARIABLES ====== */
:root {
  --red: #e63946;
  --blue: #1d4e89;
  --outline: #457b9d;
  --dark: #2b2d42;
  --light-bg: #f8f9fa;
  --radius: 8px;
  --max-width: 1200px;
}

/* ====== GLOBAL ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  color: var(--dark);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
h1, h2, h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 1rem;
}

/* ====== NAVBAR ====== */
.navbar {
  background: #fff;
  border-bottom: 2px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo img {
  height: 50px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links li a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
}
.btn-cta {
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
}
.nav-toggle {
  background: none;
  border: none;
  display: none;
  cursor: pointer;
  z-index: 20;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 3px;
  background: var(--blue);
  display: block;
  position: relative;
  transition: 0.3s ease;
}
.hamburger::before {
  content: "";
  position: absolute;
  top: -8px;
}
.hamburger::after {
  content: "";
  position: absolute;
  top: 8px;
}

/* ====== HERO ====== */
.hero {
  background: var(--light-bg);
  text-align: center;
  padding: 4rem 1rem;
}
.hero-logo-circle {
  width: 350px;
  height: 350px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 0;
}
.hero-logo-circle .hero-logo {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.hero-heading {
  font-size: 2rem;
  margin: 0.5rem 0;
}
.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-ctas .btn {
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
}
.btn-outline {
  background: none;
  color: var(--outline);
  border: 2px solid var(--outline);
}

/* ====== SUBPAGE HERO OVERRIDES ====== */
.subpage-hero .hero-logo-circle {
  width: 200px;
  height: 200px;
}
.subpage-hero .hero-logo {
  max-width: 70%;
  max-height: 70%;
}

/* ====== WHY CHOOSE ====== */
.why-choose {
  padding: 3rem 1rem;
}
.why-choose .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.why-choose .card {
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.why-choose .card img {
  height: 50px;
  margin-bottom: 1rem;
}
.why-choose blockquote {
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}
.why-choose cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* ====== QUICK LINKS ====== */
.quick-links {
  padding: 3rem 1rem;
}
.quick-links .links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.link-card img {
  width: 80px;
  height: 80px;
}
.link-card:hover {
  background: var(--light-bg);
}

/* ====== FOOTER ====== */
footer {
  background: var(--dark);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}
.footer-logo-circle {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  line-height: 0;
}
.footer-logo {
  display: block;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  margin: auto;
  transform: translateY(-00%) translateX(5%);
}

/* ====== SECTION BOX (Mission/Vision & History) ====== */
.section-box {
  max-width: var(--max-width);
  margin: 2rem auto;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  background: #fff;
}

/* ====== MISSION & VISION GRID ====== */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
/* split line between mission & vision on desktop */
.mission-vision-grid > div + div {
  border-left: 2px solid var(--blue);
  padding-left: 1rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  /* Show the hamburger button */
  .nav-toggle {
    display: block;
  }

  /* Slide-out nav panel */
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    width: 200px;
    height: calc(100% - 70px);
    background: #fff;
    padding-top: 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);

    /* stack vertically and center items horizontally */
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    /* no justify-content, so items start at top */
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }

  /* each <li> auto-sizes and is centered */
  .nav-links li {
    width: auto;
    margin: 0.25rem 0; /* optional spacing between items */
  }
  .nav-links li a {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  /* stack Mission & Vision into one column */
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .mission-vision-grid > div + div {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
  }

  /* add side margins to boxed sections */
  .section-box {
    margin: 2rem 1rem;
  }

  /* stack founders vertically */
  #founder .card,
  #founder-2 .card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  #founder .card img,
  #founder-2 .card img {
    margin-bottom: 1rem;
  }
}


/* ====== EXTRA STYLES ====== */
#team .card img {
  height: 300px;
  width: auto;
}
#team .card h4,
#team .card h5 {
  color: var(--blue);
}

.founder-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.founder-btn:hover {
  background-color:  #2083f3;
}