/* Sleep Optimization Consulting - Main CSS */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties - Color Palette */
:root {
  /* Primary Colors - High Contrast Pastels */
  --primary-lavender: #8c70df;
  --primary-sage: #adcda6;
  --primary-peach: #ffbba3;
  --primary-mint: #6cbcb3;
  --primary-rose: #d7a1a5;
  
  /* Light Shades */
  --light-lavender: #bdaedc;
  --light-sage: #cafacc;
  --light-peach: #fec4bf;
  --light-mint: #acf2f4;
  --light-rose: #f5dade;
  
  /* Dark Shades */
  --dark-lavender: #595193;
  --dark-sage: #7f9680;
  --dark-peach: #df9c7a;
  --dark-mint: #539592;
  --dark-rose: #cc757f;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e1e8ee;
  --gray-300: #c2d7f1;
  --gray-400: #8aa2c1;
  --gray-500: #6c84a1;
  --gray-600: #545f70;
  --gray-700: #303b54;
  --gray-800: #141b24;
  --gray-900: #131733;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', roboto, sans-serif;
  
  /* Conservative Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 15px;
  
  /* Borders & Shadows */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--primary-lavender);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-lavender);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Header & Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary-lavender) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-lavender) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-lavender) 0%, var(--light-mint) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  padding-top: 50px !important;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.66rem;
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--primary-lavender);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Decorative Elements */
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-peach);
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-sage);
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: var(--fs-3xl);
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-title .subtitle {
  font-size: var(--fs-lg);
  color: var(--primary-lavender);
  margin-bottom: 1rem;
}

.section-title .description {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.74rem;
}

.card-text {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Services Cards */
.service-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-lavender), var(--primary-mint));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.service-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-lavender);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-lavender), var(--primary-mint));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-lavender), var(--dark-mint));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary-lavender);
  color: var(--primary-lavender);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-lavender);
  color: var(--white);
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--light-lavender);
}

.team-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.57rem;
}

.team-role {
  color: var(--primary-lavender);
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-lavender);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.testimonial-author {
  font-weight: 600;
  color: var(--gray-800);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-800);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--light-lavender);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--gray-600);
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Contact Form */
.contact-form {
  background: var(--gray-50);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-lavender);
  box-shadow: 0 0 0 0.2rem rgba(101, 104, 206, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.57rem;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-300);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-lavender);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
}

/* Gallery */
.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Process Steps */
.process-step {
  text-align: center;
  margin-bottom: 2rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-peach), var(--primary-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 1rem;
}

/* Timeline */
.timeline-item {
  border-left: 3px solid var(--primary-lavender);
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--primary-lavender);
  border-radius: 50%;
}

/* Price Plans */
.price-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.price-card.featured {
  border: 3px solid var(--primary-lavender);
  transform: scale(1.05);
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.price-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.price-value {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--primary-lavender);
  margin-bottom: 1rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li i {
  color: var(--primary-sage);
  margin-right: 0.5rem;
}

/* Blog Grid */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.59rem;
}

.blog-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--primary-lavender);
  font-weight: 500;
  text-decoration: none;
}

.blog-link:hover {
  color: var(--dark-lavender);
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-lavender), var(--primary-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-lavender), var(--primary-mint));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--primary-peach), var(--primary-rose));
}

.bg-light-lavender { background-color: var(--light-lavender); }
.bg-light-sage { background-color: var(--light-sage); }
.bg-light-peach { background-color: var(--light-peach); }
.bg-light-mint { background-color: var(--light-mint); }
.bg-light-rose { background-color: var(--light-rose); }

/* Feature Cards (reusable) */
.feature-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-sage), var(--primary-mint));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.54rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.feature-item {
  margin-bottom: 2rem;
}

.feature-content h5 {
  color: var(--gray-800);
  margin-bottom: 0.64rem;
}

.feature-content p {
  color: var(--gray-600);
}

/* Case Studies */
.casestudy-grid .card {
  border-left: 4px solid var(--primary-peach);
}

.casestudy-grid .card:hover {
  border-left-color: var(--dark-peach);
}

/* Career Section */
.career-grid .card {
  border-top: 4px solid var(--primary-rose);
}

.career-grid .card:hover {
  border-top-color: var(--dark-rose);
}

/* Core Info */
.coreinfo-grid .feature-card {
  border-bottom: 4px solid var(--primary-mint);
}

.coreinfo-grid .feature-card:hover {
  border-bottom-color: var(--dark-mint);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--gray-800);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-lavender), var(--primary-mint));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--dark-lavender), var(--dark-mint));
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navbar Scrolled State */
.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow);
}

/* Contact Info Styling */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  width: 20px;
  margin-right: 1rem;
  color: var(--primary-lavender);
}

.contact-item p {
  margin: 0;
  color: var(--gray-600);
}

/* Progress Bar Styling */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Lightbox Gallery Enhancement */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(158, 137, 209, 0.80);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: var(--gray-50);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-top: 70px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.breadcrumb-item:hover img {
  filter: grayscale(0%);
}

/* Footer Disclaimer */
#site_disclaimer {
  color: var(--gray-400);
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
  text-align: center;
} 


/* Team Social Links - Minimal Style */
.team-social-links {
    margin-top: 16px;
    padding: 10px 0;
}

.social-icons-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
}

.social-link:hover {
    transform: translateY(-1px);
    color: white;
}

.facebook-link:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.linkedin-link:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.x-link {
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 18px;
    color: inherit;
}

.x-link:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.x-link:hover::after {
    color: white;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
