/* =================================================================
   Firmly Invested - Professional Corporate CSS
   Design Style: Professional corporate aesthetic
   ================================================================= */

/* =================================================================
   CSS RESET & BASE STYLES
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style-position: inside;
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #2D5F8D;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  color: #4a5568;
}

/* =================================================================
   LAYOUT CONTAINERS
   ================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 95, 141, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: none;
}

.main-nav a {
  color: #2D5F8D;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.main-nav a:hover {
  color: #E85D35;
  background-color: #f7fafc;
}

/* =================================================================
   MOBILE MENU
   ================================================================= */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #2D5F8D;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(45, 95, 141, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: #234a6d;
  transform: scale(1.05);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #2D5F8D;
  z-index: 1999;
  padding: 80px 24px 24px;
  transition: right 0.4s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

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

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.cta-button.primary {
  background-color: #E85D35;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(232, 93, 53, 0.3);
}

.cta-button.primary:hover {
  background-color: #d14d28;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 93, 53, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: #2D5F8D;
  border: 2px solid #2D5F8D;
}

.cta-button.secondary:hover {
  background-color: #2D5F8D;
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
  background: linear-gradient(135deg, #2D5F8D 0%, #234a6d 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.hero h1 {
  color: #ffffff;
  font-size: 42px;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 18px;
  color: #F4F1E8;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* =================================================================
   PAGE HERO
   ================================================================= */
.page-hero {
  background-color: #f7fafc;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid #2D5F8D;
}

.breadcrumb {
  font-size: 14px;
  color: #718096;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #2D5F8D;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #E85D35;
}

.last-updated {
  font-size: 14px;
  color: #718096;
  font-style: italic;
}

/* =================================================================
   CARDS & GRIDS - FLEXBOX LAYOUTS
   ================================================================= */
.benefits-grid,
.services-grid,
.testimonials-grid,
.workout-grid,
.article-grid,
.values-grid,
.pillars-grid,
.contact-grid,
.steps-grid,
.actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
}

.benefit-card,
.service-card,
.testimonial-card,
.workout-card,
.article-card,
.value-card,
.pillar-card,
.contact-card,
.step-card,
.action-card {
  flex: 1 1 100%;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover,
.service-card:hover,
.workout-card:hover,
.article-card:hover,
.value-card:hover,
.pillar-card:hover,
.contact-card:hover,
.step-card:hover,
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45, 95, 141, 0.15);
  border-color: #2D5F8D;
}

.benefit-card h3,
.service-card h3,
.workout-card h3,
.article-card h3,
.value-card h3,
.pillar-card h3,
.contact-card h3,
.step-card h3,
.action-card h3 {
  color: #2D5F8D;
  margin-bottom: 16px;
}

/* =================================================================
   SERVICE CARDS
   ================================================================= */
.service-card .price,
.service-detail-card .price {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #E85D35;
  margin: 16px 0;
}

.service-detail-card {
  flex: 1 1 100%;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
}

.service-detail-card.best-value {
  border: 3px solid #E85D35;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f3 100%);
}

.service-detail-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: #E85D35;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(232, 93, 53, 0.3);
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials {
  background-color: #f7fafc;
  padding: 60px 20px;
}

.testimonial-card {
  background-color: #ffffff;
  border-left: 4px solid #2D5F8D;
  padding: 32px;
  margin-bottom: 20px;
}

