:root {
  --bg: #f6f8ff;
  --text-primary: #0f172a;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
}

.container {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 255, 0.92); /* solid fallback when backdrop-filter unsupported */
  border-bottom: 1px solid rgba(226, 232, 240, 0.42);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top-nav {
    background: rgba(246, 248, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #1e3a8a;
}

.contact-btn {
  border: none;
  border-radius: 13px;
  height: 50px;
  min-width: 88px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.contact-btn:hover {
  background: var(--brand-hover);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  object-position: 60% center; /* desktop focal point; overridden per breakpoint below */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 248, 255, 0.2) 0%, rgba(246, 248, 255, 0.08) 45%, rgba(246, 248, 255, 0.03) 100%);
}

.site-footer {
  background: rgba(246, 248, 255, 0.92);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1e3a8a;
  white-space: nowrap;
}

.footer-copy {
  overflow-wrap: break-word;
}

.footer-contact {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

@media (max-width: 1279px) {
  .container {
    width: calc(100% - 40px);
  }
}

/* tablet overflow hardening */
@media (min-width: 768px) and (max-width: 1279px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero,
  .hero-bg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero picture img,
  .hero-bg img {
    object-fit: cover;
    /* focal point shifted right to keep subject visible on portrait tablets */
    object-position: 58% center;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 15px;
  }

  .contact-btn {
    height: 48px;
    padding: 0 18px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(246, 248, 255, 0.18) 0%, rgba(246, 248, 255, 0.06) 100%);
  }

  .footer-inner {
    min-height: unset;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
