/* ============================================
   Ergo Health Group — Coming Soon
   styles.css
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Cera Pro';
  src: url('../fonts/Cera-Variable.woff2') format('woff2'),
       url('../fonts/Cera-Variable.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'Cera Stencil';
  src: url('../fonts/Cera-Stencil-Variable.woff2') format('woff2'),
       url('../fonts/Cera-Stencil-Variable.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Cera Pro', sans-serif;
  background: #F4F5F5;
  color: #00467F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Main Layout --- */
.landing {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================================
   Left Column: Copy & Form
   All sizes use clamp() for fluid scaling.
   Base values target 1920px, scale down to
   ~1024px iPad landscape and up to 2560px+.
   ============================================ */
.content {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 66px) clamp(24px, 3.125vw, 80px) clamp(24px, 2.6vw, 66px) clamp(32px, 4.17vw, 120px);
  position: relative;
  z-index: 20;
}

.logo {
  margin-bottom: clamp(12px, 1.04vw, 24px);
}

.logo img {
  width: clamp(140px, 16.67vw, 420px);
  height: auto;
}

/* Pushes content below it via margin-top: auto (flexbox trick) */
.subheading {
  margin-top: auto;
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.875vw, 48px);
  color: #00B1E2;
  text-transform: uppercase;
  margin-bottom: clamp(12px, 1.25vw, 32px);
  letter-spacing: 0.02em;
}

.headline {
  font-family: 'Cera Stencil', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.17vw, 110px);
  line-height: 1.2;
  color: #00467F;
  margin-bottom: clamp(16px, 1.67vw, 40px);
}

.headline .full-stop {
  color: #00B1E2;
}

.cta-text {
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.458vw, 36px);
  color: #00B1E2;
  margin-bottom: clamp(16px, 1.67vw, 40px);
}

/* --- Email Form --- */
.signup-form {
  display: flex;
  align-items: stretch;
  max-width: clamp(400px, 35.73vw, 800px);
  margin-bottom: clamp(24px, 2.5vw, 60px);
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: clamp(36px, 3.125vw, 76px);
  padding: 0 clamp(12px, 1.25vw, 32px);
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 30px);
  color: #00467F;
  background: #FFFFFF;
  border: 2px solid #00B1E2;
  border-right: none;
  border-radius: clamp(18px, 1.5625vw, 38px) 0 0 clamp(18px, 1.5625vw, 38px);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form input[type="email"]::placeholder {
  color: #999999;
}

.signup-form input[type="email"]:focus {
  border-color: #009BC8;
  box-shadow: 0 0 0 3px rgba(0, 177, 226, 0.15);
}

.signup-form button[type="submit"] {
  width: clamp(130px, 13.54vw, 340px);
  flex-shrink: 0;
  height: clamp(36px, 3.125vw, 76px);
  padding: 0 clamp(16px, 1.67vw, 40px);
  font-family: 'Cera Pro', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 1.25vw, 30px);
  color: #FFFFFF;
  text-transform: uppercase;
  background: #00B1E2;
  border: 2px solid #00B1E2;
  border-radius: 0 clamp(18px, 1.5625vw, 38px) clamp(18px, 1.5625vw, 38px) 0;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0.03em;
}

.signup-form button[type="submit"]:hover {
  background-color: #009BC8;
  border-color: #009BC8;
}

/* --- Form Feedback ---
   Hidden by default. Add .is-success or .is-error
   via JS after form submission to show the message.
   ------------------------------------------------ */
.form-feedback {
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 24px);
  margin-top: clamp(-16px, -1.5vw, -8px);
  margin-bottom: clamp(8px, 1vw, 20px);
  max-width: clamp(400px, 35.73vw, 800px);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.form-feedback.is-visible {
  opacity: 1;
  height: auto;
}

.form-feedback.is-success {
  color: #2E7D32;
}

.form-feedback.is-error {
  color: #C62828;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: clamp(12px, 1.25vw, 32px);
}

.footer p {
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 32px);
  color: #00467F;
}

.footer a {
  color: #00467F;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.footer a:hover {
  border-bottom-color: #00467F;
}

/* --- Right Column: Graphic Area --- */
.graphic-area {
  width: 50%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Texture blob (SVG with clip-path) — behind talent, upper-right */
.texture-blob {
  position: absolute;
  top: 2%;
  right: 0;
  width: 65%;
  height: 72%;
  z-index: 4;
}

/* Ergo icon (above orange circle, behind talent) — left-aligned, lower half */
.ergo-icon {
  position: absolute;
  width: 52%;
  height: auto;
  left: 2%;
  bottom: 8%;
  z-index: 3;
  will-change: transform;
  animation: float-vertical 6s ease-in-out infinite;
}

/* Orange circle (behind ergo icon & talent) — upper-left area */
.orange-circle {
  position: absolute;
  width: 33%;
  height: auto;
  top: 10%;
  left: -5%;
  z-index: 2;
  will-change: transform;
  animation: float-vertical 5s ease-in-out infinite;
}

/* Talent photo — large, centered, bottom-aligned */
.talent {
  position: relative;
  z-index: 5;
  width: 110%;
  max-width: min(52vw, 90vh);
  height: auto;
  object-fit: contain;
}

/* Large bright blue circle — bottom-right */
.circle-large {
  position: absolute;
  width: 33%;
  aspect-ratio: 1;
  background: #00B1E2;
  border-radius: 50%;
  mix-blend-mode: multiply;
  bottom: 0;
  right: 0;
  z-index: 6;
  will-change: transform;
  animation: float-vertical 6s ease-in-out infinite;
}

/* Small dark blue circle — above large circle */
.circle-small {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  background: #00467F;
  border-radius: 50%;
  mix-blend-mode: multiply;
  bottom: 22%;
  right: 12%;
  z-index: 7;
  will-change: transform;
  animation: float-vertical 4s ease-in-out infinite;
}

/* Copyright — base-aligned with footer via matching bottom value */
.copyright {
  position: absolute;
  bottom: clamp(24px, 2.08vw, 60px);
  right: clamp(32px, 4.17vw, 120px);
  z-index: 10;
  font-family: 'Cera Pro', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 30px);
  color: #FFFFFF;
}

