/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Medical Professional */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary: #06b6d4;
  --accent: #0891b2;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* Scroll offset handled via Tailwind scroll-mt and dynamic --nav-h */
section[id] {
  scroll-margin-top: var(--nav-h, 96px);
}
/* Remove legacy pseudo-offset that could cause visual overlap */
section[id]::before {
  content: none !important;
}

/* Samsung Galaxy Fold 6 & 7 Optimizations */
/* Fold 6/7: Outer screen 840x2260px, Inner screen 1768x2208px when unfolded */
/* Fold 6/7 outer screen (cover display) - narrow portrait */
@media screen and (max-width: 840px) and (max-height: 2260px) and (min-aspect-ratio: 1/2.7) {
  .container {
    padding: 0 16px;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .logo-img {
    width: 80px;
    height: 80px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  section[id] {
    scroll-margin-top: 120px;
  }
  
  section[id]::before {
    margin-top: -120px;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .service-grid,
  .testimonials-grid,
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Samsung Galaxy Fold 6 & 7 - Inner screen (unfolded) - square tablet */
@media screen and (min-width: 841px) and (max-width: 1768px) and (min-height: 2208px) {
  .container {
    max-width: 1600px;
    padding: 0 24px;
  }
  
  .navbar {
    padding: 1.25rem 0;
  }
  
  .logo-img {
    width: 110px;
    height: 110px;
  }
  
  section[id] {
    scroll-margin-top: 175px;
  }
  
  section[id]::before {
    margin-top: -175px;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }
  
  .hero-title {
    text-align: left;
  }
  
  .hero-subtitle {
    text-align: left;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Samsung Galaxy Fold - Landscape mode (unfolded) */
@media screen and (min-width: 1768px) and (max-height: 2208px) and (orientation: landscape) {
  .container {
    max-width: 1800px;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }
  
  .hero-title {
    text-align: left;
  }
  
  .hero-subtitle {
    text-align: left;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Samsung Galaxy Fold - Safe area insets */
@supports (padding: env(safe-area-inset-left)) {
  @media screen and (max-width: 840px) {
    .navbar {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
  overflow-x: hidden;
  /* Reserve space for fixed navbar on initial load */
  padding-top: var(--nav-h, 96px);
}

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

/* Lazy loading optimization - Premium fade-in effect */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  will-change: opacity;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift during lazy load - subtle shimmer effect */
img[loading="lazy"]:not(.loaded) {
  background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 200px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Prevent layout shift - use width and height attributes when available */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1.25rem 0;
}

/* More padding on larger screens */
@media (min-width: 768px) {
  .navbar {
    padding: 1.5rem 0;
  }
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  /* Ensure logo container has enough space */
  min-width: fit-content;
  padding: 0;
  /* Clean logo container - no background or border */
  background: none;
  border: none;
  box-shadow: none;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  /* Prevent layout shift */
  aspect-ratio: 1 / 1;
  /* High quality rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Ensure logo is visible and clear */
  flex-shrink: 0;
  /* Clean logo - no background, border, or shadow */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;
  /* Prevent blur on scaling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

/* Retina display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    /* Use higher resolution version for retina displays */
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Larger logo on tablet */
@media (min-width: 768px) {
  .logo-img {
    width: 120px;
    height: 120px;
  }
  
  .logo {
    gap: 1.25rem;
  }
}

/* Extra large on desktop */
@media (min-width: 1200px) {
  .logo-img {
    width: 140px;
    height: 140px;
  }
  
  .logo {
    gap: 1.5rem;
  }
}

.logo-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1.2;
}

/* Hide text on very small screens */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
}

/* Show text on larger screens with better sizing */
@media (min-width: 768px) {
  .logo-text {
    font-size: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .logo-text {
    font-size: 2rem;
  }
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--bg-gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* iPhone 16 Pro Max and mobile optimizations */
@media (max-width: 430px) {
  /* iPhone 16 Pro Max: 430px width */
  .container {
    padding: 0 16px;
  }
  
  .hero-section {
    padding: 4rem 0 3rem;
    min-height: auto;
  }
  
  .hero-wrapper {
    gap: 1.5rem;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .service-card,
  .testimonial-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .blog-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .article-content {
    padding: 1rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .price-table {
    font-size: 0.875rem;
  }
  
  .price-table th,
  .price-table td {
    padding: 0.5rem;
  }
  
  /* Optimize images for mobile */
  .hero-img,
  .about-img {
    min-height: 200px;
    max-height: 300px;
  }
  
  .blog-image img {
    height: 160px;
  }
  
  /* Optimize forms */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .service-card,
  .testimonial-card,
  .blog-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu .btn-nav {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-img,
  .about-img {
    min-height: 250px;
    max-height: 400px;
  }
  
  .blog-image img {
    height: 180px;
  }
  
  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  /* Touch optimizations */
  .btn,
  .blog-link,
  .nav-menu a {
    min-height: 44px; /* Apple's recommended touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu a {
    padding: 1rem;
  }
  
  /* Optimize scrolling on iOS */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* iPhone 16 Pro Max specific optimizations */
@media screen and (max-width: 430px) and (-webkit-min-device-pixel-ratio: 3) {
  .hero-section {
    padding: 4rem 0 3rem;
  }
  
  .section {
    padding: 4rem 0 !important;
  }
  
  section[id].section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .section + .section {
    padding-top: 4rem;
  }
  
  /* Safe area insets for iPhone notch */
  .navbar {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--bg-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section - Modern Design */
.hero-section {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  /* Remove min-height on desktop - let content determine height */
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Ensure hero section ends exactly where content ends */
  margin-bottom: 0;
  /* Subtle separator to guarantee a crisp boundary to the next white section */
  border-bottom: 1px solid #e2e8f0;
}

/* Removed radial overlay to avoid the perception that the gradient continues below */
/* .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
  pointer-events: none;
} */

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: left;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-align: left;
  width: 100%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

.hero-image {
  animation: fadeInRight 0.8s ease;
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

/* Images */
.hero-img,
.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  min-height: 400px;
  max-height: 600px;
}

.about-img {
  min-height: 400px;
  max-height: 500px;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 968px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0 3rem;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image::after {
    top: -10px;
    right: -10px;
  }
}

/* Section Styles - Clear separation between sections */
.section {
  padding: 6rem 0;
  position: relative;
  /* Ensure sections don't overlap */
  margin: 0;
  clear: both;
  display: block;
  width: 100%;
}

/* First section after hero - starts exactly where hero ends */
.hero-section + .section {
  padding-top: 6rem;
  margin-top: 0;
  /* Ensure clean transition - no overlap with hero background */
  position: relative;
  z-index: 1;
}

/* Ensure all sections have clear separation */
.section + .section {
  margin-top: 0;
  padding-top: 6rem;
}

/* Sections with IDs maintain their padding but also get scroll offset */
section[id].section {
  /* scroll-margin-top is set above, this ensures visual spacing */
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 7rem 0 5rem;
  }
  
  .section {
    padding: 7rem 0;
  }
  
  .hero-section + .section {
    padding-top: 7rem;
    margin-top: 0;
  }
  
  .section + .section {
    padding-top: 7rem;
  }
  
  section[id].section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  
  .about-section {
    padding-top: 7rem !important;
    margin-top: 0 !important;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    padding: 8rem 0 6rem;
  }
  
  .section {
    padding: 8rem 0;
  }
  
  .hero-section + .section {
    padding-top: 8rem;
    margin-top: 0;
  }
  
  .section + .section {
    padding-top: 8rem;
  }
  
  section[id].section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  
  .about-section {
    padding-top: 8rem !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 5rem 0;
  }
  
  .hero-section + .section,
  .section + .section {
    padding-top: 5rem;
  }
  
  section[id].section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  background: var(--bg-white);
  /* Ensure clear separation and starts exactly after hero */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  margin-top: 0 !important;
  /* Ensure background starts exactly where hero ends */
  position: relative;
  z-index: 1;
}

.about-wrapper {
  width: 100%;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.credential-item .icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
}

.credential-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.credential-item p {
  color: var(--text-muted);
  margin: 0;
}

.about-image {
  animation: fadeInRight 0.8s ease;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

/* Services Section */
.services-section {
  background: var(--bg-light);
  /* Ensure clear separation */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-radius: 50%;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why Section */
.why-section {
  background: white;
  /* Ensure clear separation */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 2rem;
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.why-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.why-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--bg-light);
  /* Ensure clear separation */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-content p {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar svg {
  width: 24px;
  height: 24px;
}

.testimonial-author strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.author-location {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Blog Preview Section */
.blog-preview-section {
  background: white;
  /* Ensure clear separation */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image .placeholder-image {
  min-height: 200px;
  border-radius: 0;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.blog-content h3 a {
  color: inherit;
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
}

.blog-link:hover {
  text-decoration: underline;
}

.blog-cta {
  text-align: center;
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
  /* Ensure clear separation */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-content {
  display: contents;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-radius: 50%;
}

.contact-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-item p {
  color: var(--text-muted);
  margin: 0;
}

.contact-item a {
  color: var(--primary);
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}


/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section ul a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .hero-cta {
    display: none;
  }
}

