:root {
  --primary-dark: #0a1628;
  --primary-blue: #0c2340;
  --accent-orange: #ff6b35;
  --accent-orange-hover: #e55a2b;
  --text-dark: #0a1628;
  --text-gray: #4b5563;
  --text-light-gray: #9ca3af;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --font-main: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section-padding {
  padding: 80px 0;
}

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

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* ============================
   HEADER & HAMBURGER
   ============================ */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e6eef7;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px; /* Standardized height */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.logo-highlight {
    color: var(--primary-blue);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: #5a6b7d;
    font-weight: 500;
    font-size: 16px;
}

.main-nav a:hover {
    color: var(--accent-orange);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 2000;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--white);
    z-index: 1500;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid #e6eef7;
    overflow-y: auto;
}

.mobile-menu-overlay.active { transform: translateX(0); }

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
}

body.menu-open { overflow: hidden; }

@media (max-width: 1024px) {
    .main-nav, .header-cta { display: none; }
    .hamburger { display: flex; }
}

/* ============================
   HERO
   ============================ */
#hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1a2942 50%, #2a3c5c 100%);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape-circle {
  border-radius: 50%;
  position: absolute;
}

.circle-white {
  width: 384px; height: 384px;
  background-color: #ffffff; opacity: 0.05;
  top: 50%; left: 65%;
  transform: translate(-50%, -50%);
}

.circle-blue {
  width: 320px; height: 320px;
  background-color: #60a5fa; opacity: 0.1;
  top: 20%; left: 5%;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  margin-top: -40px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: #d1d5db;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  #hero { height: auto; padding: 80px 0; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 16px; }
}

/* ============================
   CONTACT INFO
   ============================ */
#contact-info {
  margin-top: -100px;
  position: relative;
  z-index: 20;
  padding-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 24px;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.icon-box {
  width: 56px; height: 56px;
  background-color: var(--primary-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.contact-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 8px;
}

.subtitle {
  font-size: 14px; color: var(--text-gray); margin-bottom: 12px;
}

.detail {
  font-size: 16px; font-weight: 600;
  color: var(--primary-dark); margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  #contact-info { margin-top: -60px; }
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================
   MAP SECTION
   ============================ */
#visit-offices {
  background-color: #f9fafb;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header h2 {
  font-size: 32px; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 12px;
}

.section-header p {
  font-size: 18px; color: var(--text-gray);
}

.map-container {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05);
}

.toggle-container {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: max-content; 
  max-width: 90%;
}

.toggle-wrapper {
  background: var(--white);
  padding: 6px;
  border-radius: 9999px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 8px;
}

.toggle-btn {
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover:not(.active) {
  background-color: #f3f4f6;
  color: var(--primary-dark);
}

.toggle-btn.active {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
  background-color: #e5e7eb;
  width: 100%;
}

@media (max-width: 768px) {
  .map-frame { height: 350px; }
  .section-header h2 { font-size: 26px; }
  .toggle-container { top: 30px; }
}

/* ============================
   OFFICE LOCATIONS
   ============================ */
#office-locations {
  background-color: #f9fafb;
  padding-top: 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.location-card {
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05);
  display: flex; flex-direction: column;
}

.loc-header {
  display: flex; gap: 20px; margin-bottom: 32px; align-items: center;
}

