/**
 * Vatech Asia Homepage Layout Styles
 * Faithfully scaffolds Sections 1 through 6 per Visuals 1 – 4
 */

/* ==========================================================================
   SECTION 1: Hero Experience (Visuals 1 & 2)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(40px, 6vh, 80px);
  overflow: hidden;
  background-color: #2b333a;
  --hero-headline-size: clamp(2.5rem, min(8.5vw, 10.5vh), 9.5rem);
}

/* Background Image Layer */
.hero-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
}

/* Subtle gradient scrim to guarantee text legibility */
.hero-section__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.55) 0%,
    rgba(17, 24, 39, 0.25) 50%,
    rgba(17, 24, 39, 0.45) 100%
  );
  z-index: 1;
}

/* Hero Content Area */
.hero-section__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  max-width: 100%;
}

.hero-section__headline-wrap {
  margin-top: clamp(20px, 4vh, 60px);
  width: 100%;
  max-width: 100%;
}

.hero-section__headline {
  width: 100%;
}

.hero-section__line {
  display: block;
  will-change: transform, opacity;
}

@media (max-height: 820px) {
  .hero-section {
    padding-top: calc(var(--header-height, 80px) + 16px);
    padding-bottom: 24px;
  }
  .hero-section__headline-wrap {
    margin-top: 10px;
  }
  .hero-section__mid-row {
    margin-top: clamp(20px, 3vh, 40px);
    margin-bottom: 16px;
  }
}

@media (max-height: 700px) {
  .hero-section {
    --hero-headline-size: clamp(2.25rem, min(8vw, 9.5vh), 8rem);
  }
  .hero-section__subhead {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* Hero Lower Mid Grid */
.hero-section__mid-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 8vh, 100px);
  margin-bottom: 32px;
  width: 100%;
}

.hero-section__subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-white);
  max-width: 440px;
  font-weight: 400;
  opacity: 0.95;
}

.hero-section__scroll-wrap {
  display: flex;
  justify-content: center;
}

.hero-section__cta-wrap {
  display: flex;
  justify-content: flex-end;
}

/* Hero Scrolled Reveal Layer (Visual 2) */
.hero-section__reveal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  width: 100%;
}

.hero-section__nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-section__nav-link {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-white);
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-section__nav-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

.hero-section__social-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.hero-section__social-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-white);
  max-width: 260px;
  opacity: 0.9;
}

/* ==========================================================================
   SECTION 2: Brand Manifesto (Visual 3 - Top)
   ========================================================================== */
.manifesto-section {
  padding: var(--section-spacing-y) 0;
  background-color: var(--color-brand-white);
}

.manifesto-section__headline-wrap {
  margin-bottom: clamp(48px, 8vw, 100px);
}

.manifesto-section__line {
  display: block;
}

.manifesto-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.manifesto-section__media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.manifesto-section__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.manifesto-section__narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
}

.manifesto-section__text {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.65;
  color: var(--color-text-primary);
  font-weight: 400;
}

/* ==========================================================================
   SECTION 3: Core Value Pillars (Visual 3 - Middle & Lower)
   ========================================================================== */
.pillars-section {
  padding: calc(var(--section-spacing-y) * 0.75) 0 var(--section-spacing-y);
  background-color: var(--color-brand-white);
  position: relative;
  overflow: hidden;
}

/* Pillar Common Layout */
.pillar-item {
  position: relative;
  margin-bottom: clamp(100px, 14vw, 180px);
}

.pillar-item:last-child {
  margin-bottom: 0;
}

.pillar-item__outline {
  position: absolute;
  top: -0.4em;
  z-index: var(--z-watermark);
  opacity: 0.9;
  will-change: transform;
}

.pillar-item--trust .pillar-item__outline {
  left: 20%;
}

.pillar-item--precision .pillar-item__outline {
  left: -5%;
}

.pillar-item--empathy .pillar-item__outline {
  right: -5%;
}

.pillar-item__content-wrap {
  position: relative;
  z-index: var(--z-content);
}

/* Pillar 1: Trust Layout */
.pillar-trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding-top: clamp(60px, 10vw, 120px);
}

.pillar-trust-text {
  max-width: 480px;
  margin-left: auto;
}

.pillar-trust-text .type-subheading {
  margin-bottom: 16px;
}

.pillar-trust-media {
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 440px;
}

.pillar-trust-media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

/* Pillar 2: Precision Layout */
.pillar-precision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: flex-start;
  padding-top: clamp(80px, 12vw, 140px);
}

.pillar-precision-left {
  max-width: 480px;
}

.pillar-precision-left .type-subheading {
  margin-bottom: 16px;
}

.pillar-precision-left .type-body {
  margin-bottom: 40px;
}

