/*
Theme Name: fäm MEP Child Theme
Description: Child theme of Twenty Twenty-Five for fäm MEP coming soon page
Template: twentytwentyfive
Version: 1.0.0
Author: fäm MEP
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Aboreto:wght@400&family=Reddit+Sans:wght@300;400;500;600;700&display=swap');

/* Global CSS Variables */
:root {
  /* Brand Colors */
  --fam-bg-light: #F4F4F4;
  --fam-text-light: #F4F4F4;
  --fam-overlay: #D9D9D91A;
  
  /* Typography */
  --fam-font-heading: 'Aboreto', serif;
  --fam-font-body: 'Reddit Sans', sans-serif;
  
  /* Spacing */
  --fam-spacing-xs: 0.5rem;
  --fam-spacing-sm: 1rem;
  --fam-spacing-md: 1.5rem;
  --fam-spacing-lg: 2rem;
  --fam-spacing-xl: 3rem;
  --fam-spacing-xxl: 4rem;
  /* Mobile edge padding */
  --fam-mobile-edge-padding: 24px;
  /* Page-specific spacing */
  --coming-soon-header-gap: 6rem;
  
  /* Shadows */
  --fam-shadow-header: 0px 4px 20px 0px #00000033;
  --fam-blur-countdown: 16px;
}

