/*
 * Custom styles for Cluck Ya Poultry
 *
 * This stylesheet defines the color palette and basic styling rules
 * inspired by the Cluck‑Ya logo. Primary colors are a rich barn‑red
 * and a warm golden yellow sampled directly from the uploaded logo.
 */

/* CSS custom properties make it easy to adjust the site’s palette in one
 * place. We alias Bootstrap’s primary and secondary variables to these
 * custom colors so all components (buttons, alerts, etc.) inherit our
 * palette automatically. */
:root {
  /* Primary: deep red taken from the comb on the Cluck‑Ya rooster */
  --primary-color: #ae2c2d;
  --primary-color-rgb: 174, 44, 45;

  /* Secondary: golden yellow sampled from the beak */
  --secondary-color: #e9d968;
  --secondary-color-rgb: 233, 217, 104;

  /* Background neutrals: soft creams and beiges to complement the logo */
  --light-bg: #f9f6f1;
  --lighter-bg: #fdfbf8;
  --lightest-bg: #fcfaf8;

  /* Map our palette to Bootstrap variables */
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: var(--primary-color-rgb);
  --bs-secondary: var(--secondary-color);
  --bs-secondary-rgb: var(--secondary-color-rgb);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  /* Prevent accidental horizontal scrolling due to overflowing images/text */
  overflow-x: hidden;
}

/* Top bar with tagline */
.top-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
  background-color: #ffffff;
}
.navbar-brand .logo-img {
  height: 55px;
  width: auto;
}
.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

.hero {
  position: relative;
  height: 400px;
  background: url('../images/hero2.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* Button overrides to use our palette */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #8c2223;
  border-color: #8c2223;
}
.btn-outline-light {
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

/* Section backgrounds alternate to provide gentle visual rhythm */
.site-section {
  background-color: var(--lightest-bg);
}

.site-section.section-alt {
  background-color: #ffffff;
  border-top: 0px solid rgba(174, 44, 45, 0.08);
  border-bottom: 0px solid rgba(174, 44, 45, 0.08);
}

.site-section .section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.site-section .section-header p {
  margin-bottom: 0;
}

/* Feature icons adopt our primary colour */
.feature-icon i {
  color: var(--primary-color);
}

/* Cards */
.card {
  border-radius: 0.5rem;
}
.card-body .bi-star-fill {
  color: var(--primary-color);
}

/* Product carousel */
.product-carousel-section .carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
}

.product-carousel-section {
  --gallery-panel-height: clamp(360px, 45vw, 520px);
}

.product-carousel-section .product-list,
.product-carousel-section #productCarousel {
  height: var(--gallery-panel-height);
  max-height: 520px;
}

.product-carousel-section .product-list .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-carousel-section .product-list .list-group {
  flex: 1;
  overflow-y: auto;
}

.product-carousel-section .product-list .list-group-item {
  padding-left: 0;
  padding-right: 0;
  border-color: #efe8df;
}

.product-carousel-section .carousel-inner,
.product-carousel-section .carousel-item {
  height: 100%;
}

.product-carousel-section .carousel-item {
  background: #f7f3ee;
}

.product-carousel-section .carousel-image {
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}


.order-contact-details {
  font-weight: 600;
  color: #2f2f2f;
}

.order-contact-details a:not(.btn) {
  color: var(--primary-color);
  text-decoration: none;
}

.order-contact-details a:not(.btn):hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .product-carousel-section .product-list,
  .product-carousel-section #productCarousel {
    height: auto;
  }

  .product-carousel-section .carousel-image {
    height: 360px;
    padding: 1rem;
  }
}

/* Footer styling */
.footer-section {
  background-color: var(--light-bg);
  color: #333;
}
.footer-link {
  color: #444;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
/* Small text in footer */
.footer-section small {
  color: #777;
}

/* Partners section */
.partners-section .partners-details {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.partners-section .partners-list li + li {
  margin-top: 1.5rem;
}

/* About page */
.about-story-image {
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
}

.about-story-image img {
  max-height: 300px;
}

.partners-section .partners-list i {
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, rgba(174, 44, 45, 0.06), rgba(233, 217, 104, 0.12));
}

/* Farm feature page */
.farm-feature-page {
  background-color: var(--lightest-bg);
}

.farm-feature-hero {
  position: relative;
  min-height: 360px;
  background: url('../images/justice-farm.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.farm-feature-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

.farm-feature-hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
  text-align: center;
}

.farm-feature {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.farm-feature__eyebrow {
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.farm-feature__meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.farm-feature__divider {
  opacity: 0.6;
}

.farm-feature__section + .farm-feature__section {
  margin-top: 2.5rem;
}

.farm-feature__heading {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.farm-feature__callout {
  background: var(--lighter-bg);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  border-radius: 0.75rem;
}

@media (max-width: 768px) {
  .farm-feature {
    padding: 2rem;
  }

  .farm-feature-hero__content {
    padding: 3rem 1rem;
  }

  .farm-feature__meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Order page */
.order-page-section {
  background: linear-gradient(180deg, #f9f6f1 0%, #ffffff 100%);
}

.order-contact-banner {
  background: #fff;
  border: 1px solid rgba(174, 44, 45, 0.18);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  max-width: fit-content;
}

.order-contact-banner a {
  color: var(--primary-color);
  text-decoration: none;
}

.order-contact-banner a:hover {
  text-decoration: underline;
}

.order-pdf-card {
  border-radius: 1rem;
  overflow: hidden;
}

.order-pdf-frame {
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #fff;
}

@media (max-width: 991.98px) {
  .order-contact-banner {
    border-radius: 1rem;
  }

  .order-pdf-frame {
    min-height: 640px;
  }
}
