/* ================================
   1. CSS CUSTOM PROPERTIES
   ================================ */
:root {
  /* Colors - Vibrant Turquoise/Pink/Yellow Palette */
  --color-bg: #E0F7F7;              /* Light turquoise background */
  --color-surface: #B2EBEB;         /* Deeper teal for alternating sections */
  --color-text: #1A3A3A;            /* Dark teal text */
  --color-text-secondary: #3D6B6B;  /* Medium teal for secondary text */
  --color-accent: #E91E8C;          /* Hot pink/magenta for CTAs */
  --color-accent-hover: #C4177A;    /* Darker magenta for hover */
  --color-highlight: #FFD700;       /* Bright yellow for pops */
  --color-border: #8DD4D4;          /* Teal-toned borders */
  --color-white: #FFFFFF;           /* White for cards, text */
  --color-dark: #0D4D4D;            /* Dark teal for footer */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lora', serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Other */
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-max: 1120px;
  --nav-height: 72px;
}

/* ================================
   2. CSS RESET / BASE
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

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

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

ul {
  list-style: none;
}

/* ================================
   3. UTILITY CLASSES
   ================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-xs);
  color: var(--color-white);
}

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

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 18px 40px;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

.btn-nav {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 6px;
}

.btn-nav:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ================================
   4. HEADER & NAVIGATION
   ================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text);
}

.nav-brand:hover {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-secondary);
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger active state (X) */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ================================
   5. HERO SECTION
   ================================ */
#hero {
  padding: calc(var(--nav-height) + 96px) 0 120px;
  background-color: var(--color-bg);
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero-divider {
  width: 40px;
  height: 3px;
  background-color: var(--color-highlight);
  margin: 0 auto var(--space-md);
}

.hero-subtext {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ================================
   6. SERVICES SECTION
   ================================ */
#services {
  padding: var(--space-3xl) 0;
  background-color: var(--color-surface);
}

#services h2 {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  font-style: italic;
  color: var(--color-text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 16px;
  line-height: 1.6;
}

.service-detail {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #D4A800;  /* Slightly darker gold for readability */
}

/* ================================
   6.5 TOOLKIT SECTION
   ================================ */
#toolkit {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #0D4D4D 0%, #1A6B6B 100%);
  color: var(--color-white);
}

#toolkit h2 {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--color-highlight);
}

#toolkit .section-intro {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.toolkit-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  align-items: center;
}

.toolkit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.toolkit-item-mini {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
}

.toolkit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.toolkit-bonus {
  background: var(--color-white);
  color: var(--color-text);
  padding: var(--space-xl);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.bonus-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-highlight);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 20px;
  border-radius: 20px;
}

.toolkit-bonus h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.toolkit-bonus p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

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

.btn-large {
  padding: 20px 48px;
  font-size: 18px;
}

.toolkit-note {
  margin-top: var(--space-sm);
  font-style: italic;
  font-size: 14px;
  opacity: 0.8;
}

/* ================================
   7. TESTIMONIALS SECTION
   ================================ */
#testimonials {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
}

#testimonials h2 {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  padding: 40px 32px;
  border-left: 3px solid var(--color-accent);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-highlight);
  opacity: 0.7;
  position: absolute;
  top: 16px;
  left: 32px;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
}

.testimonial cite {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ================================
   8. CONTACT SECTION
   ================================ */
#contact {
  padding: var(--space-3xl) 0;
  background-color: var(--color-surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.contact-info > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.contact-details svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #AAAAAA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.error-message {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  color: #D04040;
  margin-top: 4px;
  min-height: 0;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #D04040;
}

.form-success {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}

/* ================================
   9. FOOTER
   ================================ */
footer[role="contentinfo"] {
  background-color: var(--color-dark);
  padding: 40px 0;
}

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

.footer-content p {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  color: var(--color-white);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--color-highlight);
}

/* ================================
   10. ANIMATIONS (scroll reveal)
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ================================
   11. MEDIA QUERIES
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 44px;
  }

  #services h2,
  #testimonials h2,
  #toolkit h2,
  .contact-info h2 {
    font-size: 34px;
  }

  .toolkit-preview {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .toolkit-list {
    order: 2;
  }

  .toolkit-bonus {
    order: 1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 16px;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
  }

  .nav-menu.open {
    max-height: 400px;
    opacity: 1;
    padding: var(--space-lg);
  }

  .nav-link {
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  /* Hero */
  #hero {
    padding: calc(var(--nav-height) + 64px) 0 80px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-subtext {
    font-size: 17px;
  }

  /* Sections */
  #services,
  #testimonials,
  #contact,
  #toolkit {
    padding: var(--space-2xl) 0;
  }

  #services h2,
  #testimonials h2,
  #toolkit h2,
  .contact-info h2 {
    font-size: 28px;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .toolkit-list {
    grid-template-columns: 1fr;
  }

  .toolkit-bonus h3 {
    font-size: 20px;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-lg);
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .btn-primary {
    padding: 16px 28px;
    font-size: 15px;
  }

  .container {
    padding: 0 var(--space-sm);
  }
}

/* ================================
   12. LEAD MAGNET POPUP
   ================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 77, 77, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.popup-box {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--color-accent);
}

.popup-badge {
  display: inline-block;
  background: var(--color-highlight);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.popup-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.popup-subtext {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.popup-form {
  text-align: left;
}

.popup-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

.popup-privacy {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
  font-style: italic;
}

@media (max-width: 520px) {
  .popup-box {
    padding: var(--space-xl) var(--space-md);
  }
  .popup-box h2 {
    font-size: 22px;
  }
}

/* ================================
   13. REDUCED MOTION
   ================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
