/* css/common.css */
/* Font tiếng Việt đẹp, phù hợp web dược */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap");

:root {
  /* Màu chính dựa theo logo GPV */
  --primary-blue: #c27a2c; /* nâu cam logo */
  --light-blue-bg: #fff7e6; /* nền sáng hơi vàng */
  --gradient-start: #fff4dd; /* gradient hero */
  --gradient-end: #ffe4ba;

  --text-dark: #333333;
  --text-dark-secondary: #555555;
  --text-light: #ffffff;

  --green-accent: #2f6e2f; /* xanh lá đậm logo */
  --card-bg: #ffffff;
  --icon-blue: #c27a2c; /* icon theo màu chính */

  --tdb-blue: #c27a2c;
  --tdb-red: #d90f23;
  --tdb-green: #63a623; /* xanh nhấn (lá sáng) */
  --text-menu: #4a4a4a;
  --nav-padding: 15px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--card-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* NAVBAR (dùng chung) */
.navbar {
  background-color: var(--card-bg);
  padding: var(--nav-padding);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
  display: block;
  line-height: 1;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-group {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-right: 50px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-menu);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links li.active > a,
.nav-links a.active {
  color: var(--text-dark);
}

.cta-button {
  background-color: var(--primary-blue);
  background-image: linear-gradient(
    to right,
    #c27a2c,
    #e3b743
  ); /* gradient nâu cam -> vàng */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(194, 122, 44, 0.4);
  transition: all 0.3s ease;
}

.cta-button i {
  margin-right: 10px;
  font-size: 1.1em;
}

.cta-button:hover {
  background-color: #e3b743;
  background-image: linear-gradient(to right, #e3b743, #f3c96a);
  box-shadow: 0 6px 15px rgba(194, 122, 44, 0.6);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--primary-blue);
}

/* FOOTER (dùng chung) */
.footer {
  background-color: #234224; /* xanh đậm trang trọng, hợp logo */
  color: #ffffff;
  padding: 60px 0 30px;
  font-size: 1em;
  border-top: 5px solid var(--primary-blue);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  color: #ffeab4;
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: capitalize;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-blue);
  margin-top: 5px;
  border-radius: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.footer-col .footer-logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.footer-col .footer-logo img:hover {
  transform: scale(1.05);
}

.footer-col p,
.footer-col a,
.footer-col li {
  color: #ffffffa0;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 0.95em;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li a {
  transition: all 0.3s ease;
  display: block;
  position: relative;
  padding-left: 15px;
}

.footer-col ul li a::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  font-size: 0.7em;
  color: var(--primary-blue);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

.footer-col ul li a:hover {
  color: var(--primary-blue);
  padding-left: 18px;
}

.footer-col p i {
  margin-right: 10px;
  color: var(--gold-light, #e3b743);
  font-size: 1.1em;
}

/* Slogan trong footer */
.footer-slogan {
  margin-top: 12px;
  color: #ffffffd0;
  font-style: italic;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-slogan i {
  color: var(--primary-blue);
  font-size: 1.1em;
}

/* Box cờ Úc – Australian Owned (nếu sau này dùng) */
.au-flag-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 15px 0;
}

.au-flag {
  width: 28px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 4px #0003;
}

.au-flag-box span {
  font-size: 0.9em;
  font-weight: 500;
  color: #ffffffd0;
}

/* Badge Australian Owned / GMP Certified / Quality Assured */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 10px 0 20px;
  justify-content: center;
  align-items: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffffd0;
  font-size: 0.9em;
  font-weight: 500;
  text-align: center;
}

.badge-item svg {
  width: 55px;
  height: 55px;
}

/* Nếu bạn dùng <img> thay vì SVG cho badge */
.footer-badges img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--text-light);
  font-size: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--green-accent);
  color: var(--text-light);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ffffff1a;
  color: #ffffff80;
  font-size: 0.9em;
}

.footer-bottom p {
  color: #ffffffa0;
  font-size: 0.95em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-bottom p i {
  color: var(--primary-blue);
  margin-right: 5px;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5em;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-5px);
}

/* WhatsApp giữ màu thương hiệu riêng */
.whatsapp {
  background-color: #25d366;
}

/* Nút info theo màu chủ đạo */
.info {
  background-color: var(--primary-blue);
}

/* Responsive NAV + FOOTER */
@media (max-width: 992px) {
  .navbar .container {
    flex-wrap: nowrap;
    padding: 10px 20px;
  }

  .nav-group {
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
    flex-grow: 1;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-top: 1px solid #eee;
    gap: 10px;
    text-align: left;
    margin-right: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .cta-button {
    padding: 8px 15px;
    font-size: 0.85em;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .footer-content {
    justify-content: space-around;
  }

  .footer-col {
    min-width: 45%;
  }

  .footer-badges {
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 60px 0 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-col {
    min-width: 100%;
    text-align: left;
  }

  .footer-col h4::after {
    margin-left: 0;
  }

  .footer-col .footer-logo img {
    margin-left: 0;
  }

  .footer-col p,
  .footer-col ul {
    text-align: left;
  }

  .footer-col ul li {
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-badges {
    flex-direction: row;
    justify-content: flex-start;
  }
}
