:root {
  --bg: #f3f1f3;
  --surface: #ffffff;
  --surface-alt: #ece8ec;
  --text: #4d4b4b;
  --muted: #666666;
  --line: #ddd4db;
  --brand: #5d2243;
  --brand-strong: #2b1138;
  --brand-soft: #00a1d9;
  --brand-soft-strong: #0095c8;
  --brand-tint: #f4e8ef;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(93, 34, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  color: var(--muted);
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3.4rem, 7vw, 6.5rem) 0;
  position: relative;
}

.section-alt {
  background: var(--surface-alt);
}

.section-profile {
  overflow: hidden;
}

.section-profile::after {
  content: "";
  position: absolute;
  right: clamp(-1rem, 6vw, 7rem);
  top: 52%;
  width: min(56vw, 760px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: url("sofia_map_transparent.png") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 16px 26px rgba(93, 34, 67, 0.12));
}

.section-profile .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.atmosphere {
  position: fixed;
  top: -260px;
  right: -140px;
  width: 900px;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 161, 217, 0.22), rgba(93, 34, 67, 0.08) 45%, transparent 72%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(155deg, rgb(34, 13, 50) 0%, rgb(81, 31, 67) 49%, rgb(111, 48, 65) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand), var(--brand-soft));
}

.site-header.is-compact {
  background: linear-gradient(155deg, rgb(34, 13, 50) 0%, rgb(81, 31, 67) 49%, rgb(111, 48, 65) 100%);
  box-shadow: 0 10px 26px rgba(93, 34, 67, 0.12);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: min-height 0.25s ease;
}

.site-header.is-compact .nav-wrap {
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Sora", sans-serif;
  font-weight: 600;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-soft));
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
}

.logo-mark-image {
  width: 88px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: width 0.25s ease, height 0.25s ease, padding 0.25s ease, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-mark-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.site-header.is-compact .logo-mark-image {
  width: 36px;
  height: 12px;
  padding: 0;
  transform: translateY(-12px);
  background: transparent;
  box-shadow: none;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.92);
}

.nav-links a:not(.btn):hover,
.footer-links a:hover {
  color: #d8f4fd;
}

.menu-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.56rem 0.94rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.52rem 0.95rem;
  font-size: 0.9rem;
}

.site-header .btn-small {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(34, 13, 50, 0.18);
}

.site-header .btn-small:hover {
  background: #f4e8ef;
  color: var(--brand-strong);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy .eyebrow {
  color: #d8f4fd;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  color: var(--brand-soft);
}

.hero-copy p {
  color: rgba(240, 248, 252, 0.9);
  max-width: 66ch;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.86rem;
  margin-top: 1.75rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 140, 176, 0.2), rgba(34, 140, 176, 0) 36%),
    linear-gradient(to top, rgba(8, 18, 28, 0.86) 8%, rgba(8, 18, 28, 0.5) 48%, rgba(8, 18, 28, 0.36) 100%);
  z-index: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tags span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a5462;
}

.statement {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.8rem;
  max-width: 80ch;
}

.card-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 5px 14px rgba(93, 34, 67, 0.08);
}

.card p,
.card .btn,
.card .meta {
  margin-top: 0.75rem;
}

.commitment {
  margin-top: 1rem;
  background: linear-gradient(155deg, rgb(34, 13, 50) 0%, rgb(81, 31, 67) 49%, rgb(111, 48, 65) 100%);
  border-radius: 22px;
  color: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.commitment .meta,
.commitment p {
  color: rgba(255, 255, 255, 0.92);
}

.commitment p:last-child {
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 600;
}

.steps {
  margin-top: 1rem;
}

.featured-card {
  background: linear-gradient(145deg, var(--brand), var(--brand-soft-strong));
  color: #fff;
  border-color: rgba(0, 149, 200, 0.38);
}

.featured-card p,
.featured-card .meta {
  color: rgba(241, 248, 252, 0.88);
}

.lead-caps {
  margin-top: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--brand);
  font-weight: 700;
}

.section-intro {
  margin-top: 1rem;
  max-width: 80ch;
}

.gm-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gm-head-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: linear-gradient(145deg, #f7edf2, #efe2e9);
  border: 1px solid #d8c1cd;
  box-shadow: 0 10px 24px rgba(93, 34, 67, 0.14);
  flex: 0 0 auto;
}

.gm-head-icon svg {
  width: 34px;
  height: 34px;
}

.gm {
  margin-top: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 5px 14px rgba(93, 34, 67, 0.08);
}

.gm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.gm-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #faf6f8;
  color: #6a5462;
  padding: 0.5rem 0.86rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.gm-tab.active {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: #caa6b8;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.gm-panel {
  display: none;
}

.gm-panel.active {
  display: block;
}

