/* ===== CSS Variables ===== */
:root {
  --color-primary: #5B7B6A;
  --color-primary-dark: #4a6a59;
  --color-accent: #D4A853;
  --color-accent-hover: #c49a48;
  --color-bg: #FBF8F1;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-lighter: #888888;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-hover: rgba(0, 0, 0, 0.12);
  --font-family: 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== Typography ===== */
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 8px;
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-gold {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-gold:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

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

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--color-white);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px var(--color-shadow);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo-img {
  height: 64px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
  transition: left 0.3s ease, right 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

.navbar-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 16px;
}

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

.navbar-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar-toggle.open .navbar-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open .navbar-toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open .navbar-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #2d4639 100%);
  z-index: 0;
}

/* Animated floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
  animation: heroFloat1 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--color-white);
  bottom: -50px;
  left: 10%;
  animation: heroFloat2 10s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  top: 40%;
  left: -50px;
  animation: heroFloat3 6s ease-in-out infinite;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--color-white);
  top: 20%;
  right: 30%;
  animation: heroFloat2 12s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, 15px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-left {
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 480px;
  font-weight: 500;
}

.hero-subtitle-2 {
  margin-bottom: 36px;
  font-weight: 400;
  opacity: 0.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero .btn-gold {
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.hero .btn-gold:hover {
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

/* Trust indicators row */
.trust-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.trust-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero right — image with floating cards */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-main {
  width: 380px;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-image-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  pointer-events: none;
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating info cards */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card-rating {
  top: 30px;
  left: -60px;
  animation: floatCard1 4s ease-in-out infinite;
}

.float-card-patients {
  bottom: 60px;
  right: -40px;
  animation: floatCard2 5s ease-in-out infinite;
}

.float-card-badge {
  bottom: -20px;
  left: 20px;
  animation: floatCard3 4.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon-green {
  background: rgba(91, 123, 106, 0.1);
}

.float-icon-gold {
  background: rgba(212, 168, 83, 0.15);
}

.float-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.float-sub {
  font-size: 0.75rem;
  color: var(--color-text-lighter);
  margin-top: 2px;
}

/* ===== Stats Section ===== */
.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 1px solid rgba(91, 123, 106, 0.06);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(91, 123, 106, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--color-primary);
}

.stat-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(44%) sepia(10%) saturate(1200%) hue-rotate(100deg) brightness(55%);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-lighter);
  margin-top: 4px;
}

/* ===== About Section ===== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  opacity: 0.15;
  border-radius: var(--radius);
  z-index: -1;
}

.about-content .hero-label {
  margin-bottom: 8px;
}

.about-text {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.about-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-highlight-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 123, 106, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

.about-highlight-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(44%) sepia(10%) saturate(1200%) hue-rotate(100deg) brightness(55%);
}

.about-highlight strong {
  display: block;
  margin-bottom: 2px;
}

.about-highlight p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Services Section ===== */
#services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}

.services-grid .service-card {
  width: 100%;
}

.services-grid .service-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--color-shadow-hover);
}

.service-icon {
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 123, 106, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

.service-icon svg {
  flex-shrink: 0;
}

.service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: invert(44%) sepia(10%) saturate(1200%) hue-rotate(100deg) brightness(55%);
}

/* Normalize icon visual weight — thicker-stroke icons render slightly smaller,
   thinner-stroke icons slightly larger, so all look uniform */
.service-icon img[src*="Oral surgery"] {
  width: 30px;
  height: 30px;
}

.service-icon img[src*="Orthodontics"] {
  width: 32px;
  height: 32px;
}

.service-icon img[src*="Kids Dentistry"] {
  width: 36px;
  height: 36px;
}

.service-icon img[src*="Aligners"] {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition);
}

.service-cta:hover {
  color: var(--color-accent);
}

/* ===== Testimonials Section — Slider ===== */
#testimonials {
  position: relative;
  overflow: hidden;
}

.testimonial-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.testimonial-badge {
  display: inline-block;
  background: rgba(91, 123, 106, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-heading {
  background: linear-gradient(135deg, var(--color-primary), rgba(91, 123, 106, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Slider layout */
.testimonial-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.slider-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 24px;
  cursor: grab;
  user-select: none;
}

.slider-track:active {
  cursor: grabbing;
}

/* Card design */
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(91, 123, 106, 0.08);
  border: 1px solid rgba(91, 123, 106, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(91, 123, 106, 0.15);
}

/* Decorative quote watermark */
.testimonial-quote-icon {
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 100px;
}

.testimonial-divider {
  height: 1px;
  background: rgba(91, 123, 106, 0.1);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  border: 2px solid var(--color-white);
}

/* Avatar pulse animation */
.avatar-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: avatarPulse 2s ease-out infinite;
}

@keyframes avatarPulse {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.3); }
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

/* Arrow buttons */
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(91, 123, 106, 0.2);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.slider-arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.slider-arrow:disabled:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Dot indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(91, 123, 106, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.slider-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.slider-dot.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: dotRipple 1.5s ease-out infinite;
}

@keyframes dotRipple {
  0% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ===== Gallery Section ===== */
#gallery {
  background-color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}

.gallery-grid .gallery-item {
  width: 100%;
}

.gallery-grid .gallery-item:last-child:nth-child(3n+1) {
  grid-column: 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(91, 123, 106, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ===== Contact Section ===== */
#contact {
  background-color: var(--color-white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 123, 106, 0.08);
  border-radius: 50%;
  color: var(--color-primary);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition);
}

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

.contact-item p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-map {
  min-height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-address {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-accent);
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== CTA Banner ===== */
.cta-banner {
  margin: 0 24px 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 24px;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.08);
}

.cta-shape-1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: 100px;
}

.cta-shape-2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: 200px;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.cta-text h3 {
  color: var(--color-white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  gap: 12px;
}

.cta-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Legal Pages (Privacy, Terms) ===== */
.legal-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 750px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  max-width: 750px;
}

.legal-page li {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
  margin-bottom: 24px;
}

/* ===== Responsive — Medium screens (1024px and below) ===== */
@media (max-width: 1024px) {
  .navbar-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .navbar-cta {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  .hero-content {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-image-main {
    width: 320px;
    height: 400px;
  }

  .float-card-rating {
    left: -30px;
  }

  .float-card-patients {
    right: -20px;
  }
}

/* ===== Responsive — Navigation collapse (900px and below) ===== */
@media (max-width: 900px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px var(--color-shadow);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* ===== Responsive — Tablet (768px and below) ===== */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 60px 0; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    margin-top: 20px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-row {
    justify-content: center;
  }

  .hero-image-main {
    width: 280px;
    height: 340px;
  }

  .float-card {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .stats-section {
    margin-top: -30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .cta-banner {
    margin: 0 16px;
    padding: 36px 0;
  }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content .section-header {
    text-align: center !important;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Testimonials Slider */
  .testimonial-card {
    flex: 0 0 calc(100% - 16px);
    padding: 24px;
  }

  .slider-arrow {
    display: none;
  }

  .testimonial-slider {
    gap: 0;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map {
    min-height: 300px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== Responsive — Small Phone (480px and below) ===== */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  section { padding: 48px 0; }
  .container { padding: 0 16px; }

  .hero-subtitle { font-size: 1rem; }

  .hero-title {
    font-size: 1.8rem;
  }

  .trust-row {
    gap: 16px;
  }

  .trust-number {
    font-size: 1.2rem;
  }

  .trust-divider {
    height: 24px;
  }

  .hero-image-main {
    width: 240px;
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
