:root {
  --primary-color: #2D5C7F;
  --primary-rgb: 45, 92, 127;
  --secondary-color: #1E4260;
  --accent-color: #B3D0D9;
  --light-color: #F0F8FA;
  --dark-color: #142A3D;
  --gradient-primary: linear-gradient(135deg, #3A7A9E 0%, #2D5C7F 100%);
  --gradient-accent: linear-gradient(45deg, #B3D0D9, #E8A860);
  --hover-color: #24506E;
  --background-color: #F5FAFB;
  --text-color: #2C3E50;
  --text-color-secondary: #5D6D7E;
  --border-color: rgba(45, 92, 127, 0.18);
  --divider-color: rgba(30, 66, 96, 0.12);
  --shadow-color: rgba(30, 66, 96, 0.1);
  --highlight-color: #E8A860;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Lato', sans-serif;
}

/* ━━━ Mobile Menu ━━━ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hamburger .line {
  width: 28px;
  height: 3px;
  background-color: var(--light-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 1.2rem 1.8rem;
  color: var(--light-color);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid transparent;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(5px);
}

/* ━━━ FEATURE CARDS — Style D Slide-in Shine ━━━ */
.feature-card {
  transition: all 0.35s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  padding: 2.8rem 2rem 2.2rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 92, 127, 0.07), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(45, 92, 127, 0.2);
  border-color: var(--accent-color);
}

/* feature-icon centered hexagon */
.feature-icon {
  font-size: 1.7rem;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, #E8F4F8 0%, #D6EAF0 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: var(--primary-color);
  transition: background 0.3s ease;
  position: relative;
  z-index: 2;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #D6EAF0 0%, #C2DDE6 100%);
}

/* ━━━ Testimonial Cards — Style A Card Stack with quote ━━━ */
.testimonial {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  background: white;
  padding: 2.8rem 2.2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow-color);
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 7.5rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.08;
  font-family: var(--main-font), serif;
  pointer-events: none;
}

.testimonial:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 28px rgba(45, 92, 127, 0.2);
}

/* ━━━ FAQ Items — Variant B Side Icon ━━━ */
.faq-item {
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  background: white;
  padding: 0;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.faq-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 22px rgba(45, 92, 127, 0.18);
  border-left: 4px solid var(--primary-color);
}

.faq-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.6rem 1rem 1.6rem 1.4rem;
  flex-shrink: 0;
}

.faq-arrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F4F8 0%, #D6EAF0 100%);
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.faq-item:hover .faq-arrow span {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(90deg);
}

.faq-body {
  padding: 1.6rem 1.6rem 1.6rem 0;
}

/* ━━━ Form ━━━ */
input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem;
  background-color: white;
  color: var(--text-color);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(45, 92, 127, 0.1);
  transform: translateY(-2px);
}

input:hover,
textarea:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* ━━━ Buttons — Style C Morphing ━━━ */
button,
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 12px rgba(45, 92, 127, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover,
.btn:hover {
  border-radius: 10px;
  padding: 1.2rem 4rem;
  box-shadow: 0 6px 20px rgba(45, 92, 127, 0.4);
  background: linear-gradient(135deg, #24506E 0%, #1E4260 100%);
}

html {
  scroll-behavior: smooth;
}

/* ━━━ Typography ━━━ */
h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 600;
  line-height: 1.3;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* ━━━ Header / Footer ━━━ */
header {
  background: var(--secondary-color);
  color: var(--light-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(30, 66, 96, 0.25);
}

footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 0 1rem;
}

header img[alt="logo"],
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* ━━━ Focus ━━━ */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--highlight-color);
  outline-offset: 2px;
}

/* ━━━ PATTERN: parallel diagonal lines ━━━ */
.pattern-bg {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(45, 92, 127, 0.045) 18px,
      rgba(45, 92, 127, 0.045) 19px
    );
}

/* ━━━ Hero Split Overlap ━━━ */
.hero-split-overlap {
  display: flex;
  min-height: 80vh;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  width: 50%;
  background: var(--gradient-primary);
  position: relative;
  z-index: 2;
}

.hero-right {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 92, 127, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

/* Overlap card */
.overlap-card {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 40px rgba(30, 66, 96, 0.25);
  min-width: 170px;
  text-align: center;
}

.overlap-card .stat-number {
  font-family: var(--main-font);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.overlap-card .stat-label {
  font-size: 0.88rem;
  color: var(--text-color-secondary);
  margin-top: 0.4rem;
}

/* ━━━ Timeline Steps (Random Block) ━━━ */
.timeline-container {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
}

.timeline-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--main-font);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(45, 92, 127, 0.35);
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* ━━━ Contact width ━━━ */
#contact > div {
  width: 100%;
}

@media (min-width: 768px) {
  #contact > div {
    width: 80%;
    margin: 0 auto;
  }
}

/* ━━━ Responsive ━━━ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navigation {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-split-overlap {
    flex-direction: column;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    padding: 3rem 2rem;
    order: 1;
  }

  .hero-right {
    height: 280px;
    order: 0;
  }

  .overlap-card {
    display: none;
  }

  .timeline-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .timeline-step {
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    text-align: left;
  }

  .timeline-step:not(:last-child)::after {
    display: none;
  }

  .step-number {
    flex-shrink: 0;
    margin: 0;
  }

  .faq-item {
    flex-direction: column;
  }

  .faq-arrow {
    padding: 1.2rem 1.4rem 0;
  }

  .faq-body {
    padding: 0.8rem 1.4rem 1.4rem;
  }

  .feature-card,
  .testimonial {
    padding: 2rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 1.9rem;
  }

  .feature-card,
  .testimonial {
    padding: 1.5rem;
  }

  #contact > div {
    width: 100%;
  }
}