/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* ========== COMMON ========== */
html {
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: #f57c00;
  color: #fff;
}

.btn.secondary {
  border: 1px solid #333;
  color: #333;
  border-radius: 5px;
}

/* ========== HEADER ========== */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

/* ===== LOGO WITH TEXT ===== */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wrap img {
  height: 70px;     /* header friendly */
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.company-name {
  font-size: 26px;
  font-weight: 600;
  color: #222;
}

.company-tagline {
  font-size: 13px;
  color: #4a7c59;   /* subtle green like reference */
  text-align: center;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #0b3c5d;      /* brand blue */
  font-weight: 500;
  font-size: 15px;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  min-width: 260px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  padding: 0;
}

.dropdown-menu a {
  padding: 10px 16px;
  text-decoration: none;
  color: #0b3c5d;
  font-size: 14px;
  white-space: nowrap;
  margin: 0;            
  line-height: 1.4;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #f57c00;
}

/* SHOW ON HOVER */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* ========== BANNER ========== */
.banner {
  height: 85vh;
  background: linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.55)
    ),
    url("../images/banner.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.banner-content {
  color: #fff;
  max-width: 650px;
}

.banner h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* ========== ABOUT ========== */
.about {
  padding: 90px 0;
}

.about-flex {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
}

/* ========== EXPERTISE ========== */
.expertise {
  background: #fafafa;
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.expertise-card {
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: #222;
  border: 1px solid #eee;
  transition: transform 0.2s ease;
}

.expertise-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.expertise-card h3 {
  padding: 20px;
  font-size: 18px;
}

.expertise-card:hover {
  transform: translateY(-6px);
}

/* ========== WHY US ========== */
.why-us {
  padding: 80px 0;
  text-align: center;
}

.why-us h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
  background: #111;
  color: #bbb;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand strong {
  font-size: 18px;
  color: #fff;
}

.footer-brand span {
  display: block;
  font-size: 13px;
  color: #9fb2d9;
  margin-top: 4px;
}

.footer-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #cfd6e4;
}

.footer-links a:hover {
  color: #f57c00;
}

/* BOTTOM BAR */
.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #9fb2d9;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 0;
  }
}


/* ========== ABOUT PAGE BANNER ========== */
.page-banner {
  background: #0b1a5d;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 600;
}

/* ========== ABOUT PAGE CONTENT ========== */
.about-page {
  padding: 90px 0;
}

/* reuse .about-flex, .about-text, .about-image from existing CSS */

.about-page .about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0b3c5d;
}

.about-page .about-text p {
  margin-bottom: 18px;
  font-size: 16px;
  color: #444;
}

/* ========== OBJECTIVE SECTION ========== */
.objective {
  background: #f7f7f7;
  padding: 70px 0;
  text-align: center;
}

.objective h2 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #0b3c5d;
}

.objective p {
  max-width: 900px;
  margin: auto;
  font-size: 16px;
  color: #444;
}

/* ========== WHY CHOOSE US (ABOUT PAGE) ========== */
.why-us {
  text-align: left; /* override home page center */
  background-color: #f57c00;
}

.why-us h2 {
  text-align: center;
  color: #0b3c5d;
}

.why-list {
  max-width: 900px;
  margin: auto;
  list-style: disc;
  padding: 0;
}

.why-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #333;
}

/* ========== RESPONSIVE (ABOUT PAGE) ========== */
@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 30px;
  }

  .about-page .about-text h2,
  .objective h2,
  .why-us h2 {
    font-size: 26px;
  }
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  padding: 90px 0;
}

.contact-flex {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h2,
.contact-form h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #0b3c5d;
}

.contact-info p {
  margin-bottom: 20px;
  color: #444;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 15px;
}

.contact-form button {
  width: fit-content;
}

/* ========== RESPONSIVE CONTACT PAGE ========== */
@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
  }
}

/* ========== PRODUCT PAGE ========== */
.product-page {
  padding: 80px 0;
}

.product-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  color: #444;
  font-size: 16px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.product-item {
  border: 1px solid #eee;
  padding: 30px 25px;
  background: rgb(235, 233, 233);
  border-radius: 10px;
}

.product-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0b3c5d;
}

.product-item p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .product-page {
    padding: 60px 0;
  }
}


/* ========== PRODUCT PAGE (COMMON) ========== */
.product-intro h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #0b3c5d;
}

.product-points {
  margin-top: 20px;
  padding-left: 18px;
}

.product-points li {
  margin-bottom: 10px;
  color: #444;
  text-align: left;
}

.product-item ul {
  padding-left: 18px;
}

.product-item ul li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #444;
}

.product-partner {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.product-partner h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #0b3c5d;
}

.product-note {
  margin-top: 20px;
  text-align: left;
  font-size: 15px;
  color: #444;
}

/* =====================================================
   GLOBAL MOBILE RESPONSIVE FIX (INDEX + COMMON)
   ===================================================== */
@media (max-width: 768px) {

  /* ---------- HEADER ---------- */
  .header-flex {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .logo-wrap {
    justify-content: center;
    text-align: center;
  }

  .company-name {
    font-size: 20px;   /* reduce from 26px */
  }

  .company-tagline {
    font-size: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
  }

  .nav a {
    margin-left: 0;
    font-size: 14px;
  }

  /* Disable dropdown hover on mobile */
  .dropdown-menu {
    position: static;
    transform: none;
    border: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  /* ---------- BANNER ---------- */
  .banner {
    height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .banner p {
    font-size: 16px;
  }

  /* ---------- ABOUT (HOME) ---------- */
  .about {
    padding: 60px 0;
  }

  .about-flex {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about-image img {
    max-width: 100%;
  }

  /* ---------- EXPERTISE ---------- */
  .expertise {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }

  /* ---------- WHY US (HOME ONLY) ---------- */
  .why-us {
    background: transparent;   /* FIX orange issue on home */
    padding: 60px 0;
    text-align: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    padding: 40px 0 0;
    text-align: center;
  }

  .footer-grid {
    gap: 30px;
  }

  .nav-item {
    position: relative;
  }

  /* Allow click/tap to open submenu */
  .nav-item:focus-within .dropdown-menu {
    display: flex;
  }

  .dropdown-menu {
    width: 100%;
    background: #f9f9f9;
    margin-top: 8px;
    border-radius: 6px;
  }

  .dropdown-menu a {
    padding: 12px;
    text-align: center;
  }
}
