/* Final delivery fixes: cleaner sizing, stable responsive behavior, and polished UI overrides */
:root {
  --container: 1180px;
  --color-bg: #f7f3ec;
  --color-text: #162235;
  --color-text-soft: #647184;
  --color-primary: #1f64c8;
  --color-primary-dark: #164c9b;
  --color-accent: #b9965f;
  --color-navy: #0d1f36;
  --color-border: rgba(15, 31, 54, 0.12);
  --shadow-soft: 0 12px 34px rgba(13, 31, 54, 0.10);
  --shadow-medium: 0 24px 70px rgba(13, 31, 54, 0.16);
}

body {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.section {
  padding: clamp(64px, 7vw, 92px) 0;
}

.section-title,
.section-title-left {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.section-desc,
.hero-text,
.contact-hero-text,
.services-hero-inner p,
.programs-hero-content p {
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  line-height: 1.9;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 31, 54, 0.08);
}

.header-inner {
  min-height: 74px;
}

.brand-logo {
  height: clamp(58px, 6vw, 76px);
}

.main-nav {
  gap: clamp(16px, 2vw, 28px);
}

.main-nav a {
  font-size: 0.96rem;
}

.header-cta,
.lang-switch {
  min-height: 42px;
}

.hero-section {
  min-height: auto;
  padding: clamp(120px, 12vw, 150px) 0 clamp(70px, 8vw, 96px);
}

.hero-grid,
.programs-hero-wrap,
.contact-grid {
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-title,
.contact-hero-title,
.programs-hero-content h1,
.services-hero-inner h1,
.about-corporate-head h1 {
  font-size: clamp(2rem, 5vw, 4.25rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
}

.hero-image-wrap,
.program-card-large,
.program-card-small,
.tour-card,
.service-card,
.info-card,
.contact-panel,
.contact-form-wrap {
  box-shadow: var(--shadow-soft);
}

.hero-image,
.program-card-large img,
.program-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  gap: 14px;
}

.stat-card {
  padding: 16px 18px;
}

.stat-card strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.tour-image.tour-main {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.tour-img-1 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-1.jpg') !important; }
.tour-img-2 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-2.jpg') !important; }
.tour-img-3 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-3.jpg') !important; }
.tour-img-4 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-4.jpg') !important; }
.tour-img-5 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-5.jpg') !important; }
.tour-img-6 { background-image: linear-gradient(180deg, rgba(13,31,54,0.08), rgba(13,31,54,0.52)), url('../images/tours/tour-6.jpg') !important; }

.tour-card,
.service-card,
.info-card,
.about-story-card,
.about-stat-card {
  border: 1px solid rgba(15, 31, 54, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tour-card:hover,
.service-card:hover,
.info-card:hover,
.about-story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(185, 150, 95, 0.35);
}

.btn,
.header-cta,
.btn-programs-primary,
.btn-programs-secondary {
  border-radius: 999px;
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 16px;
  border: 1px solid rgba(15, 31, 54, 0.12);
}

.site-footer {
  margin-top: 0;
}

.footer-logo {
  max-height: 88px;
  width: auto;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2),
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3),
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    top: 78px !important;
    width: min(100% - 32px, 420px);
    inset-inline: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(15, 31, 54, 0.10);
  }

  .main-nav.show {
    display: flex;
  }

  .hero-grid,
  .programs-hero-wrap,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-content,
  .programs-hero-content,
  .contact-hero-content,
  .services-hero-inner,
  .about-corporate-head {
    text-align: center;
    margin-inline: auto;
  }

  .hero-actions,
  .cta-actions,
  .programs-hero-actions,
  .services-hero-actions {
    justify-content: center;
  }

  .hero-visual,
  .programs-hero-visual {
    max-width: 620px;
    margin-inline: auto;
  }
}

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

  .header-cta {
    display: none !important;
  }

  .brand-logo {
    height: 56px;
  }

  .hero-section,
  .contact-hero,
  .programs-hero-luxury,
  .services-hero-clean,
  .about-corporate {
    padding-top: 104px !important;
  }

  .hero-title,
  .contact-hero-title,
  .programs-hero-content h1,
  .services-hero-inner h1,
  .about-corporate-head h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem) !important;
  }

  .hero-actions,
  .cta-actions,
  .programs-hero-actions,
  .services-hero-actions,
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .programs-hero-actions a,
  .services-hero-actions a,
  .contact-actions .btn,
  .contact-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-stats,
  .contact-hero-cards,
  .about-stats-grid,
  .card-grid-4,
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .floating-card,
  .program-card-small {
    display: none !important;
  }

  .tour-image.tour-main {
    min-height: 210px;
  }

  .footer-grid {
    gap: 28px;
  }
}
