@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;
  --color-text: #000000;
  --color-text-light: #555555;
  --color-accent: #0080FF;
  --color-accent-hover: #0066CC;
  --color-accent-light: #E6F2FF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 4px 6px rgba(30, 36, 48, 0.05);
  --shadow-md: 0 10px 20px rgba(30, 36, 48, 0.08);
  --shadow-lg: 0 20px 40px rgba(30, 36, 48, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-text); margin-bottom: 1rem; }
p { color: var(--color-text-light); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--color-accent); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-light { background-color: var(--color-white); }
.section-gray { background-color: var(--color-bg); }
.section-accent { background-color: var(--color-accent-light); }
.text-center { text-align: center; }

.h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
.h2 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); }
.h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.h4 { font-size: 1.25rem; }
.subtitle { font-size: 1.125rem; color: var(--color-text-light); max-width: 650px; margin: 0 auto 4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border-radius: var(--radius-sm); font-weight: 500; border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-body); font-size: 1rem; text-align: center; }
.btn-primary { background-color: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-white); }
.btn-outline { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-text); transform: translateY(-2px); }
.btn-outline-dark { background-color: transparent; color: var(--color-text); border: 2px solid var(--color-text); }
.btn-outline-dark:hover { background-color: var(--color-text); color: var(--color-white); transform: translateY(-2px); }

.card { background: var(--color-white); border-radius: var(--radius-md); padding: 2.5rem 2rem; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.fade-in-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* Navigation */
.navbar { position: absolute; top: 0; left: 0; right: 0; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: var(--transition); background: var(--color-white); box-shadow: var(--shadow-sm); }
.navbar.scrolled { position: fixed; animation: slideDown 0.3s ease; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 35px; width: auto; max-width: 100%; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { opacity: 0.8; color: var(--color-accent); }
.nav-contact-info { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--color-text-light); text-align: right; border-left: 1px solid var(--color-border); padding-left: 1.5rem; margin-left: 0.5rem; line-height: 1.4; font-family: var(--font-body); }
.navbar .btn-nav { background: var(--color-accent); color: var(--color-white); border: none; padding: 0.75rem 1.5rem; }

/* Hero Section */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; z-index: -2; transition: transform 10s ease-out; }
.hero.loaded .hero-bg { transform: scale(1.05); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 71, 143, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%); z-index: -1; }
.hero-content { max-width: 1000px; margin: 0 auto; text-align: center; color: var(--color-white); opacity: 0; transform: translateY(20px); animation: fadeUp 1s ease forwards 0.3s; display: flex; flex-direction: column; align-items: center; }
.hero-content h1 { color: var(--color-white); margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; }
@media (min-width: 768px) { .hero-content h1 { white-space: nowrap; } }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 650px; margin: 0 auto 2.5rem auto; text-align: center; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Trust Badges - overlaps hero */
.trust-badges-wrapper { transform: translateY(-50%); position: relative; z-index: 10; padding: 0 5%; }
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; background: var(--color-white); padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 1100px; margin: 0 auto; }
.trust-badge { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.trust-badge-icon { width: 48px; height: 48px; background: var(--color-accent-light); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.trust-badge-text { font-weight: 600; font-size: 0.95rem; color: var(--color-text); line-height: 1.3; margin: 0; }

/* Custom Grids */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.why-card { text-align: center; }
.why-card .h4 { font-weight: 700; transition: color 0.3s ease; margin-bottom: 1rem; }
.why-card p { transition: color 0.3s ease; }
.why-card:hover { background: var(--color-accent); }
.why-card:hover .h4, .why-card:hover p { color: var(--color-white); }

.conditions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.condition-card { background: var(--color-white); border: 1px solid rgba(30, 36, 48, 0.05); border-radius: var(--radius-sm); padding: 1.5rem 1rem; text-align: center; font-weight: 500; transition: var(--transition); cursor: pointer; color: var(--color-text); box-shadow: var(--shadow-sm); }
.condition-card:hover { background: var(--color-accent-light); color: var(--color-accent); transform: translateY(-3px); border-color: var(--color-accent); }

.treatments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.treatment-card { border-radius: var(--radius-md); overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-sm); transition: var(--transition); }
.treatment-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.treatment-card img { width: 100%; height: 260px; object-fit: cover; }
.treatment-content { padding: 2rem; }
.treatment-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.team-card { background: var(--color-white); border-radius: var(--radius-md); padding: 2.5rem 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin-bottom: 1.5rem; box-shadow: var(--shadow-md); border: 4px solid var(--color-white); }
.team-role { color: var(--color-accent); font-weight: 500; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.5px;text-transform: uppercase;}

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.review-card { background: var(--color-bg); padding: 2.5rem; border-radius: var(--radius-md); position: relative; border: 1px solid rgba(0,0,0,0.03); }
.review-card::before { content: '\201C'; font-family: var(--font-heading); font-size: 6rem; color: var(--color-accent-light); position: absolute; top: -10px; left: 20px; z-index: 0; line-height: 1; opacity: 0.7;}
.review-content { position: relative; z-index: 1; }
.review-text { font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; color: var(--color-text-light); }
.review-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 48px; height: 48px; background: var(--color-accent); color: var(--color-white); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; font-size: 1.1rem; }
.author-info h4 { margin: 0; font-size: 1rem; font-family: var(--font-body); }

