/* BeFitBeAble Version 1 - Simple Design Styles */

:root{
  --bg: #fdfefe;
  --soft-blue: rgba(107, 187, 222, 0.1);
  --primary: #2e87be; /* dark blue */
  --accent: #6bbbde; /* light blue */
  --muted: #797979;
  --dark: #3a3a3a;
  --max-width: 1100px;
  --radius: 12px;
}

/* Reset and Base Styles */
*{
  box-sizing: border-box;
}

body{
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: var(--dark);
  background: linear-gradient(180deg, var(--bg), rgba(107, 187, 222, 0.03));
  line-height: 1.6;
  position: relative;
}

main{
  position: relative;
  z-index: 1;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* Ensure nav-row doesn't overlap content */
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-row > .logo{
  margin-left: 0;
  padding-left: 0.5rem;
  order: -1;
}

.nav-row > nav{
  margin-left: auto;
  padding-right: 2rem;
}

/* Header Styles */
.site-header{
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
  display: block;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  width: 100%;
  border-bottom: 1px solid rgba(46, 135, 190, 0.08);
}

/* Logo container and image */
.logo{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  padding: 0;
}

.logo img{
  display: block;
  height: 96px; /* significantly increased for strong brand visibility */
  width: auto;
  max-width: none;
  object-fit: contain;
  image-rendering: auto;
  transition: transform 0.3s ease;
}

.logo:hover{
  opacity: 0.9;
}

.logo:hover img{
  transform: scale(1.02);
}

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

nav{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a{
  margin-left: 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a.active{
  color: var(--primary);
}

nav a:hover{
  color: var(--primary);
}

/* Make Contact link style match standard nav links */
nav a.btn-outline{
  background: transparent;
  color: var(--muted);
  padding: 0;
  border: none;
  border-radius: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a.btn-outline:hover{
  background: transparent;
  color: var(--primary);
}

/* Back to Portal styles removed */

/* Hero Section */
.hero{
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-video-section{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary);
  z-index: 1;
  margin-top: 0;
}

.hero-fallback{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 135, 190, 0.3), rgba(107, 187, 222, 0.3));
  padding: 2rem;
}

.hero-fallback img{
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 0.4;
}

.hero-video-container{
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  z-index: 2;
}

.hero-video-container iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
}

/* Hide fallback when video loads */
.hero-video-container:has(iframe[src*="video"]) ~ .hero-fallback,
.hero-video-loaded .hero-fallback{
  display: none;
}

/* Hero Content Section Below Video */
.hero-content-section{
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, rgba(107, 187, 222, 0.05), var(--bg));
}

.hero-headline{
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  line-height: 1.2;
  max-width: 900px;
}

.hero-subtext{
  font-size: 1.3rem;
  margin: 0 auto 2rem;
  color: var(--dark);
  line-height: 1.7;
  font-weight: 400;
  max-width: 800px;
}

.hero-actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lead{
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Button Styles */
.btn-primary{
  background: var(--primary);
  color: white;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  margin-right: .6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 135, 190, 0.2);
}

.btn-primary:hover{
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 135, 190, 0.3);
}

