/* ------------------------------------------------
   RMS — main stylesheet
   Brand: #CFD6D8 (blue-gray), #000, #FFF
   Font:  RMS Display Regular, fallback DM Sans
   ------------------------------------------------ */

@font-face {
  font-family: 'RMS Display';
  src: url('/fonts/rms-Display-308.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RMS Display';
  src: url('/fonts/rms-Display-308Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Reset & base --- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'RMS Display', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Navigation --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 24px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-link {
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #000;
  transition: opacity 0.2s ease;
}

.nav-link:hover { opacity: 0.55; }

.nav-link--login {
  border: 1px solid #000;
  border-radius: 100px;
  padding: 6px 20px;
}

.nav-link--login:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #CFD6D8;
  padding: 72px 32px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/office.png') center / cover no-repeat;
  opacity: 0.55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, #CFD6D8 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: 160px;
  margin: 0 auto 48px;
}

.hero-tagline {
  font-size: 21px;
  line-height: 1.55;
  color: #000;
  letter-spacing: 0.01em;
}

/* --- Sections --- */

.section {
  padding: 96px 0;
}

.section--white { background: #fff; }
.section--blue { background: #CFD6D8; }

.section-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.section-label {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #000;
  padding-top: 4px;
}

.section-label--centered {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 48px;
}

.section-content { max-width: 640px; }

.large-text {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
}

/* --- Values --- */

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.value-item:first-child { padding-top: 0; }
.value-item:last-child { border-bottom: none; }

.value-item h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
}

.value-item p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
}

/* --- Team --- */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.team-row:first-child { border-top: 1px solid rgba(0, 0, 0, 0.08); }

.team-row-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-row-info {
  flex: 1;
}

.team-row-info h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 2px;
}

.team-row-info p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.team-row-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.team-row-social a {
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.team-row-social a:hover { color: #000; }

/* --- Partner cards --- */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.partner-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.partner-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card-body {
  padding: 24px;
}

.partner-card-body h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 8px;
}

.partner-card-body p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
}

/* --- Page header (subpages) --- */

.page-header {
  background: #CFD6D8;
  padding: 160px 0 64px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* --- Prose (legal pages) --- */

.prose {
  max-width: 640px;
}

.prose h2 {
  font-size: 17px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.prose p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}

.prose strong { color: #000; }

.prose a {
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.prose a:hover { border-color: #000; }

/* --- Contact --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

.contact-info a {
  font-size: 15px;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.contact-info a:hover { border-color: #000; }

/* --- Forms --- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.6);
}

.required { color: rgba(0, 0, 0, 0.35); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  font-family: inherit;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: 4px;
}

.form-group textarea:focus {
  border-color: #000;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 32px;
  border: 1px solid #000;
  border-radius: 100px;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* --- Careers --- */

.careers-intro {
  margin-bottom: 64px;
}

.careers-intro h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 640px;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.careers-block h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 12px;
}

.careers-block p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 20px;
  width: auto;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.footer-email {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-email:hover { border-color: rgba(0, 0, 0, 0.3); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
  color: #000;
}

.footer-links a {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #000; }

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: #000; }

/* --- Responsive --- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 48px 32px;
    gap: 24px;
    z-index: 99;
  }

  .nav-links.open .nav-link { font-size: 24px; }
  .nav-links.open .nav-link--login {
    align-self: flex-start;
    font-size: 18px;
  }

  .section { padding: 64px 0; }

  .section-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-tagline { font-size: 18px; }
  .large-text { font-size: 18px; }
  .page-header { padding: 120px 0 48px; }
  .page-header h1 { font-size: 28px; }
  .careers-intro h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-logo { width: 120px; }
}

/* --- Fade in animation --- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
