/* =====================================================
   MAKAKO LODGE — Common CSS (Phase 1)
   Shared across all pages
   ===================================================== */

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

:root {
  --vert:  #1e2b1f;
  --or:    #c8a96e;
  --or2:   #b8943f;
  --creme: #f5f0e8;
  --gris:  #555;
  --blanc: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--vert);
  background: var(--blanc);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== COOKIE BANNER (shared) ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--vert);
  color: var(--creme);
  padding: 1rem 1.5rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform .35s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  line-height: 1.55;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { flex: 1; min-width: 220px; margin: 0; }
#cookie-banner a { color: var(--or); text-decoration: underline; }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-cookie-accept,
.btn-cookie-refuse {
  padding: .55rem 1.2rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: inherit;
}
.btn-cookie-accept {
  background: var(--or);
  color: var(--blanc);
}
.btn-cookie-accept:hover { background: var(--or2); }
.btn-cookie-refuse {
  background: transparent;
  color: var(--creme);
  border: 1px solid rgba(245,240,232,.4);
}
.btn-cookie-refuse:hover { background: rgba(245,240,232,.1); }

/* ===== WHATSAPP FLOAT (shared) ===== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: .7rem;
}
.wa-bubble {
  background: var(--blanc);
  color: var(--vert);
  padding: .8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  font-size: .78rem;
  max-width: 220px;
  animation: wa-in .4s ease-out;
  position: relative;
}
.wa-bubble strong { font-weight: 500; font-size: .82rem; display: block; margin-bottom: .1rem; }
.wa-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 16px;
  border: 6px solid transparent;
  border-left-color: var(--blanc);
}
@keyframes wa-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.wa-btn-float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-btn-float:hover { transform: scale(1.08); }
.wa-btn-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-notif {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ===== FOOTER (shared) ===== */
footer[role="contentinfo"] {
  background: var(--vert);
  color: rgba(245,240,232,.85);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
footer[role="contentinfo"] a { transition: color .2s; }
footer[role="contentinfo"] a:hover { color: var(--or); }
.syj-credit img { border-radius: 3px; }

/* ===== SYJ credit consistency ===== */
.syj-credit {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  letter-spacing: .05em;
  opacity: .85;
  transition: opacity .2s;
}
.syj-credit:hover { opacity: 1; }
.syj-credit strong { font-weight: 500; }
