:root {
  --brand: #0ea5a3;
  --brand-600: #0b8b89;
  --bg: #0b1220;
  --surface: #0f172a;
  --muted: #a5b4cf;
  --text: #e5ecff;
  --card: #0f172a;
  --card-border: #23314d;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.logo img { height: 28px; display: block; }

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a { color: var(--text); text-decoration: none; opacity: 0.9; }
.site-nav a:hover { color: var(--brand); }
.site-nav a { transition: color 160ms ease, opacity 160ms ease; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 2px; width: 0; background: var(--brand); transition: width 180ms ease; }
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--brand); opacity: 1; }
.site-nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--card-border); color: var(--text); padding: 8px 10px; border-radius: 8px; }

/* Hero */
.hero { 
  position: relative; padding: 80px 0 100px; min-height: 80vh; 
  background:linear-gradient(rgba(5, 10, 20, 0.60), rgba(5, 10, 20, 0.60)), url("imgs/office_and_procedures/office_1.jpeg") center/cover no-repeat; background-attachment: fixed; border-bottom: 1px solid var(--card-border); 
}

.hero .container {
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
  padding: 48px 32px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
body.loaded .hero .container { opacity: 1; transform: none; }

.hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin: 0 0 12px; color: #e7eefb; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

.hero p { margin: 0 0 24px; color: #f3f6fd; max-width: 720px; }

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

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5a3 0%, #34c3b5 50%, #4fd1c5 100%);
  background-size: 160% 160%;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding-inline: 20px;
  box-shadow: 0 6px 14px rgba(14, 165, 163, 0.18);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 20px rgba(43, 141, 139, 0.24);
  transform: translateY(-1px);
}
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(52,195,181,0.35), 0 8px 20px rgba(14,165,163,0.28); }
.btn .icon { margin-left: 8px; transition: transform 160ms ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }

.btn-secondary { 
  color: var(--text);
  border: 1px solid transparent; 
  border-radius: 999px; 
  background: 
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(14,165,163,0.6), rgba(79,209,197,0.3)) border-box;
  padding-inline: 20px;
}
.btn-secondary:hover { 
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(11,139,137,0.9), rgba(52,195,181,0.7)) border-box;
  box-shadow: 0 6px 14px rgba(14,165,163,0.16);
  transform: translateY(-1px);
}
.btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(52,195,181,0.25); }

