/* ===================================================
   ENDOROOT DENTAL CLINIC – Premium Stylesheet
   Color Theme: Dark Ruby / Burgundy
   =================================================== */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --ruby: #8B1A2E;
  --ruby-dark: #5E0F1E;
  --ruby-light: #B22245;
  --ruby-glow: rgba(139, 26, 46, 0.25);
  --ruby-subtle: rgba(139, 26, 46, 0.08);
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #FAF6EF;
  --off-white: #F5EFE8;
  --dark: #1A0A0E;
  --dark-mid: #2C1018;
  --dark-card: #261018;
  --text-primary: #1A0A0E;
  --text-body: #4A3040;
  --text-muted: #7A6070;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-light-muted: rgba(255, 255, 255, 0.65);
  --border: rgba(139, 26, 46, 0.15);
  --border-dark: rgba(255, 255, 255, 0.1);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(26, 10, 14, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 10, 14, 0.14);
  --shadow-lg: 0 20px 60px rgba(26, 10, 14, 0.22);
  --shadow-ruby: 0 8px 32px rgba(139, 26, 46, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
  box-shadow: var(--shadow-ruby);
}

.btn-primary:hover {
  background: var(--ruby-dark);
  border-color: var(--ruby-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 26, 46, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.48);
}

.btn-lg {
  padding: 16px 42px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Section shared styles */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruby);
  padding: 6px 18px;
  background: var(--ruby-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.section-label.light {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.25);
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--ruby);
}

.section-title.light {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-subtitle {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 22px 0;
}

.navbar.scrolled {
  background: rgba(26, 10, 14, 0.97);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(26, 10, 14, 0.88) 0%,
      rgba(94, 15, 30, 0.72) 50%,
      rgba(26, 10, 14, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 8px 20px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-xl);
  background: rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s 0.15s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.8;
  animation: fadeInDown 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
  animation: fadeInDown 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeInDown 0.8s 0.6s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.stat:first-child {
  padding-left: 0;
}

.stat-num {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  padding: 120px 0;
  background: var(--cream);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-main:hover img {
  transform: scale(1.04);
}

.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
}

.badge-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--ruby);
  box-shadow: var(--shadow-ruby);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid var(--cream);
}

.badge-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.badge-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.about-desc {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 16.5px;
}

.about-features {
  list-style: none;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-body);
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ruby);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services {
  padding: 120px 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ruby);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ruby);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* .service-icon styles moved to animation section (SVG icons) */

.service-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================
   WHY CHOOSE US
   ===================================================== */