.testimonial-card p {
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card .author {
  color: #2D5F8D;
  font-weight: 700;
  font-style: italic;
  margin-top: 16px;
}

/* =================================================================
   QUOTE CARDS
   ================================================================= */
.quote-card {
  background: linear-gradient(135deg, #2D5F8D 0%, #234a6d 100%);
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
  flex: 1 1 100%;
}

.quote-card p {
  color: #ffffff;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

/* =================================================================
   WORKOUT CARDS
   ================================================================= */
.workout-meta {
  font-size: 14px;
  color: #718096;
  font-weight: 600;
  margin-bottom: 12px;
}

/* =================================================================
   FAQ SECTION
   ================================================================= */
.faq {
  background-color: #f7fafc;
  padding: 60px 20px;
}

.faq-item {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.faq-item h3 {
  color: #2D5F8D;
  margin-bottom: 12px;
}

/* =================================================================
   CTA BANNER
   ================================================================= */
.cta-banner {
  background: linear-gradient(135deg, #2D5F8D 0%, #234a6d 100%);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 60px 20px;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: #F4F1E8;
  font-size: 18px;
  margin-bottom: 32px;
}

.trust-badge,
.price-display {
  font-size: 14px;
  color: #F4F1E8;
  margin-top: 16px;
  font-weight: 600;
}

/* =================================================================
   ABOUT & TEXT SECTIONS
   ================================================================= */
.about-story,
.approach,
.location,
.legal-content {
  padding: 60px 20px;
}

.mission {
  background-color: #f7fafc;
  border-left: 4px solid #E85D35;
  padding: 24px;
  margin: 32px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2D5F8D;
}

/* =================================================================
   CONTACT FORM
   ================================================================= */
.contact-info {
  padding: 60px 20px;
}

.contact-form-section {
  background-color: #f7fafc;
  padding: 60px 20px;
}

.form-placeholder {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  margin-top: 32px;
}

.form-placeholder p {
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 16px;
}

.form-placeholder strong {
  color: #2D5F8D;
  font-weight: 600;
}

.booking-cta {
  background-color: #ffffff;
  border: 2px solid #2D5F8D;
  border-radius: 12px;
  padding: 40px;
  margin: 60px 20px;
}

.booking-cta ul {
  margin: 24px 0;
}

.booking-cta li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.booking-cta li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #E85D35;
  font-weight: 700;
}

/* =================================================================
   THANK YOU PAGE
   ================================================================= */
.thank-you-hero {
  background: linear-gradient(135deg, #2D5F8D 0%, #234a6d 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.thank-you-hero h1 {
  color: #ffffff;
}

.thank-you-hero p {
  color: #F4F1E8;
  font-size: 18px;
  margin-bottom: 32px;
}

.next-steps,
.while-waiting {
  padding: 60px 20px;
}

.testimonial {
  background-color: #f7fafc;
  padding: 60px 20px;
}

.contact-reminder {
  background-color: #ffffff;
  border: 2px solid #2D5F8D;
  border-radius: 12px;
  padding: 40px;
  margin: 60px 20px;
  text-align: center;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background-color: #1a365d;
  color: #F4F1E8;
  padding: 60px 20px 24px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
  justify-content: space-between;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-legal {
  flex: 1 1 100%;
  min-width: 200px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #cbd5e0;
  font-size: 14px;
}

.footer-content h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: #cbd5e0;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #E85D35;
}

.footer-contact p {
  color: #cbd5e0;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 232, 0.2);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e0;
  font-size: 14px;
}

/* =================================================================
   COOKIE CONSENT BANNER
   ================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a365d;
  color: #ffffff;
  padding: 24px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.6;
  color: #F4F1E8;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-button.accept {
  background-color: #E85D35;
  color: #ffffff;
}

.cookie-button.accept:hover {
  background-color: #d14d28;
  transform: translateY(-2px);
}

.cookie-button.reject {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cookie-button.reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-button.settings {
  background-color: #2D5F8D;
  color: #ffffff;
}

.cookie-button.settings:hover {
  background-color: #234a6d;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h2 {
  color: #2D5F8D;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category h3 {
  color: #2D5F8D;
  font-size: 18px;
  margin-bottom: 8px;
}

.cookie-category p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
  width: 48px;
  height: 24px;
  cursor: pointer;
}

.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

/* =================================================================
   SECTION SPACING
   ================================================================= */
.benefits,
.services-overview,
.services-detailed,
.workouts,
.articles,
.quotes,
.values,
.approach {
  padding: 60px 20px;
}

.section-intro {
  text-align: center;
  font-size: 18px;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* =================================================================
   RESPONSIVE DESIGN - TABLET (768px and up)
   ================================================================= */
@media (min-width: 768px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .benefit-card,
  .service-card,
  .testimonial-card,
  .workout-card,
  .article-card,
  .value-card,
  .pillar-card,
  .contact-card,
  .step-card,
  .action-card {
    flex: 1 1 calc(50% - 12px);
  }

  .quote-card {
    flex: 1 1 calc(50% - 12px);
  }

  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-legal {
    flex: 1 1 calc(25% - 24px);
  }

  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-text {
    flex: 1;
  }

  .cookie-buttons {
    flex-shrink: 0;
  }
}

/* =================================================================
   RESPONSIVE DESIGN - DESKTOP (1024px and up)
   ================================================================= */
@media (min-width: 1024px) {
  .benefit-card,
  .workout-card,
  .article-card,
  .step-card,
  .action-card {
    flex: 1 1 calc(33.333% - 16px);
  }

  .service-card,
  .value-card,
  .pillar-card,
  .contact-card {
    flex: 1 1 calc(50% - 12px);
  }

  .hero {
    padding: 120px 20px;
  }

  .section {
    padding: 80px 20px;
  }
}

/* =================================================================
   ANIMATIONS & TRANSITIONS
   ================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card,
.service-card,
.testimonial-card,
.workout-card,
.article-card {
  animation: fadeIn 0.6s ease forwards;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
}