/* ===========================
   GLOBAL RESET + VARIABLES
=========================== */

:root {
  --black: #000;
  --white: #fff;
  --grey: #4b4b4b;
  --heading: "Exo 2", system-ui, sans-serif;
  --para: "Source Sans Pro", system-ui, sans-serif;
  --nav-height: 72px;
  --bg-image: url("img/bg.jpeg");
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--para);
  background-color: #000;
  color: var(--white);
}

/* Utility */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   NAVBAR (from header.php)
=========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--grey);
  border-bottom: 2px solid var(--white);
  display: flex;
  align-items: center;
  z-index: 1000;
  padding-inline: 1.5rem;
}

.logo {
  flex: 1 1 auto;
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.1;
}

/* Desktop menu */
.nav-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-family: var(--heading);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Dropdown (if used) */
.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  font-size: 1rem;
  border: none;
  outline: none;
  color: var(--white);
  background: transparent;
  font-family: var(--heading);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--grey);
  min-width: 150px;
  display: none;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-content a {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Hamburger (mobile / tablet) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Mobile nav dropdown */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--grey);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem;
    gap: 0.25rem;
    display: none;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links a {
    width: 100%;
    padding-inline: 0;
  }
}

/* ===========================
   HEADER + HERO CAROUSEL
=========================== */

header {
  width: 100%;
  margin-top: var(--nav-height); /* space for fixed navbar */
}

/* hero wrapper */
.head_carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(8, 22, 36, 0.35);
  /* 16:9 aspect ratio that grows with viewport */
  aspect-ratio: 16 / 9;
}

/* Screen-reader text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Slide track */
.carousel__track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform var(--transition, 600ms ease);
}

/* Single slide */
.carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Hero image */
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide default controls/dots (if you’re using JS) */
.carousel__controls,
.carousel__dots {
  display: none;
}

/* "Know More" button overlay */
.caption1 {
  position: absolute;
  left: 5%;
  bottom: 12%;
  font-family: var(--para);
}

.caption1 a {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.caption1 a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
}

/* Mobile hero tweaks */
@media (max-width: 480px) {
  .head_carousel {
    /* aspect-ratio: 9 / 16; taller hero on phones */
    aspect-ratio: auto;
    width: 100%;
    height: auto;
  }

  .carousel__track {
    height: auto;
  }

  .carousel__slide {
    height: auto;
  }

  .carousel__slide img {
    width: 100%;
    height: auto; /* let the image decide height */
    object-fit: contain; /* show full banner, no cropping */
  }

  .caption1 {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
  }

  .caption1 a {
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
  }
}

/* Tablet hero tweaks */
@media (min-width: 481px) and (max-width: 768px) {
  .head_carousel {
    aspect-ratio: 16 / 9;
  }

  .caption1 {
    left: 8%;
    bottom: 10%;
    transform: none;
  }
}

/* ===========================
   SECTIONS – GENERAL LAYOUT
=========================== */

section {
  width: 100%;
}

