/* ========================================
   PRE-EQC — Single Page Styles
   ======================================== */

:root {
  --red: #b21f24;
  --navy: #0a1128;
  --blue: #007bff;
  --blue-soft: #4da3ff;
  --green: #1e5631;
  --green-check: #2e8b57;
  --text: #2c2c2c;
  --text-muted: #6b7280;
  --bg-light: #f0f4f8;
  --bg-subtle: #f7f9fc;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(10, 17, 40, 0.08);
  --shadow-card: 0 6px 24px rgba(10, 17, 40, 0.07);
  --radius: 12px;
  --container: 1140px;
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  gap: 1rem;
}

.logo img {
  width: 80px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav--left {
  justify-content: flex-end;
  padding-right: 1.5rem;
}

.nav--right {
  justify-content: flex-start;
  padding-left: 1.5rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a3a3a;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  font-weight: 500;
  color: #3a3a3a;
}

.mobile-nav a:hover {
  color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  background: #fff;
  line-height: 0;
  overflow: hidden;
}

.hero__banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ---------- Why Choose ---------- */
.why {
  padding: 80px 0 90px;
  background: var(--white);
}

.why .section-title {
  margin-bottom: 3rem;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.why__certificate {
  display: flex;
  justify-content: center;
}

.why__cert-img {
  width: min(100%, 340px);
  box-shadow: var(--shadow);
  border-radius: 4px;
}

.why__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}

.why__text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f5ee;
  color: var(--green-check);
  flex-shrink: 0;
}

.why__scopes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why__scopes img {
  width: 100%;
  box-shadow: var(--shadow-card);
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.why__scopes img:hover {
  transform: translateY(-4px);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 80px 0 90px;
  background: var(--bg-light);
}

.testimonials__slider {
  position: relative;
}

.testimonials__viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.testimonial-card__quote {
  margin-bottom: 0.85rem;
}

.testimonial-card__text {
  font-style: italic;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  margin-bottom: 0.85rem;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 600;
}

.testimonial-card__author span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.testimonial-card__more {
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
  align-self: flex-start;
}

.testimonial-card__more:hover {
  text-decoration: underline;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #c5cdd8;
  background: var(--white);
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: #f0f7ff;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 0 90px;
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.75rem;
}

.contact__intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 380px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.25rem;
}

.contact__item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact__form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

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

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

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: #0069d9;
}

.btn-submit:active {
  transform: translateY(1px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.15rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why__grid {
    gap: 2rem;
  }

  .why__scopes {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }

  .contact__grid {
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    gap: 1.5rem;
  }

  .nav--left {
    padding-right: 0.75rem;
  }

  .nav--right {
    padding-left: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header__inner {
    grid-template-columns: auto 1fr;
    min-height: 72px;
  }

  .logo {
    order: -1;
  }

  .logo img {
    width: 56px;
    height: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .why__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why__text {
    margin-inline: auto;
  }

  .why__list {
    align-items: center;
  }

  .why__list li {
    justify-content: center;
  }

  .why__scopes {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__intro {
    max-width: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .why,
  .testimonials,
  .contact {
    padding: 56px 0 64px;
  }

  .why__scopes {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

.testimonial-card__photo {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center top;
      display: block;
      margin: 0 0 1rem;
      border: 2px solid #e8f1fa;
      background: #f5f8fb;
      image-rendering: auto;
    }
    .testimonial-card__text {
      display: -webkit-box;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .testimonial-card__more {
      border: 0;
      background: none;
      padding: 0;
      cursor: pointer;
      font: inherit;
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .testimonial-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
    }
    .testimonial-modal.is-open {
      display: flex;
    }
    .testimonial-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 35, 55, 0.55);
    }
    .testimonial-modal__dialog {
      position: relative;
      z-index: 1;
      width: min(640px, 100%);
      max-height: min(85vh, 760px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
      padding: 1.75rem 1.5rem 1.5rem;
    }
    .testimonial-modal__close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 50%;
      background: #f0f4f8;
      color: #1a3348;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
    }
    .testimonial-modal__header {
      display: flex;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.25rem;
      padding-right: 2rem;
    }
    .testimonial-modal__photo {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center top;
      border: 2px solid #e8f1fa;
      flex-shrink: 0;
      background: #f5f8fb;
    }
    .testimonial-modal__author strong {
      display: block;
      font-size: 1.05rem;
      color: #123047;
    }
    .testimonial-modal__author span {
      display: block;
      margin-top: 0.25rem;
      font-size: 0.9rem;
      color: #5a6f80;
      line-height: 1.45;
    }
    .testimonial-modal__body {
      color: #2c3e4c;
      font-size: 0.98rem;
      line-height: 1.65;
    }
    .testimonial-modal__body p {
      margin: 0 0 0.9rem;
    }
    .testimonial-modal__body ul {
      margin: 0 0 0.9rem;
      padding-left: 1.2rem;
    }
    .testimonial-modal__body li {
      margin-bottom: 0.45rem;
    }
    body.modal-open {
      overflow: hidden;
    }
    .why__certificate img,
    .why__scopes img {
      cursor: zoom-in;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .why__certificate img:hover,
    .why__scopes img:hover {
      opacity: 0.92;
    }
    .image-lightbox {
      position: fixed;
      inset: 0;
      z-index: 1100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
    }
    .image-lightbox.is-open {
      display: flex;
    }
    .image-lightbox__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(10, 20, 30, 0.82);
    }
    .image-lightbox__content {
      position: relative;
      z-index: 1;
      max-width: min(96vw, 1100px);
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }
    .image-lightbox__img {
      display: block;
      max-width: 100%;
      max-height: calc(90vh - 3rem);
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      background: #fff;
    }
    .image-lightbox__caption {
      color: #f5f8fb;
      font-size: 0.95rem;
      text-align: center;
      max-width: 40rem;
      line-height: 1.4;
    }
    .image-lightbox__close {
      position: absolute;
      top: 0.85rem;
      right: 0.85rem;
      z-index: 2;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      color: #123047;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
    }
    .image-lightbox__nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.95);
      color: #123047;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .image-lightbox__nav:disabled {
      opacity: 0.35;
      cursor: default;
    }
    .image-lightbox__nav--prev { left: 0.75rem; }
    .image-lightbox__nav--next { right: 0.75rem; }
    @media (max-width: 768px) {
      .image-lightbox__nav--prev { left: 0.35rem; }
      .image-lightbox__nav--next { right: 0.35rem; }
    }