.why-us {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(139, 26, 46, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-desc {
  color: var(--text-light-muted);
  font-size: 16.5px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pillar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.pillar-num {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ruby);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
  text-shadow: 0 0 20px rgba(139, 26, 46, 0.5);
}

.pillar-info h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pillar-info p {
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.7;
}

.why-us-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.why-us-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.why-us-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}

/* ── Masonry gallery (8 images) ── */
.gallery-masonry {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 300px 260px 260px;
  gap: 16px;
}

/* Tall left tile spans rows 1–2 */
.gallery-tall {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Explicit placement for remaining 7 items */
.gallery-masonry .gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.gallery-masonry .gallery-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.gallery-masonry .gallery-item:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

.gallery-masonry .gallery-item:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.gallery-masonry .gallery-item:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}

.gallery-masonry .gallery-item:nth-child(7) {
  grid-column: 3;
  grid-row: 3;
}

.gallery-masonry .gallery-item:nth-child(8) {
  grid-column: 1 / 3;
  grid-row: 4;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(to top, rgba(26, 10, 14, 0.88), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: 120px 0;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card.featured {
  background: var(--ruby);
  border-color: transparent;
  box-shadow: var(--shadow-ruby);
  transform: translateY(-12px);
}

.testimonial-card.featured:hover {
  transform: translateY(-16px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-card.featured .testimonial-stars {
  color: var(--gold-light);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-card.featured .testimonial-text {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ruby-subtle);
  border: 2px solid var(--ruby);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ruby);
  flex-shrink: 0;
}

.testimonial-card.featured .author-avatar {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-card.featured .author-name {
  color: #fff;
}

.author-location {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-card.featured .author-location {
  color: rgba(255, 255, 255, 0.65);
}

/* =====================================================
   APPOINTMENT – WhatsApp CTA
   ===================================================== */
.appointment {
  padding: 120px 0;
  background: var(--dark-mid);
  position: relative;
  overflow: hidden;
}

.appointment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(139, 26, 46, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.appointment-cta {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.appt-cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
  animation: waPulse 3s ease infinite;
  margin-bottom: 8px;
}

.appt-cta-icon svg {
  width: 46px;
  height: 46px;
  color: #fff;
}

.appt-cta-desc {
  color: var(--text-light-muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 540px;
}

.appt-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--text-light-muted);
  margin-top: 4px;
}

.appt-meta-dot {
  color: var(--ruby-light);
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Booking Button Box ──────────────────────────── */
.appt-btn-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(37, 211, 102, 0.08);
  border: 2px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.appt-btn-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.appt-btn-box:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.25);
}

.appt-btn-box:hover::before {
  opacity: 1;
}

.appt-btn-box-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.appt-btn-box:hover .appt-btn-box-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.appt-btn-box-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.appt-btn-box-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}

.appt-btn-box-title {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.appt-btn-box-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.appt-btn-box-arrow {
  font-size: 1.6rem;
  color: #25D366;
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.appt-btn-box:hover .appt-btn-box-arrow {
  transform: translate(3px, -3px);
}


/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: stretch; 
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--ruby);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ruby-subtle);
  border-radius: var(--radius-sm);
}

.contact-card h4 {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ruby);
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--ruby);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%; 
}

.contact-map iframe {
  width: 100%;
  height: 100%; 
  min-height: 400px; 
  border: none;
  display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow var(--transition);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Instagram – brand gradient */
.social-btn--insta:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(214, 36, 159, 0.45);
}

/* WhatsApp – green */
.social-btn--wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Email – ruby */
.social-btn--mail:hover {
  background: var(--ruby);
  border-color: var(--ruby);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 26, 46, 0.45);
}

.footer-links h5,
.footer-contact h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 14px;
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 14px;
  color: var(--text-light-muted);
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--text-light-muted);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.ayrasoft-credit {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.ayrasoft-credit:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: waPulse 3s ease infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}

/* =====================================================
   HERO PARTICLES
   ===================================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.35);
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 12%;
  animation-duration: 14s;
  animation-delay: 0s;
  bottom: -10px;
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 28%;
  animation-duration: 18s;
  animation-delay: 2s;
  bottom: -10px;
  background: rgba(139, 26, 46, 0.4);
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  left: 47%;
  animation-duration: 12s;
  animation-delay: 4s;
  bottom: -10px;
}

.particle:nth-child(4) {
  width: 3px;
  height: 3px;
  left: 65%;
  animation-duration: 20s;
  animation-delay: 1s;
  bottom: -10px;
}

.particle:nth-child(5) {
  width: 5px;
  height: 5px;
  left: 78%;
  animation-duration: 16s;
  animation-delay: 3.5s;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.25);
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 91%;
  animation-duration: 11s;
  animation-delay: 0.5s;
  bottom: -10px;
  background: rgba(139, 26, 46, 0.3);
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-110vh) rotate(720deg);
    opacity: 0;
  }
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */

/* --- Base reveal states --- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92) translateY(24px);
}

/* --- Visible states --- */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* --- Stagger via data-delay (applied by JS) --- */
.service-card.visible {
  transition-delay: var(--stagger, 0ms);
}

.testimonial-card.visible {
  transition-delay: var(--stagger, 0ms);
}

/* =====================================================
   SERVICE CARD – SVG ICON UPGRADE
   ===================================================== */
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--ruby-subtle);
  border: 1.5px solid var(--border);
  color: var(--ruby);
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: var(--ruby);
  border-color: var(--ruby);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 32px rgba(139, 26, 46, 0.35);
}

.service-card:hover .service-icon svg {
  transform: scale(1.12);
}

/* Shimmer sweep on hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.service-card:hover::after {
  left: 160%;
}

/* =====================================================
   SECTION HEADER – ANIMATED UNDERLINE
   ===================================================== */
