/* ===========================
   GLOBAL STYLES
=========================== */
:root {
  --navy: #0A1F44;
  --gold: #C9A44C;
  --light: #f5f7fb;
  --dark: #0f172a;
  --gray: #64748b;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}

img { max-width: 100%; display: block; border-radius: var(--radius); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

nav a:hover {
  color: var(--gold);
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  background: var(--gold);
  color: #111;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.btn-secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

/* ===========================
   MODAL
=========================== */
.modal { position: fixed; inset: 0; display: none; z-index: 10000; }
.modal.show { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-content {
  background: #fff;
  width: min(900px, 95%);
  margin: 5vh auto;
  padding: 20px;
  border-radius: 16px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===========================
   MOBILE FIXES (IMPORTANT)
=========================== */
@media (max-width: 900px) {
  .hero-grid, .consult-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  nav {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}
/* ===========================
   MOBILE HEADER FIX
=========================== */
@media (max-width: 768px) {

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.95rem;
  }

  .btn-primary {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 768px) {

  nav {
    justify-content: space-between;
  }

  nav a {
    flex: 1 1 48%;
    text-align: center;
    padding: 6px 0;
    border-radius: 8px;
    background: #f5f7fb;
  }
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.modal-overlay {
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  max-height: 90vh;
  overflow-y: auto;
}

.btn-secondary {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
}
