@charset "utf-8";

:root {
  --vega-purple: #662D91;
  --vega-purple-dark: #4a1f6e;
  --vega-purple-light: #f3eef8;
  --vega-orange: #f49548;
  --vega-orange-light: #fdf0e6;
  --vega-slate: #3d3d5c;
  --vega-gray: #6b7280;
  --vega-warm-white: #fefdfb;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); font-weight: 400; color: var(--vega-slate); background: var(--vega-warm-white); line-height: 1.7; }

/* ── Top Bar ── */
.top-bar { background: var(--vega-purple); color: rgba(255,255,255,0.85); font-size: 0.82rem; padding: 0.5rem 0; letter-spacing: 0.02em; }
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover { color: var(--vega-orange); }
.top-bar .bi { font-size: 0.9rem; }

.lang-toggle { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; overflow: hidden; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.lang-toggle button { border: none; background: transparent; color: rgba(255,255,255,0.6); padding: 0.25rem 0.65rem; cursor: pointer; transition: all 0.2s; }
.lang-toggle button.active { background: rgba(255,255,255,0.15); color: #fff; }
.lang-toggle button:hover:not(.active) { color: rgba(255,255,255,0.9); }

/* ── Header ── */
.site-header { background: #fff; padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.logo-img { max-height: 80px; width: auto; max-width: 100%; }
.logo-link { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-size: 1.65rem; color: var(--vega-purple); }
.logo-tagline { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--vega-slate); }
.logo-link:hover .logo-name { color: var(--vega-purple-dark); }
.header-contact { font-size: 0.85rem; color: var(--vega-gray); line-height: 1.8; }
.header-contact a { color: var(--vega-purple); text-decoration: none; font-weight: 500; }
.header-contact a:hover { color: var(--vega-orange); }

/* ── Navbar ── */
.navbar { background: #fff; border-bottom: 3px solid var(--vega-purple); padding: 0; }
.navbar .nav-link { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vega-slate) !important; padding: 1rem 1.25rem !important; transition: color 0.2s; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--vega-purple) !important; border-bottom-color: var(--vega-orange); }
.navbar-toggler { border: 2px solid var(--vega-purple); padding: 0.35rem 0.65rem; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23662D91' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

/* ── Buttons ── */
.btn-cta { background: var(--vega-orange); color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; padding: 0.7rem 1.8rem; border-radius: 6px; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.2s, transform 0.15s; }
.btn-cta:hover { background: #e07f30; color: #fff; transform: translateY(-1px); }
.btn-cta-purple { background: var(--vega-purple); }
.btn-cta-purple:hover { background: var(--vega-purple-dark); }

/* ── Page Header (inner pages) ── */
.page-header { background: linear-gradient(135deg, var(--vega-purple-light) 0%, var(--vega-warm-white) 100%); padding: 3rem 0 2.5rem; text-align: center; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--vega-purple-dark); margin-bottom: 0.5rem; }
.page-header p { font-size: 1rem; color: var(--vega-gray); max-width: 600px; margin: 0 auto; }

/* ── Section Headings ── */
.section-heading { font-family: var(--font-display); font-size: 1.6rem; color: var(--vega-purple-dark); margin-bottom: 0.5rem; }
.section-subheading { color: var(--vega-gray); font-size: 0.95rem; margin-bottom: 2.5rem; }

/* ── Accent Divider ── */
.accent-divider { height: 4px; background: linear-gradient(90deg, var(--vega-purple), var(--vega-orange)); border: none; }

/* ── Hero (homepage) ── */
.hero { background: linear-gradient(135deg, var(--vega-purple-light) 0%, var(--vega-warm-white) 100%); padding: 4rem 0 3.5rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--vega-purple-dark); line-height: 1.25; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--vega-orange); }
.hero p { font-size: 1.05rem; color: var(--vega-gray); max-width: 520px; margin-bottom: 2rem; }

/* ── Services Strip (homepage) ── */
.services-strip { background: #fff; padding: 3rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.service-card { text-align: center; padding: 1.5rem 1rem; border-radius: 12px; transition: background 0.2s, transform 0.2s; }
.service-card:hover { background: var(--vega-purple-light); transform: translateY(-3px); }
.service-card img { height: 64px; width: auto; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vega-slate); margin: 0; }
.service-card a { text-decoration: none; color: inherit; }

/* ── Doctor Cards (homepage) ── */
.doctors-section { padding: 4rem 0; background: var(--vega-warm-white); }
.doctor-card { text-align: center; }
.doctor-card img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 4px solid var(--vega-purple-light); margin-bottom: 1.2rem; transition: border-color 0.2s; }
.doctor-card:hover img { border-color: var(--vega-orange); }
.doctor-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.3rem; }
.doctor-card h3 a { color: var(--vega-slate); text-decoration: none; }
.doctor-card h3 a:hover { color: var(--vega-purple); }
.doctor-card p { font-size: 0.88rem; color: var(--vega-gray); font-weight: 500; }

/* ── Doctor Bio (Meet the Team) ── */
.doctor-bio { padding: 3.5rem 0; }
.doctor-bio.alt-bg { background: var(--vega-purple-light); }
.doctor-bio img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 5px solid var(--vega-purple-light); }
.doctor-bio.alt-bg img { border-color: #fff; }
.doctor-bio h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--vega-purple-dark); margin-bottom: 0.3rem; }
.doctor-bio .specialty { color: var(--vega-orange); font-weight: 600; font-size: 0.9rem; margin-bottom: 1.2rem; }
.doctor-bio p.bio-text { font-size: 0.95rem; color: var(--vega-gray); line-height: 1.85; }

