:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --navy: #052329;
  --deep: #031a1f;
  --stone: #f1f3f5;
  --accent: #052329;
  --shadow: 0 18px 50px rgba(16, 35, 63, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand { display:flex; align-items:center; gap:18px; border: 0; background: transparent; color: var(--white); text-align: left; text-decoration: none; }
.brandLogo { width: 105px; height: 105px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.45rem; font-family: Georgia, serif; letter-spacing: 0.5px; }
.brand small { color: rgba(255, 255, 255, 0.7); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; font-size: 0.85rem; }
.desktopNav { display:flex; gap: 8px; }
.desktopNav button, .mobileNav button { border:0; background:transparent; color: rgba(255,255,255,.85); padding: 10px 16px; border-radius: 6px; font-weight:600; text-decoration: none; }
.servicesNav { position: relative; display:inline-flex; align-items:center; }
.servicesNav > button { display:inline-flex; align-items:center; gap:8px; text-decoration: none; }
.servicesDropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); color: var(--navy); border-radius: 8px; box-shadow: 0 12px 30px rgba(16,35,63,.18); padding: 8px; display: none; flex-direction: column; min-width: 260px; z-index: 40; }
.servicesDropdown.show { display: flex; }
.servicesDropdown a { text-decoration: none; color: var(--navy); padding: 12px 14px; border-radius: 8px; font-weight:700; }
.servicesDropdown a:hover { background: var(--stone); }
.desktopNav button.active, .desktopNav button:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.menuButton, .close { display: none; border: 0; background: transparent; color: var(--white); }
.mobileOverlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobileOverlay.open { opacity: 1; pointer-events: auto; }
.mobileNav { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(340px, 86vw); padding: 22px; background: var(--navy) !important; border-left: 1px solid rgba(255, 255, 255, .1); box-shadow: -22px 0 60px rgba(0, 0, 0, .5); transform: translateX(105%); transition: .25s ease; opacity: 1 !important; }
.mobileNav.open { transform: translateX(0); }
.mobileBrand { display:flex; align-items:center; gap:12px; color: white; padding: 4px 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.mobileBrand img { width: 95px; height: 95px; object-fit: contain; }
.mobileBrand strong, .mobileBrand small { display:block; }
.mobileBrand strong { font-family: Georgia, serif; }
.mobileBrand small { color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight:700; }

/* keep page content below fixed header */
.pageTopSpacer { height: 120px; }

@media(max-width:900px){
  .desktopNav { display: none; }
  .menuButton, .close { display: inline-flex; }
  .brandLogo { width: 64px; height: 64px; }
  .topbar { height: 76px; padding: 12px 16px; }
  .pageTopSpacer { height: 86px; }
}

/* Ensure mobile nav links are stacked vertically and full-width */
.mobileNav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  border-radius: 6px;
  color: var(--white);
  background: transparent;
}
.mobileNav button + button { margin-top: 6px; }
.mobileServices { padding-left: 12px; }
.mobileServices button { padding-left: 0; }
