/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans Flex', sans-serif;
  color: #000000;
  background: #ffffff;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
 }

/* ─────────────────────────────────────────
   Navbar
───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  font-size: 38px;
  font-weight: 700;
  color: #3A3889;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.navbar__links a {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  transition: color 0.2s;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #3A3889;
  transition: width 0.25s ease;
}

.navbar__links a:hover {
  color: #3A3889;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #3A3889;
}

.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  padding: 16px 48px 24px;
  gap: 16px;
}

.navbar__mobile-menu a {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.navbar__mobile-menu.open {
  display: flex;
}

/* ─────────────────────────────────────────
   Slider
───────────────────────────────────────── */
.slider {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin:35px auto;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 1s ease;
}

.slider__slide {
  position: relative;
  min-width: 100%;
}

.slider__slide img {
  width: 100%;
  margin:auto;
  object-fit: cover;
  display: block;
}

.slider__label {
  position: absolute;
  top: 60px;
  left: 60px;
  background: #3A3889;
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 22px;
}

.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slider__dot.active {
  background: #ffffff;
}

@media (max-width: 900px) {
  .slider {
    width: 100%;
    margin: 0;
  }

  .slider__slide {
    min-width: 100vw;
  }

  .slider__slide img {
    width: 100vw;
  }

  .slider__label {
    font-size: 20px;
    padding: 7px 14px;
    top: 16px;
    left: 16px;
  }
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  background: #f8f8f8;
  padding: 80px 0 100px;
}

/* Centered header block */
.hero__header {
  text-align: center;
}

.hero__label {
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: normal;
}

.hero__divider {
  width: 260px;
  height: 2px;
  background: #3A3889;
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero__headline {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: #000000;
  text-transform:uppercase;
  margin:20px;
}

/* White card wrapping all hero content */
.hero__card {
}

/* Four rows, each pairing one image with one paragraph */
.hero__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width:1050px;
  margin:auto;
}

.hero__row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
  background: #ffffff;
  padding:40px;
  margin:15px;
}

.hero__row:nth-of-type(even) {
    grid-template-columns: 2fr 3fr;
}

.hero__img {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  object-fit: cover;
  background: #d0d0e0;
}

.hero__row p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
}

/* ─────────────────────────────────────────
   Our Resources
───────────────────────────────────────── */
.resources {
  background: #ffffff;
  padding-bottom: 100px;
}

.teams__banner {
  background: #494949;
  padding: 22px 0;
  text-align: center;
  margin: 30px;
  width: 100%;
  max-width:1300px;
  margin:60px auto 0;
}

.teams__banner h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.container.teams__grid{
  column-count: 3;
  gap:0;
  display:flex;
}

.team-card {
  flex:1;
  margin: 0;
  vertical-align: top;
  text-align: center;
  border: 1px solid #ececec;
  padding:40px;
}


.team-card__img {
  width: 100%;
  object-fit: cover;
}

.team-card__content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #3A3889;
  margin:auto;
  line-height: 1;
  max-width: 230px;
  text-align: center;
  padding:30px 0 20px
}

.team-card__content p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
}

/* ─────────────────────────────────────────
   Contact
───────────────────────────────────────── */
.contact {
  background: #f8f8f8;
  padding: 100px 0;
}

.contact__inner {
  margin:auto;
  max-width: 1000px;
  display:grid;
  gap:35px;
  grid-template-columns: 1fr 2fr;
}

.contact__text{
  padding: 0 46;
}

.contact__text h2 {
  font-size: 40px;
  font-weight: 700;
  color: #3A3889;
  margin-bottom: 24px;
}

.contact__text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: #333333;
}

/* Form */
.contact__form {
  background: #ffffff;
  padding:30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  display:none;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #3a3889;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  margin:15px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3A3889;
  box-shadow: 0 0 0 3px rgba(58, 56, 137, 0.12);
}

.btn-submit {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: #3A3889;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, transform 0.1s;
  float:right;
  margin-right:14px;
}

.btn-submit:hover {
  background: #2d2b70;
}

.btn-submit:active {
  transform: scale(0.98);
}

.form__status {
  font-size: 14px;
  min-height: 20px;
}

.form__status.success { color: #1a7a4a; }
.form__status.error   { color: #c0392b; }

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  background: #3A3889;
  color: #ffffff;
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__logo {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer__tagline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a,
.footer__contact a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: #ffffff;
}

.footer__contact p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__row {
    gap: 40px;
  }

  .team-card {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  /* Navbar */
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: block;
  }

  .navbar__mobile-menu {
    padding: 16px 24px 24px;
  }

  /* Hero */
  .hero {
    padding: 0;
  }

  .hero__card {
    padding: 15px 0 30px;
  }

  .hero__header {
  }

  .hero__row {
    grid-template-columns: 1fr;
    padding:20px;
    text-align: center;
    margin:0;
  }

  .hero__headline{
    margin-bottom:20px;
  }

  /* 2) Hide images in ELG Advantage on mobile */
  .hero__img {
    display: none;
  }

  .hero__row p{
    font-size:16px;
  }

  .hero__row,.hero__row:nth-of-type(even){
    grid-template-columns: 1fr;
  }


  /* 3) Resources: single column */
  .resources{
    padding-bottom:0;
  }
  
  .container.teams__grid {
    column-count: 1;
    gap: 0;
    display: block;
  }

  .teams__banner{
    margin:0 auto 24px;
  }


  .teams__banner h2 {
    font-size: 28px;
  }

  .team-card {
    width: 100%;
    display: block;
    margin: 0 0 40px 0;
    padding:0;
  }

  .team-card__img {
    height: 240px;
  }

  .team-card__content h3{
    font-size: 28px;
    width:auto;
    max-width:100%;
    padding: 20px 0 15px;
  }

  .team-card__content p{
    font-size:14px;
    padding:0 24px 24px;
    line-height:1.4;
  }

  /* 4) Contact full width */
  .contact {
    padding: 15px 0 30px;
    text-align:center;
  }

  .contact__inner {
    width: 100%;
    padding: 0 24px;
    display: block;
  }

  .contact__form{
    padding:0;
  }

  .btn-submit{
    float:none;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
