/* ==================== DESIGN SYSTEM ==================== */
:root {
  --blue-navy: #002d72;
  --blue-royal: #407ec9;
  --blue-sky: #38abe0;
  --blue-sky-hover: #1684b8;
  --blue-sky-disabled: #c8eafa;
  --green-mint: #00bfb9;
  --green-mint-hover: #00d9ce;
  --gray-900: #333f48;
  --gray-800: #5b6770;
  --gray-700: #7c878e;
  --gray-600: #a2aaad;
  --gray-500: #c1c6c8;
  --gray-400: #d0d3d4;
  --gray-300: #e1e4e6;
  --gray-200: #f0f3f5;
  --gray-100: #f7f9fa;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --box-shadow: 0 0 10px rgba(51, 63, 72, 0.16);
  --border-default: 1px solid var(--gray-300);
  --max-width: 1200px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-200);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--blue-navy);
}

.header-nav {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.logo-link {
  flex-shrink: 0;
  margin-right: 32px;
}

.header-logo {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 24px 16px;
  color: var(--blue-sky);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

a.nav-link:hover,
.nav-item:hover > .nav-link {
  color: #fff;
  border-bottom-color: var(--blue-sky);
}

/* Dropdown Menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: var(--box-shadow);
  border-top: 3px solid var(--blue-sky);
  z-index: 200;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-900);
  font-size: 14px;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu li a:hover {
  background-color: var(--blue-sky);
  color: #fff;
}

/* Search Button */
.search-btn {
  margin-left: auto;
  background: var(--blue-sky);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background: var(--blue-sky-hover);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ==================== MAIN CONTENT ==================== */
main {
  min-height: 60vh;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue-navy);
  text-align: center;
  margin-bottom: 40px;
}

/* ==================== CONTACT CARD ==================== */
.contact-card {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card-left {
  flex: 0 0 320px;
  padding: 40px 32px;
  border-right: var(--border-default);
  display: flex;
  flex-direction: column;
}

.card-logo-wrapper {
  background: var(--blue-navy);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 32px;
}

.card-logo {
  max-width: 160px;
  height: auto;
}

.card-copy {
  margin-bottom: 24px;
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-navy);
  margin-bottom: 12px;
}

.card-copy p {
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-copy p:last-child {
  margin-bottom: 0;
}

.card-disclaimer {
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.5;
  border-top: var(--border-default);
  padding-top: 20px;
}

.disclaimer-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  font-size: 16px;
}

.contact-card-right {
  flex: 1;
  padding: 40px 32px;
}

/* ==================== FORM ==================== */
.required {
  color: #e74c3c;
}

.optional {
  font-weight: 400;
  color: var(--gray-700);
  font-size: 14px;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-800);
  padding: 4px 0;
  line-height: 1;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--blue-sky);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}

.field-error {
  color: #e74c3c;
  font-size: 14px;
  margin-bottom: 12px;
}

.field-success {
  color: var(--green-mint);
  font-size: 14px;
  margin-bottom: 12px;
}

/* ==================== FORM FIELDS ==================== */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-size: 15px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gray-900);
  background: #fff;
  border: var(--border-default);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-sky);
  box-shadow: 0 0 0 2px rgba(56, 171, 224, 0.2);
}

.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #e74c3c;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6770' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--blue-sky);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-sky-hover);
}

.btn-primary:disabled {
  background: var(--blue-sky-disabled);
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--blue-sky);
  border: 2px solid var(--blue-sky);
}

.btn-outline:hover {
  background: var(--blue-sky);
  color: #fff;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* reCAPTCHA */
.g-recaptcha {
  margin-bottom: 8px;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
  background: var(--blue-sky);
  padding: 48px 24px;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.newsletter-form input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  border: none;
  border-radius: 0;
  background: #fff;
}

.newsletter-form input:focus {
  outline: 2px solid var(--blue-navy);
}

.btn-newsletter {
  background: var(--blue-navy);
  color: #fff;
  padding: 10px 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-newsletter:hover {
  background: #001d4d;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--blue-navy);
  color: #fff;
  padding-top: 48px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 0 0 240px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--blue-sky);
}

.footer-address {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-address strong {
  display: block;
  margin-bottom: 4px;
}

.footer-phone a,
.footer-email a {
  color: var(--blue-sky);
  transition: color 0.2s;
}

.footer-phone a:hover,
.footer-email a:hover {
  color: #fff;
}

.footer-phone,
.footer-fax,
.footer-email {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  color: var(--blue-sky);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.footer-nav-col ul li {
  margin-bottom: 8px;
}

.footer-nav-col ul li a {
  color: #fff;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav-col ul li a:hover {
  color: var(--blue-sky);
}

.btn-client-login {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.btn-client-login:hover {
  background: #fff;
  color: var(--blue-navy);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.badge-img {
  height: 64px;
  width: auto;
}

/* Footer Legal */
.footer-legal {
  background: var(--blue-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-legal p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-legal .copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 0;
}

/* ==================== MOBILE NAV OVERLAY ==================== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-navy);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobile-nav-list {
  padding: 0 24px 24px;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-item > span,
.mobile-nav-item > a {
  display: block;
  padding: 14px 0;
  color: var(--blue-sky);
  font-family: var(--font-serif);
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav-item > a:hover,
.mobile-nav-item > span:hover {
  color: #fff;
}

.mobile-dropdown {
  display: none;
  padding-left: 16px;
  padding-bottom: 12px;
}

.mobile-nav-item.open .mobile-dropdown {
  display: block;
}

.mobile-dropdown li a {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.mobile-dropdown li a:hover {
  color: var(--blue-sky);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .search-btn {
    margin-left: auto;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-nav {
    height: 60px;
  }

  .header-logo {
    height: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
    margin-bottom: 28px;
  }

  .page-container {
    padding: 32px 16px 48px;
  }

  .contact-card {
    flex-direction: column;
  }

  .contact-card-left {
    flex: none;
    border-right: none;
    border-bottom: var(--border-default);
    padding: 24px;
  }

  .contact-card-right {
    padding: 24px;
  }

  .card-logo-wrapper {
    padding: 24px;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 32px;
  }

  .footer-left {
    flex: none;
  }

  .footer-nav {
    gap: 24px;
  }

  .footer-badges {
    justify-content: center;
  }

  .newsletter-section h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .contact-card-left {
    padding: 20px;
  }

  .contact-card-right {
    padding: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ==================== LOADING SPINNER ==================== */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