.section-title {
  position: relative;
  display: inline-block;
}

/* =====================================================
   ABOUT – IMAGE FLOAT
   ===================================================== */
.about-img-main img {
  animation: subtleFloat 7s ease-in-out infinite;
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-img-main:hover img {
  animation-play-state: paused;
}

/* =====================================================
   PILLAR NUMBER – GLOW PULSE
   ===================================================== */
.pillar-num {
  animation: numGlow 3s ease-in-out infinite alternate;
}

@keyframes numGlow {
  from {
    text-shadow: 0 0 12px rgba(139, 26, 46, 0.35);
  }

  to {
    text-shadow: 0 0 28px rgba(139, 26, 46, 0.7), 0 0 60px rgba(139, 26, 46, 0.25);
  }
}

/* =====================================================
   GALLERY – SCALE-UP ON REVEAL
   ===================================================== */
.gallery-item {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.gallery-item:hover {
  box-shadow: 0 24px 60px rgba(26, 10, 14, 0.28);
}

/* =====================================================
   TESTIMONIAL – FEATURED CARD PULSE BORDER
   ===================================================== */
.testimonial-card.featured {
  animation: featuredPulse 4s ease-in-out infinite;
}

@keyframes featuredPulse {

  0%,
  100% {
    box-shadow: var(--shadow-ruby);
  }

  50% {
    box-shadow: 0 12px 48px rgba(139, 26, 46, 0.55), 0 0 0 6px rgba(139, 26, 46, 0.12);
  }
}

/* =====================================================
   WHY-US – AURORA BACKGROUND
   ===================================================== */
.why-us::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(139, 26, 46, 0.15) 0%, transparent 55%);
  pointer-events: none;
  animation: auroraShift 10s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from {
    transform: scale(1) translateY(0);
    opacity: 0.6;
  }

  to {
    transform: scale(1.25) translateY(20px);
    opacity: 1;
  }
}

/* =====================================================
   APPOINTMENT – FLOATING GLOW RING
   ===================================================== */
.appt-cta-icon {
  position: relative;
}

.appt-cta-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(37, 211, 102, 0.2);
  animation: ringExpand 3s ease-out infinite;
}

.appt-cta-icon::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.1);
  animation: ringExpand 3s 0.8s ease-out infinite;
}

@keyframes ringExpand {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* =====================================================
   CONTACT CARD – SLIDE-IN ICON
   ===================================================== */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ruby);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover::before {
  transform: scaleY(1);
}

/* =====================================================
   BUTTON – RIPPLE EFFECT
   ===================================================== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* =====================================================
   NAVBAR – ANIMATED LOGO SHIMMER
   ===================================================== */
.brand-main {
  background: linear-gradient(90deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShimmer 5s linear infinite;
}

@keyframes logoShimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* =====================================================
   SOCIAL ICON – SPIN HOVER
   ===================================================== */
.social-btn {
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-btn:hover {
  transform: translateY(-4px) rotate(15deg);
}

/* =====================================================
   KEYFRAMES SHARED
   ===================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .why-us-inner,
  .appointment-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    max-width: 560px;
    margin: 0 auto;
  }

  .why-us-image {
    max-width: 560px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100svh;
    background: rgba(26, 10, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    padding: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }

  .gallery-tall,
  .gallery-masonry .gallery-item:nth-child(2),
  .gallery-masonry .gallery-item:nth-child(3),
  .gallery-masonry .gallery-item:nth-child(4),
  .gallery-masonry .gallery-item:nth-child(5),
  .gallery-masonry .gallery-item:nth-child(6),
  .gallery-masonry .gallery-item:nth-child(7),
  .gallery-masonry .gallery-item:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item img {
    height: 240px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .about-img-badge {
    bottom: -16px;
    right: 8px;
  }

  .badge-circle {
    width: 100px;
    height: 100px;
  }

  .badge-num {
    font-size: 1.6rem;
  }
}

/* --- Doctor Profile Caption --- */
.doctor-caption {
  margin-top: 20px;
  text-align: center;
  padding-bottom: 12px;
}

.doctor-name {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.doctor-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruby);
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

