﻿/* Shared homepage-exact header/footer styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dark);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  margin: 0 !important;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 70%;
  min-width: 240px;
}

.logo-area > a {
  display: flex;
  align-items: center;
}

nav, .main-nav { flex: 0 1 30% !important; }

.main-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo-area img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.logo-text {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.3px;
  line-height: 1.1;
  display: block;
  padding-top: 12px !important;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
}

.main-nav > li { position: relative; }

.main-nav > li > a {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: #ffffff;
  background: var(--accent-cyan);
}

.main-nav > li > a::after { display: none; }

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--near-white);
  min-width: 220px;
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.main-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--light-background);
  padding-left: 22px;
  color: var(--primary-dark);
}

footer {
  padding-top: 12px;
  padding-bottom: 0;
  background: var(--primary-dark);
  color: var(--white);
  width: 100%;
  margin: 0;
  display: block;
}

.footer-content {
  width: 100%;
  padding-top: 12px;
  padding-right: 5%;
  padding-left: 5%;
  padding-bottom: 0;
  box-sizing: border-box;
  background-color: var(--primary-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.footer-address,
.footer-contact {
  flex: 1;
}

.footer-address { text-align: left; padding-left: 0; }
.footer-contact { text-align: right; padding-right: 0; }

.footer-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.footer-table td {
  text-align: left;
  color: var(--white);
  word-break: break-word;
  line-height: 1.2;
  padding: 2px 0;
  vertical-align: top;
  background: transparent !important;
}

.footer-table .footer-heading { padding-bottom: 2px; }

.footer-table-left .footer-email-line {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.footer-table-left .footer-email-line img {
  display: inline-block;
  max-width: none;
  vertical-align: middle;
}

.footer-table-right {
  margin-left: auto;
  width: auto;
  min-width: 260px;
}

.footer-table-right td,
.footer-table-right .footer-heading {
  padding-left: 0;
}

.footer-address-lines span {
  display: block !important;
  margin-bottom: 0;
}

.footer-address-lines span:last-child {
  margin-bottom: 0;
}

.footer-address-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-focus-link {
  display: inline-block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}

.footer-focus-link:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  background-color: var(--primary-dark) !important;
  width: 100%;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  background-color: var(--primary-dark);
}

.footer-logo-section blockquote,
.footer-logo-section h2 { margin: 0; }

.footer-logo-text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-content: center;
}

.logo-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 1);
  line-height: 1.1;
}

.logo-address {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.1;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

footer,
footer .footer-content,
footer .footer-grid,
footer .footer-bottom,
footer .footer-logo-section,
footer .footer-logo-text,
footer .footer-address,
footer .footer-contact,
footer .footer-copyright {
  background-color: var(--primary-dark) !important;
}

.analytics-hidden { display: none; }

@media (max-width: 992px) {
  .main-nav { gap: 8px; }

  .main-nav > li > a {
    font-size: 0.8rem;
    padding: 5px 6px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px 5%;
  }

  .logo-area {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    width: 100%;
  }

  .logo-text {
    max-width: none;
    font-size: 1.15rem;
    white-space: normal;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
  }

  .main-nav > li > a {
    font-size: 0.75rem;
    padding: 4px 5px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: left;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-address,
  .footer-contact {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-table-right {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .footer-table-right td,
  .footer-table-right .footer-heading {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
  }

  .footer-logo-section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-copyright { text-align: center; }
}
