/* Senior Home Document Service - Main CSS */

:root {
  /* Primary Colors */
  --primary-1: #2c3e50;  /* Dark Blue-Gray */
  --primary-2: #7f8c8d;  /* Gray */
  --primary-3: #27ae60;  /* Green */
  --primary-4: #e74c3c;  /* Red */
  --primary-5: #f39c12;  /* Orange */
  
  /* Light Shades */
  --primary-1-light: #34495e;
  --primary-2-light: #95a5a6;
  --primary-3-light: #2ecc71;
  --primary-4-light: #e74c5c;
  --primary-5-light: #f1c40f;
  
  /* Dark Shades */
  --primary-1-dark: #1a252f;
  --primary-2-dark: #616a6b;
  --primary-3-dark: #1e8449;
  --primary-4-dark: #c0392b;
  --primary-5-dark: #d68910;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    overflow-x: hidden;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 600;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-1-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  color: #fff !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-3-light) !important;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44,62,80,0.9), rgba(39,174,96,0.8)), url('../FIN_images/hero-bg.webp') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: movePattern 60s linear infinite;
}

@keyframes movePattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

#hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

/* Decorative Shapes */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-3);
  top: -200px;
  left: -200px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-5);
  bottom: -150px;
  right: -150px;
}

/* Section Styles */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--primary-1);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-3);
}

/* About Section */
#about {
  background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-box i {
  font-size: 3rem;
  color: var(--primary-3);
  margin-bottom: 1rem;
}

/* Services Section */
#services {
  background: #f8f9fa;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
    overflow-x: hidden;
  padding: 2rem;
}

.service-card h4 {
  color: var(--primary-1);
  margin-bottom: 1rem;
}

.service-price {
  font-size: 2rem;
  color: var(--primary-3);
  font-weight: bold;
  margin: 1rem 0;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.service-features li:before {
  content: "✓ ";
  color: var(--primary-3);
  font-weight: bold;
}

/* Price Plan Section */
.price-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.price-card.featured {
  background: linear-gradient(135deg, var(--primary-3), var(--primary-3-light));
  color: #fff;
}

.price-card.featured::before {
  content: "POPULAR";
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary-5);
  color: #fff;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Reviews Section */
#reviews {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-1-dark));
  color: #fff;
}

#reviews .section-title h2 {
  color: #fff;
}

#reviews .section-title h2::after {
  background: var(--primary-5);
}

.review-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.review-item p {
  font-style: italic;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.review-author {
  font-weight: bold;
  color: var(--primary-3-light);
}

/* Gallery Section */
#gallery {
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Form */
#contact {
  background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-control, .form-select {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-3);
  box-shadow: 0 0 0 0.2rem rgba(39,174,96,0.25);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-3), var(--primary-3-light));
  border: none;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(39,174,96,0.3);
}

/* Blog Section */
.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
    overflow-x: hidden;
  padding: 1.5rem;
}

/* FAQ Section */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.accordion-button {
  background: var(--primary-2-light);
  color: #fff;
  font-weight: 600;
  border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-3);
  color: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* Footer */
footer {
  background: var(--primary-1-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1rem;
}

footer h5 {
  color: #fff;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-3-light);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb img {
  height: 30px;
  width: auto;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }
  
  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-3), var(--primary-5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Space Page */
#space {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
}

#space h1 {
  color: #fff;
  font-size: 3rem;
} 