:root {
  --polosys-navy: #000c26;
  --polosys-blue: #00609b;
  --polosys-accent: #00d2ff;
  --polosys-white: #ffffff;
  --polosys-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --polosys-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--polosys-font) !important;
  background-color: #ffffff;
  color: var(--polosys-navy);
}

.section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Institutional Navigation Framework (Synced) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On desktop, we hide logo and nav-links in scrolled state for a compact toolbar view */
@media (min-width: 1025px) {
  .main-header.scrolled .logo,
  .main-header.scrolled .nav-links {
    display: none !important;
  }
  
  .main-header.scrolled .header-container {
    justify-content: flex-end !important;
  }
  
  .main-header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 15px 40px !important;
    transition: all 0.3s ease;
  }
}

/* On mobile, we ALWAYS want a complete navbar (Logo + Right Tools) */
@media (max-width: 1024px) {
  .main-header.scrolled {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
  }

  .main-header.scrolled .logo {
    display: block !important;
  }

  .main-header.scrolled .logo img {
    height: 35px !important;
  }

  .main-header.scrolled .header-container {
    justify-content: space-between !important;
  }
}


.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--polosys-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--polosys-navy) !important;
  min-width: 260px;
  padding: 20px 0;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border-top: 3px solid var(--polosys-blue);
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: white !important;
  padding: 12px 25px;
  font-size: 13px !important;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu li a:hover {
  background: var(--polosys-blue) !important;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 25px;
}

.tool-icon {
  color: var(--polosys-navy);
  font-size: 20px;
  cursor: pointer;
}

.hamburger {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--polosys-navy);
  transition: all 0.3s ease;
}

/* Language Switcher */
.lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 15px;
}

.lang-switch {
  color: var(--polosys-navy) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.4s ease;
}

.lang-switch:hover {
  opacity: 0.7;
}

.lang-switcher span {
  color: var(--polosys-navy);
  opacity: 0.3;
}

/* Intelligent Icon Flip for Light Sections / Scrolled State */
.main-header.scrolled .tool-icon,
.main-header.scrolled .lang-switch,
.main-header.scrolled .lang-switcher span,
.main-header.over-light-section .tool-icon,
.main-header.over-light-section .lang-switch,
.main-header.over-light-section .lang-switcher span {
  color: var(--polosys-navy) !important;
}

.main-header.scrolled .hamburger span,
.main-header.over-light-section .hamburger span {
  background: var(--polosys-navy) !important;
}

.brochure-dropdown {
  right: 0;
  left: auto !important;
}

.contact-hero {
  position: relative;
  padding: 150px 0 200px;
  background: white;
  text-align: center;
  overflow: hidden;
}

.hero-bg-visual {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 380px;
  background: url('../images/contact_banner.png') no-repeat bottom center;
  background-size: contain;
  opacity: 0.8;
  z-index: 1;
}

.section-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 20px;
  color: var(--polosys-navy);
}

.hero-lead {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Quick Helpline Cards --- */
.helpline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.helpline-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,12,38,0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
}

.helpline-card:hover {
  transform: translateY(-10px);
}

.helpline-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--polosys-blue);
  margin-bottom: 15px;
  font-weight: 800;
}

.helpline-card .phone {
  font-size: 24px;
  font-weight: 900;
  color: var(--polosys-navy);
}

/* --- Horizontal Inquiry Section --- */
.inquiry-section {
  padding: 80px 0;
}

.horizontal-form-terminal {
  background: var(--polosys-light);
  border-radius: 32px;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.02);
}

.form-intro {
  text-align: left;
}

.horizontal-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-row-bottom {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  align-items: flex-start;
}

.field-item {
  position: relative;
}

.input-style {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.input-style:focus {
  outline: none;
  border-color: var(--polosys-blue);
  box-shadow: 0 0 0 4px rgba(0,96,155,0.05);
}

.submit-btn {
  background: var(--polosys-navy);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--polosys-blue);
}

@media (max-width: 1024px) {
  .form-row-top, .form-row-bottom { grid-template-columns: 1fr; }
  .horizontal-form-terminal { padding: 30px; }
}

/* --- Address Cards --- */
.office-section {
  padding: 100px 0;
  background: white;
}

.office-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.office-card {
  background: white;
  padding: 50px;
  border-radius: 32px;
  border: 1px solid #f1f5f9;
  transition: all 0.4s ease;
}

.office-card:hover {
  background: #fafafa;
  border-color: var(--polosys-blue);
}

.office-tag {
  color: var(--polosys-blue);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.office-city {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 25px;
}

.office-city img {
  width: 32px;
  border-radius: 4px;
}

.office-details {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.overseas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Sidebar Menu (Fixing Visibility) --- */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 40px;
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,12,38,0.8);
  backdrop-filter: blur(5px);
  z-index: 1500;
  display: none;
}

body.no-scroll {
  overflow: hidden;
}

/* --- Map Section --- */
.map-container {
  height: 500px;
  width: 100%;
  background: #eee;
  overflow: hidden;
  border-radius: 40px;
  margin-bottom: 100px;
}

/* --- Footer (Synced) --- */
/* --- Modern Compact Footer --- */
.footer {
  background: #000a1f; /* Deeper midnight background */
  padding: 60px 0 30px;
  color: white;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Logo in white for footer */
  opacity: 0.9;
}

.brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--polosys-blue);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--polosys-blue);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.country-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
}

/* --- Sidebar Styling --- */
.sidebar-logo {
  height: 40px;
  margin-bottom: 50px;
}

.sidebar-close {
  font-size: 40px;
  cursor: pointer;
  margin-bottom: 40px;
  color: var(--polosys-navy);
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links > li {
  margin-bottom: 25px;
}

.sidebar-links > li > a {
  text-decoration: none;
  color: var(--polosys-navy);
  font-size: 20px;
  font-weight: 700;
}

.side-drop-trigger i {
  font-size: 14px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* --- Multi-Device Responsiveness --- */
@media (max-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  .section-wrapper { padding: 0 20px; }
  .helpline-grid { grid-template-columns: 1fr; margin-top: -30px; }
  .form-terminal { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .office-card-grid { grid-template-columns: 1fr; }
  .overseas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
  .hero-lead { font-size: 1.05rem; }
  .helpline-card { padding: 25px; }
  .helpline-card .phone { font-size: 20px; }
  .office-card { padding: 30px; }
  .office-city { font-size: 22px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .submit-btn { padding: 16px; font-size: 14px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
