:root {
  --navy: #141b3d;
  --slate: #8a92b2;
  --silver: #b8bdd4;
  --ice: #eef0f7;
  --white: #fafbfe;
  --accent: #5b7fa4;
  --border-soft: rgba(20, 27, 61, 0.1);
  --max: 1200px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, var(--white) 0%, #f4f7fd 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 251, 254, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 27, 61, 0.06);
}

.nav-inner,
.container,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

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

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
}

.footer-brand {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(20, 27, 61, 0.2);
  background: transparent;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(1px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-1px) rotate(-45deg);
}

.nav-links,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links {
  gap: 40px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
}

.page-main.contact-page {
  padding: 72px 0 0;
  background: var(--white);
}

.contact-split {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 72px 64px;
}

.split-content-inner {
  width: 100%;
  max-width: 600px;
}

.contact-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-heading {
  margin: 12px 0 56px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.12;
  color: var(--navy);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-card {
  position: relative;
  padding-left: 24px;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 2px;
  height: 36px;
  background: rgba(91, 127, 164, 0.35);
}

.card-label {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

.card-value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.6;
}

.card-detail {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--slate);
}

.card-link-wrap {
  margin: 16px 0 0;
}

.maps-link,
.email-link {
  color: var(--accent);
}

.maps-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.maps-link .link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.maps-link:hover .link-arrow,
.maps-link:focus-visible .link-arrow {
  transform: translateX(4px);
}

.email-link {
  text-decoration: none;
}

.email-link:hover,
.email-link:focus-visible {
  text-decoration: underline;
}

.split-map {
  position: relative;
  min-height: calc(100vh - 72px);
  background: var(--navy);
  overflow: hidden;
}

.split-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, #fafbfe, transparent);
  z-index: 2;
  pointer-events: none;
}

.split-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.12) brightness(1.08) contrast(1.05);
  opacity: 0.8;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.split-map:hover iframe,
.split-map:focus-within iframe {
  filter: saturate(0.45) brightness(1.03) contrast(1.02);
  opacity: 0.95;
}

.map-float-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #ffffff;
  border-radius: 4px;
  padding: 16px 24px;
  box-shadow: 0 4px 24px rgba(20, 27, 61, 0.1), 0 1px 4px rgba(20, 27, 61, 0.05);
  pointer-events: none;
}

.map-float-name {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.map-float-address {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate);
}

.page-main {
  padding: 8.5rem 0 4rem;
}

.page-main .container {
  max-width: 900px;
}

.page-title {
  margin: 0 0 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.content-block {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.content-block p {
  color: var(--slate);
  line-height: 1.72;
}

.content-block h2 {
  margin: 1.4rem 0 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
}

.content-block h2:first-of-type {
  margin-top: 0;
}

.map-replacement {
  margin-top: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: linear-gradient(145deg, #edf3fb, #f8fbff);
  padding: 1rem;
}

.map-graphic {
  position: relative;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  height: 170px;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(90deg, rgba(91, 127, 164, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(91, 127, 164, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, #e1ecfb 0%, #f5f9ff 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  overflow: hidden;
}

.map-line {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: rgba(91, 127, 164, 0.25);
}

.map-line-a {
  width: 66%;
  top: 34%;
  left: -4%;
  transform: rotate(-8deg);
}

.map-line-b {
  width: 72%;
  top: 58%;
  right: -8%;
  transform: rotate(11deg);
}

.map-line-c {
  width: 40%;
  top: 18%;
  right: 6%;
  transform: rotate(-16deg);
}

.map-pin {
  position: absolute;
  left: 58%;
  top: 46%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d03b56;
  box-shadow: 0 0 0 6px rgba(208, 59, 86, 0.2);
}

.map-label {
  position: absolute;
  left: 62%;
  top: 42%;
  transform: translateY(-100%);
  background: #ffffff;
  border: 1px solid #cbd8ea;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.footer {
  padding: 64px 0 48px;
  background: var(--navy);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 24px;
}

.footer-links {
  gap: 36px;
}

.footer-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
  margin: 0 0 32px;
  max-width: 860px;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.85;
}

.footer-copyright {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .nav-inner,
  .container,
  .footer-inner {
    padding: 0 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(250, 251, 254, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .page-main {
    padding-top: 7.5rem;
  }

  .page-main.contact-page {
    padding-top: 72px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
}

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

  .split-content {
    justify-content: stretch;
    padding: 56px 24px 48px;
  }

  .split-content-inner {
    max-width: none;
  }

  .split-map {
    min-height: 50vh;
    height: 50vh;
  }

  .split-map::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 40px;
    background: linear-gradient(to bottom, #fafbfe, transparent);
  }

  .map-float-label {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 16px;
  }
}
