:root {
  --navy: #0b2438;
  --navy-soft: #173a55;
  --blue: #1c5b82;
  --blue-pale: #eaf2f6;
  --red: #c72f4e;
  --red-dark: #a9213e;
  --cream: #f7f3ed;
  --paper: #fff;
  --ink: #162330;
  --muted: #5d6b76;
  --line: #dbe3e8;
  --shadow: 0 24px 70px rgba(11, 36, 56, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p {
  line-height: 1.72;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(219, 227, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand img {
  width: 15px;
  height: 34px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #334554;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--red);
}

.site-nav .nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--blue-pale);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    radial-gradient(circle at 88% 10%, rgba(199, 47, 78, 0.12), transparent 28rem),
    linear-gradient(145deg, #fff 0%, var(--cream) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(50px, 7vw, 90px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--red);
}

.hero-lead,
.page-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(199, 47, 78, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
  box-shadow: 0 16px 34px rgba(199, 47, 78, 0.28);
}

.button-secondary {
  border-color: #b9c8d1;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.visual-card.admin {
  top: 0;
  right: 0;
  width: 76%;
  height: 57%;
}

.visual-card.estate {
  bottom: 0;
  left: 0;
  width: 72%;
  height: 55%;
}

.visual-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.visual-card.admin .visual-label {
  top: 18px;
  bottom: auto;
}

.trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(11, 36, 56, 0.09);
}

.trust-item {
  padding: 25px 28px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}

.trust-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.section {
  padding: 112px 0;
}

.section-soft {
  background: var(--blue-pale);
}

.section-dark {
  color: #fff;
  background: var(--navy);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 48px;
}

.section-head h2,
.content-copy h2,
.cta h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 510px;
  overflow: hidden;
  align-items: flex-end;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.service-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(6, 21, 33, 0.06) 15%, rgba(6, 21, 33, 0.9) 100%);
}

.service-card img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: scale(1.035);
}

.service-card-content {
  padding: clamp(28px, 5vw, 48px);
}

.service-card .number {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card h3 {
  max-width: 470px;
  min-height: 4.2em;
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.service-card p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-note {
  position: absolute;
  right: -30px;
  bottom: 30px;
  max-width: 250px;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 36px rgba(11, 36, 56, 0.2);
}

.split-note strong {
  display: block;
  font-size: 1.7rem;
}

.split-note span {
  font-size: 0.88rem;
  line-height: 1.45;
}

.content-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list,
.plain-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0.13em;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  content: "✓";
  background: var(--red);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.principle {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.principle .index {
  color: #ef7890;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.principle h3 {
  margin: 17px 0 8px;
  font-size: 1.25rem;
}

.principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.cta-wrap {
  padding: 80px 0;
  background: var(--cream);
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  padding: clamp(36px, 7vw, 72px);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cta p {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: #071a29;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  gap: 50px;
  padding-bottom: 44px;
}

.footer-brand {
  color: #fff;
}

.footer-copy {
  max-width: 410px;
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.footer-title {
  margin: 0 0 15px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* Internal pages */
.page-hero {
  padding: 88px 0 90px;
  background: var(--cream);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.page-hero-media {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.page-hero.admin-page .page-hero-media img {
  object-position: center;
}

.person-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.person-line::before {
  width: 36px;
  height: 1px;
  content: "";
  background: var(--red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.feature-card .icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 800;
  background: #fbecef;
}

.feature-card h3 {
  margin: 22px 0 9px;
  color: var(--navy);
  font-size: 1.17rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.audience-card {
  padding: 30px;
  border-radius: 18px;
  background: #fff;
}

.audience-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 1.15rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.statement {
  padding: clamp(36px, 6vw, 64px);
  border-left: 5px solid var(--red);
  border-radius: 0 22px 22px 0;
  background: var(--cream);
}

.statement blockquote {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.statement p {
  margin: 20px 0 0;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(46px, 8vw, 100px);
}

.profile-photo {
  overflow: hidden;
  border-radius: 24px;
  background: var(--blue-pale);
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
  object-position: 50% 22%;
}

.profile-photo-cutout {
  display: flex;
  min-height: 610px;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.96), rgba(234, 242, 246, 0.72) 48%, rgba(199, 47, 78, 0.12) 100%);
}

.profile-photo-cutout img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  object-position: center bottom;
}

.anna-photo img {
  width: 96%;
}

.marcello-photo img {
  width: auto;
  max-width: none;
  height: 610px;
  max-height: none;
}

.profile-on-dark {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.profile-principles {
  margin-top: 34px;
}

.profile-principles .principle {
  padding: 24px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.credential-card {
  display: grid;
  min-height: 124px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.credential-card strong,
.credential-card span {
  display: block;
}

.credential-card strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.28;
}

.credential-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.fiaip-seal {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.remax-lockup {
  position: relative;
  width: 112px;
  aspect-ratio: 1080 / 330;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.remax-lockup img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.small-note {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  background: #fff;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .split,
  .profile,
  .profile-on-dark {
    grid-template-columns: 1fr;
  }

  .profile-photo-cutout {
    min-height: 540px;
  }

  .hero-visual {
    min-height: 510px;
  }

  .page-hero-media img {
    height: 470px;
  }

  .feature-grid,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .split-note {
    right: 20px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    background: #fff;
  }

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

  .site-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
  }

  .site-nav .nav-cta {
    margin-top: 20px;
    padding: 15px 20px;
    text-align: center;
  }

  .hero,
  .page-hero {
    padding: 64px 0 74px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-card {
    border-width: 5px;
    border-radius: 20px;
  }

  .visual-card.admin {
    width: 80%;
    height: 55%;
  }

  .visual-card.estate {
    width: 78%;
    height: 53%;
  }

  .trust-grid,
  .service-grid,
  .feature-grid,
  .audience-grid,
  .principles,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .service-card {
    min-height: 450px;
  }

  .service-card h3 {
    min-height: 0;
  }

  .split-media img {
    min-height: 420px;
  }

  .split-note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -50px 18px 0;
  }

  .page-hero-media img {
    height: 420px;
  }

  .profile-photo img {
    max-height: 520px;
  }

  .profile-photo-cutout {
    min-height: 460px;
  }

  .marcello-photo img {
    height: 500px;
  }

  .credential-grid,
  .profile-principles {
    grid-template-columns: 1fr;
  }

  .credential-card {
    min-height: auto;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