.pillar-precision-img-sm {
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 360px;
}

.pillar-precision-img-sm img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.pillar-precision-right {
  display: flex;
  justify-content: flex-end;
}

.pillar-precision-img-lg {
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 460px;
  width: 100%;
}

.pillar-precision-img-lg img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Pillar 3: Empathy Layout */
.pillar-empathy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding-top: clamp(80px, 12vw, 140px);
}

.pillar-empathy-media {
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 420px;
}

.pillar-empathy-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pillar-empathy-text {
  max-width: 500px;
}

.pillar-empathy-text .type-subheading {
  margin-bottom: 16px;
}

/* ==========================================================================
   SECTION 4: Clinical Testimonials & Proof (Visual 4 - Top)
   ========================================================================== */
.testimonials-section {
  padding: var(--section-spacing-y) 0 calc(var(--section-spacing-y) * 1.2);
  background-color: var(--color-bg-watermark);
  position: relative;
  overflow: hidden;
}

.testimonials-section__watermark {
  position: absolute;
  top: 35%;
  left: 30%;
  z-index: var(--z-watermark);
  opacity: 0.85;
  will-change: transform;
}

.testimonials-section__header {
  position: relative;
  z-index: var(--z-content);
  margin-bottom: clamp(48px, 8vw, 96px);
  max-width: 800px;
}

.testimonials-section__header .type-eyebrow {
  margin-bottom: 16px;
  display: block;
}

/* 4-Card Staggered Dynamic Grid */
.testimonials-grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

/* Stagger columns vertically to match Visual 4 layout */
.testimonials-grid__col:nth-child(1) {
  transform: translateY(clamp(30px, 6vw, 80px));
}

.testimonials-grid__col:nth-child(2) {
  transform: translateY(0);
}

.testimonials-grid__col:nth-child(3) {
  transform: translateY(clamp(40px, 8vw, 120px));
}

.testimonials-grid__col:nth-child(4) {
  transform: translateY(clamp(20px, 4vw, 50px));
}

/* ==========================================================================
   SECTION 5: Pre-Footer Conversion Callout (Visual 4 - Middle)
   ========================================================================== */
.cta-section {
  padding: var(--section-spacing-y) 0;
  background-color: var(--color-brand-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-section__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.cta-section__action-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 480px;
}

.cta-section__action-box .type-body {
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 6: Global Master Footer (Visual 4 - Bottom)
   ========================================================================== */
.site-footer {
  background-color: var(--color-brand-black);
  color: var(--color-brand-white);
  padding: clamp(60px, 10vw, 120px) 0 40px;
  position: relative;
}

/* Top Slogan Statement */
.site-footer__slogan-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: flex-start;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.site-footer__eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand-white);
  opacity: 0.9;
}

.site-footer__slogan {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-brand-white);
}

/* Brand Row */
.site-footer__brand-row {
  margin-bottom: 32px;
}

.site-footer__logo {
  height: 28px;
  width: auto;
}

.site-footer__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* 5-Column Sitemap Matrix */
.site-footer__matrix {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.site-footer__col-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand-white);
  margin-bottom: 20px;
}

.site-footer__parent-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand-white);
  display: block;
  margin-bottom: 24px;
}

.site-footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-text-dark-muted);
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--color-brand-white);
}

.site-footer__social-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 260px;
}

.site-footer__social-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-dark-muted);
}

/* Bottom Legal Bar */
.site-footer__bottom-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

.site-footer__legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer__legal-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__legal-link:hover {
  color: var(--color-brand-white);
}

/* ==========================================================================
   Responsive Breakpoints & Reflows
   ========================================================================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .manifesto-section__grid,
  .pillar-trust-grid,
  .pillar-precision-grid,
  .pillar-empathy-grid,
  .cta-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillar-item--trust .pillar-item__outline,
  .pillar-item--precision .pillar-item__outline,
  .pillar-item--empathy .pillar-item__outline {
    position: static;
    display: block;
    margin-bottom: 20px;
  }

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

  .testimonials-grid__col:nth-child(1),
  .testimonials-grid__col:nth-child(2),
  .testimonials-grid__col:nth-child(3),
  .testimonials-grid__col:nth-child(4) {
    transform: none;
  }

  .site-footer__slogan-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .hero-section {
    --hero-headline-size: clamp(2.25rem, 11.5vw, 3.75rem);
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .hero-section__mid-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero-section__scroll-wrap {
    display: none;
  }

  .hero-section__cta-wrap {
    justify-content: flex-start;
  }

  .hero-section__reveal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-section__social-box {
    align-items: flex-start;
    text-align: left;
  }

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

  .site-footer__matrix {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__legal-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
