/* =========================================================
   GLOBAL BASE STYLES
========================================================= */
/* Remove gap between navbar and hero */
#home {
  padding-top: 78px;
  padding-bottom: 0px;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;

  background-image: url("../pictures/background.jpg");
  background-repeat: repeat;
  background-position: center top;
  background-size: cover; /* scales nicely but still repeats */
}

/* Offset anchor scroll to account for navbar height */
section,
[id] {
  scroll-margin-top: 80px; /* adjust to navbar height */
}

/* Push page content below fixed navbar */
.page-content {
  padding-top: 50px; /* match navbar height */
}

.ayamadu-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #2A3385 !important;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.why-title {
  color: #2a3385; /* Ayamadu blue*/
}

.card img {
  height: 250px;
  object-fit: cover;
}

/* =========================================================
   NAVIGATION, HEADER AND SLIDESHOW 
========================================================= */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* NOTE: #white is invalid so removed */
}

/* Active menu styling */
.nav-link.active {
  color: #2a3385 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #2a3385;
}

/* Hover menu styling */
.nav-link:hover {
  color: #2a3385 !important;
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

body.has-fixed-navbar .content {
  padding-top: 120px; /* adjust to navbar height */
}


/* ==============================
   HERO BANNER (NO ZOOM, NO CROP)
================================ */

.hero-banner {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-banner img {
  width: 100%;
  height: auto;      /* IMPORTANT */
  display: block;
}

/* ==============================
  VIDEO
================================ */

.video-wrapper {
  position: relative;
  width: 90%;
  margin: auto;
}

/* VIDEO */
.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

/* OVERLAY */
.video-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: opacity 0.6s ease;
  z-index: 2;
}

/* COVER IMAGE */
.video-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* PLAY ICON */
.play-button {
  position: absolute;
  font-size: 64px;
  color: white;
  background: rgba(0,0,0,0.6);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FADE OUT */
.video-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ==============================
   SHARED CTA BUTTON
   (SCALES WITH SCREEN SIZE)
================================ */

.hero-cta {
  position: absolute;
  z-index: 5;

  /* Button scales with viewport */
  font-size: clamp(0.7rem, 0.9vw, 1.05rem);
  padding: clamp(0.45em, 0.9vw, 0.85em)
           clamp(1.1em, 2vw, 2em);

  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ==============================
   SLIDE 1 BUTTON
================================ */

.hero-cta-slide1 {
  left: 7%;
  bottom: 7.5%;

  border: clamp(2px, 0.4vw, 5px) solid #ed1f24;
  color: #ed1f24;
}

.hero-cta-slide1:hover {
  background: #ed1f24;
  color: #ffffff;
}

/* ==============================
   SLIDE 2 BUTTON
================================ */

.hero-cta-slide2 {
  left: 60%;
  bottom: 22%;

  border: clamp(2px, 0.4vw, 5px) solid #2a3385;
  color: #2a3385;
}

.hero-cta-slide2:hover {
  background: #2a3385;
  color: #ffffff;
}

/* Hide hero buttons on mobile */
@media (max-width: 768px) {
  .hero-cta {
    display: none !important;
  }
}

/* =========================================================
   PRODUCTS SECTION
========================================================= */

/* =========================================================
   CHICKEN PARTS AND FROZEN PRODUCTS 
========================================================= */
/* Clickable image container */

/* CHICKEN PARTS PANEL */
#partsOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 9998;
}

#partsOverlay.active {
  opacity: 1;
  visibility: visible;
}

#partsPanel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 1100px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: .4s ease;
  overflow-y: auto;
}

#partsPanel.active {
  left: 0;
}

#partsPanel .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.part-link {
  text-decoration: none;
  color: inherit;
}

/* Card container */
.part-card {
  display: inline-block;
  transition: transform 0.35s ease;
}

/* Image hover expand */
.part-card img {
  transition: transform 0.35s ease;
}

.part-card:hover {
  transform: scale(1.05);
}

/* Label under image */
.part-label {
  margin-top: 15px;
  padding: 12px 24px;
  display: inline-block;

  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px; /* pill shape */
  border-color: #2a3385;
  background: #ffffff;
  color: #2a3385;

  transition: all 0.3s ease;
}

/* PRODUCT PANEL */
#productOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 9998;
}

#productOverlay.active {
  opacity: 1;
  visibility: visible;
}

#productPanel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 1100px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: .4s ease;
  overflow-y: auto;
}

#productPanel.active {
  right: 0;
}

#productPanel .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}


.product-link {
  text-decoration: none;
  color: inherit;
}

/* Card container */
.product-card {
  display: inline-block;
  transition: transform 0.35s ease;
}

