/* ===================================
   DENTAL MARIA — styles.css
   Moderno · Minimalista · Azul
   =================================== */

/* ── CSS Variables ── */
:root {
  --color-primary:      #1A4B8C;
  --color-primary-dark: #0F2F5A;
  --color-primary-mid:  #2563EB;
  --color-primary-light:#EFF6FF;
  --color-accent:       #3B82F6;
  --color-accent-warm:  #1D4ED8;
  --color-bg:           #F8FAFE;
  --color-surface:      #FFFFFF;
  --color-text:         #0F1C2E;
  --color-muted:        #4B6082;
  --color-border:       #DBEAFE;
  --color-tag:          #BFDBFE;
  --color-tag-text:     #1E40AF;

  --shadow-sm:  0 2px 8px rgba(26,75,140,.08);
  --shadow-md:  0 8px 32px rgba(26,75,140,.12);
  --shadow-lg:  0 20px 60px rgba(26,75,140,.16);
  --shadow-glow:0 0 40px rgba(59,130,246,.25);

  --radius-sm:  0.75rem;
  --radius-md:  1.25rem;
  --radius-lg:  2rem;
  --radius-xl:  3rem;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.section-pad { padding: 6rem 0; }

.container { max-width: 1200px; }

/* ── HEADER ── */
#header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(26,75,140,.12);
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-mid), var(--color-primary));
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37,99,235,.45);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--color-primary);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--color-primary);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* ── BLOB SHAPES ── */
.blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%; transform: translate(0, 0) scale(1); }
  33%  { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; transform: translate(15px, -20px) scale(1.05); }
  66%  { border-radius: 70% 30% 50% 50% / 30% 70% 60% 40%; transform: translate(-10px, 10px) scale(0.97); }
  100% { border-radius: 50% 50% 40% 60% / 70% 30% 50% 50%; transform: translate(8px, -8px) scale(1.03); }
}

/* ── HERO ── */
.hero-section {
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 40%, #BFDBFE 80%, #93C5FD 100%);
  position: relative;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3B82F6 0%, #1D4ED8 100%);
  top: -100px; right: -100px;
  animation-duration: 10s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #93C5FD 0%, #3B82F6 100%);
  bottom: -80px; left: -80px;
  animation-duration: 12s; animation-delay: -3s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #1A4B8C 0%, #0F2F5A 100%);
  top: 40%; left: 30%;
  opacity: 0.15;
  animation-duration: 15s; animation-delay: -6s;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.0;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(40px);
  animation: wordReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.2s);
}

.accent-word { color: var(--color-accent); }

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(26,75,140,0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px; height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.stat-number {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.25rem;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── SECTION HEADERS ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-primary-light);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-bounce), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-light), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-border));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  transition: all var(--transition-bounce);
  position: relative;
}

.service-icon svg { width: 32px; height: 32px; }

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  transform: scale(1.1) rotate(-4deg);
}

.service-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-tag-text);
  background: var(--color-tag);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
}

/* ── ABOUT ── */
.about-section {
  background: linear-gradient(160deg, #F0F7FF 0%, #E8F2FF 100%);
  position: relative;
}

.blob-about {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #BFDBFE 0%, #93C5FD 100%);
  top: 50%; right: -200px;
  transform: translateY(-50%);
  opacity: 0.3;
  animation-duration: 14s;
}

.about-img-grid {
  position: relative;
  height: 480px;
}

.about-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-img-main {
  width: 70%; height: 75%;
  top: 0; left: 0;
  z-index: 2;
}

.about-img-sm1 {
  width: 45%; height: 45%;
  bottom: 0; right: 0;
  z-index: 3;
  border: 4px solid var(--color-surface);
}

.about-img-sm2 {
  width: 38%; height: 38%;
  top: 10%; right: -10px;
  z-index: 1;
  opacity: 0.8;
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  font-weight: 600;
}

.about-features li svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

/* ── DOCTOR CARD ── */
.doctor-card {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  align-items: start;
}

@media (max-width: 900px) {
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-team-img { display: none; }
}

.doctor-img-wrap img,
.doctor-team-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.doctor-info h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.6rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.doctor-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.doctor-bio {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctor-specialties span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-tag-text);
  background: var(--color-tag);
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section .section-tag {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.testimonials-section .section-title { color: #fff; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-bounce), background var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.13);
}

.stars {
  color: #FCD34D;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card footer strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-card footer span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--color-border);
  border: none;
  padding: 0;
}


.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,75,140,0.8) 0%, rgba(26,75,140,0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,20,40,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content img { transform: scale(1); }

.lightbox-caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.1); }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-mid) 50%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
}

.blob-cta {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  opacity: 1;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition-bounce);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-card a:hover { color: var(--color-accent); }

/* ── FOOTER ── */
.footer-section { background: var(--color-primary-dark); color: #fff; }

.footer-map { position: relative; }
.footer-map iframe { display: block; }

.footer-content { border-top: 1px solid rgba(255,255,255,0.1); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
}

.social-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.footer-col ul li svg { flex-shrink: 0; margin-top: 2px; color: var(--color-accent); opacity: 0.7; }

.footer-col ul li a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── CHAT WIDGET ── */
.chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.chat-tooltip {
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipPulse 2.5s ease-in-out infinite;
  transform-origin: bottom right;
}

@keyframes tooltipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-mid), var(--color-primary));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,99,235,.45);
  transition: transform var(--transition-bounce), box-shadow var(--transition);
  position: relative;
  animation: chatPulse 2.5s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,99,235,.45), 0 0 0 0 rgba(59,130,246,.4); }
  50% { box-shadow: 0 6px 24px rgba(37,99,235,.45), 0 0 0 14px rgba(59,130,246,0); }
}

.chat-toggle.open {
  animation: none;
  box-shadow: 0 6px 24px rgba(37,99,235,.45);
}

.chat-toggle:hover { transform: scale(1.1); }

.chat-icon-close { display: none; }
.chat-icon-close.shown { display: flex; }
.chat-icon-open.hidden { display: none; }

.hidden { display: none !important; }

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  max-height: 480px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(10px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 400px) {
  .chat-panel { width: calc(100vw - 2rem); right: -0.75rem; }
}

.chat-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.chat-status-dot {
  width: 8px; height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.msg a { color: var(--color-accent); text-decoration: underline; }

.msg-bot {
  background: var(--color-primary-light);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg-user {
  background: linear-gradient(135deg, var(--color-primary-mid), var(--color-primary));
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.msg-typing {
  background: var(--color-primary-light);
  align-self: flex-start;
  padding: 0.85rem 1rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 14px;
}

.typing-dots span {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  padding: 0.55rem 1rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input-area input:focus { border-color: var(--color-accent); }

#chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-mid), var(--color-primary));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
  flex-shrink: 0;
}

#chat-send:hover { transform: scale(1.1); }
#chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── SCROLL ANIMATIONS ── */
.reveal-section,
.reveal-up,
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-section { transition-delay: var(--delay, 0s); }
.reveal-up { transition-delay: var(--delay, 0s); }

.reveal-card {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE MENU ── */
.mobile-nav-link {
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link::after { display: none; }

/* ── MISC ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

@media (max-width: 640px) {
  .section-pad { padding: 4rem 0; }
  .about-img-grid { height: 320px; }
  .services-grid { grid-template-columns: 1fr; }
}
