/* =====================================================
   Loving Nest Home Care — Shared Stylesheet
   shared.css — imported by all pages
   ===================================================== */

:root {
    --green:      #6b9c5e;
    --green-dark: #4a7a3d;
    --green-pale: #eef5eb;
    --green-mid:  #c6ddbf;
    --peach:      #e8835a;
    --peach-pale: #f7bca4;
    --cream:      #faf8f3;
    --warm:       #f5f0e8;
    --charcoal:   #2a2a2a;
    --mid:        #5a5a5a;
    --light:      #9a9a9a;
    --border:     #e4ddd0;
    --black: #000000;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }
  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4rem; height: 80px;
    background: rgba(250,248,243,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo img { height: 200px; object-fit: contain; cursor: pointer; }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
    color: var(--mid); transition: color 0.2s;
    padding-bottom: 4px;
  }
  .nav-links a:hover { color: var(--green); }
  .nav-links a.active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
  }
  .nav-cta {
    background: var(--green) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    border-bottom: none !important;
  }
  .nav-cta:hover { background: var(--green-dark) !important; }
  .nav-cta.active { border-bottom: none !important; }
  /* BUTTONS */
  .btn-primary {
    background: var(--green); color: white;
    padding: 15px 36px; border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
  .btn-outline {
    background: transparent; color: var(--charcoal);
    padding: 14px 32px; border-radius: 50px;
    border: 1.5px solid var(--border);
    font-family: 'Jost', sans-serif;
    font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
    text-decoration: none; cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }
  .btn-outline:hover { border-color: var(--green); color: var(--green); }
  /* SECTION SHARED */
  .section-eyebrow {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--peach); font-weight: 600;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 10px;
  }
  .section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--peach); }
  .section-eyebrow.centered { justify-content: center; }
  .section-eyebrow.centered::before { display: none; }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600; line-height: 1.18; margin-bottom: 1.2rem;
  }
  .section-title em { font-style: italic; color: var(--green); }
  .section-desc { color: var(--mid); font-weight: 300; line-height: 1.8; }
  /* PAGE HERO BANNER (non-home pages) */
  .page-banner {
    background: var(--green);
    padding: 7rem 6rem 3.5rem;
    position: relative; overflow: hidden;
  }
  .page-banner::before {
    content: ''; position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
  }
  .page-banner::after {
    content: ''; position: absolute;
    bottom: -60px; left: 30%;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }
  .page-banner-eyebrow {
    font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--green-mid); font-weight: 600; margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 10px;
  }
  .page-banner-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--green-mid); }
  .page-banner h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600; color: white; line-height: 1.15;
  }
  .page-banner h1 em { font-style: italic; color: var(--green-mid); }
  .page-banner p {
    color: rgba(255,255,255,0.72); font-weight: 300;
    font-size: 17px; margin-top: 1rem; max-width: 560px;
  }
  /* FOOTER */
  footer {
    background: var(--charcoal); color: rgba(255,255,255,0.7);
    padding: 4rem 6rem 2rem;
  }
  .footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
  }
  .footer-brand img { height: 100px; margin-bottom: 1rem; border-radius: 8px; }
  .footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
  .footer-col h4 {
    color: white; font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 0.6rem; }
  .footer-col a {
    color: rgba(255,255,255,0.55); font-size: 13px;
    text-decoration: none; transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--green-mid); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
  }
  .footer-bottom p { font-size: 12px; }
  .social-links { display: flex; gap: 0.8rem; }
  .social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14px;
    color: rgba(255,255,255,0.55); transition: background 0.2s, color 0.2s;
  }
  .social-link:hover { background: var(--green); color: white; }
  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.65s ease both; }
  .fade-up-1 { animation-delay: 0.1s; }
  .fade-up-2 { animation-delay: 0.2s; }
  .fade-up-3 { animation-delay: 0.3s; }
  .fade-up-4 { animation-delay: 0.45s; }
  .fade-up-5 { animation-delay: 0.6s; }

/* ── HAMBURGER MENU ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 200;
  }
  .nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--charcoal); border-radius: 2px;
    transition: all 0.3s ease;
  }
  .nav-mobile {
    display: none;
    position: fixed; top: 80px; left: 0; right: 0;
    background: rgba(250,248,243,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.5rem;
    z-index: 99;
    flex-direction: column; gap: 0;
  }
  .nav-mobile a {
    font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; text-decoration: none;
    color: var(--mid); padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    display: block; transition: color 0.2s;
  }
  .nav-mobile a:last-child { border-bottom: none; margin-top: 0.5rem; }
  .nav-mobile a:hover, .nav-mobile a.active { color: var(--green); }
  .nav-mobile a.nav-cta-mob {
    background: var(--green); color: white !important;
    padding: 12px 24px; border-radius: 50px; border: none;
    text-align: center; margin-top: 1rem;
  }
  /* Prominent peach "Call Us" phone link (desktop + mobile nav) */
  .nav-links .nav-call a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--peach); font-weight: 700; font-size: 14px;
    text-transform: none; letter-spacing: 0.01em; white-space: nowrap;
  }
  .nav-links .nav-call a:hover { color: var(--peach); text-decoration: underline; }
  .nav-mobile a.nav-call-mob { color: var(--peach); font-weight: 700; text-transform: none; }
  .nav-mobile a.nav-call-mob:hover { color: var(--peach); }
  @media (max-width: 640px) {
    .nav-hamburger { display: flex; }
    .nav-mobile.open { display: flex; }
  }

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible {
  transform: translateY(0);
}
#cookie-banner p {
  flex: 1;
  min-width: 200px;
  margin: 0;
}
#cookie-banner a {
  color: var(--green-mid);
  text-decoration: underline;
  cursor: pointer;
}
#cookie-banner a:hover {
  color: white;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--green);
  color: white;
}
.cookie-btn-accept:hover { background: var(--green-dark); }
.cookie-btn-decline {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}

/* Cookie Preferences Modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#cookie-modal.open { display: flex; }
.cookie-modal-box {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.cookie-modal-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.cookie-modal-box p {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-label strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.cookie-toggle-label span {
  font-size: 12px;
  color: var(--light);
}
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--green); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ── Scroll-down cue ──────────────────────────────────────────────────────
   Injected by shared.js on scrollable pages. index.html ships its own tuned
   inline version (positioned to clear its tagline band), whose styles override
   these on that page. */
.scroll-cue {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 50; width: 46px; height: 46px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--green); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, transform .45s ease, background .2s ease;
}
.scroll-cue:hover { background: var(--green-dark); }
.scroll-cue:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }
.scroll-cue__chevron {
  display: block; width: 12px; height: 12px; margin-top: -4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  animation: scrollCueBob 1.6s ease-in-out infinite;
}
.scroll-cue.is-hidden {
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(16px);
}
@keyframes scrollCueBob {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50%      { transform: rotate(45deg) translate(2px, 2px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue__chevron { animation: none; } }
@media (max-width: 640px) { .scroll-cue { width: 42px; height: 42px; bottom: 20px; } }

/* Honeypot field — off-screen and untabbable. Real visitors never see or fill
   it; naive bots do, and the server silently drops those submissions. */
.hp-field {
  position: absolute !important;
  left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
