/* Pension Clinic Template - Main CSS */

/* Color Palette - 5 Primary Colors + Shades */
:root {
  --primary-green: #2d5f3f;
  --primary-green-light: #4a8264;
  --primary-green-dark: #1a3b26;
  
  --accent-gold: #d4af37;
  --accent-gold-light: #e6c866;
  --accent-gold-dark: #b8941f;
  
  --neutral-slate: #475569;
  --neutral-slate-light: #64748b;
  --neutral-slate-dark: #334155;
  
  --warm-cream: #f8f6f0;
  --warm-cream-light: #fbfaf7;
  --warm-cream-dark: #f0ede3;
  
  --deep-navy: #1e293b;
  --deep-navy-light: #334155;
  --deep-navy-dark: #0f172a;
  
  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-green-dark) 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Conservative base font size */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--deep-navy);
  background-color: var(--warm-cream);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Typography - Conservative Sizing */
h1 {
  font-size: 2rem; /* Conservative h1 size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem; /* Conservative paragraph size */
  margin-bottom: 1rem;
  max-width: none; /* Allow full width for better readability */
}

/* Header & Navigation */
.navbar {
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(45, 95, 63, 0.15);
}

.navbar-brand {
    font-size: 12px !important;
  font-size: 1.25rem !important; /* Conservative logo size */
  font-weight: 700;
  color: white !important;
}

.navbar-nav .nav-link {
    font-size: 10px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-decorative {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.hero-decorative:nth-child(1) {
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-decorative:nth-child(2) {
  bottom: 15%;
  left: 5%;
  width: 150px;
  height: 150px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background-color: var(--warm-cream-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--deep-navy);
}

.section-subtitle {
  color: var(--neutral-slate);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(45, 95, 63, 0.1);
  border: 2px solid var(--warm-cream-dark);
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(45, 95, 63, 0.15);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 1rem 0;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--warm-cream-dark);
}

.service-features li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary-green);
  margin-right: 0.5rem;
}

/* Team Cards */
.team-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(45, 95, 63, 0.1);
}

.team-card:hover {
  box-shadow: 0 20px 40px rgba(45, 95, 63, 0.15);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-gold);
}

/* Testimonials Slider */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem;
  box-shadow: 0 10px 30px rgba(45, 95, 63, 0.1);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--neutral-slate);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-green);
}

/* FAQ Section */
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(45, 95, 63, 0.1);
}

.faq-question {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-answer {
  padding: 1.5rem;
  color: var(--neutral-slate);
  border-radius: 0 0 10px 10px;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(45, 95, 63, 0.1);
}

.form-control {
  border: 2px solid var(--warm-cream-dark);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(45, 95, 63, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gradient-accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 95, 63, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

/* Swiper Styles */
.swiper {
  padding: 2rem 0;
}

.swiper-slide {
  height: auto;
}

.swiper-pagination-bullet {
  background: var(--primary-green);
}

.swiper-pagination-bullet-active {
  background: var(--accent-gold);
}

/* Blog Grid */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 95, 63, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-title {
  color: var(--deep-navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card-excerpt {
  color: var(--neutral-slate);
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb {
  background: none;
  padding: 1rem 0;
}

.breadcrumb-item img {
  height: 20px;
  width: auto;
}

/* Additional Page Sections */
.add-page-section {
  padding: 4rem 0;
}

.add-page-section:nth-child(odd) {
  background: var(--warm-cream-light);
}

.add-page-element {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(45, 95, 63, 0.1);
}

/* Space Page */
#space {
  min-height: 80vh;
  background: var(--warm-cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .service-card, .team-card, .contact-form {
    margin-bottom: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Disable autoplay and effects on mobile as required */
  .swiper {
    --swiper-navigation-size: 25px;
  }
}

/* Add CSS for animations */
const animationCSS = `
  <style>
    .service-card,
    .team-card,
    .testimonial-card,
    .section-title {
      opacity: 1;
      transform: none;
    }
    
    .navbar-scrolled {
      background: rgba(45, 95, 63, 0.95) !important;
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 20px rgba(45, 95, 63, 0.3);
    }
    
    .notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background: white;
      border-left: 4px solid var(--primary-green);
      border-radius: 8px;
      padding: 1rem 3rem 1rem 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      z-index: 9999;
      opacity: 0;
      transform: translateX(100%);
      transition: all 0.3s ease;
      max-width: 300px;
    }
  </style>
`; 