/* ============================================================
   DENTAL MODENA — styles.css
   Neomorfismo sofisticado · Tema azul cálido y familiar
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg: #dde8f4;
  --surface: #dde8f4;
  --shadow-dark: #b5c5d9;
  --shadow-light: #ffffff;
  --primary: #1a5fa8;
  --primary-dark: #124182;
  --primary-light: #2e7dd4;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1a2a3a;
  --text-muted: #4a6280;
  --text-light: #7a92a8;
  --white: #ffffff;
  --neo-radius: 20px;
  --neo-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
  --neo-shadow-sm: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
  --neo-inset: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Young Serif', serif;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
address { font-style: normal; }

.section-pad { padding: 100px 0; }

/* ── Reveal Animations ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease calc(var(--delay, 0s)), transform 0.7s ease calc(var(--delay, 0s));
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(26,95,168,0.12), rgba(26,95,168,0.06));
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(26,95,168,0.2);
  margin-bottom: 20px;
}

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

.section-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.15;
}
.section-title em {
  font-style: italic;
  color: var(--primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  background: transparent;
}
#header.scrolled {
  background: rgba(221, 232, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 24px rgba(26,95,168,0.08);
}

.logo-name {
  display: block;
  font-family: 'Young Serif', serif;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1;
}
.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

#header.scrolled .logo-name { color: var(--text); }

/* Nav visible sobre el hero oscuro */
#header:not(.scrolled) .logo-name { color: white; }
#header:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.7); }
#header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.88); }
#header:not(.scrolled) .nav-link:hover { color: white; }
#header:not(.scrolled) .nav-link::after { background: white; }
#header:not(.scrolled) .neo-btn { background: rgba(255,255,255,0.15); box-shadow: none; }
#header:not(.scrolled) .neo-btn svg rect { fill: white; }

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26,95,168,0.35);
  transition: all var(--transition);
}
.btn-primary-nav:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(26,95,168,0.45);
  transform: translateY(-2px);
}

.neo-btn {
  box-shadow: var(--neo-shadow-sm);
  background: var(--surface);
  transition: all var(--transition);
}
.neo-btn:hover {
  box-shadow: var(--neo-inset);
}

/* Mobile menu */
.mobile-menu {
  background: rgba(221, 232, 244, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 32px rgba(26,95,168,0.1);
}
.mobile-nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,95,168,0.08);
  display: block;
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--primary); }
.btn-primary-full {
  display: block;
  text-align: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26,95,168,0.35);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a2a50 0%,
    #0e3d72 30%,
    #1a5fa8 65%,
    #1e3a5f 100%
  );
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 40px 80px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  line-height: 1.05;
  margin-bottom: 28px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #1a2a3a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(245,158,11,0.5);
  transition: all var(--transition);
  animation: heroGlow 2.5s ease-in-out infinite;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.6);
  animation: none;
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}
.hero-stat strong {
  font-family: 'Young Serif', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ── Hero layout con foto doctor ── */
.hero-content {
  max-width: 1200px;
}
.hero-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-text .hero-ctas {
  justify-content: flex-start;
}
.hero-text .hero-stats {
  justify-content: flex-start;
}
.hero-doctor {
  flex-shrink: 0;
  position: relative;
}
.hero-doctor-frame {
  width: 300px;
  height: 380px;
  border-radius: 24px 24px 80px 24px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}
.hero-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-doctor-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .hero-layout { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text .hero-ctas { justify-content: center; }
  .hero-text .hero-stats { justify-content: center; }
  .hero-doctor { display: none; }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 12px 12px 30px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
}
.service-card:hover::before { opacity: 1; }

.service-card--accent::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 1;
}

.service-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--neo-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-title {
  font-family: 'Young Serif', serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all var(--transition);
}
.service-link:hover { gap: 8px; color: var(--primary-dark); }
.service-link--accent { color: var(--accent-dark); }
.service-link--accent:hover { color: var(--accent-dark); }

/* ============================================================
   ABOUT / TEAM SECTION
   ============================================================ */
.about-section {
  background: linear-gradient(135deg, #d4e3f5 0%, #dde8f4 50%, #d0dff0 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .reveal-left, .reveal-right { transform: translateY(40px); }
}

.about-image-frame {
  position: relative;
  border-radius: 30px;
  box-shadow: 16px 16px 40px var(--shadow-dark), -8px -8px 24px var(--shadow-light);
  overflow: visible;
}
.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(26,95,168,0.15);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: white;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(26,95,168,0.4);
}
.about-badge strong {
  font-family: 'Young Serif', serif;
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}
.about-badge span {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 4px;
}

