/* === SHARED NAVBAR & MODAL STYLES === */

/* ── Modal & Legal Overlay ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(44,62,45,0.45);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(44,62,45,0.18);
  animation: modalIn 0.35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(24px) scale(0.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: #6b7c6c;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #f0f0f0; }
.modal-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.6rem; font-weight: 800;
  color: #2c3e2d; margin-bottom: 0.4rem;
}
.modal-sub {
  font-size: 0.95rem; color: #6b7c6c;
  margin-bottom: 1.6rem; line-height: 1.6;
}
.modal-field {
  display: block; width: 100%;
  border: 2px solid rgba(58,125,68,0.15);
  border-radius: 12px; padding: 0.85rem 1rem;
  font-family: 'Nunito', sans-serif; font-size: 0.95rem;
  color: #2c3e2d; background: #fafafa;
  margin-bottom: 0.85rem; outline: none;
  transition: border-color 0.25s, background 0.25s;
  resize: none; box-sizing: border-box;
}
.modal-field:focus { border-color: #3a7d44; background: #fff; }
.modal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.9rem 1.5rem;
  background: #3a7d44; color: #fff;
  border: none; border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 20px rgba(58,125,68,0.22);
  margin-top: 0.4rem;
}
.modal-btn:hover { background: #2f6a38; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(58,125,68,0.3); }

/* GDPR consent checkbox */
.modal-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #6b7c6c;
  margin: 0.1rem 0 0.85rem;
  cursor: pointer;
  line-height: 1.5;
}
.modal-gdpr input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #3a7d44;
  cursor: pointer;
  border-radius: 3px;
}
.modal-gdpr a { color: #3a7d44; text-decoration: underline; text-underline-offset: 2px; }
.modal-gdpr a:hover { color: #2f6a38; }
.modal-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: #3a7d44;
}
.modal-success {
  text-align: center; padding: 1rem 0;
}
.success-icon { font-size: 3rem; margin-bottom: 0.6rem; }

/* nav CTA pill */
.nav-cta {
  background: #3a7d44 !important;
  color: #fff !important;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: #2f6a38 !important; color: #fff !important; }


nav {
  position: fixed; top:0; right:3rem; z-index:100;
  padding: 0.5rem 1.5rem;
  display: flex; align-items: center;
  background: rgba(254,252,247,0.3);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255,107,53,0.1);
  border-left: 2px solid rgba(255,107,53,0.1);
  border-radius: 0 0 0 16px;
  transition: box-shadow 0.3s;
  width: auto;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(58,125,68,0.08); }

.nav-logo { position:fixed; top:0.8rem; left:1.5rem; z-index:101; display:flex; align-items:center; gap:0.75rem; text-decoration:none; transition: opacity 0.4s ease, transform 0.4s ease; }
.nav-logo.hidden { opacity:0; pointer-events:none; transform:translateY(-8px); }
.nav-logo img { height:112px; width:112px; border-radius:50%; object-fit:cover; }
.nav-logo span { display:none; }

.nav-links { display:flex; gap:2rem; list-style:none; align-items:center; }
.nav-links a { text-decoration:none; color:var(--muted); font-size:1.05rem; font-weight:600; transition:color 0.3s; }
.nav-links a:hover { color:var(--green); }

.nav-right { display:flex; align-items:center; gap:0.5rem; margin-left:0.75rem; }
.mobile-menu { display:none; background:none; border:none; cursor:pointer; }

/* ── Language dropdown ────────────────────────────────────────── */
.lang-dropdown { position:relative; }
.lang-trigger { display:flex; align-items:center; gap:5px; background:none; border:1.5px solid rgba(58,125,68,0.2); border-radius:8px; padding:4px 8px; cursor:pointer; color:var(--muted); transition:border-color .2s,background .2s; }
.lang-trigger:hover { border-color:var(--green); background:rgba(58,125,68,0.05); }
.lang-trigger svg:first-child { display:block; }
.lang-chevron { transition:transform .2s; }
.lang-menu.open + .lang-trigger .lang-chevron,
.lang-dropdown:has(.lang-menu.open) .lang-chevron { transform:rotate(180deg); }
.lang-menu { display:none; position:absolute; top:calc(100% + 6px); right:0; background:#fff; border-radius:10px; box-shadow:0 8px 32px rgba(44,62,45,0.15); border:1px solid rgba(58,125,68,0.1); padding:4px; min-width:155px; z-index:200; }
.lang-menu.open { display:block; animation:langMenuIn .18s ease-out; }
@keyframes langMenuIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
.lang-option { display:flex; align-items:center; gap:8px; width:100%; background:none; border:none; padding:8px 10px; border-radius:7px; cursor:pointer; font-family:'Nunito',sans-serif; font-size:0.88rem; font-weight:600; color:var(--text); transition:background .15s; }
.lang-option:hover { background:rgba(58,125,68,0.07); }
.lang-option span:first-of-type { flex:1; text-align:left; }
.lang-check { color:var(--green); font-weight:700; font-size:0.95rem; }

@media (max-width:768px) {
  nav { right:1.2rem; padding:0.5rem 0; background:transparent; border:none; backdrop-filter:none; box-shadow:none; }
  .nav-logo { top:0.4rem; left:0.5rem; }
  .nav-logo img { height:67px; width:67px; }
  .nav-links { display:none; flex-direction:column; position:fixed; top:64px; right:0; background:rgba(254,252,247,0.95); backdrop-filter:blur(20px); border-radius:16px 0 0 16px; padding:1.2rem 1.5rem; gap:1rem; z-index:99; border:1px solid rgba(255,107,53,0.1); }
  .nav-links.show { display:flex; }
  .nav-right { margin-left:0; gap:0.25rem; }
  .mobile-menu { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; }
  .lang-trigger { padding:4px 6px; }
  .lang-trigger svg:first-child { width:18px; height:12px; }
}