/* Image hover expand */
.product-card img {
  transition: transform 0.35s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

/* Label under image */
.product-label {
  margin-top: 15px;
  padding: 12px 24px;
  display: inline-block;

  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px; /* pill shape */
  border-color: #2a3385;
  background: #ffffff;
  color: #2a3385;

  transition: all 0.3s ease;
}

/* ==============================
   HALAL CERTIFICATION SECTION
============================== */

.halal-section {
  padding: 60px 0;
  background-color: #fff;
}

.halal-text {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  font-size: 1.05rem;
}

.halal-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.halal-logos img {
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.halal-logos img:hover {
  transform: scale(1.12);
}


/* ==============================
   RECIPES PAGE STYLING
   ============================== */

/* Sticky search area shadow fix */
.sticky-top {
    z-index: 1020;
}

/* Featured recipe slider */
.recipe-slider {
    scroll-behavior: smooth;
    padding-bottom: 10px;
}
.recipe-slider::-webkit-scrollbar {
    height: 6px;
}
.recipe-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 50px;
}

/* Uniform card styling */
.recipe-card .card-img-top {
    height: 180px;
    object-fit: cover;
}
.recipe-card .card {
    border-radius: 14px;
}
.recipe-card h6 {
    min-height: 40px;
}

/* Modal image size */
.modal-content img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* Mobile adjustments */
@media screen and (max-width: 576px) {
    .recipe-slider .card-img-top {
        height: 140px;
    }
    .recipe-card h6 {
        min-height: auto;
    }
}


/* =========================================================
   MILESTONE SECTION
========================================================= */

.milestone-title {
  font-size: 3rem;
  color: #ffffff;
}

.milestone-intro {
  max-width: 900px;
  margin: 0 auto;
  color: #e5f3ec;
}

/* Accordion Styling */
.milestone-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.accordion-button {
  background: transparent;
  color: #2a3385;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 1.5rem 0;
}

.accordion-button:not(.collapsed) {
  color: #0b1468;
  background: transparent;
  box-shadow: none;
}

.accordion-button::after {
  background-image: none;
  content: "+";
  font-size: 2rem;
  font-weight: 700;
  color: #2a3385;
  background-image: none !important;
}

.accordion-button:not(.collapsed)::after {
  content: "−";
}

.accordion-body {
  padding: 0 0 1.5rem 0;
}

.accordion-body ul {
  padding-left: 1.2rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* =========================================================
   PROCESS TIMELINE SECTION
========================================================= */

.timeline-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover .timeline-card {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-dot {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover .timeline-dot {
  background-color: #0d6efd;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
}

/*============================================================
                        NEWS SECTION
=============================================================*/
.news-section {
  padding: 60px 40px;
}

.news-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Grid: 4 per row */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.news-card {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.news-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  z-index: 2;
}

/* See more */
.news-more-wrapper {
  text-align: center;
  margin: 25px 0;
}

.news-more-btn {
  border: none;
  background: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* Hidden older news */
.news-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.news-hidden.show {
  max-height: 2000px;
}

/* Responsive */
@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/*==========================================================
     NEWS VIEW
============================================================ */

.news-view {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.news-article-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

.news-hero img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  margin-bottom: 30px;
}

.news-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.news-back {
  margin-top: 40px;
}

.news-back a {
  text-decoration: none;
  font-weight: 600;
}



/* =========================================================
   CLIENTELES
========================================================= */

.client-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card img {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Overlay */

.client-overlay {
  position: absolute;
  inset: 0;
  color: #383838;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.client-card:hover .client-overlay {
  opacity: 1;
  background-color: rgba(237, 31, 36, 0.15);
}

.client-card:hover img {
  opacity: 0.2;
}

/* =========================================================
   JOINING OUR TEAM SECTION
========================================================= */

#careers .row {
  min-height: 450px; /* Adjust height based on your preference */
}

.career-image-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 1px;
}

.career-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes image fill without distortion */
}

/* =========================================================
   CONTACT US SECTION
========================================================= */

.office-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  padding: 24px;
  height: 100%;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: 22px;
}

.info-card p {
  margin-bottom: 12px;
  color: #555;
}

.info-card a {
  color: #1a3dc1;
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 22px;
}



/* CONTACT TAB */
#contactTab {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  background: #ed1f24;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  z-index: 9999;
}

/* OVERLAY */
#contactOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

#contactOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* POPUP CONTAINER */
#contactPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 520px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

/* ACTIVE STATE */
#contactPopup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* FORM ELEMENTS */
#contactPopup input,
#contactPopup textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#contactPopup textarea {
  min-height: 120px;
  resize: none;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  background: #ed1f24;
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* THANK YOU MESSAGE */
#thankYouMessage {
  display: none;
  text-align: center;
}




/* =========================================================
   FOOTER
========================================================= */
footer {
  background-color: #2a3385 !important;
  color: white !important;
  margin: auto;
}

/* =========================================================
   CUSTOM SCROLLBARS
========================================================= */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
  background: rgba(13, 110, 253, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 110, 253, 0.8);
}

/* Firefox scrollbar support */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 110, 253, 0.6) #f1f1f1;
}