.btn-secondary{
  background: transparent;
  color: var(--primary);
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(46, 135, 190, 0.3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover{
  border-color: var(--primary);
  background: rgba(46, 135, 190, 0.05);
  transform: translateY(-2px);
}


.hero-art img{
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.12);
}

/* Values Section */
.values{
  padding: 2rem 0;
}

.values h2{
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.values-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.values-grid article{
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-grid article:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16,24,40,0.08);
}

.values-grid h3{
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.values-grid p{
  color: var(--muted);
  margin: 0;
}

/* CTA Section */
.cta{
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(107, 187, 222, 0.06), rgba(46, 135, 190, 0.03));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2{
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta p{
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cta .btn-primary{
  display: inline-block;
  margin-right: 0;
}

/* Workouts Page */
.workouts-hero{
  background: linear-gradient(180deg, rgba(46, 135, 190, 0.08), rgba(107, 187, 222, 0.03));
  padding: 4rem 0 3rem;
}

.workouts-hero .container{
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.workouts-hero h1{
  font-size: 3rem;
  color: var(--primary);
  margin: 0;
}

.workouts-hero p{
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
}

.workouts-library{
  padding: 3rem 0;
}

.workouts-library .container{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workouts-library h2{
  font-size: 2rem;
  color: var(--primary);
  text-align: center;
  margin: 0;
}

.workout-intro{
  color: var(--muted);
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.05rem;
}

.workouts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.workout-card{
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(46, 135, 190, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workout-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(46, 135, 190, 0.16);
}

.workout-video{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.workout-video iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.workout-info{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workout-info h3{
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.workout-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.workout-meta span{
  background: rgba(107, 187, 222, 0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.workout-description{
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.workout-cta{
  text-align: center;
  margin: 0 auto;
}

.workout-cta .btn-secondary{
  margin-top: 1rem;
}

/* Footer */
.site-footer{
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(46, 135, 190, 0.1);
  margin-top: 3rem;
}

/* About Background Video */
.about-background-video{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.about-background-video video{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.video-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(253, 254, 254, 0.85) 0%, rgba(253, 254, 254, 0.92) 100%);
  z-index: 1;
}

/* About and Contact Pages */
.about{
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Smooth scrolling for entire page */
html{
  scroll-behavior: smooth;
}

/* Initial state for scroll-triggered animations */
.mission-card,
.story-content,
.why-matters-card,
.value-card{
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-hero{
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1{
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.lead-text{
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* About Video Section */
.about-video-section{
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-video-section .video-wrapper{
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.about-video-section .video-wrapper iframe{
  width: 100%;
  max-width: 267px;
  height: 476px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.15);
}

/* Mission Section */
.mission-section{
  margin: 3rem 0;
}

.mission-card{
  background: linear-gradient(135deg, rgba(46, 135, 190, 0.08), rgba(107, 187, 222, 0.05));
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid rgba(46, 135, 190, 0.15);
  transition: all 0.3s ease;
}

.mission-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.15);
}

.mission-icon{
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.mission-card h2{
  color: var(--primary);
  font-size: 1.8rem;
  margin: 1rem 0;
  text-align: center;
}

.mission-card p{
  color: var(--dark);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Story Section */
.story-section{
  margin: 3rem 0;
}

.story-section h2{
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.story-grid{
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.story-image{
  position: relative;
}

.story-image img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.15);
  object-fit: cover;
}

.story-content{
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.story-content p{
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.story-content strong{
  color: var(--primary);
  font-weight: 600;
}

/* Why Matters Section */
.why-matters-section{
  margin: 3rem 0;
}

.why-matters-section h2{
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-matters-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.why-matters-image{
  position: relative;
}

.why-matters-image img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.15);
  object-fit: cover;
}

.why-matters-card{
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(46, 135, 190, 0.25);
  transition: all 0.3s ease;
}

.why-matters-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 135, 190, 0.3);
}

.why-matters-card p{
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* Values Grid Section */
.values-grid-section{
  margin: 3rem 0;
}

.values-grid-section h2{
  color: var(--primary);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.values-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card{
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.value-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(46, 135, 190, 0.15);
  border-color: rgba(46, 135, 190, 0.2);
}

.value-icon{
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3{
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.value-card p{
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive for About Page */
@media(max-width: 900px){
  .story-grid{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .story-image{
    max-width: 400px;
    margin: 0 auto;
  }
  
  .why-matters-grid{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .why-matters-image{
    max-width: 400px;
    margin: 0 auto;
  }
  
  .values-grid{
    grid-template-columns: 1fr;
  }
  
  .about-hero h1{
    font-size: 2rem;
  }
  
  .mission-card,
  .why-matters-card{
    padding: 2rem;
  }
  
  .about-video-section{
    margin: 2rem 0;
  }
  
  .about-video-section .video-wrapper iframe{
    max-width: 240px;
    height: 430px;
  }
}

.contact-page{
  padding: 2rem 1rem;
}

.contact-form{
  max-width: 700px;
  margin: 0 auto;
}

.contact-form label{
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-form input, 
.contact-form textarea{
  width: 100%;
  padding: .8rem;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
  margin-top: .4rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 135, 190, 0.1);
}

.form-actions{
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}

/* Form Messages */
.form-message{
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-weight: 600;
}

.form-message.success{
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error{
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media(max-width: 900px){
  /* Mobile Header Adjustments */
  .site-header{
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }
  
  .nav-row > .logo{
    padding-left: 0.75rem;
  }
  
  .nav-row > nav{
    padding-right: 1rem;
  }
  
  .nav-row{
    gap: 1rem;
  }
  
  .logo img{ 
    height: 64px; /* still prominent on mobile */
  }
  
  .hero-headline{
    font-size: 2.5rem;
  }
  
  .hero-subtext{
    font-size: 1.1rem;
  }
  
  .hero-content-section{
    padding: 2rem 1.5rem;
  }
  
  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary{
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-fallback{
    padding: 1.5rem;
  }
  
  .hero-fallback img{
    max-width: 90%;
  }
  
  /* All nav links remain visible on mobile */
  
  .nav-row{
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  /* Removed back-to-portal-btn mobile override */
  
  .values-grid{
    grid-template-columns: 1fr;
  }
  
  .container{
    padding: 1rem;
  }
  
  .cta{
    margin: 1rem auto;
  }

  .workouts-hero h1{
    font-size: 2.4rem;
  }

  .workouts-hero p{
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .workouts-library{
    padding: 2rem 0;
  }

  .workouts-grid{
    gap: 1.5rem;
  }
}

@media(max-width: 600px){
  /* Extra Small Screen Header */
  .site-header{
    padding: 0.35rem 0;
    font-size: 0.9rem;
  }
  
  .nav-row > .logo{
    padding-left: 0.5rem;
  }
  
  .nav-row > nav{
    padding-right: 0.75rem;
  }
  
  .nav-row{
    gap: 0.75rem;
  }
  
  .logo img{ 
    height: 56px; /* maintain strong visibility on small screens */
  }
  
  nav{
    gap: 0.75rem;
  }
  
  nav a{
    font-size: 0.85rem;
  }
  
  /* Removed back-to-portal-btn mobile override */
  
  .hero-headline{
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtext{
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-content-section{
    padding: 1.5rem 1rem;
  }
  
  .hero-fallback img{
    max-width: 100%;
  }
  
  /* Ensure video is fully visible on mobile */
  .hero-video-container{
    padding-bottom: 56.25%;
  }

  .workouts-hero{
    padding: 3rem 0 2.5rem;
  }

  .workouts-hero h1{
    font-size: 2.1rem;
  }

  .workouts-hero p{
    font-size: 1rem;
  }

  .workout-info{
    padding: 1.25rem;
  }

  .workout-meta{
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* About page video mobile adjustments */
  .about-video-section .video-wrapper iframe{
    max-width: 200px;
    height: 356px;
  }
  
  .about-video-section{
    margin: 2rem 0;
  }
  
  /* Story section mobile adjustments */
  .story-image{
    max-width: 100%;
  }
  
  .story-grid{
    gap: 1rem;
  }
  
  /* Why Matters section mobile adjustments */
  .why-matters-image{
    max-width: 100%;
  }
  
  .why-matters-grid{
    gap: 1rem;
  }
}
