/* ===== CSS RESET & BASE STYLES ===== */
/* Reset all elements to remove default margins, padding, and set box-sizing */
*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* Removed unused CityBoys font-face declarations */

/* Fluid sizing variables */
:root{
  --text: #1E1E1E; 
  --muted:#6B5F54; 
  --bg:#F6EFE6; 
  --card:#E9E2D7;
  --panel-max-width: clamp(320px, 92vw, 1200px);
  --container-max: clamp(320px, 92vw, 1180px);
  --panel-radius: clamp(20px, 2vw, 24px);
  --panel-pad: clamp(1.5rem, 4vw, 5rem);
  --panel-top-offset: clamp(4rem, 8vw, 7rem);
  --headline-size: clamp(40px, 6vw, 64px);
  --subhead-size: clamp(18px, 2vw, 22px);
  /* --logo-max-width removed (unused) */
  --radius: 16px;
}

/* Additional brand tokens */
:root{
  --accent: #1f3a5f;
}

/* Base body styles with HelveticaNow font and dark background */
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden; /* Prevent horizontal scrolling */
  overflow-y: auto; /* Allow vertical scrolling when needed */
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  height: auto; /* Allow body to grow with content */
}

/* ===== HERO SECTION STYLES ===== */
/* Full-screen hero section with background image */
.hero{
  min-height: 100vh; /* Allow content to expand beyond viewport height */
  background:url('imgs/background.jpg') center/cover no-repeat; /* Background image */
  background-color: #333; /* Fallback color if image fails to load */
  position:relative;
  overflow:visible; /* Allow content to overflow for scrolling */
  padding-block: clamp(20px, 1.75vw, 25px); /* move everything further down */
}

/* Blur overlay on top of the background image */
.overlay{
  position:absolute;
  inset:0; /* Cover entire hero section */
  backdrop-filter:blur(5px); /* Blur effect for depth */
  background: linear-gradient(to bottom, rgba(10,10,10,0.35), rgba(10,10,10,0.25));
}

/* ===== MAIN CONTENT PANEL STYLES ===== */
/* Central panel containing all the main content */
.panel{
  position:relative;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:var(--container-max);
  padding-inline: clamp(24px, 4vw, 32px);
}



/* Two-column hero: left copy, right card */
.content-row{
  display:grid;
  grid-template-columns: 1fr minmax(440px, 480px);
  align-items: start;
  margin-top: 100px;
}

/* ===== Sticky Nav ===== */
.site-nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 239, 230, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-nav .nav-inner{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .nav-logo img{
  height: 26px;
  width: auto;
  display: block;
}
.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(31,58,95,0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn-outline:hover{ background: rgba(31,58,95,0.08); transform: translateY(-1px); }
.btn-outline:active{ transform: translateY(0); }

/* Provide anchor offset for fixed nav via scroll-margin */
.signup{ scroll-margin-top: 90px; }

/* Row: icon logo on the left, signup panel on the right */
/* Brand bug styles removed */

/* ===== TYPOGRAPHY STYLES ===== */
/* Unused brand/subcopy styles removed */

/* ===== HEADLINE STYLES ===== */
/* Large, bold headline text */
.headline{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: var(--headline-size);
  line-height: 1.05;
  color: rgba(255,255,255,0.95); /* soft white */
  margin: 0 0 clamp(16px, 2vw, 20px) 0;
  text-align: left;
  max-width: 60ch;
}

/* Each word in the headline is on its own line */
.headline span{ display:block; }

/* ===== GYM DESCRIPTION STYLES ===== */
/* Small descriptive text below the headline */
.gym-description {
  font-size: var(--subhead-size);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255,255,255,0.9); /* soft white */
  text-align: left;
  max-width: 100ch;
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
  padding-right: 30px;
}

/* ===== SIGNUP FORM STYLES ===== */
/* Main signup form container */
.signup{
  position:relative;
  justify-self: end;
  width: min(100%, 400px);
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--card);
  border-radius: clamp(20px, 2vw, 24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  z-index: 10;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.signup .social-proof{
  font-size: 0.9rem;
  color: rgba(0,0,0,0.7);
  margin-bottom: 14px;
}
.signup .form-microcopy{
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.6);
}

/* ===== FORM INPUT STYLES ===== */
/* Form label styling */
.signup label{
  display:block;
  font-size: 13px;
  line-height: 1.3; 
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 6px; /* 12px between label and field */
}

/* Input field styling for text, email, tel, and select elements */
.signup input[type="text"],
.signup input[type="email"],
.signup input[type="tel"],
.signup select{
  width:100%;
  height: 42px;
  padding: 0 16px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:14px;
  margin-bottom: 0; /* spacing handled by .field wrapper */
  font-size: 16px;
  background: #fff;
}
.signup input::placeholder{ opacity: 0.6; }
.signup input:focus{
  outline: 0;
  box-shadow: 0 0 0 2px #6B5F54;
  background: #fff;
}

/* ===== FORM LAYOUT STYLES ===== */
/* Phone input container */
.phone-input-container {
  position: relative;
  width: 100%;
}

/* International phone input styling */
.iti { width: 100%; }

.iti__flag-container {
  background: white;
  border-radius: 14px 0 0 14px;
  border: none;
}

.iti__selected-flag {
  background: white !important;
  border: none !important;
  padding: 0 12px !important;
  border-radius: 14px 14px 14px 14px !important;
  height: 48px;
  display: flex;
  align-items: center;
}

.iti__flag {
  transform: scale(1);
  margin-right: 0.25rem;
}

.iti__arrow {
  border-left: 3px solid transparent !important;
  border-right: 3px solid transparent !important;
  border-top: 4px solid #666 !important;
  margin-left: 0.25rem;
}

.iti__country-list {
  background: white;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 2px;
}

.iti__country {
  padding: 6px 6px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.7rem;
}

.iti__country:hover {
  background: #f5f5f5;
}

.iti__country.iti__active {
  background: #e8e8e8;
}

.iti__country.iti__highlight {
  background: #f0f0f0;
}

/* Phone input field styling */
.iti input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 16px !important;
  padding-left: 96px !important; /* full-height selected flag area */
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 14px !important;
  font-size: 16px;
  background: white;
}

