/* ====== DESIGN TOKENS ====== */
:root {
  --bg: #0b0d12;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --text: #0c1116;
  --muted: #6c7785;
  --brand: #0e4d92;
  --brand-600: #0b3f78;
  --ring: rgba(14, 77, 146, .35);
  --radius: 14px;
  --shadow-1: 0 2px 10px rgba(16, 24, 40, .06);
  --shadow-2: 0 14px 30px rgba(16, 24, 40, .08);
  --gap-1: .5rem;
  --gap-2: 1rem;
  --gap-3: 1.5rem;
  --gap-4: 2.5rem;
  --max: 1440px;
}

/* ====== RESET ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ====== LEGACY HEADER/FOOTER BASE (same palette as index) ====== */
body {
  background-color: black;
  font-family: sans-serif;
  font-weight: bold;
  color: #fff;
}
a { color: black; }

/* ====== MODERN BASE, SCOPED TO MAIN ONLY ====== */
main {
  background: var(--surface-2);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  line-height: 1.5;
}
main a { color: var(--brand); text-decoration: none; }
main a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* =========================================================
   HEADER — COPIED FROM INDEX (kept identical), but forced black bg
   ========================================================= */
header {
  display: flex;
  align-items: center;
  padding: 20px 50px;
  width: 100%;
  margin: 0 auto;
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: #000;           
}

header img { width: 200px; }

header a.logo {
  position: fixed;
  top: 21px;
  left: 40%;
  margin-left: -70px;
}

@media (min-width: 1590px) {
  header img { width: 200px; }
  header a.logo {
    margin-right: 40px;
    position: relative;
    top: initial;
    left: initial;
    margin-left: initial;
  }
}

.center-nav,
.right-nav,
.left-nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.center-nav { position: relative; left: 410px; }
.right-nav {
  position: fixed;
  left: 1300px;
  top: 20px;
  height: 40px;
  display: flex;
  align-items: center;
}
.left-nav {
  position: fixed;
  right: 1300px;
  top: 20px;
  height: 40px;
  display: flex;
  align-items: center;
}

.center-nav a,
.right-nav a,
.left-nav a {
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  margin: 0 30px;
  position: relative;
  transition: color 0.4s ease-in-out;
}

.center-nav a:before,
.right-nav a:before,
.left-nav a::before {
  content: '';
  width: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background-color: white;
  position: absolute;
  transition: width .2s linear;
}

.center-nav a:hover:before,
.right-nav a:hover:before,
.left-nav a:hover::before {
  right: initial;
  left: 0;
  width: 100%;
}

.right-nav a,
.left-nav a { display: none; }

@media (min-width: 1590px) {
  .right-nav a,
  .left-nav a { display: inline-block; margin: 0 50px; }
}

/* Sign out button (same as index) */
#signout-btn {
  background-color: var(--brand);
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  margin-left: 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#signout-btn:hover { background-color: #1a2a3a; }

/* Hamburger + drawer (same as index) */
.hamburger {
  position: fixed;
  z-index: 1100;
  right: 6px;
  top: 13px;
  color: white;
  padding: 20px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 16px;
  margin: 2px 0;
  height: 2px;
  background-color: white;
  position: relative;
  transition: all 0.2s linear;
}
.hamburger.active span:first-child,
.hamburger.active span:nth-child(2) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: rotate(-45deg); top: -4px; }
.hamburger.active span:last-child { opacity: 0; }

.shadow.active {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,.3);
  z-index: 100;
}

nav.mobile-nav {
  padding-top: 70px;
  display: block;
  position: fixed;
  top: 0;
  right: -280px;
  bottom: 0;
  z-index: 101;
  width: 280px;
  background-color: #000;
  transition: right 0.3s ease-in-out;
}
nav.mobile-nav.active { right: 0; }
nav.mobile-nav a {
  display: block;
  opacity: 0;
  border-bottom: 1px solid #222;
  text-transform: uppercase;
  padding: 16px 25px;
  text-decoration: none;
  text-align: right;
  transition: opacity .3s linear;
  transition-delay: .2s;
}
nav.mobile-nav.active a { opacity: 1; color: white; }
nav.mobile-nav a:nth-child(2){transition-delay:.25s;}
nav.mobile-nav a:nth-child(3){transition-delay:.3s;}
nav.mobile-nav a:nth-child(4){transition-delay:.35s;}
nav.mobile-nav a:nth-child(5){transition-delay:.4s;}
nav.mobile-nav a:nth-child(6){transition-delay:.45s;}
nav.mobile-nav a:nth-child(7){transition-delay:.5s;}
nav.mobile-nav a:nth-child(8){transition-delay:.55s;}

/* Ensure content starts below fixed header */
main { padding-top: 25px; }

/* =========================================================
   CONTACT SECTION + CARDS (same as you had)
   ========================================================= */
.section-head { text-align: center; margin-bottom: var(--gap-4); }
.section-head h1 {
  margin: 0 0 .25rem;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--text);
}
.section-head p { margin: 0; color: var(--muted); }

.contact-us {
  background: var(--surface);
  padding-block: clamp(2rem, 3.5vw, 4rem);
  box-shadow: var(--shadow-1);
}

.contact-grid {
  display: grid;
  gap: var(--gap-4);
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 3fr 1.2fr; gap: 3rem; }
}

