/* Premium CSS for MA & PE HIJOS S.L. */
:root {
  --primary-color: #1a3b2b; /* Dark Green */
  --secondary-color: #a11f2a; /* Red */
  --accent-color: #f39c12; /* Gold for badges */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.py-5 { padding: 80px 0; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary-color); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--secondary-color); }

/* Navigation */
#navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: var(--transition); }
#navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); padding: 15px 0; box-shadow: var(--shadow); }
#navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 50px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: white; font-weight: 600; transition: var(--transition); font-size: 1rem; }
#navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--secondary-color) !important; }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./assets/hero-bg.jpg') center/cover no-repeat fixed; color: white; text-align: center; }
.hero-content { max-width: 800px; }
.badge { background: var(--accent-color); color: var(--text-dark); padding: 5px 15px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); color: white; margin-bottom: 25px; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* Buttons */
.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--secondary-color); color: white; }
.btn-primary:hover { background: transparent; border-color: white; transform: translateY(-5px); }
.btn-outline { border-color: white; color: white; }
.btn-outline:hover { background: white; color: var(--text-dark); transform: translateY(-5px); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #128c7e; transform: translateY(-5px); }

/* Price Grid */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card { background: white; padding: 40px 30px; border-radius: 20px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); border: 1px solid #eee; }
.price-card:hover { transform: translateY(-10px); border-color: var(--secondary-color); }
.price-card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.price-card .price { font-size: 2.5rem; font-weight: 800; color: var(--secondary-color); margin-bottom: 15px; }
.price-card.highlight { transform: scale(1.05); border: 2px solid var(--primary-color); position: relative; }
.price-card.highlight::before { content: 'Populaire'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 4px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px 30px; border-radius: 15px; text-align: center; transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }
.service-card:hover { background: var(--primary-color); color: white; }
.service-card:hover h3, .service-card:hover i { color: white; }

/* Photo Grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.photo-grid img { border-radius: 10px; cursor: pointer; transition: var(--transition); }
.photo-grid img:hover { transform: scale(1.03); filter: brightness(1.1); }

/* Footer */
footer { background: var(--primary-color); color: white; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 60px; margin-bottom: 25px; }
.contact-details p { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.contact-details i { color: var(--accent-color); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; text-align: center; opacity: 0.7; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* About / Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 400px; object-fit: cover; object-position: right center; }
.about-text p { margin-bottom: 20px; color: var(--text-light); font-size: 1.1rem; }
.check-list { list-style: none; }
.check-list li { margin-bottom: 12px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.check-list i { color: var(--secondary-color); }
.img-fluid { width: 100%; border-radius: 10px; }
.rounded { border-radius: 10px; }
.shadow { box-shadow: var(--shadow); }

/* Reveal Animations */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: white; transition: var(--transition); }
#navbar.scrolled .hamburger span { background: var(--text-dark); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(26, 59, 43, 0.95); padding: 20px; backdrop-filter: blur(10px); }
  .nav-links.active a { color: white !important; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .price-card.highlight { transform: none; }
  .section-title h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
