/* 
   VitalCook Coaching Website Styles
   Modernized Premium Version - Fixed Layout
*/

/* ========== Base Styles ========== */
:root {
  /* Brand Colors */
  --vital-green: #6ea37f;
  --terracotta: #d88c73;
  --sunlit-yellow: #f6d776;
  --off-white: #faf9f6;
  --charcoal: #2f2f2f;
  --white: #ffff;

  /* Font Families */
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Lora", serif;

  /* Font Sizes - Enhanced for premium look */
  --h1-size: 4.5rem;
  --h2-size: 3.5rem;
  --h3-size: 2rem;
  --h4-size: 1.5rem;
  --body-size: 1.125rem;
  --small-text: 0.875rem;

  /* Spacing */
  --section-spacing: 8rem;
  --element-spacing: 2.5rem;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Header Height - Increased for better spacing */
  --header-height: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  color: var(--charcoal);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--h1-size);
  line-height: 1.1;
}

h2 {
  font-size: var(--h2-size);
  line-height: 1.2;
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

p {
  margin-bottom: 1.5rem;
  font-size: var(--body-size);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--vital-green);
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--terracotta);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--vital-green);
  color: white;
  border: 2px solid var(--vital-green);
  box-shadow: 0 10px 20px rgba(110, 163, 127, 0.2);
}

.btn-primary:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(216, 140, 115, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--vital-green);
  border: 2px solid var(--vital-green);
}

.btn-secondary:hover {
  background-color: var(--vital-green);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(110, 163, 127, 0.2);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--vital-green);
  margin-bottom: 1rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--vital-green);
}

.section-description {
  font-size: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.text-center {
  text-align: center;
}

/* ========== Header & Navigation - FIXED ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  padding: 0.5rem 0;
  height: 80px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo img {
  height: 55px;
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
}

.nav-item {
  margin-left: 2.5rem;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.5rem 0;
  position: relative;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vital-green);
  transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--vital-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--charcoal);
  transition: all var(--transition-fast);
}

/* ========== Hero Section - UPDATED for header height ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  padding: 6rem 1rem 5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-background {
  position: absolute;
  top: calc(-1 * var(--header-height));
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-height));
  overflow: hidden;
  z-index: 1;
}

.video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 0, 0, 0.928);
  z-index: 2;
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  padding: 20px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero.parallax {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 8rem 0;
  color: white;
  text-align: center;
}

.hero .parallax-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* darken overlay */
  z-index: 1;
}

.hero .hero-content {
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subheadline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 3rem;
  font-family: var(--body-font);
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1.1s;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== About Section ========== */
.about-section {
  padding: 5rem 0;
  background-color: #fff7f2;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 2rem;
}

.about-left {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  margin-right: 2rem;
}

.coach-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.credentials {
  margin-top: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.credential i {
  color: var(--vital-green);
  margin-top: 4px;
  min-width: 20px;
}

.explore-btn {
  margin-top: 1.5rem;
}

.coach-text {
  flex: 2;
  min-width: 300px;
  max-width: 700px;
  margin-left: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.coach-text p {
  margin-bottom: 1.5rem;
}

/* ========== Services Section ========== */
.services {
  padding: 5rem 0;
  background-color: #fafafa;
  position: relative;
  overflow: hidden;
}

.services-intro {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-medium);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-content {
  padding: 2rem;
}

.service-title {
  color: var(--charcoal);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--vital-green);
}

.service-description {
  color: var(--charcoal);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* ========== Success Stories ========== */
.success-stories {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

.success-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

/* ========== Video Section ========== */
.video-section {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.video-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.video-text p {
  margin-bottom: 1.5rem;
}

.section-tag {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--vital-green);
  margin-top: 1.5rem;
}

.approach-video {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.approach-video video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-bottom {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 0;
}

/* ========== Contact Section ========== */
.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--vital-green) 0%, #55896c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.cta-content {
  flex: 1;
  min-width: 300px;
}

.cta-features {
  margin-top: 2rem;
  text-align: left;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cta-feature i {
  color: var(--sunlit-yellow);
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.highlight {
  color: var(--sunlit-yellow);
  font-family: var(--heading-font);
  text-decoration: underline;
  font-style: italic;
  font-weight: 700;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-about p {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  color: white;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--vital-green);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--vital-green);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact p i {
  margin-right: 1rem;
  margin-top: 0.3rem;
  color: var(--vital-green);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--vital-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(110, 163, 127, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounceDown {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium),
    transform var(--transition-medium);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-medium),
    transform var(--transition-medium);
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-medium),
    transform var(--transition-medium);
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Responsive Styles ========== */
@media (max-width: 1200px) {
  :root {
    --h1-size: 4rem;
    --h2-size: 3rem;
    --h3-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  :root {
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
    --section-spacing: 6rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-left {
    max-width: 500px;
    margin: 0 auto;
  }

  .coach-text {
    max-width: 100%;
  }

  .header-wrapper {
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.5rem;
    --section-spacing: 4rem;
    --header-height: 80px; /* Increased from 70px */
  }

  .header-wrapper {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-medium);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .nav-item {
    margin: 0;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
  }

  .nav-link {
    color: var(--charcoal) !important;
    display: block;
    height: auto;
  }

  .nav-cta {
    margin: 1.5rem 0 0 0;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.25rem;
    --body-size: 1rem;
    --section-spacing: 4rem;
    --header-height: 80px; /* Consistent with tablet size */
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
  }

  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--vital-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--terracotta);
  transform: translateY(-5px);
}
