/* ─── TWIDDLE FOOD – SHARED STYLESHEET ─────────────────────────────── */

/* Brand colour custom properties (mirrors Tailwind config) */
:root {
  --brand-green: #2c2e83;
  --brand-light: #6e70c4;
  --brand-pale: #eeeef8;
  --brand-dark: #1a1b5e;
  --brand-accent: #d4885a;
  --brand-cream: #fdf8f2;
  --brand-sand: #f5ede0;
}

/* ─── BASE ──────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ─── LOGO ──────────────────────────────────────────────────────────── */
.logo {
  max-height: 56px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 44px;
  width: auto;
  mix-blend-mode: plus-lighter;
  filter: invert(1);
}

/* ─── NAVIGATION LINK UNDERLINE ────────────────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-green);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ─── CARD HOVER ────────────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ─── HERO GRADIENT ─────────────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #1a1b5e 0%, #2c2e83 50%, #6e70c4 100%);
}

/* ─── HERO ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.hero-animate {
  opacity: 0;
  animation: fadeInUp 0.75s ease forwards;
}
.hero-animate-delay-1 {
  animation-delay: 0.1s;
}
.hero-animate-delay-2 {
  animation-delay: 0.28s;
}
.hero-animate-delay-3 {
  animation-delay: 0.46s;
}
.hero-animate-delay-4 {
  animation-delay: 0.64s;
}
.hero-animate-delay-5 {
  animation-delay: 0.8s;
}

.hero-card-animate {
  opacity: 0;
  animation: fadeInRight 0.85s ease forwards;
  animation-delay: 0.4s;
}

.hero-card-float {
  animation: float 5s ease-in-out infinite;
}

/* ─── PROGRESS BARS (about page) ────────────────────────────────────── */
.progress-bar {
  transition: width 1.5s ease;
}

/* ─── FAQ / ACCORDION ───────────────────────────────────────────────── */
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.3s ease;
}

/* ─── PROSE TYPOGRAPHY (blog & recipe articles) ─────────────────────── */
.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4b5563;
}
.prose h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1b5e;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2e83;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.prose ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: #4b5563;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand-green);
  border-radius: 50%;
}
.prose blockquote {
  border-left: 4px solid var(--brand-light);
  padding: 1rem 1.5rem;
  background: var(--brand-pale);
  border-radius: 0.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--brand-green);
  font-size: 1.05rem;
}

/* Accent-colour prose variant (menopause article) */
.prose-accent ul li::before {
  background: var(--brand-accent);
}
.prose-accent blockquote {
  border-left-color: var(--brand-accent);
  background: #fdf4ed;
  color: var(--brand-accent);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── IMAGE ZOOM ON CARD HOVER ──────────────────────────────────────── */
.card-hover img {
  transition: transform 0.45s ease;
}
.card-hover:hover img {
  transform: scale(1.07);
}

/* ─── NAV SCROLL STATE ──────────────────────────────────────────────── */
nav {
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
}

/* ─── BUTTON RIPPLE ─────────────────────────────────────────────────── */
.ripple-host {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple-expand 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-expand {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ─── FEATURED-ON STRIP ─────────────────────────────────────────────── */
.featured-link {
  color: var(--brand-dark);
  opacity: 0.55;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.featured-link:hover {
  opacity: 1;
  color: var(--brand-green);
}
