*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #FFFFFF;
  --off-white: #F6F6F4;
  --light: #EFEFED;
  --mid: #C4C4C0;
  --muted: #888884;
  --dark: #3A3A38;
  --near-black: #1A1A18;
  --black: #0C0C0A;
  --border: rgba(0,0,0,0.09);
  --border-mid: rgba(0,0,0,0.18);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--near-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: invert(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--black);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links .nav-current a {
  color: var(--black);
  font-weight: 500;
}

.nav-social-item {
  display: flex;
  align-items: center;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--black) !important;
}

.nav-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.header-survey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--black);
  color: var(--white) !important;
  border: 0.5px solid transparent;
  padding: 11px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.header-survey-cta:hover {
  background: var(--near-black);
}

.section-kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--black);
}

footer {
  background: var(--black);
  padding: 3rem 2rem 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
  letter-spacing: 0.04em;
}

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

.floating-cta {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  right: max(24px, calc(env(safe-area-inset-right, 0px) + 24px));
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 0.5px solid transparent;
}

.floating-cta.is-light-bg {
  background: var(--black);
  color: var(--white) !important;
  border-color: transparent;
}

.floating-cta.is-dark-bg {
  background: var(--white);
  color: var(--black) !important;
  border-color: rgba(0,0,0,0.12);
}

.page-contact-us .floating-cta {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

  .header-survey-cta {
    display: none;
  }

  .nav > .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem;
    list-style: none;
    background: rgba(255,255,255,0.98);
    border: 0.5px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 16px 48px rgba(12,12,10,0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    align-items: stretch;
    z-index: 220;
  }

  .nav > .nav-links li {
    width: 100%;
  }

  .nav > .nav-links a {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 14px;
    border-bottom: 0.5px solid var(--border);
  }

  .nav > .nav-links .nav-social-link {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
  }

  .nav > .nav-links .nav-social-link svg {
    width: 24px;
    height: 24px;
  }

  .nav > .nav-links li:last-child a {
    border-bottom: 0;
  }

  .nav.is-open > .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-cta {
    bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
    padding: 13px 20px;
    font-size: 13px;
  }
}

@media (prefers-color-scheme: dark) {
  body,
  .site,
  .site-content {
    background: var(--black);
    color: rgba(255,255,255,0.88);
  }

  .nav {
    background: rgba(12,12,10,0.96);
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .nav-toggle {
    color: var(--white);
  }

  .nav-logo img {
    filter: none;
  }

  .nav-links a {
    color: rgba(255,255,255,0.72);
  }

  .nav-links a:hover,
  .nav-links .nav-current a,
  .nav-social-link {
    color: var(--white) !important;
  }

  .header-survey-cta {
    background: var(--white);
    color: var(--black) !important;
    border-color: rgba(255,255,255,0.14);
  }

  .header-survey-cta:hover {
    background: rgba(255,255,255,0.92);
  }

  .section-kicker {
    color: rgba(255,255,255,0.62);
  }

  .section-title {
    color: var(--white);
  }
}

@media (prefers-color-scheme: dark) and (max-width: 900px) {
  .nav > .nav-links {
    background: rgba(12,12,10,0.98);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  }

  .nav > .nav-links a,
  .nav > .nav-links .nav-social-link {
    border-bottom-color: rgba(255,255,255,0.08);
  }
}
