/* Family History Template - Main CSS */

/* Color Palette - 5 primary colors with variations */
:root {
  --primary-deep-forest: #30631e;
  --primary-warm-amber: #c8a573;
  --primary-rich-burgundy: #851937;
  --primary-soft-sage: #8ead78;
  --primary-antique-cream: #f1ece3;
  
  /* Light shades */
  --light-forest: #568833;
  --light-amber: #d5b587;
  --light-burgundy: #b53f4e;
  --light-sage: #a2c781;
  --light-cream: #f9f7f2;
  
  /* Dark shades */
  --dark-forest: #21330d;
  --dark-amber: #b9914b;
  --dark-burgundy: #74161b;
  --dark-sage: #78895e;
  --dark-cream: #f9f6ee;
  
  /* Additional colors */
  --text-dark: #2c2829;
  --text-light: #686868;
  --border-color: #f6f3e5;
}

/* Bootstrap override for conservative font sizes */
html {
  font-size: 16px;
}

body {
  font-family: 'Georgia', serif;
  color: var(--text-dark);
  background-color: var(--primary-antique-cream);
  line-height: 1.6;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-deep-forest), var(--light-forest));
  box-shadow: 0 7px 18px rgba(58, 102, 38, 0.10);
}

/* Navbar Styles - Ensuring solid background */
.navbar {
  background: linear-gradient(135deg, var(--primary-deep-forest), var(--light-forest)) !important;
  background-color: var(--primary-deep-forest) !important;
  backdrop-filter: none !important;
}

.navbar-dark {
  background: linear-gradient(135deg, var(--primary-deep-forest), var(--light-forest)) !important;
  background-color: var(--primary-deep-forest) !important;
}

/* Fixed navbar styles for better readability */
.navbar.fixed-top {
  background: linear-gradient(135deg, var(--primary-deep-forest), var(--light-forest)) !important;
  background-color: var(--primary-deep-forest) !important;
  box-shadow: 0 7px 18px rgba(58, 102, 38, 0.20) !important;
}

.navbar-brand {
  font-size: 1.4rem !important;
  font-weight: 600;
  color: var(--primary-antique-cream) !important;
}

.navbar-nav .nav-link {
  color: var(--light-cream) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-warm-amber) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(45deg, var(--primary-deep-forest), var(--primary-soft-sage));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--primary-warm-amber);
  opacity: 0.1;
  border-radius: 50%;
  transform: rotate(45deg);
}

#hero-title-1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-antique-cream);
  margin-bottom: 1.23rem;
}

#hero-subtitle-1 {
  font-size: 1.3rem;
  color: var(--light-cream);
  margin-bottom: 1.60rem;
}

#hero-desc-1 {
  font-size: 1.1rem;
  color: var(--light-cream);
  line-height: 1.7;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-deep-forest);
  margin-bottom: 0.72rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--primary-rich-burgundy);
  margin-bottom: 1.23rem;
  text-align: center;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 3.09rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
#about {
  padding: 80px 0;
  background-color: var(--light-cream);
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 7px 16px rgba(54, 97, 33, 0.10);
  transition: transform 0.3s ease;
  margin-bottom: 2.22rem;
  border-left: 4px solid var(--primary-warm-amber);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card h4 {
  color: var(--primary-deep-forest);
  font-size: 1.3rem;
  margin-bottom: 1.23rem;
}

/* Services Section */
#services {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-antique-cream), var(--light-cream));
}

.service-card {
  background: white;
  border-radius: 115px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 2.22rem;
  border: 5px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 21px 40px rgba(36, 73, 24, 0.15);
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.60rem;
}

.service-card h4 {
  color: var(--primary-deep-forest);
  font-size: 1.4rem;
  margin-bottom: 1.23rem;
}

.service-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-rich-burgundy);
  margin: 1rem 0;
}

/* Team Section */
#team {
  padding: 80px 0;
  background-color: var(--primary-antique-cream);
}

.team-card {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-warm-amber);
}

/* Reviews/Testimonials */
#reviews {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-soft-sage), var(--light-sage));
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 1rem;
  position: relative;
}

.review-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-warm-amber);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
}

/* Gallery Section */
#gallery {
  padding: 80px 0;
  background-color: var(--light-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* FAQ Section */
#faq {
  padding: 80px 0;
  background-color: var(--primary-antique-cream);
}

.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 1.23rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-deep-forest);
  border-bottom: 1px solid var(--border-color);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Blog Section */
#blog {
  padding: 80px 0;
  background-color: var(--light-cream);
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2.22rem;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h4 {
  color: var(--primary-deep-forest);
  margin-bottom: 1.23rem;
}

/* Contact Section */
#contacts {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-deep-forest), var(--primary-rich-burgundy));
  color: white;
}

.contact-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form h3 {
  color: var(--primary-deep-forest);
  margin-bottom: 1.60rem;
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.23rem;
}

.form-control:focus {
  border-color: var(--primary-warm-amber);
  box-shadow: 0 0 0 0.2rem rgba(229, 167, 132, 0.25);
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-deep-forest), var(--primary-soft-sage));
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--dark-forest), var(--dark-sage));
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--primary-deep-forest);
  color: var(--light-cream);
  padding: 60px 0 20px;
}

footer h5 {
  color: var(--primary-warm-amber);
  margin-bottom: 1.60rem;
}

footer a {
  color: var(--light-cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-warm-amber);
}

/* Breadcrumb */
.breadcrumb-section {
  padding: 20px 0;
  background-color: var(--light-cream);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.60rem; }
.mt-4 { margin-top: 1.68rem; }
.py-5 { padding: 3rem 0; }

/* Additional sections styling */
.process-step, .timeline-event, .career-position, .case-study-item, .core-info-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.60rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-warm-amber);
}

.price-plan-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 2.22rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.price-plan-card:hover {
  border-color: var(--primary-warm-amber);
  transform: translateY(-5px);
}

.price-plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-rich-burgundy);
  margin: 1rem 0;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
  border-bottom: none;
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
