/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --green: #1A3A2A;
  --green-light: #2D5A40;
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(26,58,42,0.10);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

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

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar.scrolled {
  background: var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 2px;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img { transform: rotate(5deg) scale(1.05); }

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity var(--transition), color var(--transition);
}

.nav-links a:hover { opacity: 1; color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--green) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-light) 60%, #3d7a57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-values span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--green);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS ===== */
section { padding: 6rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== SERVICES ===== */
#services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(26,58,42,0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

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

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.service-tags span {
  background: rgba(26,58,42,0.07);
  color: var(--green);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.btn-service {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-service:hover {
  background: var(--green-light);
  transform: scale(1.02);
}

/* ===== APPROACH ===== */
#approche { background: var(--cream); }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.approach-text { }

.approach-text h3 {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.approach-text p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  background: rgba(201,168,76,0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--green);
  font-size: 1.05rem;
  margin: 0;
}

.approach-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.value-item:hover { transform: translateY(-4px); }

.value-item .val-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.value-item h4 {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===== ABOUT ===== */
#about { background: var(--green); }

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#about .section-title { color: var(--white); }
#about .section-label { color: var(--gold-light); }

.about-text {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.credential {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== CONTACT ===== */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.contact-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item a { color: var(--green-light); font-weight: 600; }
.contact-item a:hover { color: var(--gold); }

.contact-form {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--green);
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green);
}

.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--green);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
}

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

footer .footer-tagline {
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 1rem;
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  font-size: 0.85rem;
}

footer .footer-links a:hover { color: var(--gold-light); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: background var(--transition);
}

.modal-close:hover { background: #e8e0d0; }

.modal-header { margin-bottom: 1.5rem; }

.modal-header .modal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-step { display: none; }
.modal-step.active { display: block; }

.modal-question {
  font-size: 1rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.option-btn {
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-btn:hover, .option-btn.selected {
  border-color: var(--green);
  background: rgba(26,58,42,0.05);
  color: var(--green);
}

.modal-ai-response {
  background: linear-gradient(135deg, var(--cream), #ede6d5);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-ai-response.loading::after {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.modal-cta-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-contact-modal {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
  display: block;
}

.btn-contact-modal:hover { background: var(--green-light); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
  display: block;
}

.btn-whatsapp:hover { background: #20b95a; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 1rem; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
  }
  .nav-toggle { display: flex; z-index: 1001; }

  .approach-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .approach-values { grid-template-columns: 1fr 1fr; }

  section { padding: 4rem 1.5rem; }

  .modal { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .approach-values { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}
