/* ============================================
   SpeakWise - Professional Communication Coaching
   Colour Scheme: Navy Blue & Teal (Professional)
   ============================================ */

:root {
  /* Primary Colors */
  --navy-blue: #0A2540;
  --teal: #2EC4B6;
  --soft-grey: #F5F7FA;
  --charcoal: #1F2933;
  --white: #FFFFFF;
  
  /* Accent Colors */
  --teal-light: #4DD4C6;
  --teal-dark: #1FA89D;
  --navy-light: #1A3550;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.1);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.15);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
  /* Smooth page transitions */
  animation: fadeIn 0.2s ease-in;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy-blue);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background-color: var(--soft-grey);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-blue);
  font-family: var(--font-heading);
}

.logo span {
  color: var(--teal);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--charcoal);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.nav-cta {
  background-color: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--charcoal);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--soft-grey);
  color: var(--teal);
  padding-left: 1.75rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--navy-blue);
  transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
}

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

.btn-secondary {
  background-color: var(--navy-blue);
  color: var(--white);
}

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

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

.btn-outline:hover {
  background-color: var(--teal);
  color: var(--white);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/index.jpg') no-repeat center;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
}

/* Page-specific hero backgrounds */
.hero-graduates::before {
  background: url('../images/graduates.jpg') no-repeat center;
  background-size: cover;
}

.hero-professionals::before {
  background: url('../images/Professionals.jpeg') no-repeat center;
  background-size: cover;
}

.hero-businesses::before {
  background: url('../images/corporate.jpeg') no-repeat center;
  background-size: cover;
}

.hero-sponsorship::before {
  background: url('../images/sponsorship.jpg') no-repeat center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .highlight {
  color: var(--teal);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   CARDS
   ============================================ */

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

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(10, 37, 64, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--navy-blue);
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 1rem;
}

.card-link:hover {
  color: var(--teal-dark);
  gap: 1rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header .badge {
  display: inline-block;
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--teal);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--charcoal);
  opacity: 0.9;
}

/* ============================================
   STATS / TRUST SIGNALS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
}

.testimonial-info h5 {
  margin-bottom: 0.25rem;
  color: var(--navy-blue);
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--charcoal);
  opacity: 0.7;
  margin: 0;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--spacing-xl) 0;
}

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

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section .btn-secondary {
  background-color: var(--white);
  color: var(--teal);
}

.cta-section .btn-secondary:hover {
  background-color: var(--soft-grey);
  color: var(--navy-blue);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--teal);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

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

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--teal);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  /* Increase background image opacity on mobile for better readability */
  .hero::before {
    opacity: 0.1;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Further reduce background opacity on smaller screens */
  .hero::before {
    opacity: 0.08;
    background-position: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  /* Minimal background opacity on very small screens */
  .hero::before {
    opacity: 0.05;
  }
  
  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