.gm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.gm-card {
  text-align: left;
  background: #faf7f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gm-card:hover {
  border-color: #cbaebc;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(93, 34, 67, 0.1);
}

.gm-card.selected {
  border: 2px solid var(--brand);
  background: var(--brand-tint);
}

.gm-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: linear-gradient(145deg, #f8edf3, #f0e3ea);
  border: 1px solid #d8c0cd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gm-card.selected .gm-card-icon {
  color: var(--brand-soft-strong);
  background: linear-gradient(145deg, #f4ebf1, #e7f5fb);
  border-color: #b8d9e5;
}

.gm-card-icon svg {
  width: 22px;
  height: 22px;
}

.gm-card-title {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.gm-card-sub {
  margin-top: 0.2rem;
  color: #6f6470;
  font-size: 0.75rem;
  line-height: 1.35;
}

.gm-badge {
  display: inline-block;
  margin-top: 0.45rem;
  border-radius: 999px;
  padding: 0.17rem 0.52rem;
  font-size: 0.67rem;
  font-weight: 700;
}

.gm-badge-blue {
  background: #e3f5fb;
  color: var(--brand-soft-strong);
}

.gm-badge-green {
  background: #f4e8ef;
  color: var(--brand);
}

.gm-badge-amber {
  background: #f9efe4;
  color: #8d4d24;
}

.gm-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.gm-detail h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.gm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.44rem 0;
  border-bottom: 1px solid #eee1e8;
}

.gm-row:last-child {
  border-bottom: 0;
}

.gm-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #6f6470;
  font-size: 0.82rem;
  white-space: nowrap;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
}

.info-icon svg {
  width: 15px;
  height: 15px;
}

.gm-val {
  color: var(--text);
  font-size: 0.82rem;
  text-align: right;
  font-weight: 600;
}

.gm-note {
  color: #7a6672;
  font-weight: 500;
  font-size: 0.76rem;
}

.gm-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 180px;
}

.gm-bar {
  width: min(140px, 34vw);
  height: 10px;
  background: linear-gradient(180deg, #f2ebef, #e7dde4);
  border: 1px solid #d8cbd3;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(11, 47, 67, 0.12);
}

.gm-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease, background 0.35s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.gm-bar-fill::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.06));
}

.gm-bar-wrap .gm-val {
  min-width: 40px;
  text-align: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #dbcfd7;
  background: #faf6f8;
  font-size: 0.75rem;
}

.gm-process-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.gm-ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid var(--line);
  background: #faf6f8;
  color: #6a5462;
  border-radius: 10px;
  padding: 0.46rem 0.72rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.gm-ps-btn.active {
  background: #e3f5fb;
  color: var(--brand-soft-strong);
  border-color: #8cd0e8;
}

.gm-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee1e8;
}

.gm-step:last-child {
  border-bottom: 0;
}

.gm-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.gm-step-body h4 {
  font-size: 0.92rem;
  margin: 0;
}

.gm-step-body p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6f6470;
}

.meta {
  color: #8a7a84;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.cta-box {
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.2rem;
  box-shadow: 0 6px 16px rgba(93, 34, 67, 0.08);
}

.cta-box h2 {
  margin: 0.35rem 0 0.6rem;
}

.contact-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.contact-block {
  display: grid;
  gap: 0.38rem;
  text-align: right;
}

.contact-block a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  color: var(--brand-strong);
  font-weight: 600;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.site-footer {
  background: linear-gradient(155deg, rgb(34, 13, 50) 0%, rgb(81, 31, 67) 49%, rgb(111, 48, 65) 100%);
  color: #e7f4fb;
  padding-top: 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 44ch);
  align-items: start;
  flex: 1 1 auto;
  gap: 1rem;
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0;
  transform: translateY(-6px);
}

.footer-logo .logo-mark {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  border-radius: 0;
  font-weight: 400;
}

.footer-logo .logo-mark-image {
  width: 72px;
  height: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-copy {
  display: block;
  width: auto;
  flex: none;
  margin-top: 0;
  max-width: 44ch;
  color: #b7d4e1;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2.8rem;
  border-top: 1px solid rgba(162, 201, 219, 0.22);
  padding: 1.1rem 0 1.4rem;
}

.footer-bottom p {
  color: #a8c9d9;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .card-grid,
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 4vw;
    right: 4vw;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0.8rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

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

  .card-grid,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-grid {
    flex-direction: column;
  }

  .contact-block {
    text-align: left;
  }

  .contact-block a {
    justify-content: flex-start;
  }

  .section-profile::after {
    right: -2rem;
    top: auto;
    bottom: -1rem;
    width: min(74vw, 420px);
    transform: none;
    opacity: 0.22;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .gm-head {
    align-items: flex-start;
  }

  .gm-head-icon {
    width: 48px;
    height: 48px;
  }

  .gm-bar-wrap {
    min-width: 135px;
  }

  .gm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