.contact-form {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-1);
}

.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .5rem; }
label { font-weight: 600; color: var(--text); }
.hint { color: var(--muted); font-size: .85rem; }

input, select, textarea {
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  padding: .9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}
textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s, box-shadow .2s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--brand-600); }

/* Contact info card */
.contact-card {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  border-radius: 6px 0 0 6px;
}
.contact-card .card-kicker {
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .05em;
}
.contact-card h3 { margin: 0; font-size: 1.25rem; color: var(--text); font-weight: 700; }
.contact-card h1 {
  font-size: 1.1rem; margin: 1rem 0 .3rem;
  color: var(--brand-600); border-bottom: 1px solid #e7ecf3; padding-bottom: .3rem;
}
.contact-card ul { list-style: none; margin: 0; padding-left: 0; display: grid; gap: .5rem; }
.contact-card ul li {
  font-size: .95rem; display: flex; align-items: center; justify-content: space-between;
  color: var(--text); background: var(--surface-2);
  padding: .6rem .9rem; border-radius: 8px; border: 1px solid #e7ecf3; transition: background .2s;
}
.contact-card ul li:hover { background: #eef5ff; }
.contact-card ul li strong { color: var(--brand); font-weight: 700; }
.contact-card a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.general-contact { border-top: 1px dashed #e7ecf3; margin-top: 1.25rem; padding-top: 1rem; text-align: center; }
.general-contact h2 { margin: 0 0 .4rem; color: var(--brand); font-size: 1.05rem; }
.general-contact p { margin: 0; color: var(--text); font-weight: 600; }

.region-highlight {
  background: linear-gradient(135deg, var(--surface-2), #eaf2ff);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(14, 77, 146, 0.12);
  padding: 1.5rem 1rem;
  margin-top: 1.5rem;
}
.region-highlight h2 { margin: 0 0 .4rem; color: var(--brand); font-weight: 700; }
.region-highlight p { margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }
.region-highlight .btn-inline {
  background: var(--brand); color: #fff; border-radius: 999px; padding: .6rem 1.1rem;
  font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-block;
  transition: background-color .2s, transform .1s;
}
.region-highlight .btn-inline:hover { background: var(--brand-600); transform: translateY(-1px); }

.captcha-row { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; border-top: 1px dashed #e7ecf3; padding-top: 1rem; }
.recaptcha-notice { font-size: .85rem; color: var(--muted); }

/* Locations */
.location {
  background: #fff;
  padding-block: clamp(2rem, 3.5vw, 4rem);
  position: relative;
}
.location::before {
  content:""; position: absolute; inset: -20px 0 auto 0; height: 20px;
  background: radial-gradient(50% 50% at 50% 100%, rgba(14,77,146,.18), transparent 70%);
  pointer-events: none;
}
.locations-grid { display: grid; gap: var(--gap-3); grid-template-columns: 1fr; }
@media (min-width: 768px){ .locations-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width:1200px){ .locations-grid { grid-template-columns: 1fr 1fr 1fr; } }

.location-card {
  background: #fff; border: 1px solid #e7ecf3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; height: 100%;
}
.location-img { width: 100%; height: 220px; object-fit: cover; }
.location-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.location-body h2 { margin: .25rem 0; color: var(--text); }
.location-body p { margin: .15rem 0; color: var(--text); }
.map-embed { margin-top: .75rem; border-radius: 12px; overflow: hidden; border: 1px solid #e7ecf3; }
.map-embed iframe { width: 100%; height: 260px; border: 0; }

/* =========================================================
   FOOTER — IDENTICAL TO INDEX
   ========================================================= */
footer {
  padding: 50px;
  font-size: 12px;
  background: black;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
footer nav { text-align: center; }
footer nav span {
  color: #777; display: inline-block; padding-right: 30px; text-transform: uppercase;
}
footer nav a {
  color: #fff; padding: 0 20px; text-decoration: none; transition: color .2s;
}
footer nav a:hover { color: #aaa; }

/* =========================================================
   MOBILE ENHANCEMENTS — EXACTLY LIKE INDEX ON iPHONE
   (but keep header background black)
   ========================================================= */
@media (max-width: 932px) {
  header {
    padding: max(10px, env(safe-area-inset-top)) 16px 10px 16px;
    height: 56px;
    background: #000 !important;     /* <— stay BLACK on mobile */
    backdrop-filter: none;            /* index uses blur; contact forces black */
  }

  header a.logo { position: static; margin: 0 0 0 125px; display: block; }
  header img { width: 150px; height: auto; display: block; margin: 0 auto; }

  .left-nav, .center-nav, .right-nav {
    position: static !important;
    display: none !important;
    white-space: normal;
  }

  .hamburger { right: 8px; top: 8px; padding: 16px; }
  .hamburger span { width: 22px; height: 3px; margin: 4px 0; }

  nav.mobile-nav {
    width: min(88vw, 320px);
    right: calc(-1 * min(88vw, 320px));
    padding-top: 64px;
    border-left: 1px solid #222;
  }

  nav.mobile-nav a {
    font-size: 16px;
    letter-spacing: .5px;
    padding: 16px 20px;
  }

  .shadow.active { background-color: rgba(0,0,0,.5); }

  /* ensure page content doesn’t sit under the fixed header */
  main { padding-top: 80px; }
}