/* ============================================
   Floating Animations
   ============================================ */

@keyframes float-vertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

/* ============================================
   Page Load Animations
   ============================================ */

.logo,
.subheading,
.headline,
.cta-text,
.signup-form,
.graphic-area,
.footer {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s ease-out forwards;
}

.logo        { animation-delay: 0.0s; }
.subheading  { animation-delay: 0.2s; }
.headline    { animation-delay: 0.4s; }
.cta-text    { animation-delay: 0.6s; }
.signup-form { animation-delay: 0.6s; }
.footer      { animation-delay: 0.8s; }

.graphic-area {
  transform: translateY(0);
  animation-name: fadeIn;
  animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   Responsive — Portrait / Stacked
   Triggers for:
     1. Any screen <=1024px (phones, iPad portrait)
     2. Portrait-orientation screens <=1200px
        (e.g. 1080×1920 external monitor in portrait)
   Uses clamp() to scale fluidly across all
   stacked sizes from ~375px up to ~1080px.
   ============================================ */

@media (max-width: 1024px), ((orientation: portrait) and (max-width: 1200px)) {
  .landing {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .content {
    width: 100%;
    padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 60px) clamp(16px, 2.5vw, 32px);
    order: 1;
  }

  .subheading {
    margin-top: clamp(12px, 2vw, 24px);
    font-size: clamp(20px, 3.2vw, 36px);
    margin-bottom: clamp(10px, 1.5vw, 18px);
  }

  .headline {
    font-size: clamp(32px, 7vw, 72px);
    line-height: 1.25;
    margin-bottom: clamp(12px, 2vw, 24px);
  }

  .cta-text {
    font-size: clamp(16px, 2.6vw, 28px);
    margin-bottom: clamp(12px, 2vw, 24px);
    text-wrap: balance;
  }

  .signup-form {
    max-width: clamp(340px, 65vw, 680px);
    margin-bottom: clamp(10px, 1.5vw, 20px);
  }

  .signup-form input[type="email"] {
    font-size: clamp(16px, 2.2vw, 24px);
    height: clamp(46px, 6vw, 64px);
    padding: 0 clamp(16px, 2.5vw, 28px);
    border-radius: clamp(23px, 3vw, 32px) 0 0 clamp(23px, 3vw, 32px);
  }

  .signup-form button[type="submit"] {
    font-size: clamp(16px, 2.2vw, 24px);
    height: clamp(46px, 6vw, 64px);
    width: clamp(120px, 16vw, 200px);
    padding: 0 clamp(12px, 2vw, 24px);
    border-radius: 0 clamp(23px, 3vw, 32px) clamp(23px, 3vw, 32px) 0;
  }

  .footer {
    margin-top: clamp(8px, 1.5vw, 20px);
    padding-top: clamp(6px, 1vw, 14px);
  }

  .footer p {
    font-size: clamp(16px, 2.2vw, 24px);
  }

  .logo {
    margin-bottom: clamp(12px, 2vw, 24px);
  }

  .logo img {
    width: clamp(180px, 28vw, 340px);
  }

  .graphic-area {
    width: 100%;
    min-height: 60vw;
    order: 2;
  }

  .talent {
    width: 90%;
    max-width: clamp(380px, 55vw, 600px);
  }

  .ergo-icon {
    width: 45%;
  }

  .orange-circle {
    width: 25%;
    top: 2%;
    left: 3%;
  }

  .circle-large {
    width: 30%;
  }

  .circle-small {
    width: 11%;
    bottom: 20%;
    right: 10%;
  }

  /* Copyright overlays the image in white */
  .copyright {
    position: absolute;
    bottom: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    color: #FFFFFF;
    font-size: clamp(16px, 2.2vw, 24px);
  }

  /* Reduce animation distances on portrait */
  @keyframes float-vertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
}

/* ============================================
   Responsive — Small Phone (<=480px)
   ============================================ */

@media (max-width: 480px) {
  .content {
    padding: 24px 20px 16px;
  }

  .logo img {
    width: 180px;
  }

  .subheading {
    font-size: 18px;
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .headline {
    font-size: 9.2vw;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .cta-text {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .signup-form input[type="email"] {
    font-size: 16px;
    height: 46px;
    padding: 0 16px;
    border-radius: 23px 0 0 23px;
  }

  .signup-form button[type="submit"] {
    font-size: 16px;
    height: 46px;
    width: 120px;
    padding: 0 12px;
    border-radius: 0 23px 23px 0;
  }

  .footer p {
    font-size: 16px;
  }

  .copyright {
    font-size: 16px;
  }
}

/* ============================================
   Responsive — iPhone SE / small screens (<=375px)
   ============================================ */

@media (max-width: 375px) {
  .subheading {
    font-size: 15px;
  }
}
