/* 
 * Joshua Lessard Website Redesign
 * Main CSS with mobile header fix, hero image background, process card fixes, testimonial text fixes, and tablet navigation fix
 */

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

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2D3142;
  --secondary: #EF8354;
  --accent: #4F5D75;
  --light: #FFFFFF;
  --dark: #2D3142;
  --gray: #E5E5E5;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --header-height: 70px; /* Define header height for spacing */
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary);
  color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--light);
}

.section {
  padding: 5rem 0;
}

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

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

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  height: var(--header-height);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--primary);
}

/* Page Header - Fixed for mobile */
.page-header {
  padding-top: calc(var(--header-height) + 3rem); /* Add header height plus extra padding */
  padding-bottom: 2rem;
  text-align: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--light);
  padding-top: 80px;
  position: relative;
  background-image: url('../assets/josh-speaking.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 49, 66, 0.7); /* Dark overlay with opacity */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--light);
}

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

/* About Section */
.about-section {
  background-color: var(--gray);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.timeline {
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: calc(100% + 1rem);
  background-color: var(--secondary);
}

.timeline-item:last-child::after {
  display: none;
}

/* Testimonials Section - FIXED */
.testimonials-section {
  background-color: var(--light);
}

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

.testimonial-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--secondary);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  padding: 0 0.5rem;
}

/* Removed quote marks completely */

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  width: 100%;
}

/* Services Section */
.services-section {
  background-color: var(--gray);
}

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

.service-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-family: 'Open Sans', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(239, 131, 84, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--light);
  padding: 3rem 0;
}

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

.footer-logo {
  color: var(--light);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-text {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: var(--light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-link a:hover {
  opacity: 1;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Videos Section */
.videos-section {
  background-color: var(--light);
}

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

.video-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 1.5rem;
  background-color: var(--light);
}

.video-title {
  margin-bottom: 0.5rem;
}

.video-views {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

/* Background utilities */
.bg-light {
  background-color: var(--gray);
}

/* Process Section - FIXED */
.process-section {
  background-color: var(--gray);
  padding: 5rem 0;
}

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

.process-step {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.process-step p {
  font-size: 1rem;
  text-align: center;
  width: 100%;
  word-wrap: break-word;
  hyphens: auto;
}

.process-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: var(--secondary);
  color: var(--light);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Results Section */
.results-container {
  display: grid;
  gap: 2rem;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.result-icon {
  font-size: 2rem;
  color: var(--secondary);
  min-width: 50px;
  text-align: center;
}

.result-content h3 {
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1.5rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* Media Queries */
@media (max-width: 1200px) {
  .nav-item {
    margin-left: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
  }
  
  /* Tablet navigation fix */
  .nav-item {
    margin-left: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* Fix for "How it Works" and "Apply To Work With Me" menu items */
  .nav-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Specific tablet breakpoint for navigation */
@media (min-width: 769px) and (max-width: 991px) {
  .logo {
    font-size: 1.3rem;
  }
  
  .nav-item {
    margin-left: 0.75rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Convert multi-word menu items to two lines */
  .nav-menu .nav-item:nth-child(4) .nav-link,
  .nav-menu .nav-item:nth-child(5) .nav-link {
    display: inline-block;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--light);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  /* Ensure page header has enough space on mobile */
  .page-header {
    padding-top: calc(var(--header-height) + 2rem);
  }
  
  /* Process steps need more padding on mobile */
  .process-step {
    padding: 1.5rem;
  }
  
  .process-step h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .testimonials-container,
  .services-container,
  .videos-container {
    grid-template-columns: 1fr;
  }
  
  /* Additional padding for page header on very small screens */
  .page-header {
    padding-top: calc(var(--header-height) + 1.5rem);
  }
  
  /* Process steps need even more padding on very small screens */
  .process-step {
    padding: 1.25rem;
  }
  
  .process-step h3 {
    font-size: 1.2rem;
  }
}