/* ── Testimonials / Reviews ── */
.reviews-section { background: var(--vega-purple); padding: 4rem 0 3rem; }
.testimonial-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 2rem 1.5rem; height: 100%; display: flex; flex-direction: column; }
.testimonial-card blockquote { color: rgba(255,255,255,0.85); font-size: 0.88rem; line-height: 1.75; flex-grow: 1; margin-bottom: 1.2rem; border: none; padding: 0; }
.testimonial-card .attribution { color: var(--vega-orange); font-weight: 600; font-size: 0.85rem; }
.review-cta-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 0.6rem 1.5rem; font-size: 0.85rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.review-cta-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ── Trust Strip ── */
.trust-strip { background: var(--vega-purple); padding: 2rem 0; }
.trust-item { color: #fff; padding: 1rem 0.5rem; }
.trust-item i { font-size: 1.8rem; color: var(--vega-orange); display: block; margin-bottom: 0.5rem; }
.trust-number { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.trust-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }

/* ── Why Choose Us ── */
.why-us-section { padding: 4rem 0; background: var(--vega-warm-white); }
.why-card { background: #fff; border-radius: 12px; padding: 2rem 1.5rem; height: 100%; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.why-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(102,45,145,0.08); }
.why-icon { font-size: 2rem; color: var(--vega-purple); margin-bottom: 1rem; }
.why-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--vega-purple-dark); margin-bottom: 0.6rem; }
.why-card p { font-size: 0.9rem; color: var(--vega-gray); line-height: 1.75; margin: 0; }

/* ── FAQ Section ── */
.faq-section { padding: 4rem 0; background: var(--vega-purple-light); }
.faq-section .accordion-item { border: none; border-radius: 10px !important; margin-bottom: 0.75rem; overflow: hidden; }
.faq-section .accordion-button { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--vega-slate); background: #fff; padding: 1.1rem 1.5rem; }
.faq-section .accordion-button:not(.collapsed) { color: var(--vega-purple); background: #fff; box-shadow: none; }
.faq-section .accordion-button::after { filter: hue-rotate(260deg); }
.faq-section .accordion-body { font-size: 0.92rem; color: var(--vega-gray); line-height: 1.8; padding: 0 1.5rem 1.3rem; }

/* ── Google Rating Badge ── */
.google-rating-badge { font-size: 0.85rem; color: var(--vega-gray); }
.rating-text strong { color: var(--vega-purple); }

/* ── Enhanced Footer ── */
.site-footer { background: var(--vega-purple-dark); color: rgba(255,255,255,0.5); padding: 3rem 0 2rem; font-size: 0.82rem; }
.site-footer h4 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--vega-orange); }
.site-footer p { margin-bottom: 0.3rem; }

/* ── Services Page Content ── */
.services-content { padding: 3rem 0; }
.services-content p { font-size: 0.95rem; color: var(--vega-gray); line-height: 1.85; max-width: 800px; margin: 0 auto 1.5rem; text-align: center; }
.hours-table { max-width: 400px; margin: 0 auto; }
.hours-table h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--vega-purple-dark); margin-bottom: 1rem; text-align: center; }
.hours-table table { width: 100%; font-size: 0.9rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px solid #eee; }
.hours-table td:first-child { font-weight: 600; color: var(--vega-slate); }
.hours-table td:last-child { text-align: right; color: var(--vega-gray); }
.hours-table tr.closed td { color: var(--vega-orange); font-weight: 600; }

/* ── Directions Page ── */
.directions-section { padding: 3rem 0; }
.map-wrapper { border-radius: 12px; overflow: hidden; border: 2px solid #eee; aspect-ratio: 16/10; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }
.directions-info h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--vega-purple-dark); margin-bottom: 0.8rem; }
.directions-info p { font-size: 0.95rem; color: var(--vega-gray); line-height: 1.85; margin-bottom: 1rem; }
.info-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--vega-purple-light); color: var(--vega-purple); font-weight: 600; font-size: 0.85rem; padding: 0.5rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; margin-right: 0.5rem; }

/* ── Gallery Page ── */
.gallery-section { padding: 3rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(102,45,145,0.3) 0%, transparent 50%); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; padding: 2rem; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; z-index: 10000; }
.lightbox-close:hover { color: var(--vega-orange); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem; cursor: pointer; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Bilingual toggle ── */
[data-lang-es] { display: none; }
html[lang="es"] [data-lang-en] { display: none; }
html[lang="es"] [data-lang-es] { display: revert; }

/* ── Fade-in on scroll ── */
.fade-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .header-contact { text-align: center !important; margin-top: 1rem; }
  .logo-container { text-align: center; }
  .logo-link { justify-content: center; }
  .doctor-bio img { width: 180px; height: 180px; }
}
@media (max-width: 767.98px) {
  .top-bar .d-flex { flex-direction: column; gap: 0.3rem; text-align: center; }
  .hero { text-align: center; padding: 2.5rem 0 2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .doctor-card img { width: 160px; height: 160px; }
  .doctor-bio { text-align: center; }
  .doctor-bio img { width: 160px; height: 160px; margin-bottom: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .logo-name { font-size: 1.35rem; }
  .logo-tagline { font-size: 0.72rem; }
  .logo-img { max-height: 70px; }
}
