:root {
  --primary: #0D6EFD;
  --primary-dark: #114A9F;
  --primary-light: #EAF5FF;
  --white: #FFFFFF;
  --gray: #F8F9FA;
  --text: #475569;
  --text-dark: #1E293B;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img { height: 40px; width: auto; }

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-btn:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-btn::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,74,159,0.85) 0%, rgba(13,110,253,0.75) 100%);
  z-index: 1;
}

.hero-content { max-width: 700px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-blue { background: var(--primary); color: var(--white); }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); }

/* Sections */
.section { padding: 80px 20px; }

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 550px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1rem;
}

.section-light { background: var(--gray); }

/* Grid */
.grid-3, .grid-4 {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  transition: background 0.3s, color 0.3s;
}

.card:hover .card-icon { background: var(--primary); color: var(--white); }

.card h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text); }

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

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
  text-align: left;
}

.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.service-card .icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.service-card p { font-size: 0.85rem; color: var(--text); }

/* Testimonial */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.stars { color: #facc15; font-size: 1.2rem; margin-bottom: 16px; }

.testimonial-card blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-dark);
}

/* Stats */
.stats {
  background: var(--primary);
  padding: 60px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 { font-size: 2rem; font-weight: 700; color: var(--white); }
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 20px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; }

/* Emergency Banner */
.emergency {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 40px 20px;
  text-align: center;
  color: var(--white);
}

.emergency h3 { font-size: 1.1rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.emergency a.phone { font-size: 2rem; font-weight: 700; color: var(--white); text-decoration: none; display: block; margin-bottom: 8px; }
.emergency a.phone:hover { opacity: 0.9; }
.emergency p { font-size: 0.9rem; opacity: 0.85; }

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

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

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

.contact-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text); text-decoration: none; display: block; }
.contact-item a:hover { color: var(--primary); }

/* Form */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

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

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

/* Map */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

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

/* Hours */
.hours-card {
  background: var(--primary-light);
  border-radius: 16px;
  padding: 28px;
}

.hours-card h4 { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 12px; }
.hours-card p { font-size: 0.9rem; color: var(--text); padding: 6px 0; border-bottom: 1px solid rgba(13,110,253,0.1); }
.hours-card p:last-child { border-bottom: none; }

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

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Before/After comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.comparison-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-images {
  display: block;
}

.comparison-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.comparison-label {
  display: flex;
  justify-content: center;
  gap: 0;
}

.comparison-label span {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-before { background: var(--primary); color: var(--white); }
.label-after { background: var(--primary-dark); color: var(--white); }

.comparison-card .title {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

/* About page */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.mv-card.mission { background: var(--primary-light); }
.mv-card.vision { background: var(--gray); border: 1px solid #e2e8f0; }

.mv-card .icon { font-size: 2rem; margin-bottom: 12px; }
.mv-card.mission .icon { color: var(--primary); }
.mv-card.vision .icon { color: var(--primary-dark); }

.mv-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.mv-card p { font-size: 0.9rem; color: var(--text); line-height: 1.7; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer p, .footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer a:hover { color: var(--white); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo img { height: 36px; }
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: var(--white); }

.footer .social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer .social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: background 0.3s;
  margin-bottom: 0;
}

.footer .social a:hover { background: rgba(255,255,255,0.2); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
  text-decoration: none;
  animation: pulse-shadow 2s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); background: #1DA851; }

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  border: none;
  cursor: pointer;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a { font-size: 1rem; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item h3 { font-size: 1.5rem; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 16px; }
}

@media (max-width: 480px) {
  .nav-container { height: 60px; }
  .nav-logo img { height: 32px; }
  .nav-logo span { font-size: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .emergency a.phone { font-size: 1.5rem; }
}