/* Shared background for sections using bg.jpeg */
.sectors,
.cover,
.unique,
.prod,
.about,
.years,
.choose {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* basic padding */
.sectors,
.cover,
.unique,
.prod,
.about,
.stand,
.years,
.choose,
.quality {
  padding-inline: clamp(1rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* Headings & paragraph defaults */
h1,
.cover_title,
.prod_title,
.about_title,
.years_title,
.quality_title,
.unique_title,
.choose_title {
  font-family: var(--heading);
  font-weight: 700;
}

p,
.sector_para,
.unique_para,
.stand_para,
.cover_para,
.quality_para,
.about_para {
  font-family: var(--para);
  line-height: 1.6;
}

/* ===========================
   "Why Our Products Are Unique" (sectors)
=========================== */

.sectors {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sector_img,
.sector_text {
  width: 100%;
}

.sector_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sector_img img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.sector_text h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.sector_para {
  font-size: 1rem;
}

/* desktop: image + text side by side */
@media (min-width: 900px) {
  .sectors {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .sector_img,
  .sector_text {
    width: 50%;
  }
}

/* ===========================
   "Sectors We Cover" (cover)
=========================== */

.cover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover_title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cover_para {
  max-width: 800px;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* Points grid */
.cover_pts {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cov_pt {
  background: var(--white);
  color: #111;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.pt_num {
  font-family: var(--heading);
  font-size: 2rem;
  min-width: 2.5rem;
  text-align: center;
}

.pt_detail {
  font-size: 0.95rem;
  text-align: left;
}

.pt_detail span {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

/* 2-column grid on larger screens */
@media (min-width: 700px) {
  .cover_pts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===========================
   "What makes our products stand out?" (unique)
=========================== */

.unique {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

.unique_txt {
  width: 100%;
}

.unique_title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.unique_para {
  font-size: 1rem;
  max-width: 720px;
}

.unique_img {
  width: 100%;
  max-width: 420px;
  background: #000;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  overflow: hidden;
}

.unique_img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* side-by-side on desktop */
@media (min-width: 900px) {
  .unique {
    flex-direction: row;
    justify-content: space-between;
  }

  .unique_txt {
    width: 65%;
  }

  .unique_img {
    width: 30%;
  }
}

/* ===========================
   Products section
=========================== */

.prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.prod_title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.products {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(-45deg, #000 0%, #555 100%);
  border-radius: 10px;
  border: 2px solid var(--white);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card__content {
  position: absolute;
  inset: 0;
  padding: 1rem;
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card__title {
  font-size: 1.1rem;
  font-family: var(--heading);
  color: #111;
  margin-bottom: 0.5rem;
}

.card__description {
  font-size: 0.9rem;
  color: #444;
  font-family: var(--para);
}

/* Hover effect desktop */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  }

  .card:hover .card__content {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2 cols on tablets, 4 on large screens */
@media (min-width: 700px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "Know More" button under cards */
.btn {
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  padding: 0.25rem;
}

.btn a {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--heading);
  padding: 0.4rem 1.4rem;
  display: inline-block;
}

/* ===========================
   Assurance of Quality
=========================== */

.quality {
  background: #000;
}

.quality_title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.quality_para {
  font-size: 1rem;
  max-width: 900px;
}

/* ===========================
   About section
=========================== */

.about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about_title {
  text-align: center;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.about_para {
  font-size: 1rem;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

/* images + text row */
.about_img {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about_img > img {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.img_txt {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.txt1 {
  border: 2px solid var(--white);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.txt1_title {
  font-family: var(--heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* side-by-side layout on big screens */
@media (min-width: 900px) {
  .about_img {
    flex-direction: row;
    align-items: center;
  }

  .about_img > img {
    width: 24%;
  }

  .img_txt {
    width: 52%;
  }
}

/* ===========================
   Stand section
=========================== */

.stand {
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stand_img,
.stand_text {
  width: 100%;
}

.stand_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stand_img img {
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.stand_text h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.stand_para {
  font-size: 1rem;
}

/* row on desktop */
@media (min-width: 900px) {
  .stand {
    flex-direction: row;
    align-items: center;
  }

  .stand_img,
  .stand_text {
    width: 50%;
  }
}

/* ===========================
   Years of Experience
=========================== */

.years {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.years_title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.years_points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.years_pt {
  border-radius: 18px;
  border: 2px solid var(--white);
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

/* icons */
.fa-hammer,
.fa-star,
.fa-industry {
  font-size: 2.3rem;
  margin-bottom: 0.3rem;
}

/* 3 columns on wider screens */
@media (min-width: 900px) {
  .years_points {
    flex-direction: row;
    justify-content: space-between;
  }

  .years_pt {
    width: 32%;
  }
}

/* ===========================
   Why Choose Us
=========================== */

.choose {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
      margin-bottom: 18px;
}

.choose_img,
.choose_txt {
  width: 100%;
}

.choose_img {
  background: #000;
  border-radius: 0 24px 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  max-width: 420px;
  overflow: hidden;
}

.choose_img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.choose_title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.choose_para {
  font-size: 1rem;
  max-width: 700px;
  text-align: right;
}

/* row on desktop */
@media (min-width: 900px) {
  .choose {
    flex-direction: row;
    justify-content: space-between;
  }

  .choose_img {
    width: 30%;
  }

  .choose_txt {
    width: 65%;
    align-items: flex-end;
    text-align: right;
  }
}

/* ===========================
   FOOTER
=========================== */

.footer {
  background-color: var(--grey);
  color: #fff;
  padding: 2.5rem 1.5rem 1.5rem;
    max-width: 1548px !important;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-family: var(--heading);
  border-bottom: 1px solid var(--black);
  padding-bottom: 0.4rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--para);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--black);
}

/* center footer on small screens */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
  }
}

/* ===========================
   BIG SCREENS (DESKTOP 1440+)
=========================== */

@media (min-width: 1440px) {
  body {
    font-size: 18px;
  }

  .head_carousel {
    max-height: 720px;
    margin-inline: auto;
  }

  .sectors,
  .cover,
  .unique,
  .prod,
  .about,
  .stand,
  .years,
  .choose,
  .quality,
  .footer {
    max-width: 1200px;
    margin-inline: auto;
  }
}

/* SUPER-WIDE (e.g. 2K / 4K) */
@media (min-width: 1920px) {
  .sectors,
  .cover,
  .unique,
  .prod,
  .about,
  .stand,
  .years,
  .choose,
  .quality,
  .footer {
    max-width: 1400px;
  }
}

/* FIX: keep full banner visible from 481px–1439px */
@media (min-width: 481px) and (max-width: 1440px) {
  .head_carousel {
    aspect-ratio: auto; /* stop forcing 16:9 */
    width: 100%;
    height: auto;
  }

  .carousel__track {
    height: auto;
  }

  .carousel__slide {
    height: auto;
  }

  .carousel__slide img {
    width: 100%;
    height: auto; /* use the image's natural aspect ratio */
    object-fit: contain; /* show full banner, no cropping of text */
    display: block;
  }

  /* optional: keep the button nicely placed */
  .caption1 {
    left: 8%;
    bottom: 10%;
    transform: none;
  }
}

/* WRAPPER FOR PRODUCTS + MENU */
.navbar .dropdown {
  position: relative;
  display: inline-block;
}

/* PRODUCTS LINK */
.navbar .dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1rem;
  height: 100%;
  text-decoration: none;
  color: #fff; /* match your nav text color */
  font-family: var(--heading, "Exo 2", sans-serif);
}

/* remove underline on hover etc */
.navbar .dropbtn:hover {
  text-decoration: none;
}

/* DROPDOWN PANEL – HIDDEN BY DEFAULT */
.navbar .dropdown-content {
  position: absolute;
  top: 100%; /* directly under Products */
  left: 0;
  margin-top: 0; /* IMPORTANT: no vertical gap */
  min-width: 220px;

  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}

/* SHOW ON HOVER / FOCUS */
.navbar .dropdown:hover .dropdown-content,
.navbar .dropdown:focus-within .dropdown-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* LINKS INSIDE DROPDOWN */
.navbar .dropdown-content a {
  display: block;
  padding: 0.45rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--para, "Source Sans Pro", sans-serif);
  font-size: 0.95rem;
}

.navbar .dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.about-industry-item i.fa-industry {
  font-size: 1.1rem !important; /* smaller size to match others */
  margin-top: 0.25rem; /* aligns vertically */
}
/* Fix oversized factory icon in contact hero pills */
.contact-hero-pill i.fa-industry {
  font-size: 0.9rem !important; /* make it smaller */
  margin-top: 2px; /* align vertically */
}
.contact-heading-md {
  color: #000 !important;
}
