/*
Theme Name: Absiniya
Author: Shazin
Description: A custom WordPress theme for Absiniya Slaughtering Service House PLC
Version: 1.0
*/

/* ----------------------------
   Base Reset & Global Styles
----------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0a2540;
  background: #fff;
  scroll-behavior: smooth;
}

a {
  color: #0170e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  background: rgba(255, 255, 255, 0.2); /* translucent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


section + section {
  margin-top: 3rem;
}

.section-header {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #777;
  margin-bottom: 2rem;
}

/* ----------------------------
   Header & Navigation
----------------------------- */
.header {
  background: rgba(255, 255, 255, 0.6); /* semi-transparent white */
  backdrop-filter: blur(10px); /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* subtle bottom border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.site-logo {
  height: 60px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .site-logo {
    height: 55px;
  }
}


.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav ul li a {
  color: #0a2540;
  font-weight: 500;
  transition: color 0.3s;
}

.nav ul li a.active,
.nav ul li a:hover {
  color: #0170e8;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #0170e8;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav ul {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
  }

  .nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.frosted-bg {
  background-image: url('https://absiniya.com/wp-content/uploads/2025/07/background.png');
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-radius: 1px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.frosted-bg > section {
  background: rgba(255, 255, 255, 0.2); /* translucent white layer */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* ----------------------------
   Hero Section
----------------------------- */
:root {
  --hero-overlay-opacity: 0.6;
}

.hero {
  position: relative;
  padding: 16rem 0;
  background-color: #000;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://absiniya.com/wp-content/uploads/2025/07/absiniya-factory-arial.png') center/cover no-repeat;
  opacity: var(--hero-overlay-opacity);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #f0f0f0;
  margin-bottom: 2rem;
}

/* ----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.btn.primary {
  background-color: #0170e8;
  color: #fff;
}

.btn.primary:hover {
  background-color: #005bb5;
}

.btn.secondary {
  background-color: #e8f1fd;
  color: #0170e8;
  margin-left: 1rem;
}

.btn.secondary:hover {
  background-color: #d0e5fc;
}

/* ----------------------------
   floating button
----------------------------- */
.floating-contact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0170e8;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-contact-btn:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .floating-contact-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

/* ----------------------------
   Trust Bar
----------------------------- */

.trust-bar {
  background: #fff;
  padding: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center; /* fallback for inline-block centering */
}

.trust-bar .container {
  display: inline-flex;       /* inline-flex allows centering */
  gap: 2rem;
  align-items: center;
  white-space: nowrap;
  justify-content: center;    /* center icons horizontally */
  padding-bottom: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.trust-bar img {
  height: 60px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-block;
  transition: filter 0.3s ease;
}

.trust-bar img:hover {
  filter: grayscale(0%);
}

/* Scrollbar styles remain as before */
.trust-bar::-webkit-scrollbar {
  height: 6px;
}
.trust-bar::-webkit-scrollbar-track {
  background: transparent;
}
.trust-bar::-webkit-scrollbar-thumb {
  background-color: rgba(1,112,232,0.3);
  border-radius: 3px;
}
.trust-bar {
  scrollbar-width: thin;
  scrollbar-color: rgba(1,112,232,0.3) transparent;
}
/* ----------------------------
   About Section
----------------------------- */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

.about-text {
  max-width: 700px;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-image,
  .about-text {
    flex: 1;
  }
}

.expanded-about.container {
  margin-top: 2rem;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1.7;
  
  /* Initially collapsed */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.expanded-about .leadership {
  margin-top: 3rem;
  text-align: center;
}

.expanded-about .leadership h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #0170e8;
}

.leadership-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.leader-card {
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(1,112,232,0.3);
  margin-bottom: 1rem;
}

.leader-card h4 {
  font-size: 1.2rem;
  color: #0a2540;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.leader-card p {
  color: #555;
  font-size: 1rem;
  margin: 0;
}

/* Initially hidden */
.expanded-about[hidden] {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.expanded-about.container.expanded {
  max-height: 1000px; /* large enough to fit content */
  padding-top: 1rem;
  padding-bottom: 1rem;
  opacity: 1;
}
/* When visible */
.expanded-about:not([hidden]) {
  max-height: 1000px; /* large enough for content */
  opacity: 1;
  pointer-events: auto;
}

/* Button tweaks */
#viewMoreBtn {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

#expandedAbout {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 1rem 0 !important;
}

.leadership {
  margin-top: 2rem !important;
  display: block !important;
}

.leadership-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.leader-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* ----------------------------
   Products
----------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.25rem;
  color: #0a2540;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.product-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(1,112,232,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card ul {
  font-size: 0.9rem; /* or try 14px, 13px, etc. */
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  line-height: 1.4;
  color: #444; /* Optional: make it slightly dimmer */
}

.product-card ul li {
  margin-bottom: 0.3rem;
}

/* === Facility Section === */


/* === Facility Layout === */
.facility-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.facility-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.facility-text {
  max-width: 600px;
  color: #444;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .facility-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .facility-image,
  .facility-text {
    flex: 1;
  }

  .facility-text {
    padding-left: 2rem;
  }
}

.center-button {
  text-align: center;
  margin-top: 2rem;
}

.section-divider {
  border: none;
  border-top: 0.5px solid #ddd;
  margin: 2rem 0 1rem;
  width: 100%;
  opacity: 0.6;
}

/* === Gallery Grid === */
.facility-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.facility-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.facility-thumb img:hover {
  transform: scale(1.03);
}


/* ----------------------------
   Certifications
----------------------------- */
.certifications {
  background: #f9faff;
  margin-top: 60px;
  margin-bottom: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.micro-hint {
  font-size: 0.85rem;
  color: #777;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cert-icon {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-icon img {
  max-width: 100px;
  filter: grayscale(80%) brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-icon:hover img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1.1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* ----------------------------
   Contact & Map Section Styles
----------------------------- */

.section-title.text-center,
.section-subtitle.text-center {
  text-align: center;
}

/* Grid layout for contact and map */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start; /* <--- prevents stretching */
}
/* Map Column */
.contact-map {
  flex: 1 1 50%;
  height: 300px; /* <--- reduced height */
  min-height: unset;
}

#contact {
  margin-top: 80px;
  margin-bottom: 80px;
  padding-top: 60px;
  padding-bottom: 60px;
  background: #fff; /* Optional: helps if your sections have contrasting backgrounds */
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Contact Info Column */
.contact-details {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
/* Individual Items */
.contact-item {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Link Styles */
.contact-item a {
  color: #0073e6;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}
/* WhatsApp Button */
.btn.whatsapp-btn {
  display: inline-block;
  margin-top: 8px;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease-in-out;
}

.btn.whatsapp-btn:hover {
  background-color: #1ebd5b;
  text-decoration: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-map,
  .contact-details {
    flex: 1 1 100%;
  }

  .btn.whatsapp-btn {
    width: fit-content;
  }
}

/* Map Container Standalone Style */
.map-container {
  max-width: 1100px;
  margin: 0 auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ----------------------------
   Social Links
----------------------------- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-links a {
  width: 36px;
  height: 36px;
  background-color: #0170e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background-color: #015bb5;
  transform: scale(1.1);
}

.social-links img,
.social-links .lucide-icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
  filter: brightness(0) invert(1);
}

/* ----------------------------
   Footer
----------------------------- */
.footer {
  padding: 2rem 0;
  background: #f4faff;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}