/* Final CTA & Insurance */
.insurance-marquee-wrapper { width: 100%; overflow: hidden; margin-bottom: 2rem; }
.insurance-grid { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 4rem; opacity: 0.7; width: max-content; animation: scroll-left 30s linear infinite; }
.insurance-grid:hover { animation-play-state: paused; opacity: 1; }
.insurance-logo { flex-shrink: 0; font-size: 1.5rem; font-weight: 700; color: var(--color-text-light); font-family: var(--font-heading); white-space: nowrap; transition: opacity 0.3s ease; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 2rem)); } }
.cta-banner { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 4rem; text-align: center; margin-top: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.cta-banner h2 { color: var(--color-primary-dark); margin-bottom: 1.5rem; }
.contact-layout { display: flex; gap: 4rem; align-items: flex-start; }
.locations-column { flex: 1; display: flex; flex-direction: column; gap: 2rem; }
.location-card { background: var(--color-bg-white); padding: 2rem 2.5rem; border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); }
.location-card h3 { margin-bottom: 0.5rem; color: var(--color-primary-dark); font-size: 1.4rem;}
.location-address { font-size: 1.1rem; line-height: 1.6; color: var(--color-text); }
.form-column { flex: 1; width: 100%; }
.contact-form-wrapper { background: var(--color-bg-white); padding: 3rem; border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); }

@media (max-width: 900px) {
    .contact-layout { flex-direction: column; gap: 3rem; }
    .locations-column, .form-column { width: 100%; }
}

.contact-form { width: 100%; text-align: left; }
.form-row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-row .form-group { margin-bottom: 0; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-light); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 1rem 1.25rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; color: var(--color-text); transition: all 0.3s ease; }
.form-control:focus { background: #ffffff; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.1); outline: none; }
textarea.form-control { resize: vertical; min-height: 120px; }


@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Reviews Carousel */
.reviews-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.reviews-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.reviews-track .review-card {
  flex: 0 0 calc(50% - 1rem); /* 2 reviews at a time with gap */
  margin: 0.5rem;
  box-sizing: border-box;
}
.carousel-btn {
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 1.25rem;
  font-weight: bold;
}
.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .reviews-track .review-card {
    flex: 0 0 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 900px) {
  .trust-badges { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
  .trust-badges-wrapper { transform: translateY(-20px); }
  .navbar { justify-content: center; }
  .nav-links { display: none; }
  .treatments-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .section { padding: 4rem 0; }
}
