/* ===== Carol's Country Kitchen — shared styles ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Kaushan+Script&display=swap");

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-brand: "Manrope", var(--font);
  --font-script: "Kaushan Script", "Segoe Script", cursive;
  --hero-dark: #1c1512;
  /* White hen/rooster silhouette (transparent bg) used as a faint watermark */
  --chicken-mark: url("../images/chicken-silhouette.png");
  --cream: #fbf6ec;
  --paper: #ffffff;
  --barn: #b5302a;        /* barn red — primary */
  --barn-dark: #8f231e;
  --gold: #e0a73c;        /* golden / mustard */
  --gold-dark: #c0871f;
  --herb: #5b8a4a;        /* herb green — accent */
  --ink: #3a2e26;         /* warm dark brown text */
  --ink-soft: #6f5d50;
  --line: #ead9c0;        /* soft border */
  --shadow: 0 6px 18px rgba(58, 46, 38, 0.12);
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: var(--barn-dark); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--barn);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.brand span {
  font-family: var(--font);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding-left: 0.15rem;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--cream);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-nav a { position: relative; }
.site-nav a:hover { background: rgba(255,255,255,0.16); }
/* Active page: underline indicator instead of a filled pill */
.site-nav a.active { background: transparent; color: #fff; }
.site-nav a.active::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: -0.3rem;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* ----- Dropdown (Our Products) ----- */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown-toggle::after { content: " ▾"; font-size: 0.8em; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 30;
}
.dropdown-menu a {
  color: var(--ink);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--barn-dark); }
/* Active dropdown item sits on a white menu — use black instead of white */
.dropdown-menu a.active { background: #000; color: #fff; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background-color: #2c211b;
  background-image: linear-gradient(rgba(44,33,27,0.55), rgba(44,33,27,0.55)), url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: var(--paper);
  text-align: center;
  padding: 5rem 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #f5e9d6;
  margin: 0 auto 2rem;
  max-width: 640px;
}
.hero .btn-row { justify-content: center; }

/* Home hero: logo to the left of the title */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: left;
}
.hero-text { max-width: 640px; }
.hero-text p.tagline { margin: 0 0 2rem; }
.hero-text .btn-row { justify-content: flex-start; }
@media (max-width: 700px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-text p.tagline { margin: 0 auto 2rem; }
  .hero-text .btn-row { justify-content: center; }
}

/* ===== Modern split hero ===== */
.hero-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #1c1512;
  color: #fff;
  overflow: hidden;
  position: relative;
}
/* Chicken watermark sitting behind the hero heading & buttons */
.hero-modern::before {
  content: "";
  position: absolute;
  left: -26%;
  top: 42%;
  transform: translateY(-50%);
  height: 96%;
  aspect-ratio: 3 / 2;
  background: var(--chicken-mark) no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-left, .hero-right { position: relative; z-index: 1; }
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}
.hero-left .eyebrow {
  color: var(--barn);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero-left h1 {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}
.hero-left h1 .accent { color: var(--barn); }
.hero-left .hero-sub {
  color: #d9cfc7;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 30rem;
}
.hero-right { position: relative; background: #1c1512; min-height: 340px; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; }
.btn.outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn.outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ===== Intro + feature band ===== */
.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}
.accent-rule {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--barn);
  border-radius: 2px;
  margin: 0 0 1.25rem;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--barn);
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-item h3 { margin: 0.4rem 0 0.4rem; font-size: 1.1rem; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 860px) {
  .hero-modern { grid-template-columns: 1fr; }
  .hero-left { max-width: none; margin: 0; order: 2; }
  .hero-right { order: 1; min-height: 260px; }
  .intro-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--barn);
  color: var(--paper);
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--barn-dark); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--paper); border: 2px solid var(--paper); }
.btn.secondary:hover { background: var(--paper); color: var(--ink); }
.btn.barn { background: var(--barn); color: var(--paper); }
.btn.barn:hover { background: var(--barn-dark); }
.btn-row { display: flex; gap: 0.75rem; justify-content: flex-start; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 3rem 0; }
section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.section-tan { background: #f4e9d6; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--hero-dark);
  color: #fff;
  padding: 3rem 0;
}
.page-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(56%, 560px);
  aspect-ratio: 3 / 2;
  background: var(--chicken-mark) no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-head p { margin: 0.5rem 0 0; color: #d9cfc7; }

/* ===== Card grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card-soft {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-soft h2, .card-soft h3 { margin-top: 0; }

/* Benefit cards (Why Carol's) */
.benefit { border-top: 5px solid var(--gold); }
.benefit h3 { color: var(--barn-dark); font-size: 1.15rem; letter-spacing: 0.5px; }
.benefit ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }

