/* =====================================================
   LM3C Plomberie — Shared Stylesheet
   ===================================================== */

/* Variables */
:root {
  --primary:       #009FD4;
  --primary-dark:  #0080AA;
  --primary-light: #E6F6FC;
  --white:         #FFFFFF;
  --gray-bg:       #F5F5F5;
  --dark:          #1A1A1A;
  --gray:          #6B7280;
  --gray-light:    #E5E7EB;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; font-weight: 300; color: var(--dark); background: var(--white); line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-cream { background: var(--gray-bg); }

/* Typography utilities */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--dark); margin-bottom: 16px; }
.lead { font-size: 1.1rem; color: var(--gray); line-height: 1.7; max-width: 620px; }
.divider { width: 48px; height: 2px; background: var(--primary); margin-bottom: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px; font-family: 'Jost', sans-serif;
  font-weight: 600; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  border: none; min-height: 48px; white-space: nowrap; transition: all 200ms ease;
}
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: rgba(255,255,255,0.88); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.65); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-whatsapp { background: var(--primary); color: var(--white); }
.btn-whatsapp:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-phone { border-radius: 50px; padding: 12px 28px; }
.btn-phone:hover { transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 300ms ease;
}
#hero { scroll-margin-top: 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo-fallback { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--primary); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--dark); padding: 8px 14px; transition: color 200ms; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-cta { flex-shrink: 0; }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; width: 44px; height: 44px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: all 250ms ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--gray-light); background: var(--white); }
.nav-mobile.open { display: flex; }
.nav-mobile a { display: block; padding: 16px 24px; font-weight: 500; color: var(--dark); border-bottom: 1px solid var(--gray-light); transition: color 150ms; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--primary); }

/* Float call button */
.float-call {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 50px;
  background: var(--primary); color: var(--white);
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.975rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,159,212,0.4);
  transition: opacity 300ms ease, transform 300ms ease, box-shadow 200ms ease;
}
.float-call:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(0,159,212,0.5); }
.float-call.hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* Page hero (inner pages) */
.page-hero { background: var(--primary); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 12px; }
.page-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 560px; line-height: 1.6; }

/* Quick contact section */
.quick-contact { background: var(--primary); padding: 72px 0; text-align: center; }
.quick-contact h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 36px; }
.quick-contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.quick-contact-email { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.6); color: rgba(255,255,255,0.8); text-decoration: none; font-family: 'Jost', sans-serif; font-size: 0.975rem; font-weight: 600; min-height: 48px; white-space: nowrap; transition: all 200ms ease; }
.quick-contact-email:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* Contact utilities */
.contact-email-link {
  color: var(--primary); font-weight: 500; font-size: 1rem;
  text-decoration: underline; transition: color 200ms;
  min-height: 44px; display: flex; align-items: center;
}
.contact-email-link:hover { color: var(--primary-dark); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* Form */
.form-card { background: var(--white); border-radius: 12px; padding: 36px 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.form-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-light); border-radius: 8px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem; color: var(--dark);
  background: var(--white); transition: border-color 200ms; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%236B7280' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-submit-btn {
  width: 100%; background: var(--primary); color: var(--white); border: none; border-radius: 8px;
  padding: 15px 24px; font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 200ms ease; min-height: 52px;
}
.form-submit-btn:hover { background: var(--primary-dark); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; padding: 16px 20px; border-radius: 8px; font-weight: 500; margin-top: 16px; }

/* Map */
.map-section { padding: 0 0 80px; }
.map-embed { overflow: hidden; }
.map-embed iframe { width: 100%; height: 400px; border: 0; display: block; }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 48px; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer h4 { font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.925rem; transition: color 200ms; }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: block; color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 10px; transition: color 200ms; }
.footer-contact-item:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.825rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: underline; transition: color 200ms; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* Reviews Carousel */
.reviews-carousel { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.reviews-viewport { flex: 1; overflow: hidden; padding-top: 6px; margin-top: -6px; }
.reviews-track { display: flex; }
.review-card {
  flex: 0 0 auto; box-sizing: border-box;
  background: var(--white); border-radius: 12px; padding: 28px 24px;
  border: 1px solid var(--gray-light); border-top: 3px solid var(--gray-light);
  cursor: pointer;
  transition: box-shadow 200ms ease, border-top-color 200ms ease, transform 200ms ease;
}
.review-card.is-active { border-top-color: var(--primary); box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.review-stars { color: #F59E0B !important; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-text { font-style: italic; color: var(--gray); line-height: 1.7; font-size: 0.95rem; margin-bottom: 14px; }
.review-author { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.reviews-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--gray-light);
  cursor: pointer; font-size: 1.6rem; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms ease; padding: 0;
}
.reviews-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.reviews-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-light); border: none; cursor: pointer; padding: 0;
  transition: background 200ms, transform 200ms;
}
.reviews-dot.active { background: var(--primary); transform: scale(1.3); }
.reviews-footer { text-align: center; }
.reviews-google-link { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.95rem; color: var(--primary); text-decoration: underline; transition: color 200ms; }
.reviews-google-link:hover { color: var(--primary-dark); }
@media (max-width: 768px) {
  .reviews-carousel { gap: 8px; }
  .reviews-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .review-card { padding: 20px 16px; max-width: 85vw; min-height: unset; }
  .review-text { font-size: 0.9rem; line-height: 1.5; }
  .review-stars { font-size: 0.9rem; }
  .review-author { font-size: 0.85rem; }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }

/* Responsive — common */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .quick-contact-actions { flex-direction: column; align-items: stretch; }
  .quick-contact-actions .btn, .quick-contact-actions a { text-align: center; }
  .form-card { padding: 24px 20px; }
  .map-section { padding: 0 0 56px; }
}
@media (min-width: 769px) { .nav-mobile { display: none !important; } }
