/* ─── FERNE SHARED STYLES ───────────────────────────────────────────────────
   Covers nav, footer, and base tokens used across all pages.
   PALETTE: Warm Earth Light (March 2026 retheme)
*/

:root {
  /* ─ Core palette ─ */
  --base:           #F5F0EB;
  --surface:        #EDE6DD;
  --nav-bg:         #E2D9CD;
  --soft-white:     #FAF7F3;
  --primary:        #C4836A;
  --primary-pressed:#A8694F;
  --primary-light:  #E8C4B4;
  --text-dark:      #3D2E25;
  --text-muted:     #7A6E64;
  --muted:          #D4C4B0;
  --muted-light:    #E8E0D6;
  --dark-bg:        #6B5548;

  /* ─ Legacy aliases (until per-page CSS is fully migrated) ─ */
  --teal-deep:   var(--dark-bg);
  --teal:        var(--primary);
  --teal-mid:    var(--primary);
  --teal-bright: var(--primary);
  --teal-pale:   var(--primary-light);
  --teal-ghost:  var(--muted-light);
  --offwhite:    var(--base);
  --cream:       var(--surface);
  --warm-line:   var(--muted);
  --text:        var(--text-dark);
  --text-mid:    var(--text-dark);
  --text-soft:   var(--text-muted);
  --gold:        var(--primary);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Epilogue', sans-serif; background: var(--base); color: var(--text-dark); overflow-x: hidden; }

/* ─── NAV ─── */
#ferne-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--muted);
  backdrop-filter: blur(12px);
  transition: background 0.4s, box-shadow 0.4s;
}

#ferne-nav.hero-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--muted);
}

#ferne-nav.hero-nav.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 1px 8px rgba(61,46,37,0.06);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-decoration: none;
}

.logo span {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  margin-bottom: 4px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-dark); }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-pressed); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark-bg);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 5rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--base);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(245,240,235,0.3);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(245,240,235,0.35);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #ferne-nav { padding: 1.2rem 1.5rem; }
  .nav-link { display: none; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}

.footer-logo span {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  margin-bottom: 4px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ─── NEWSLETTER IN FOOTER ─── */
.footer-newsletter {
  width: 100%;
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245,240,235,0.12);
}
.footer-newsletter-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--base);
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}
.footer-newsletter-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245,240,235,0.45);
  margin: 0 0 1.1rem;
  letter-spacing: 0.02em;
}
.footer-newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.footer-newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(245,240,235,0.2);
  border-radius: 8px;
  background: rgba(245,240,235,0.08);
  color: var(--base);
  font-size: 0.82rem;
  font-family: 'Epilogue', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(245,240,235,0.3);
}
.footer-newsletter-form input[type="email"]:focus {
  border-color: var(--primary);
}
.footer-newsletter-form button {
  padding: 0.55rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'Epilogue', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-newsletter-form button:hover {
  background: var(--primary-pressed);
}
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 600px) {
  .footer-newsletter-form {
    flex-direction: column;
    max-width: 300px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}