/* ====================================================
   David Pool Guest Houses — Shared Styles
   ==================================================== */

:root {
  --bg: #0f0e0c;
  --bg-soft: #1a1814;
  --bg-warm: #221f1a;
  --ink: #f4ede0;
  --ink-soft: #b8ad96;
  --ink-muted: #7d7464;
  --gold: #c9a96e;
  --gold-bright: #e0c285;
  --gold-soft: #8a7449;
  --line: #2d2922;
  --line-warm: #3a342a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
nav.scrolled {
  border-bottom-color: var(--line);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.logo-link img {
  height: 48px;
  width: auto;
}
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-links > a {
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links > a:hover { color: var(--gold-bright); }
.nav-links > a.active { color: var(--gold-bright); }
.nav-links > a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.lang-toggle {
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  nav { padding: 1rem 1.25rem; }
  .logo-link img { height: 40px; }
  .logo-text { font-size: 0.85rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .lang-toggle { margin-top: 0.5rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold-soft);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ===== SECTION BASICS ===== */
section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--ink);
}
h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 300;
}
h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

@media (max-width: 720px) {
  section { padding: 4rem 1.25rem; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 320px;
}
.footer-col h5 {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a {
  color: var(--ink-soft);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  max-width: 1300px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 1.25rem 1.5rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

[hidden] { display: none !important; }

/* ===== FLOATING WHATSAPP BUTTON (all pages) ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fabIn 0.6s ease 0.5s backwards;
}
@keyframes fabIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.2);
  color: white;
}
.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}
.fab-whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.5;
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 720px) {
  .fab-whatsapp { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
}
