/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Segoe UI', sans-serif; scroll-behavior: smooth; }

/* Navbar */
header { background: rgba(30,30,47,0.9); padding: 1em 2em; position: fixed; width: 100%; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: white; }
.nav-links { list-style: none; display: flex; gap: 1.5em; }
.nav-links a { color: white; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #facc15; font-weight: bold; }

/* Theme Toggle */
.switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #ccc; border-radius: 34px; transition: 0.4s; }
.slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: 0.4s; border-radius: 50%; }
input:checked + .slider { background: #4b5563; }
input:checked + .slider::before { transform: translateX(24px); }

/* Hero */
#hero {
  background: url('hero.jpg') center/cover no-repeat;
  height: 80vh;
  background-attachment: fixed;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: white; text-align: center; padding: 0 16px;
}
#hero h1 { font-size: 3rem; margin-bottom: 0.5em; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
#hero p { font-size: 1.5rem; margin-bottom: 1em; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
#hero button { padding: 0.75em 1.5em; background: #facc15; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: background 0.3s; }
#hero button:hover { background: #eab308; }

/* Features */
#features { padding: 120px 20px 60px; text-align: center; background: #fafafa; }
.feature-container { display: flex; justify-content: center; gap: 2em; flex-wrap: wrap; margin-top: 2em; }
.feature-card { background: #f3f4f6; padding: 2em; border-radius: 10px; width: 250px; transition: transform 0.3s, background 0.3s; }
.feature-card:hover { transform: translateY(-5px); background: #e5e7eb; }

/* Metrics / Fade-in */
.metrics { display: flex; justify-content: center; gap: 3em; margin-top: 3em; }
.metric { text-align: center; }
.metric .counter { font-size: 2.5rem; font-weight: 800; color: #facc15; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* CTA */
#cta {
  background: linear-gradient(to right, #facc15, #f59e0b);
  color: #111827;
  text-align: center;
  padding: 80px 20px;
  border-radius: 8px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#cta h2 { font-size: 2rem; margin-bottom: .5em; }
#cta p { font-size: 1.2rem; margin-bottom: 1.2em; }
.cta-buttons { display: flex; justify-content: center; gap: 1em; flex-wrap: wrap; }
.cta-btn { padding: 1em 2em; font-weight: bold; text-decoration: none; border-radius: 8px; font-size: 1.1rem; transition: transform .2s, background .3s; display: inline-block; }
.cta-btn:hover { transform: translateY(-3px); }
.cta-btn.whatsapp { background: #25D366; color: white; }
.cta-btn.whatsapp:hover { background: #1ebe5d; }
.cta-btn.call { background: #2563eb; color: white; }
.cta-btn.call:hover { background: #1e40af; }

/* Specials Carousel */
#specials { padding: 80px 20px; text-align: center; background: #fff; }
#specials h2 { font-size: 2rem; }
.specials-subtitle { color: #6b7280; margin-top: .5rem; }
.carousel { position: relative; max-width: 1000px; margin: 30px auto 0; overflow: hidden; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.carousel-track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); text-align: left; font-weight: 600; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; color: #111; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; opacity: .9; }
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 12px; background: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d1d5db; cursor: pointer; }
.dot.active { background: #111827; }

/* Gallery */
#gallery { padding: 80px 20px; text-align: center; background: #fff; }
.gallery-container { display: flex; justify-content: center; gap: 1em; flex-wrap: wrap; margin-top: 2em; }
.gallery-container img { width: 300px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform .3s, box-shadow .3s; cursor: pointer; }
.gallery-container img:hover { transform: scale(1.08); box-shadow: 0 6px 14px rgba(0,0,0,0.3); }

/* Contact */
#contact { background: #f9fafb; padding: 80px 20px; text-align: center; }
.contact-buttons { display: flex; justify-content: center; gap: 1em; margin: 1.5em 0; flex-wrap: wrap; }
.contact-btn { padding: .9em 1.8em; text-decoration: none; border-radius: 30px; font-weight: bold; font-size: 1.1rem; transition: all .3s ease; display: inline-block; }
.contact-btn.whatsapp { background: linear-gradient(45deg, #25D366, #128C7E); color: #fff; box-shadow: 0 4px 10px rgba(37,211,102,.4); }
.contact-btn.whatsapp:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37,211,102,.6); }
.contact-btn.email { background: linear-gradient(45deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 4px 10px rgba(37,99,235,.4); }
.contact-btn.email:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37,99,235,.6); }
#contact-form { max-width: 500px; margin: auto; display: flex; flex-direction: column; gap: 1em; }
#contact-form input, #contact-form textarea { padding: .75em; border: 1px solid #ccc; border-radius: 5px; }
#contact-form button { padding: .9em; border: none; background: #1e40af; color: #fff; cursor: pointer; font-weight: 700; border-radius: 6px; }
#contact-form button:hover { background: #2563eb; }

/* Footer */
footer { background: #111827; color: #d1d5db; text-align: center; padding: 2em; margin-top: 4em; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background: #25D366; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); z-index: 1000; text-decoration: none; }
.whatsapp-float img { width: 35px; height: 35px; }

/* Dark Mode */
body.dark { background: #111827; color: #f9fafb; }
body.dark header { background: rgba(31,41,55,0.9); }
body.dark .nav-links a, body.dark .nav-links a.active { color: #f3f4f6; }
body.dark #features { background: #1f2937; }
body.dark .feature-card { background: #374151; color: #f9fafb; }
body.dark #cta { color: #111827; }
body.dark #specials, body.dark #gallery { background: #0b1220; }
body.dark .carousel-dots { background: #0b1220; }
body.dark .dot { background: #374151; }
body.dark .dot.active { background: #facc15; }
body.dark #contact { background: #1f2937; }
body.dark #contact h2, body.dark #contact input, body.dark #contact textarea { color: #f9fafb; background: #374151; border: 1px solid #4b5563; }
body.dark #contact-form button { background: #4f46e5; }
body.dark #contact-form button:hover { background: #6366f1; }

/* Responsive */
@media (max-width: 900px) {
  .slide img { height: 360px; }
}
@media (max-width: 768px) {
  .nav-links { flex-direction: column; gap: .5em; }
  .feature-container, .metrics, .gallery-container { flex-direction: column; align-items: center; }
  .slide img { height: 260px; }
}
