/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
  --blue:      #1a5fa8;
  --blue-dark: #154d8a;
  --dark:      #3a3f4b;
  --white:     #ffffff;
  --gray-light: #f5f5f5;
  --text:      #333333;
  --border:    #dddddd;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 100px;
}
.top-bar-inner {
  height: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-logo img {
  height: 55px;
  width: auto;
}
.logo-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--blue), transparent);
  flex-shrink: 0;
}
.top-contact {
  display: flex;
  gap: 30px;
  font-size: 0.88rem;
  color: #555;
}
.top-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-contact a {
  color: var(--blue);
  font-weight: 600;
}
.top-contact a:hover { text-decoration: underline; }

/* ===== NAVIGATION BAR ===== */
.main-nav {
  background: var(--blue);
  position: relative;
  z-index: 100;
  height: 60px;
}
.nav-inner {
  height: 100%;
  padding: 0 50px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: stretch;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 18px;
  height: 60px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: rgba(0,0,0,0.18);
}
.arrow {
  font-size: 0.6rem;
  margin-top: 1px;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  z-index: 200;
}
.dropdown li a {
  display: block;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: var(--blue);
  color: var(--white);
}
.has-dropdown:hover .dropdown { display: block; }

/* Diagonal dark corner + Social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 50px;
  background: var(--dark);
  clip-path: polygon(30px 0%, 100% 0%, 100% 100%, 0% 100%);
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.social-icon:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 0 0;
  font-size: 0.88rem;
  margin-top: 60px;
}
.footer-inner {
  padding: 0 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 45px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { line-height: 1.7; color: #aaa; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col .contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #aaa;
}
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 50px;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 14px 0;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .top-contact { gap: 12px; font-size: 0.8rem; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--blue);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 300;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.15);
  }
  .dropdown li a { color: #ddd; padding-left: 36px; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-social { clip-path: none; padding: 10px 20px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .top-bar-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .top-contact { flex-direction: column; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; }
}
