/* ============================================================
   Still Heart Psychology — Shared Styles
   ============================================================ */

/* --- Custom Font: Amalfi Coast --- */
@font-face {
  font-family: 'Amalfi';
  src: url('/fonts/Amalfi-Coast.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables (Design System) --- */
:root {
  --background: 39 43% 98%;
  --foreground: 49 18% 35%;
  --card: 0 0% 100%;
  --card-foreground: 49 18% 35%;
  --primary: 49 18% 35%;
  --primary-foreground: 0 0% 100%;
  --secondary: 21 27% 70%;
  --secondary-foreground: 49 18% 35%;
  --muted: 0 0% 98%;
  --muted-foreground: 49 18% 35%;
  --accent: 9 20% 64%;
  --accent-foreground: 0 0% 100%;
  --therapy-rose: 2 15% 61%;
  --therapy-beige: 21 26% 72%;
  --therapy-warm: 17 22% 93%;
  --therapy-sage: 49 18% 35%;
  --therapy-cream: 39 43% 97%;
  --destructive: 0 84.2% 60.2%;
  --border: 21 27% 85%;
  --input: 21 27% 85%;
  --ring: 9 20% 64%;
  --radius: 0.75rem;
}

/* --- Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Font Utilities --- */
.font-amalfi {
  font-family: 'Amalfi', cursive !important;
}

.font-serif {
  font-family: 'Playfair Display', serif !important;
}

.font-body, .font-sans, .font-nunito {
  font-family: 'Nunito', sans-serif !important;
}

/* --- Fade-in Animations (IntersectionObserver) --- */
.fade-in-section {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-visible {
  opacity: 1;
}

/* --- Hero Fade-in --- */
.hero-fade-in {
  animation: heroFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Gradient Shift Animation --- */
.animate-gradient-shift {
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* --- Ken Burns Animation --- */
@keyframes ken-burns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.animate-ken-burns {
  animation: ken-burns 9s ease-in-out infinite alternate;
}

/* --- Fade-in with Transform (Offerings, Pricing) --- */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero fade-in on load --- */
.fade-in-on-load {
  animation: heroFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-fade-in,
  .fade-in-on-load,
  .animate-gradient-shift,
  .animate-ken-burns {
    animation: none;
  }
  .fade-in-section,
  .fade-in-element {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Quote Carousel --- */
.quote-carousel {
  position: relative;
}

.quote-carousel blockquote {
  transition: opacity 0.5s ease;
}

/* --- Form Styles (Contact page) --- */
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  color: #595643;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: #A98786;
  box-shadow: 0 0 0 2px rgba(169, 135, 134, 0.2);
}

.form-select {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  color: #595643;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #A98786;
  box-shadow: 0 0 0 2px rgba(169, 135, 134, 0.2);
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  background: #A98786;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: #8F706F;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  .btn-cta {
    font-size: 0.875rem;
  }
}

/* --- Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(169,135,134,0.2), transparent);
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.nav-fixed:not(.scrolled) {
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

/* Desktop dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 12rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  z-index: 50;
}

.nav-about-group:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #595643;
  transition: background 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: #FAF9F6;
}

.nav-dropdown a.active {
  font-weight: 500;
}

/* Active nav link */
.nav-link-active {
  border-bottom: 1px solid #C6A45E;
  padding-bottom: 0.25rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 57px;
  background: #fff;
  z-index: 40;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

/* Hamburger / close button */
.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: #595643;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.15s;
}

.mobile-menu-btn:hover {
  background: #f9fafb;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .desktop-nav {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Announcement Banner --- */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #A98786;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.announcement-banner .close-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
  flex-shrink: 0;
}

.announcement-banner .close-btn:hover {
  color: #FAF9F6;
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 15px -3px rgba(0,0,0,0.1);
}

.cookie-consent .btn-accept {
  font-size: 0.875rem;
  background: #A98786;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-consent .btn-accept:hover {
  background: #8C6E6D;
}

.cookie-consent .btn-decline {
  font-size: 0.875rem;
  color: #595643;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.15s;
}

.cookie-consent .btn-decline:hover {
  color: #A98786;
}

.cookie-consent .btn-close {
  color: #595643;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
}

.cookie-consent .btn-close:hover {
  color: #A98786;
}

/* --- Footer --- */
footer a {
  transition: color 0.15s;
}

footer a:hover {
  color: #A98786;
}

/* --- Offering Cards Hover --- */
.offering-card {
  transition: box-shadow 0.7s ease;
}

.offering-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.offering-card .card-img {
  transition: transform 1s ease-out;
}

.offering-card:hover .card-img {
  transform: scale(1.05);
}

/* --- Scroll-to-top utility (handled by JS) --- */

/* --- Utility: visually hidden --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #F5F1E8;
  min-width: 180px;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 100;
}

.nav-dropdown.dropdown-open {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #595643;
  text-decoration: none;
}

.nav-dropdown a:hover {
  opacity: 0.7;
}