/* Sections */
.section {
  padding: 64px 0;
}
/* Offset for sticky header when jumping to anchors */
/* Use scroll-padding on the scroll container instead of per-section margins to avoid top gaps */

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 24px;
  color: #cfe8ff;
}
.section-lead { margin: 0 0 16px; color: var(--muted); }
.alt { background: #0b1324; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
#about .split { align-items: stretch; }
#dental-services .split, #maxillo-services .split { align-items: stretch; }

.panel { background: rgba(15, 23, 42, 0.8); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px; }

.image-card { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.image-card img { display: block; width: 100%; height: auto; transition: transform 300ms ease; }
.image-card:hover img { transform: scale(1.03); }

/* Desktop: About image matches text panel height */
@media (min-width: 901px) {
  #about .image-card img,
  #dental-services .image-card img,
  #maxillo-services .image-card img { height: 100%; object-fit: cover; }
}

.bullets { color: var(--text); }
.bullets li { margin: 6px 0; }
.bullets.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 16px;
}
.service-item { display: flex; align-items: center; gap: 10px; color: var(--text); background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; }
.service-item i { color: var(--brand); }
.section-actions { margin-top: 8px; }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


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

.card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.address {
  color: var(--muted);
}

.map-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.8);
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Office slider */
.office-slider { margin-top: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px; }
.office-slider .slides { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.office-slider .slides::-webkit-scrollbar { display: none; }
.office-slider .slide { position: relative; scroll-snap-align: start; border-radius: 10px; overflow: hidden; flex: 0 0 100%; }
.office-slider .slide img { width: 100%; height: 280px; object-fit: cover; display: block; }
.office-slider .slide .caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 80%); color: #fff; padding: 12px 10px 10px; font-size: 14px; }
.office-slider .slider-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.office-slider .slider-controls .prev,
.office-slider .slider-controls .next { flex: 0 0 auto; }
.office-slider .slider-controls .dots { flex: 1 1 auto; display: flex; justify-content: center; overflow: hidden; }
.office-slider .slider-controls button { background: transparent; color: var(--text); border: 1px solid var(--card-border); border-radius: 10px; padding: 6px 10px; }
.office-slider .dots { display: flex; gap: 6px; }
.office-slider .dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.25); cursor: pointer; }
.office-slider .dots button.active { background: #fff; }

/* Image modal */
.image-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.image-modal.open { display: flex; }
.image-modal img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.image-modal .close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; font-size: 24px; line-height: 1; padding: 6px 10px; cursor: pointer; }
.image-modal .modal-prev, .image-modal .modal-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; font-size: 28px; line-height: 1; padding: 8px 12px; cursor: pointer; }
.image-modal .modal-prev { left: 16px; }
.image-modal .modal-next { right: 16px; }
.image-modal .modal-caption { position: absolute; left: 0; right: 0; bottom: 14px; color: #fff; text-align: center; font-size: 14px; opacity: 0.9; }
@media (min-width: 900px) {
  .office-slider .slide img { height: 420px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 16px 0 32px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-row .copyright { margin: 0; }
.footer-row .social a { color: #60a5fa; text-decoration: none; }
.footer-row .social a:hover { color: #93c5fd; text-decoration: none; }
.footer-row .social a i { margin-right: 6px; }
@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.testimonials { background: #0b1426; color: #e6f0ff; }
.testimonials .section-title { color: #ffffff; }
.quotes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.quotes blockquote { margin: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px; }
.quotes cite { display: block; margin-top: 8px; opacity: 0.85; }

/* Testimonial slider */
.testimonial-slider { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px; max-width: 920px; margin: 0 auto; }
.testimonial-slider .slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.testimonial-slider .slides::-webkit-scrollbar { display: none; }
.testimonial-slider blockquote { scroll-snap-align: start; margin: 0; background: transparent; border: 0; padding: 8px 8px 16px; }
.testimonial-slider blockquote p { margin: 0 0 8px; max-width: 68ch; }
.testimonial-slider .slider-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.testimonial-slider .slider-controls .prev,
.testimonial-slider .slider-controls .next { flex: 0 0 auto; }
.testimonial-slider .slider-controls .dots { flex: 1 1 auto; display: flex; justify-content: center; overflow: hidden; }
.testimonial-slider .slider-controls button { background: transparent; color: #e6f0ff; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 6px 10px; }
.testimonial-slider .dots { display: flex; gap: 6px; }
.testimonial-slider .dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; }
.testimonial-slider .dots button.active { background: #fff; }

/* Google review link styling */
.testimonial-slider .google-link { 
  color: var(--brand); text-decoration: none; display: block; margin: 0 auto; text-align: center; gap: 6px; font-weight: 600; 
}
.testimonial-slider .google-link:hover { color: var(--brand-600); }
.testimonial-slider .google-link i { color: var(--brand); }
.testimonial-slider .google-link:hover i { color: var(--brand-600); }


.office-and-procedures { background: #0b1426; color: #e6f0ff; }
.office-and-procedures .section-title { color: #ffffff; }

.next,.prev { font-size: 24px; cursor: pointer; }

@media (max-width: 640px) {
  .testimonial-slider .slider-controls button,
  .office-slider .slider-controls button { padding: 4px 8px; }
  .next, .prev { font-size: 18px; }
  .testimonial-slider .dots button,
  .office-slider .dots button { width: 6px; height: 6px; }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.show { opacity: 1; transform: none; }

.contact-list { padding-left: 18px; color: var(--muted); }
.contact-list a { color: var(--brand); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list { list-style: none; padding-left: 0; margin: 0 0 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; color: var(--text); }
.contact-list li i { color: var(--brand); margin-top: 3px; }

/* Disable zoom effects for QR card */
.no-zoom img { transform: none !important; }
.image-card.no-zoom:hover img { transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav.open { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 56px; right: 4%; background: rgba(15, 23, 42, 0.95); padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
  .cards { grid-template-columns: 1fr; }
  .bullets.two-cols { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}

/* QR adjustments */
.image-card.qr { max-width: 280px; margin: 0 auto; text-align: center; }
.image-card.qr img { width: 100%; height: auto; }
.image-card.qr figcaption { color: var(--muted); padding: 8px 10px 12px; font-size: 14px; }


