@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Roboto:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ── SCROLL FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── ACCESSIBILITY ── */

/* Skip to main content for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #2d342b;
  color: white;
  padding: 10px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid #5f6e4c;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect reduced motion preference */


/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d342b;
  color: rgba(255,255,255,0.9);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9998;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0s linear 0.4s;
}

#cookie-banner.visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.4s ease, visibility 0s;
}

#cookie-banner p {
  margin: 0;
  flex: 1;
}

#cookie-banner a {
  color: #b8c2a4;
  text-decoration: underline;
}

.cookie-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #5f6e4c;
  color: white;
}

.cookie-btn-accept:hover {
  background: #4a5639;
}

.cookie-btn-decline {
  background: #e8ede0;
  color: #2d342b;
  margin-right: 8px;
}

.cookie-btn-decline:hover {
  background: #ffffff;
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
  .cookie-btn-decline { margin-right: 0; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  visibility: hidden;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: #5f6e4c;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(167,177,147,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 500;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #2d342b;
}

@media (max-width: 480px) {
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ── Consent-gated third-party embeds (Google Maps) ─────────────────────── */
.map-embed {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.embed-placeholder {
  background: #f4f6f1;
  border: 1px dashed #c7d1b8;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.embed-placeholder i {
  font-size: 2rem;
  color: #5f6e4c;
  margin-bottom: 6px;
}

.embed-placeholder p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 380px;
}

.embed-placeholder strong { color: #2d342b; }

.embed-consent-btn {
  margin-top: 10px;
  background: #5f6e4c;
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}

.embed-consent-btn:hover,
.embed-consent-btn:focus-visible { background: #2d342b; }

.embed-placeholder .embed-fallback {
  font-size: 0.8rem;
  color: #6e6e6e;
  margin-top: 4px;
}

.embed-placeholder .embed-fallback a { color: #4a5639; }

@media (max-width: 600px) {
  .embed-placeholder { min-height: 260px; padding: 26px 18px; }
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
