/* ===== PRODUCTS INDEX PAGE STYLES ===== */
:root {
  --primary: #2c5282;
  --primary-dark: #1e3a5f;
  --accent: #d4a84b;
  --accent-light: #e4c77a;
  --white: #ffffff;
  --light: #f8fafc;
  --dark: #1e3a5f;
  --gray: #6b7280;
  --shadow: 0 4px 20px rgba(13,27,42,0.15);
  --shadow-lg: 0 10px 40px rgba(13,27,42,0.2);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== HEADER / NAV ===== */
header {
  background: #1e3a5f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo::before {
  content: 'A';
  width: 44px;
  height: 44px;
  background: #d4a84b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #1e3a5f;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #d4a84b;
  border-radius: 1px;
}

.nav-cta {
  background: #d4a84b !important;
  color: #1e3a5f !important;
  padding: 10px 20px !important;
  border-radius: 6px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #d49010 !important;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== DROPDOWN MENU ===== */
.dropdown { position: relative; display: inline-block; }

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  z-index: 199;
}

.dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #2d3748;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-menu a:hover { background: #f7fafc; color: #2b6cb0; }
.dropdown-menu a.active { color: #2b6cb0; font-weight: 600; }

.dropdown-header {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2c5282;
  background: #f7fafc;
  pointer-events: none;
}

.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: #e2e8f0;
  overflow: hidden;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.lang-switcher a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  text-decoration: none;
}

.lang-switcher a.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lang-switcher a:hover:not(.active) { color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,60,110,0.08);
}

.breadcrumb ol {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--gray); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 24px 24px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-section h3,
.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-section p,
.footer-section li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  text-decoration: none;
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
}

.footer-bottom a { color: #ffffff; text-decoration: underline; }

/* ===== FLOATING CTA ===== */
.float-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  background: #1a3c6e;
  color: #ffffff;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212,168,75,0.45);
}

.float-wa {
  background: #146c3c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(20,108,60,0.35) !important;
}

.float-wa:hover { box-shadow: 0 10px 28px rgba(37,211,102,0.45) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #1e3a5f;
    padding: 16px 24px;
    gap: 4px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-switcher { margin-left: 8px; padding-left: 8px; }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    min-width: auto;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255,255,255,0.88); }
  .dropdown-header { background: transparent; color: var(--accent); }
  .dropdown-divider { background: rgba(255,255,255,0.1); }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .float-btns { right: 12px; bottom: 16px; }
  .float-btn { padding: 11px 16px; font-size: 13px; }
}


/* ===== FLOATING CTA OVERLAP FIX v3 ===== */
.float-btns {
  align-items: flex-end;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
}
.float-btn {
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 480px) {
  .float-btns {
    right: 12px;
    bottom: 16px;
    gap: 10px;
  }
  .float-btn {
    padding: 11px 16px;
    font-size: 13px;
  }
}
