/* ====================================
   Layout Styles
   Section Structure & Grid Systems
   ==================================== */

/* ==================
   Section Base
   ================== */

.section {
  position: relative;
  width: 100%;
  padding: var(--section-padding-y-desktop) var(--content-padding-x);
  overflow: hidden;
}

.section__content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================
   Hero Section
   ================== */

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    180deg,
    #F6F4F4 0%,
    #F6F4F4 50%,
    #F4F7F8 100%
  );
  padding-top: 0;
}

.hero__logo {
  width: 100%;
  max-width: 480px;
  height: 120px;
  background-image: url('../assets/images/logo-horizontal.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto var(--spacing-lg);
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-entrance) 400ms forwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: 0.02em;
  color: var(--color-dark-charcoal);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp var(--duration-slow) var(--ease-entrance) 300ms forwards;
}

.hero__title-line {
  display: block;
}

.hero__title-line--secondary {
  font-weight: var(--font-weight-medium);
  opacity: 0.9;
  margin-top: 0.5rem;
}

.hero__accent {
  width: 100px;
  height: 3px;
  background: var(--color-brand-primary);
  margin: var(--spacing-md) auto;
  opacity: 0;
  animation: fadeIn var(--duration-normal) var(--ease-entrance) 800ms forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-entrance) 1000ms forwards;
}

/* ==================
   Scroll Indicator
   ================== */

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-brand-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn var(--duration-normal) var(--ease-entrance) 1200ms forwards;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator__icon {
  width: 20px;
  height: 20px;
  animation: gentlePulse 2s ease-in-out infinite;
}

/* ==================
   Vision Section
   ================== */

.section--vision {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-background-dark);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 170, 215, 0.03) 0%, transparent 60%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="3" seed="2"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.015"/></svg>');
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.section--vision .section__content {
  text-align: center;
}

.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-light);
  opacity: 0.85;
  margin-bottom: var(--spacing-md);
}

.section--vision .section__accent {
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-brand-mid) 0%,
    var(--color-brand-light) 50%,
    var(--color-brand-mid) 100%
  );
  background-size: 200% 100%;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 0 20px rgba(63, 207, 245, 0.4);
  animation: shimmer 4s ease-in-out infinite;
}

.vision__statement {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-inverse);
  max-width: 1000px;
  margin: 0 auto;
}

.vision__emphasis {
  font-weight: var(--font-weight-medium);
  color: var(--color-brand-light);
  opacity: 0.95;
}

/* ==================
   Approach Section
   ================== */

.section--approach {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--color-background-dark);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 170, 215, 0.02) 0%, transparent 60%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="3" seed="2"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.015"/></svg>');
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.section--approach .section__content {
  text-align: center;
}

.section--approach .section__label {
  margin-bottom: var(--spacing-xl);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ==================
   Closing Section
   ================== */

.section--closing {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: #0a0a0a;
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.section--closing .section__content {
  text-align: center;
}

.section--closing .section__accent {
  width: 80px;
  height: 2px;
  background: var(--color-brand-primary);
  margin: 0 auto var(--spacing-lg);
}

.closing__statement {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-snug);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  max-width: 800px;
  margin: 0 auto;
}

/* ==================
   Footer
   ================== */

.site-footer {
  background: #0a0a0a;
  padding: var(--spacing-lg) var(--content-padding-x);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer__copyright {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ==================
   Responsive Layout
   ================== */

/* Tablet */
@media (max-width: 1023px) {
  .section {
    padding: var(--section-padding-y-tablet) var(--content-padding-x);
  }

  .approach__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero__logo {
    max-width: 360px;
    height: 90px;
    margin-bottom: var(--spacing-md);
  }
}

/* Mobile */
@media (max-width: 639px) {
  .section {
    padding: var(--section-padding-y-mobile) var(--content-padding-x);
  }

  .hero__logo {
    max-width: 280px;
    height: 70px;
    margin-bottom: var(--spacing-md);
  }

  .hero__title-line {
    display: inline;
  }

  .hero__title-line--secondary::before {
    content: ' ';
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .approach__grid {
    gap: var(--spacing-md);
  }
}