/* Promo cards (Home) — bright & bold: rounded, colourful, zoom + lift on hover */
.promo-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.promo-card:hover,
.promo-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(58,46,38,0.26);
  border-color: var(--gold);
}
.promo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
  transition: transform 0.5s ease;
}
.promo-card:hover img,
.promo-card:focus-visible img { transform: scale(1.08); }
/* Zoom out: show the whole photo (with a little breathing room) instead of cropping */
.promo-card img.fit-contain { object-fit: contain; padding: 1rem; background: #fff; }
.promo-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.35rem 1.5rem;
}
.promo-card h3 { margin: 0; color: var(--barn-dark); font-size: 1.4rem; }
.promo-card p { margin: 0; color: var(--ink-soft); }
.promo-card .more {
  align-self: flex-start;
  margin-top: 0.6rem;
  background: var(--barn);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.promo-card:hover .more,
.promo-card:focus-visible .more { background: #000; color: #fff; }

/* Order Now: a solid call-to-action button filling the whole card */
.promo-card.promo-cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  background: var(--barn);
}
.promo-card.promo-cta:hover,
.promo-card.promo-cta:focus-visible { background: var(--barn-dark); border-color: var(--gold); }
.promo-card.promo-cta {
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.75rem;
}
.promo-card.promo-cta .cta-label {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: 0.5px;
}
.promo-card.promo-cta .cta-sub {
  color: #f5e9d6;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 22rem;
}

/* ===== Product list (Our Products / Roast Chicken Meat) ===== */
.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}
.product:nth-child(even) { direction: rtl; }
.product:nth-child(even) > * { direction: ltr; }
.product .photo { background: var(--line); align-self: stretch; }
.product .photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.product .info { padding: 1.75rem; }
.product .info h3 { margin: 0 0 0.5rem; color: var(--barn-dark); font-size: 1.35rem; }
.product .tag {
  display: inline-block;
  background: var(--herb);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.product .uses { margin: 0.75rem 0 0; }
.product .uses strong { color: var(--ink); }
/* Product card without a photo — single full-width column */
.product.no-photo { grid-template-columns: 1fr; direction: ltr; }
/* Photo on a black background (to match images with baked-in black) */
.product .photo.photo-dark { background: #000; }

/* ===== Item / single product feature ===== */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.feature ul { padding-left: 1.2rem; }
.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; }

/* ===== Forms ===== */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.field { margin-bottom: 1.25rem; }
.field label.label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.req { color: var(--barn); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.check-list { display: grid; gap: 0.55rem; }
.check-list label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}
.check-list input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--barn); flex: 0 0 auto; }
.error { color: var(--barn); font-size: 0.9rem; margin-top: 0.35rem; display: none; }
.error.show { display: block; }
.hidden { display: none; }

/* Full-page thank-you takeover — same dark gradient + big chicken as the hero */
.confirmation {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(78vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #241a15 0%, var(--hero-dark) 55%, #120d0a 100%);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}
.confirmation.hidden { display: none; }
.confirmation::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 130%;
  aspect-ratio: 3 / 2;
  background: var(--chicken-mark) no-repeat center / contain;
  opacity: 0.35;
  pointer-events: none;
}
.confirmation-inner { position: relative; z-index: 1; max-width: 640px; }
.confirmation .eyebrow {
  color: var(--barn);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.confirmation h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1;
}
.confirmation p {
  color: #d9cfc7;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 32rem;
}
.confirmation .btn-row { justify-content: center; margin-top: 2rem; }

/* Contact / info block */
.info-block { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.info-block h3 { margin-top: 0; color: var(--barn-dark); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: var(--radius); margin-top: 1rem; box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #e9dccb;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.site-footer h3 { color: var(--cream); margin: 0 0 0.6rem; font-size: 1.05rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-nav { list-style: none; margin: 0; padding: 0; }
.site-footer .foot-nav li { padding: 0.2rem 0; }
/* SGS HACCP certification seal on the "It's Safe" benefit card */
.cert-badge {
  display: block;
  width: 120px;
  height: auto;
  margin-top: 1rem;
}
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #c9b9a4;
  letter-spacing: 0.5px;
}

/* ===== Scroll reveal (fade up into position on scroll down) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
/* Revealed state — fade up and settle into natural position. */
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; order: 3; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    display: none;
    padding-top: 0.5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0.8rem; border-radius: 8px; }
  /* Stacked menu: show the active marker as a left bar, not a bottom underline */
  .site-nav a.active::before {
    left: 0;
    right: auto;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    height: auto;
  }
  .has-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(255,255,255,0.1);
    padding-left: 1rem;
    margin: 0.1rem 0;
  }
  .dropdown-menu a { color: var(--cream); }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.16); color: var(--cream); }
}

@media (max-width: 760px) {
  .product, .product:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .feature { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