.iti__selected-flag:hover {
  background: #f9f9f9 !important;
}

/* Selected dial code styling */
.iti__selected-dial-code {
  color: #333;
  font-weight: 500;
  font-size: 0.8rem;
}

/* ===== SUBMIT BUTTON STYLES ===== */
/* Form submit button styling */
.signup button{
  display:inline-flex;
  align-items: center;
  justify-content: center;
  margin-left:auto;
  height: 52px;
  padding: 0 18px;
  font-size: 16px;
  font-weight:600;
  border:0;
  border-radius:16px;
  cursor:pointer;
  background: var(--muted);
  color:#fff;
  transition: all 0.2s ease; /* 180–220ms */
  position: relative;
}
.signup button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Button loading state */
.button-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Enabled button state */
.signup button.enabled {
  background: #000;
  color: #fff;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.signup button.enabled:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Unused logo-container styles removed */

/* Animated headline characters */
.headline .char{
  display:inline-block;
  will-change: transform, opacity, filter;
}

/* Utility: card class to match spec */
.card{
  max-width: 480px;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

/* Vertical rhythm inside form */
.field{ margin-bottom: 24px; }
.field:last-of-type{ margin-bottom: 28px; }

/* Disabled button state */
.signup button.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: translateY(0);
  box-shadow: none;
}

.signup button.disabled:hover {
  background: #ccc;
  color: #666;
  transform: translateY(0);
  box-shadow: none;
}

/* Validation tooltip */
.validation-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #ff4444;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: tooltipFadeIn 0.2s ease;
}

.validation-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 1rem;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff4444;
}

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

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

.validation-tooltip.fade-out {
  animation: tooltipFadeOut 0.2s ease forwards;
}

/* Success message */
.success-message {
  background: #DCEBDD;
  color: #1E4020;
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  animation: successFadeIn 0.3s ease;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error message */
.error-message {
  background: #FDE8E8;
  color: #991B1B;
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  animation: errorFadeIn 0.3s ease;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message svg {
  color: #DC2626;
}

/* ===== INSTAGRAM LINK STYLES ===== */
/* Instagram link positioned at bottom center of page */
.instagram-link {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
}

.instagram-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.instagram-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.instagram-link svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Ensure content doesn't overlap with Instagram link */
.hero {
  padding-bottom: 6rem; /* Add bottom padding to prevent overlap */
}

/* ===== UTILITY CLASSES ===== */
/* .hidden removed (unused) */

/* Unused section/cta styles removed */

/* Unused heritage/reveal styles removed */

/* ===== RESPONSIVE DESIGN ===== */
/* Media queries for smaller screens */
@media (max-width: 1024px){
  .content-row{ grid-template-columns: 1.1fr 0.9fr; }
}

@media (max-width: 768px) {
  .panel { padding-inline: 20px; }
  .content-row{ display:block; }
  .headline, .gym-description{ text-align: left; max-width: 80ch; }
  .signup{ width: 100%; margin-top: 28px; }
  .benefits{ grid-template-columns: 1fr; }
  .site-nav .nav-inner{ padding: 8px 12px; }
}

@media (max-width: 480px) {
  .panel {
    transform: translateX(-50%); /* Remove the translateY adjustment */
    width: 95%; /* Even wider on very small screens */
    padding: 2rem 1.5rem 3rem; /* Further reduced padding */
  }
  
  .headline {
    font-size: 10vw; /* Adjusted font size for very small screens */
  }
  
  /* Unused feature images styles removed */
} 