.loc-icon {
  width: 64px; height: 64px;
  background-color: var(--primary-dark);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.loc-title h3 {
  font-size: 24px; font-weight: 700; margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 600;
}

.badge-orange { background-color: #ffedd5; color: #ea580c; }
.badge-blue { background-color: #dbeafe; color: #2563eb; }

.loc-details { margin-bottom: 32px; }

.detail-row {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}

.detail-icon { width: 24px; margin-top: 2px; }

.detail-row p {
  color: #374151; font-size: 16px; line-height: 1.5;
}

.btn-dark {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 16px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

.btn-full { width: 100%; }
.mt-auto { margin-top: auto; }

@media (max-width: 768px) {
  .locations-grid { grid-template-columns: 1fr; }
  .location-card { padding: 24px; }
}

/* ============================
   CONTACT FORM
   ============================ */
#contact-form {
  background-color: var(--white);
}

.form-wrapper {
  max-width: 976px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.1);
}

.main-form { margin-top: 40px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.form-group {
  display: flex; flex-direction: column; gap: 8px;
}

.full-width { grid-column: span 2; }

label {
  font-weight: 600; font-size: 14px; color: var(--primary-dark);
}

input, select, textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
}

.select-wrapper { position: relative; }

.select-icon {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
}

select { appearance: none; background-color: var(--white); }

/* Quote Section */
.quote-section {
  background-color: #f9fafb;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quote-header h4 { font-size: 16px; font-weight: 600; margin: 0; }

.quote-count {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 14px;
}

.quote-empty { text-align: center; padding: 20px 0; }
.empty-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.browse-link { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }

.quote-items {
  display: flex; flex-direction: column; gap: 12px; margin-top: 16px;
}

.quote-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
}

.quote-item-info strong { display: block; font-size: 14px; color: var(--text-dark); }
.quote-item-info span { font-size: 12px; color: #6b7280; }

.remove-item {
  font-size: 20px; color: #ef4444; font-weight: bold;
}

.form-actions {
  display: flex; justify-content: flex-end;
}

.btn-gradient {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  color: var(--white);
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center;
}

@media (max-width: 768px) {
  .form-wrapper { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .btn-gradient { width: 100%; justify-content: center; }
}

/* ============================
   URGENT ASSISTANCE
   ============================ */
#urgent-assistance {
  background: linear-gradient(90deg, #0a1628 0%, #1a2942 100%);
  padding: 60px 0;
  color: var(--white);
}

.urgent-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.urgent-text h2 {
  font-size: 32px; font-weight: 700; margin-bottom: 8px;
}

.urgent-text p {
  color: #d1d5db; font-size: 18px;
}

.urgent-actions {
  display: flex; gap: 16px;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  display: flex; align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .urgent-content { flex-direction: column; text-align: center; }
  .urgent-actions { flex-direction: column; width: 100%; }
  .btn-white { justify-content: center; }
}

/* ============================
   FOOTER
   ============================ */
#footer {
  background-color: #0f2746;
  color: #d1d5db;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-orange); }

.social-icons {
  display: flex; gap: 16px; margin-bottom: 32px;
}

.newsletter .input-group {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 4px;
}

.newsletter input {
  background: transparent; border: none; color: var(--white);
  padding: 8px 12px; flex: 1; outline: none; min-width: 0;
}

.newsletter button {
  background-color: #00d4ff;
  border-radius: 4px;
  width: 40px;
  display: flex; align-items: center; justify-content: center;
}

.footer-locations {
  display: flex; gap: 80px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px; margin-bottom: 40px;
}

.location h5 { color: var(--white); margin-bottom: 12px; }
.location p { font-size: 14px; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-size: 14px; color: #9ca3af;
}

.footer-links { display: flex; gap: 24px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-locations { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(10, 22, 40, 0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  background: white;
  width: 90%; max-width: 480px;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content { transform: scale(1); }

.success-icon-container {
  width: 80px; height: 80px;
  background-color: #ecfdf5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

.success-checkmark {
  width: 40px; height: 40px;
  fill: none; stroke: #10b981;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawCheck 0.5s ease forwards 0.3s;
}

@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.modal-title {
  font-size: 24px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px;
}

.modal-text {
  color: var(--text-gray); font-size: 16px; margin-bottom: 32px; line-height: 1.5;
}

.btn-modal {
  background-color: var(--primary-dark);
  color: white; border: none;
  padding: 14px 32px; border-radius: 12px;
  font-weight: 600; font-size: 16px;
  cursor: pointer; transition: background 0.2s;
  width: 100%;
}

.btn-modal:hover { background-color: #1a2942; }