/* Global container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Global Typography Overrides */
body {
  font-family: var(--fam-font-body);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

html {
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'Aboreto', serif;
  font-weight: 400; /* Regular */
  font-style: normal; /* leading-trim: none */
  font-size: 80px;
  line-height: 96px;
  letter-spacing: 0%;
  color: var(--fam-text-light);
  margin: 0;
  padding: 0;
}

h2 {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 58.05px;
  color: var(--fam-text-light);
  margin: 0;
}

p {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 300; /* Light */
  font-style: normal;
  font-size: 16px;
  line-height: 24px; /* leading-trim: none */
  letter-spacing: 0.02em; /* ≈2% */
  color: #F4F4F4;
  margin: 0 0 0 0; /* Paragraph spacing controlled via spacers where needed */
}

/* Global: spacing between title and following paragraph */
h1 + p,
h2 + p,
h3 + p {
  margin-top: 8px; /* Title→paragraph gap */
}

/* Coming Soon Page Specific Styles */
.coming-soon-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.coming-soon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Header Styles */
.coming-soon-header {
  background-color: transparent;
  box-shadow: none;
  padding: var(--fam-spacing-lg) 5rem;
  position: relative;
  z-index: 10;
  margin: 0;
}

.coming-soon-header .logo {
  max-height: 60px;
  width: auto;
}

/* Main Content */
.coming-soon-content {
  position: relative;
  z-index: 5;
  padding: var(--fam-spacing-xxl) 5rem;
  /* Desktop: no extra gap; mobile sets margin-top */
  margin-top: 0;
  text-align: left;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-headline {
  margin-bottom: 0; /* Use global h1 + p spacing (16px) */
}

.hero-subhead {
  margin-bottom: 0; /* Spacer will control distance to countdown */
  font-size: 18px;
  max-width: 600px;
}

/* Spacers */
.spacer-48 { height: 48px; display: block; }

/* Countdown Box */
.countdown-container {
  background: var(--fam-overlay);
  backdrop-filter: blur(var(--fam-blur-countdown));
  border-radius: 0;
  padding: 18px 0px; /* Blur hugs content. Adjust padding below if needed. */
  /* Padding controls: set vertical and horizontal padding as desired */
  /* Example: padding: 52px 88px; */
  margin: 0;
  max-width: 600px;
  width: 100%;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.countdown-number {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.8;
  min-width: 1.3em;
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.3em;
  margin: 0;
  transform: translateY(-8px);
  color: var(--fam-text-light);
}

.countdown-number .number-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-out, color 0.5s ease-out;
}

/* Position classes for the 5 containers - middle one is visible */
.countdown-number .number-container.position-top {
  transform: translateY(-300%);
  z-index: 1;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-mid-top {
  transform: translateY(-150%);
  z-index: 2;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-visible {
  transform: translateY(0%);
  z-index: 5;
  color: var(--fam-text-light);
}

.countdown-number .number-container.position-mid-bottom {
  transform: translateY(150%);
  z-index: 4;
  color: transparent;
  text-shadow: none;
}

.countdown-number .number-container.position-bottom {
  transform: translateY(300%);
  z-index: 3;
  color: transparent;
  text-shadow: none;
}

.countdown-label {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 14px;
  margin-top: 0;
  transform: translateY(10px);
  line-height: 1;
  text-transform: none; /* keep first letter capital only */
  letter-spacing: 1px;
  color: var(--fam-text-light);
}

.countdown-separator {
  font-family: 'Aboreto', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 80px;
  height: 2em;
  margin: 0 5px;
  line-height: 100%;
  letter-spacing: 0%;
  align-self: flex-start;
  margin-top: 0;
  color: var(--fam-text-light);
  text-align: center;
  transform: translateY(12%); /* adjust this translateY to experiment */
}

/* Logo Carousel */
.full-bleed {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.logo-carousel {
  background: transparent;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  position: relative;
}

/* Reference-based carousel */
.icon-track-container {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(244, 244, 244, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.icon-track {
  display: flex;
  position: absolute;
  height: 100%;
  width: max-content;
  align-items: center;
}

.icon-container {
  display: flex;
  position: absolute;
  height: 100%;
  width: calc((200px + 120px) * 2);
  align-items: center;
  transition: transform 0.3s linear;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0;
  will-change: transform, opacity;
}

.icon-container.repositioning {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  pointer-events: none;
  transition: none !important;
  display: none;
}

.track-icon {
  flex: 0 0 auto;
  margin: 0 60px;
  opacity: 0.8;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  pointer-events: none;
}

.track-icon img {
  height: 76px;
  width: auto;
  display: block;
  filter: brightness(1);
  max-width: 200px;
  object-fit: contain;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer Styles */
.coming-soon-footer {
  background-color: var(--fam-bg-light);
  padding: var(--fam-spacing-lg) 5rem;
  position: relative;
  z-index: 10;
  margin: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: none;
  margin: 0;
  width: 100%;
}

.social-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.social-label {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em; /* ≈2% */
  text-align: center;
  color: #333;
}

.footer-text {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em; /* ≈2% */
  text-align: center;
  color: #333;
}

/* Footer copyright typography per spec */
.footer-text.copyright {
  font-family: 'Reddit Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em; /* ≈2% */
  text-align: center;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.social-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 48px;
    line-height: 56px;
  }
  
  h2 {
    font-size: 36px;
  }
  

  .coming-soon-content {
    padding: var(--fam-spacing-lg) 5rem;
    margin-top: var(--coming-soon-header-gap);
  }
  
  .countdown-container {
    padding: 16px 0; /* Increase vertical padding so numbers stay within blur box */
  }
  
  .countdown-number {
    font-size: 38px;
    transform: translateY(-8px);
  }
  
  .countdown-label {
    font-size: 12px;
    margin-top: 0;
    transform: translateY(10px);
  }
  
  .countdown-separator {
    font-size: 32px;
    transform: translateY(12%);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--fam-spacing-sm);
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .logo-item {
    height: 30px;
  }

  /* Halve icon gaps on mobile */
  .social-links {
    gap: 18px;
  }

  .track-icon {
    margin: 0 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
    line-height: 42px;
  }
  
  .coming-soon-header,
  .coming-soon-content,
  .coming-soon-footer {
    padding-left: var(--fam-mobile-edge-padding);
    padding-right: var(--fam-mobile-edge-padding);
  }
  
  .countdown-number {
    font-size: 28px;
  }
  
  .countdown-item {
    min-width: 60px;
  }
  
  .coming-soon-header {
    padding-top: calc(var(--fam-spacing-xs) * 1.38);
    padding-bottom: calc(var(--fam-spacing-xs) * 1.38);
  }
  
  .coming-soon-header .logo {
    max-height: 84px; /* +20% then +15% */
    padding-top: 36px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
  
  .social-link {
    transition: none;
  }
  
  .logo-item {
    transition: none;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.social-link:focus,
.logo-item:focus {
  outline: 2px solid var(--fam-text-light);
  outline-offset: 2px;
}
