/* ============================================================
   WhiskerSong — shared styles
   Common across all pages: design tokens, reset, base body,
   texture overlay, nav, buttons, footer, scroll indicators,
   and shared animations. Page-specific rules stay inline in
   each page's <style> block (they override anything here).
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --sage: #18b8ac;
  --sage-light: #3ed4c8;
  --sage-dark: #0a9088;
  --cream: #e4f2f0;
  --warm-white: #eef8f6;
  --sand: #cce8e4;
  --terra: #d96e14;
  --terra-light: #eda04a;
  --charcoal: #162624;
  --mid: #3d7570;
  --light-text: #6aadaa;
}

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

/* ── BASE BODY (pages may override background/color) ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  /* clip (not hidden) prevents a horizontal scroll container, which would
     otherwise break the sticky mobile nav below */
  overflow-x: clip;
}

/* ── WOODSY TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(101,72,28,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(10,144,136,0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 85%, rgba(101,72,28,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 5% 90%,  rgba(10,144,136,0.05) 0%, transparent 40%);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.4rem 3.5rem;
  background: rgba(235,125,50,1.0);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 1.4rem 1.4rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--sage-dark); letter-spacing: 0.02em;
}
.nav-logo span { color: var(--terra); font-style: italic; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; flex-wrap: wrap; margin-right: 2rem; }
.nav-links a {
  text-decoration: none; font-size: 1.35rem; font-weight: 700;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: white; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(255,255,255,0.7); }
.nav-links a.active { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: #0a9088; color: white;
  border: none; padding: 0.65rem 1.5rem; border-radius: 2rem;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: #076058; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--terra); color: white;
  padding: 0.9rem 2.2rem; border-radius: 2rem;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: none; letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, #0c4e48 0%, #102e1e 100%);
  color: rgba(255,255,255,0.5);
  padding: 2.2rem 5rem;
  border-top: 1px solid rgba(10,144,136,0.2);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #d8f0ee; margin-bottom: 0.28rem; }
.footer-brand span { color: var(--terra-light); font-style: italic; }
.footer-sub { font-size: 0.875rem; color: rgba(255,255,255,0.36); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { text-decoration: none; font-size: 0.875rem; color: rgba(255,255,255,0.36); transition: color 0.2s; }
.footer-links a:hover { color: var(--sage-light); }
.footer-right { text-align: right; font-size: 0.875rem; color: rgba(255,255,255,0.36); }
.footer-phone { color: var(--terra-light); font-size: 0.92rem; margin-bottom: 0.22rem; }

/* ── SCROLL INDICATORS ── */
.scroll-down, .scroll-up {
  position: fixed; left: 50%; transform: translateX(-50%);
  z-index: 200; cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 2px solid #ff7a00;
  transition: opacity 0.4s ease, transform 0.3s ease, background 0.2s;
}
.scroll-down:hover, .scroll-up:hover {
  background: rgba(255,255,255,0.28);
  transform: translateX(-50%) scale(1.1);
}
.scroll-down { bottom: 1.6rem; animation: bobDown 2s ease-in-out infinite; }
.scroll-up   { top: 5.5rem; animation: bobUp 2s ease-in-out infinite; opacity: 0; pointer-events: none; border-color: #00d4c8; }
.scroll-up.visible  { opacity: 1; pointer-events: auto; }
.scroll-down.hidden { opacity: 0; pointer-events: none; }
@keyframes bobDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}
@keyframes bobUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-5px); }
}

/* ── SHARED ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── MOBILE: shared nav + footer ── */
@media (max-width: 768px) {
  /* Sticky (not fixed) so the nav reserves its own height in normal flow.
     The mobile nav wraps its links onto extra rows and grows taller as the
     screen narrows; fixed positioning let it cover the content below. Sticky
     keeps it pinned on scroll without ever overlapping page content. */
  nav {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    padding: 1rem 1.3rem;
    gap: 0.6rem 1rem;
    justify-content: space-between;
  }
  .nav-logo { font-size: 1rem; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-right: 0;
    gap: 0.6rem 1.1rem;
    justify-content: center;
  }
  .nav-links a { font-size: 1.05rem; }
  .nav-cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

  /* taller wrapped nav would collide with the top-anchored scroll-up chevron */
  .scroll-up { top: auto; bottom: 5.5rem; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
  }
  .footer-right { text-align: left; }
}

@media (max-width: 420px) {
  .nav-links { gap: 0.5rem 0.85rem; }
  .nav-links a { font-size: 0.98rem; }
}