.about-content-col .section-title { text-align: left; }

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--neo-shadow-sm);
}
.value-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--neo-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-item strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}
.value-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(26,95,168,0.35);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,95,168,0.45);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Young Serif', serif;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 30px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
}

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

.testimonial-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,95,168,0.3);
}
.testimonial-name {
  display: block;
  font-weight: 700;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-role {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  background: linear-gradient(180deg, var(--bg) 0%, #d0dff0 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--neo-shadow);
  aspect-ratio: 4/3;
  transition: all var(--transition);
  background: none;
  padding: 0;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 12px 12px 32px var(--shadow-dark), -6px -6px 18px var(--shadow-light);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,42,80,0.85), rgba(10,42,80,0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-zoom {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  max-width: 90vw;
}
.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }

.lightbox-prev,
.lightbox-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 100px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2563af 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245,158,11,0.12);
}

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

.cta-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-title em {
  font-style: italic;
  color: var(--accent);
}
.cta-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #1a2a3a;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
  transition: all var(--transition);
}
.btn-cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.5);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-title {
  font-family: 'Young Serif', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--neo-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-link {
  font-size: 0.97rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
  word-break: break-all;
}
.contact-link:hover { color: var(--primary); }
.contact-address { font-size: 0.97rem; color: var(--text); line-height: 1.6; }
.contact-hours { font-size: 0.97rem; color: var(--text); line-height: 1.6; }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--neo-shadow);
  padding: 40px;
}
.form-title {
  font-family: 'Young Serif', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-label span { color: var(--accent); }
.form-input {
  width: 100%;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Onest', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--neo-inset);
  outline: none;
  transition: box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  box-shadow: inset 5px 5px 12px var(--shadow-dark), inset -5px -5px 12px var(--shadow-light), 0 0 0 2px rgba(26,95,168,0.3);
}
.form-select { cursor: pointer; }
.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
.btn-form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(26,95,168,0.35);
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,95,168,0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0e2540; }
.footer-top { padding: 72px 0 60px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo-name {
  display: block;
  font-family: 'Young Serif', serif;
  font-size: 1.2rem;
  color: white;
}
.footer-logo-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: 'Young Serif', serif;
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
  position: relative;
}
.footer-col-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-flex;
}
.footer-link:hover { color: var(--accent); }

.footer-contact-items { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-contact-item .footer-link { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-contact-item .footer-link:hover { color: var(--accent); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }

.footer-map {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.footer-map iframe { display: block; filter: brightness(0.85) contrast(1.05); }

.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chat-tooltip {
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(26,95,168,0.35);
  white-space: nowrap;
  transform-origin: bottom right;
  animation: tooltipFloat 3s ease-in-out infinite;
  position: relative;
}
.chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes tooltipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(26,95,168,0.45);
  transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(26,95,168,0.55);
}

/* Pulse animation when closed */
.chat-toggle.pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(26,95,168,0.35);
  animation: chatPulse 2s ease-out infinite;
}
.chat-toggle.pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(26,95,168,0.15);
  animation: chatPulse 2s ease-out infinite 0.4s;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat Panel */
.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 16px 16px 40px rgba(26,95,168,0.18), -8px -8px 24px var(--shadow-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  animation: chatSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-panel[hidden] { display: none; }
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}
.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
}
.chat-header-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-header-close:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--shadow-dark) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--shadow-dark); border-radius: 4px; }

.chat-msg {
  max-width: 85%;
  animation: msgAppear 0.25s ease;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg--assistant { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.chat-msg--assistant .chat-bubble {
  background: var(--surface);
  box-shadow: var(--neo-shadow-sm);
  color: var(--text);
  border-radius: 4px 16px 16px 16px;
}
.chat-msg--user .chat-bubble {
  background: var(--primary);
  color: white;
  border-radius: 16px 4px 16px 16px;
}
.chat-bubble a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}
.chat-msg--user .chat-bubble a { color: #fcd34d; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--surface);
  box-shadow: var(--neo-shadow-sm);
  border-radius: 4px 16px 16px 16px;
  width: fit-content;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingDot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(26,95,168,0.08);
}
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Onest', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--neo-inset);
  outline: none;
  transition: box-shadow var(--transition);
}
.chat-input::placeholder { color: var(--text-light); }
.chat-input:focus {
  box-shadow: inset 4px 4px 10px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light), 0 0 0 2px rgba(26,95,168,0.25);
}
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,95,168,0.35);
  transition: all var(--transition);
}
.chat-send:hover { background: var(--primary-dark); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .about-image-col { max-width: 420px; margin: 0 auto; }
  .about-img { height: 380px; }
  .hero-stats { gap: 24px; }
  .hero-stat-divider { height: 32px; }
  .chat-panel { width: 300px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .footer-grid { gap: 32px; }
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
