/* ============================================================
   WHOLESOME CRAVINGS — Main Stylesheet
   Colour palette drawn from the Wholesome Cravings logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Dancing+Script:wght@600;700&family=Nunito:wght@300;400;600;700&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --cream:          #FAF7F2;
  --cream-dark:     #F0EBE0;
  --cream-border:   #E5DDD0;
  --green-dark:     #2C4A2D;
  --green-mid:      #4E7B51;
  --green-sage:     #7A9E7A;
  --green-light:    #EAF2EA;
  --terracotta:     #C4723A;
  --terracotta-lt:  #E8A87C;
  --terracotta-bg:  #FDF0E8;
  --text-dark:      #2D2D2D;
  --text-mid:       #5A5A5A;
  --text-light:     #909090;
  --white:          #FFFFFF;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.10);
  --radius:         12px;
  --radius-sm:      8px;
  --transition:     0.25s ease;
  --max-width:      1200px;
  --nav-height:     96px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.script { font-family: 'Dancing Script', cursive; color: var(--terracotta); font-style: normal; font-weight: 700; }
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--cream-dark { background: var(--cream-dark); }
.section--terracotta { background: var(--terracotta-bg); }
.text-center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

/* ── Top Banner ───────────────────────────────────────────── */
.top-banner {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.top-banner a { color: var(--terracotta-lt); text-decoration: underline; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo img { height: 80px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--terracotta); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__icons { display: flex; align-items: center; gap: 16px; }
.nav__icons a { color: var(--text-mid); transition: color var(--transition); }
.nav__icons a:hover { color: var(--terracotta); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--text-dark); display: block; transition: var(--transition); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--cream-dark);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--terracotta-bg);
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.5;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero__title { margin-bottom: 16px; color: var(--green-dark); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero__cats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.hero__cat-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero__cat:hover .hero__cat-img { transform: scale(1.06); box-shadow: var(--shadow-md); }
.hero__cat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn--primary:hover { background: #a85e2d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,114,58,0.35); }
.btn--outline {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
}
.btn--outline:hover { background: var(--green-dark); color: var(--white); }
.btn--outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline-white:hover { background: var(--white); color: var(--green-dark); }

/* ── Section Headings ─────────────────────────────────────── */
.section-head { margin-bottom: 40px; }
.section-head.text-center { text-align: center; }
.section-head h2 { color: var(--green-dark); }
.section-head h2 span { color: var(--terracotta); font-style: italic; }
.section-head .underline {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--terracotta);
  margin-top: 12px;
  border-radius: 2px;
}
.section-head.text-center .underline { margin: 12px auto 0; }
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 32px;
  transition: gap var(--transition);
}
.see-all:hover { gap: 10px; }

/* ── Recipe Cards ─────────────────────────────────────────── */
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recipe-card__img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.recipe-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.recipe-card:hover .recipe-card__img-wrap img { transform: scale(1.04); }
.recipe-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.badge--vegan { background: var(--green-dark); color: var(--white); }
.badge--veg { background: var(--green-sage); color: var(--white); }
.badge--gf { background: var(--terracotta); color: var(--white); }
.recipe-card__body { padding: 18px 20px 22px; }
.recipe-card__meta {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.recipe-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.3;
  transition: color var(--transition);
}
.recipe-card:hover .recipe-card__title { color: var(--terracotta); }

/* ── About Strip ──────────────────────────────────────────── */
.about-strip { gap: 60px; }
.about-strip__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
}
.about-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__text { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.about-strip__text h2 { color: var(--green-dark); }
.about-strip__text p { color: var(--text-mid); font-size: 1.05rem; }
.social-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--cream-dark);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}
.social-pill:hover { background: var(--green-dark); color: var(--white); }
.social-pill svg { width: 16px; height: 16px; }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter { text-align: center; }
.newsletter h2 { color: var(--white); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.newsletter__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter__form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
}
.newsletter__form input::placeholder { color: var(--text-light); }

/* ── Brands Page ──────────────────────────────────────────── */
.brands-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.brands-intro h1 { color: var(--green-dark); margin-bottom: 20px; }
.brands-intro p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.brands-intro .cta-row { margin-top: 28px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 36px;
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.brand-card__logo {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-bottom: 1px solid var(--cream-border);
  background: var(--cream);
}
.brand-card__logo img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}
.brand-card__name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  padding: 12px 16px 4px;
}
.brand-card__embed {
  flex: 1;
  padding: 0 16px 16px;
}
.brand-card__embed .instagram-media {
  margin: 0 !important;
  min-width: unset !important;
  width: 100% !important;
}
.brand-card__embed iframe { border-radius: var(--radius-sm); }
.brand-card__watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  margin: 12px 16px 16px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: all var(--transition);
  border: 1px solid var(--cream-border);
}
.brand-card__watch-btn:hover { background: var(--green-dark); color: var(--white); }
.brand-card__watch-btn svg { width: 20px; height: 20px; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--cream-dark);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--cream-border);
}
.page-hero h1 { color: var(--green-dark); margin-bottom: 12px; }
.page-hero p { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--terracotta); }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-info h3 { color: var(--green-dark); margin-bottom: 16px; }
.contact-info p { color: var(--text-mid); margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.contact-detail svg { color: var(--terracotta); flex-shrink: 0; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(78,123,81,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.captcha-box {
  background: var(--cream-dark);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.captcha-question { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.captcha-box input {
  width: 80px;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  outline: none;
}
.captcha-box input:focus { border-color: var(--green-mid); }
.form-success {
  display: none;
  background: var(--green-light);
  border: 1.5px solid var(--green-sage);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-error {
  display: none;
  background: #FDE8E8;
  border: 1.5px solid #E57373;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #C62828;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ── About Page ───────────────────────────────────────────── */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 20px; }
.placeholder-notice {
  background: var(--terracotta-bg);
  border: 2px dashed var(--terracotta-lt);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--terracotta);
  font-weight: 600;
  margin: 24px 0;
}

/* ── Recipe Grid (Recipes page) ───────────────────────────── */
.recipes-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--cream-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand img { height: auto; width: 100%; max-width: 220px; margin-bottom: 16px; background: var(--cream); border-radius: 8px; padding: 4px 10px; display: block; box-sizing: border-box; }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; }
.footer__col h4 {
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--terracotta-lt); }
.footer__social { display: flex; gap: 14px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: background var(--transition);
}
.footer__social a:hover { background: var(--terracotta); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-strip__img { aspect-ratio: 4/3; order: -1; }
  .brands-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--cream);
    padding: 20px 24px;
    border-bottom: 1px solid var(--cream-border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .newsletter__form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
  .hero { padding: 56px 0 40px; }
}

/* ── Logo Marquee ─────────────────────────────────────────── */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.logo-marquee__track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 72px;
  padding: 12px 20px;
  flex-shrink: 0;
  margin: 0 16px;
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
}
.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(15%);
  transition: opacity var(--transition), filter var(--transition);
}
.logo-slot:hover img { opacity: 1; filter: none; }
.logo-slot--dark {
  background: #2C4A2D;
}
.logo-slot--dark img { filter: grayscale(0%); opacity: 0.9; }
.logo-slot--sq {
  height: 96px;
  padding: 8px 14px;
}
