@font-face {
  font-family: "Neuvetica";
  src: url("../fonts/neuvetica-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #11233f;
  --blue-soft: #1a345b;
  --linen: #faf8f4;
  --gold: #d6b97f;
  --stone: #e8dbca;
  --ink: #0d1c32;
  --white: #ffffff;
  --line: rgba(17, 35, 63, 0.16);
  --sans: "Neuvetica", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  /* Remplacer uniquement la première famille par "The Old Valley" dès réception des fichiers officiels. */
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --container: 1240px;
  --header-height: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html[data-text-size="115"] {
  font-size: 115%;
}

html[data-text-size="130"] {
  font-size: 130%;
}

html[data-text-size="150"] {
  font-size: 150%;
}

html[data-text-size="200"] {
  font-size: 200%;
}

body {
  margin: 0;
  color: var(--blue);
  background: var(--linen);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.012em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  color: var(--linen);
  background: var(--blue);
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 132px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 4.2vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--blue);
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid rgba(17, 35, 63, 0.08);
  transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  height: 78px;
  box-shadow: 0 12px 32px rgba(17, 35, 63, 0.08);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  position: relative;
  z-index: 102;
  flex: 0 0 auto;
  width: 220px;
  transition: width 0.35s var(--ease);
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.main-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 20px;
  color: var(--linen);
  background: var(--blue);
  border: 1px solid var(--blue);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}

.nav-cta:hover {
  color: var(--blue);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 6px auto;
  background: var(--blue);
  transition: transform 0.3s, opacity 0.3s;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(880px, 100svh);
  padding: calc(var(--header-height) + 64px) 0 88px;
  align-items: center;
  overflow: hidden;
  color: var(--linen);
  background: var(--blue);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../images/hero-maisons-du-sud.png") center center / cover no-repeat;
  transform: scale(1.015);
  animation: hero-in 1.5s var(--ease) both;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 20, 39, 0.9) 0%, rgba(8, 24, 45, 0.66) 42%, rgba(8, 22, 40, 0.08) 72%),
    linear-gradient(0deg, rgba(7, 22, 40, 0.28), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--gold);
  animation: fade-up 0.9s 0.2s var(--ease) both;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 2px;
  font-size: clamp(58px, 7.3vw, 110px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: fade-up 0.95s 0.3s var(--ease) both;
}

.hero h1 span {
  display: block;
}

.hero-tagline {
  margin: 20px 0 30px;
  color: var(--stone);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: 0.01em;
  animation: fade-up 0.95s 0.4s var(--ease) both;
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 38px;
  color: rgba(250, 248, 244, 0.86);
  font-size: 1.125rem;
  line-height: 1.7;
  animation: fade-up 0.95s 0.5s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fade-up 0.95s 0.6s var(--ease) both;
}

.hero-actions .button {
  font-size: 0.9375rem;
  letter-spacing: 0.026em;
  line-height: 1.4;
}

.language-selector--hero {
  max-width: 590px;
  margin-top: 24px;
  padding-left: 16px;
  border-left: 1px solid rgba(214, 185, 127, 0.72);
  animation: fade-up 0.95s 0.7s var(--ease) both;
}

.language-selector--hero p {
  margin-bottom: 5px;
  color: rgba(250, 248, 244, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.65;
}

.language-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  list-style: none;
}

.language-list li {
  display: flex;
  align-items: center;
}

.language-list li + li::before {
  margin: 0 8px;
  color: rgba(250, 248, 244, 0.4);
  content: "·";
}

.language-list abbr {
  text-decoration: none;
}

.language-selector--header {
  position: relative;
  width: 145px;
  flex: 0 0 145px;
  border-right: 1px solid rgba(17, 35, 63, 0.14);
  border-left: 1px solid rgba(17, 35, 63, 0.14);
}

.language-selector--header summary {
  display: flex;
  height: 31px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(17, 35, 63, 0.58);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.language-selector--header summary::-webkit-details-marker {
  display: none;
}

.language-selector--header summary:hover,
.language-selector--header[open] summary {
  color: var(--blue);
  background: rgba(214, 185, 127, 0.24);
}

.language-flag {
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 35, 63, 0.14);
}

.language-chevron {
  margin-left: 2px;
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.language-selector--header[open] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 110;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 112px;
  padding: 6px;
  gap: 2px;
  background: var(--linen);
  border: 1px solid rgba(17, 35, 63, 0.14);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(13, 28, 50, 0.16);
}

.language-menu a {
  display: flex;
  height: 34px;
  padding: 0 9px;
  align-items: center;
  gap: 8px;
  color: rgba(17, 35, 63, 0.68);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  color: var(--blue);
  background: rgba(214, 185, 127, 0.24);
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 14px 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

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

.button-gold {
  color: var(--blue);
  background: var(--gold);
  border-color: var(--gold);
}

.button-gold:hover {
  background: #e1c995;
}

.button-ghost {
  color: var(--linen);
  border-color: rgba(250, 248, 244, 0.56);
}

.button-ghost:hover {
  background: rgba(250, 248, 244, 0.1);
  border-color: var(--linen);
}

.button-dark {
  color: var(--linen);
  background: var(--blue);
}

.button-dark:hover {
  background: var(--blue-soft);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 248, 244, 0.8);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

.locations-bar {
  color: var(--linen);
  background: var(--blue);
}

.locations-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.locations-inner > p {
  margin: 0;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.locations-inner ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 40px;
  list-style: none;
  font-family: var(--sans);
  font-size: 1.0625rem;
}

.locations-inner li + li::before {
  margin-right: 40px;
  color: var(--gold);
  content: "·";
}

.intro-section {
  background: var(--linen);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(64px, 9vw, 130px);
  align-items: start;
}

.intro-copy {
  padding-top: 40px;
}

.intro-copy .lead {
  margin-bottom: 26px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.45;
}

.intro-copy > p:not(.lead) {
  color: rgba(17, 35, 63, 0.72);
  font-size: 1.0625rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  padding-bottom: 5px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
}

.intro-copy > .text-link {
  font-size: 0.9375rem;
  letter-spacing: 0.018em;
  line-height: 1.55;
}

.text-link span {
  color: var(--gold);
  transition: transform 0.25s;
}

.text-link:hover span {
  transform: translateX(5px);
}

.values-grid {
  display: grid;
  margin-top: 106px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-card {
  min-height: 300px;
  padding: 32px 28px 36px;
}

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

.value-number {
  display: block;
  margin-bottom: 58px;
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.value-card h3 {
  margin-bottom: 15px;
  font-size: 28px;
  line-height: 1.1;
}

.value-card p {
  margin-bottom: 0;
  color: rgba(17, 35, 63, 0.68);
  font-size: 0.9375rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.agencies-section {
  color: var(--linen);
  background: var(--blue);
}

.section-heading-row {
  display: grid;
  margin-bottom: 64px;
  grid-template-columns: 1fr 0.65fr;
  gap: 80px;
  align-items: end;
}

.section-heading-row > p {
  max-width: 480px;
  margin: 0 0 5px;
  color: rgba(250, 248, 244, 0.68);
  font-size: 1.0625rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.agency-card {
  display: flex;
  min-height: 660px;
  padding: 30px;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--blue);
  background: var(--linen);
  border: 1px solid rgba(250, 248, 244, 0.18);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.agency-card + .agency-card {
  border-left: 0;
}

.agency-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-9px);
}

.agency-card-featured {
  background: var(--stone);
}

.agency-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.agency-card-heading {
  position: relative;
  min-height: 22px;
}

.agency-map-link {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s;
}

.agency-map-link:hover {
  background: rgba(214, 185, 127, 0.16);
}

.agency-map-link svg {
  width: 27px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.agency-region {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.agency-region {
  margin: 0;
  color: #9a7736;
}

.agency-card h3 {
  display: flex;
  height: 60px;
  min-height: 60px;
  margin: 0 0 14px;
  align-items: center;
  font-size: clamp(29px, 2.55vw, 40px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: left;
  white-space: nowrap;
}

.agency-photo-link {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
}

.agency-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  margin-bottom: 0;
  object-fit: cover;
  object-position: center;
  transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}

.agency-photo-link:hover .agency-photo {
  filter: brightness(0.96);
  transform: scale(1.015);
}

.agency-address-link {
  display: block;
  width: fit-content;
}

.agency-card address {
  color: rgba(17, 35, 63, 0.67);
  font-size: 0.9375rem;
  font-style: normal;
  letter-spacing: 0.018em;
  line-height: 1.65;
  transition: color 0.25s;
}

.agency-address-link:hover address {
  color: var(--blue);
}

.google-review {
  display: flex;
  width: fit-content;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: rgba(17, 35, 63, 0.72);
  font-size: 0.75rem;
  line-height: 1.45;
  transition: color 0.25s;
}

.agency-properties {
  width: 100%;
  min-height: 46px;
  margin: 20px 0 22px;
  padding: 11px 20px;
  font-size: 0.875rem;
  letter-spacing: 0.028em;
  line-height: 1.4;
}

.google-review:hover {
  color: var(--blue);
}

.review-rating {
  font-weight: 700;
}

.review-stars {
  color: #9a7736;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.review-separator {
  color: rgba(17, 35, 63, 0.36);
}

.review-count {
  text-decoration: underline;
  text-decoration-color: rgba(17, 35, 63, 0.28);
  text-underline-offset: 3px;
}

.agency-contact {
  display: flex;
  padding-top: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(17, 35, 63, 0.16);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.024em;
  line-height: 1.55;
}

.agency-contact span:last-child {
  color: #9a7736;
  font-size: 19px;
  transition: transform 0.25s;
}

.agency-contact:hover span:last-child {
  transform: translateX(5px);
}

.services-section {
  background: var(--linen);
}

.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(70px, 10vw, 150px);
}

.services-intro,
.services-list {
  min-width: 0;
}

.services-intro > p:last-child {
  max-width: 430px;
  margin-top: 32px;
  color: rgba(17, 35, 63, 0.7);
  font-size: 1.0625rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  min-height: 156px;
  padding: 28px 4px;
  grid-template-columns: 52px 1fr 48px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), background 0.3s;
}

.service-item:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(232, 219, 202, 0.34);
}

.service-number {
  align-self: start;
  padding-top: 11px;
  color: #9a7736;
  font-size: 0.6875rem;
  font-weight: 700;
}

.service-copy {
  display: flex;
  flex-direction: column;
}

.service-copy strong {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-copy small {
  margin-top: 6px;
  color: rgba(17, 35, 63, 0.62);
  font-size: 0.9375rem;
  letter-spacing: 0.018em;
  line-height: 1.6;
}

.service-arrow {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.service-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item:hover .service-arrow {
  color: var(--linen);
  background: var(--blue);
  transform: rotate(45deg);
}

.territory-section {
  display: grid;
  min-height: 760px;
  grid-template-columns: 1.08fr 0.92fr;
  color: var(--linen);
  background: var(--blue);
}

.territory-image {
  min-height: 620px;
  background:
    linear-gradient(0deg, rgba(17, 35, 63, 0.25), transparent 50%),
    url("../images/hero-maisons-du-sud.png") 66% center / cover no-repeat;
}

.territory-copy {
  display: flex;
  padding: clamp(70px, 8vw, 120px);
  flex-direction: column;
  justify-content: center;
}

.territory-copy h2 {
  margin-bottom: 36px;
}

.territory-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: rgba(250, 248, 244, 0.7);
  font-size: 1.0625rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.territory-copy > .text-link {
  font-size: 0.9375rem;
  letter-spacing: 0.026em;
  line-height: 1.55;
}

.text-link-light {
  color: var(--linen);
}

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  text-align: center;
  background: var(--gold);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.cta-inner > img {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 320px;
  opacity: 0.055;
  transform: translate(-50%, -50%);
}

.cta-inner .eyebrow {
  color: var(--blue);
}

.cta-inner h2 {
  margin-bottom: 27px;
  font-size: clamp(44px, 5.5vw, 76px);
}

.cta-inner > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 33px;
  color: rgba(17, 35, 63, 0.72);
  font-size: 1.0625rem;
  letter-spacing: 0.018em;
  line-height: 1.75;
}

.cta-inner > .button {
  font-size: 0.9375rem;
  letter-spacing: 0.026em;
  line-height: 1.4;
}

.site-footer {
  color: var(--linen);
  background: #0c1c34;
}

.footer-main {
  display: grid;
  padding: 82px 0 70px;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 58px;
}

.footer-brand {
  align-self: start;
  transform: translateY(-26px);
}

.footer-brand img {
  width: 275px;
  height: auto;
  margin-bottom: 23px;
}

.footer-brand p {
  color: rgba(250, 248, 244, 0.6);
  font-family: var(--serif);
  font-size: 1.1875rem;
  letter-spacing: 0;
  line-height: 1.5;
}

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

.footer-column h2 {
  margin-bottom: 15px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(250, 248, 244, 0.7);
  font-size: 0.9375rem;
  letter-spacing: 0.018em;
  line-height: 1.65;
  transition: color 0.2s;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  color: rgba(250, 248, 244, 0.42);
  font-size: 0.8125rem;
  letter-spacing: 0.018em;
  line-height: 1.65;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom > div {
  display: flex;
  gap: 28px;
}

.legal-main {
  padding-top: var(--header-height);
  background: var(--linen);
}

.legal-hero {
  padding: 86px 0 78px;
  color: var(--linen);
  background: var(--blue);
}

.legal-hero-inner {
  max-width: 900px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 38px;
  padding-bottom: 4px;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  border-bottom: 1px solid rgba(214, 185, 127, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 1.03;
}

.legal-updated {
  margin: 0;
  color: rgba(250, 248, 244, 0.68);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.legal-section {
  padding: 96px 0 120px;
}

.legal-content {
  max-width: 860px;
}

.legal-content > section + section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 26px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: rgba(17, 35, 63, 0.78);
  font-size: 1rem;
  letter-spacing: 0.014em;
  line-height: 1.8;
}

.legal-content p,
.legal-content address,
.legal-content ul {
  margin: 0 0 22px;
}

.legal-content address {
  font-style: normal;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content strong {
  color: var(--blue);
  font-weight: 700;
}

.legal-content a:not(.legal-back) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(154, 119, 54, 0.5);
  text-underline-offset: 4px;
}

.legal-contact-block {
  padding: 24px 28px;
  background: rgba(232, 219, 202, 0.35);
  border-left: 2px solid var(--gold);
}

.legal-notice {
  padding: 22px 24px;
  color: var(--blue) !important;
  background: rgba(214, 185, 127, 0.18);
  border: 1px solid rgba(154, 119, 54, 0.28);
}

.text-size-control {
  position: relative;
  z-index: 103;
  display: flex;
  height: 100%;
  flex: 0 0 auto;
  align-items: center;
}

.text-size-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--blue);
  background: var(--gold);
  border: 1px solid rgba(17, 35, 63, 0.2);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(13, 28, 50, 0.18);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.text-size-toggle span span {
  margin-left: 1px;
  font-size: 11px;
  vertical-align: super;
}

.text-size-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  min-height: 46px;
  padding: 5px;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  background: var(--linen);
  border: 1px solid rgba(17, 35, 63, 0.14);
  border-radius: 25px;
  box-shadow: 0 12px 32px rgba(13, 28, 50, 0.18);
  white-space: nowrap;
}

.text-size-panel[hidden] {
  display: none;
}

.text-size-panel button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.text-size-panel button:hover,
.text-size-panel button[aria-pressed="true"] {
  background: rgba(214, 185, 127, 0.28);
}

.text-size-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.text-size-panel output {
  min-width: 48px;
  padding: 0 7px 0 4px;
  color: rgba(17, 35, 63, 0.72);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--linen);
  background: rgba(17, 35, 63, 0.94);
  border: 1px solid rgba(214, 185, 127, 0.48);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(6, 20, 39, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.3s var(--ease), background 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-soft);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@media (min-width: 1061px) {
  .text-size-control {
    position: absolute;
    top: 0;
    right: 24px;
    transform: none;
  }

  .main-nav {
    margin-right: clamp(0px, calc((1431px - 100vw) / 2), 64px);
  }

  .site-header.is-scrolled .brand {
    width: 190px;
  }

  html[data-text-size="150"] .main-nav {
    gap: 18px;
    font-size: 0.875rem;
  }

  html[data-text-size="200"] .main-nav {
    gap: 14px;
    font-size: 0.75rem;
  }

  html[data-text-size="150"] .nav-cta,
  html[data-text-size="200"] .nav-cta {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (min-width: 1061px) and (max-width: 1199px) {
  .header-inner {
    gap: 18px;
  }

  .brand {
    width: 190px;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.875rem;
  }

  .nav-cta {
    padding-right: 14px;
    padding-left: 14px;
  }

  html[data-text-size="150"] .main-nav,
  html[data-text-size="200"] .main-nav {
    gap: 10px;
    font-size: 0.625rem;
  }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  html:lang(es) .main-nav {
    gap: 14px;
    font-size: 0.875rem;
  }

  html:lang(es) .nav-cta {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 1061px) and (max-width: 1399px) {
  html[data-text-size="115"] .main-nav {
    gap: 14px;
    font-size: 0.875rem;
  }

  html[data-text-size="130"] .main-nav {
    gap: 12px;
    font-size: 0.8125rem;
  }

  html[data-text-size="115"] .nav-cta,
  html[data-text-size="130"] .nav-cta {
    padding-right: 12px;
    padding-left: 12px;
  }

  html[data-text-size="150"] .header-inner {
    gap: 18px;
  }

  html[data-text-size="200"] .header-inner {
    gap: 14px;
  }

  html[data-text-size="150"] .brand,
  html[data-text-size="200"] .brand {
    width: 190px;
  }

  html[data-text-size="150"] .main-nav {
    gap: 12px;
    font-size: 0.75rem;
  }

  html[data-text-size="200"] .main-nav {
    gap: 8px;
    font-size: 0.5625rem;
  }

  html[data-text-size="150"] .nav-cta,
  html[data-text-size="200"] .nav-cta {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 1060px) {
  :root {
    --header-height: 82px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    order: 1;
    width: 194px;
  }

  .text-size-control {
    margin-left: auto;
    order: 2;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
    order: 3;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    padding: 115px 28px 40px;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    color: var(--linen);
    background: var(--blue);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.35s var(--ease);
    order: 4;
  }

  .language-selector--header {
    width: 100%;
    flex-basis: auto;
    margin: 9px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(250, 248, 244, 0.15);
    border-right: 0;
    border-bottom: 1px solid rgba(250, 248, 244, 0.15);
    border-left: 0;
  }

  .language-selector--header summary {
    width: 100%;
    height: 42px;
    padding: 0 2px;
    justify-content: flex-start;
    color: rgba(250, 248, 244, 0.82);
    font-size: 0.8125rem;
  }

  .language-selector--header summary:hover,
  .language-selector--header[open] summary {
    color: var(--linen);
    background: transparent;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    background: rgba(250, 248, 244, 0.06);
    border-color: rgba(250, 248, 244, 0.12);
    box-shadow: none;
  }

  .language-menu a {
    height: 42px;
    padding: 0 4px;
    justify-content: center;
    gap: 5px;
    color: rgba(250, 248, 244, 0.72);
    font-size: 0.8125rem;
  }

  .language-menu a:hover,
  .language-menu a[aria-current="page"] {
    color: var(--linen);
    background: rgba(214, 185, 127, 0.2);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a:not(.nav-cta),
  .nav-cta {
    padding: 18px 2px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(250, 248, 244, 0.15);
    font-family: var(--sans);
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    font-weight: 400;
  }

  .menu-open .brand,
  .menu-open .menu-toggle {
    filter: brightness(0) invert(1);
  }

  .menu-open .site-header {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }

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

  .value-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .value-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .agency-card {
    min-height: 590px;
    padding: 25px;
  }

  .services-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
  }

  .territory-copy {
    padding: 70px 52px;
  }

  .footer-main {
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .section {
    padding: 92px 0;
  }

  .hero {
    min-height: 780px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(6, 20, 39, 0.9), rgba(8, 24, 45, 0.52));
  }

  .locations-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .locations-inner ul {
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.9375rem;
  }

  .locations-inner li + li::before {
    margin-right: 16px;
  }

  .intro-grid,
  .section-heading-row,
  .services-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .values-grid {
    margin-top: 72px;
  }

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

  .agency-card {
    min-height: 420px;
  }

  .agency-card + .agency-card {
    border-top: 0;
    border-left: 1px solid rgba(250, 248, 244, 0.18);
  }

  .agency-card h3 {
    height: auto;
    min-height: 60px;
    font-size: 50px;
    white-space: normal;
  }

  .territory-section {
    grid-template-columns: 1fr;
  }

  .territory-image {
    min-height: 520px;
  }

  .territory-copy {
    padding: 80px 32px 90px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    transform: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .brand {
    width: 164px;
  }

  .text-size-control {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: 740px;
    padding: 126px 0 78px;
  }

  .hero-media {
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 20, 39, 0.92), rgba(8, 24, 45, 0.48)),
      linear-gradient(0deg, rgba(7, 22, 40, 0.5), transparent 55%);
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 74px);
  }

  .hero-tagline {
    font-size: 24px;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .language-selector--hero {
    margin-top: 22px;
    padding-left: 13px;
  }

  .language-selector--hero p {
    max-width: 300px;
    font-size: 0.8125rem;
  }

  .button {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  h2 {
    font-size: 40px;
  }

  .intro-copy .lead {
    font-size: 22px;
  }

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

  .value-card {
    min-height: auto;
    padding: 28px 4px 34px;
  }

  .value-card + .value-card,
  .value-card:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .value-number {
    margin-bottom: 30px;
  }

  .section-heading-row {
    margin-bottom: 44px;
  }

  .agency-card {
    min-height: 390px;
    padding: 25px 22px;
  }

  .agency-card h3 {
    font-size: 44px;
  }

  .google-review {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .service-item {
    min-height: 128px;
    grid-template-columns: 36px 1fr 42px;
  }

  .service-item:hover {
    padding-right: 4px;
    padding-left: 4px;
  }

  .service-arrow {
    width: 42px;
    height: 42px;
  }

  .service-copy strong {
    font-size: 38px;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .service-copy small {
    max-width: 190px;
  }

  .territory-image {
    min-height: 390px;
    background-position: 70% center;
  }

  .territory-copy {
    padding: 72px 18px 78px;
  }

  .cta-section {
    padding: 90px 0;
  }

  .cta-inner h2 br {
    display: none;
  }

  .legal-hero {
    padding: 58px 0 54px;
  }

  .legal-back {
    margin-bottom: 30px;
  }

  .legal-hero h1 {
    font-size: 44px;
  }

  .legal-section {
    padding: 64px 0 82px;
  }

  .legal-content > section + section {
    margin-top: 48px;
    padding-top: 48px;
  }

  .legal-content h2 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .legal-contact-block,
  .legal-notice {
    padding: 20px 18px;
  }

  .footer-main {
    width: min(calc(100% - 48px), 340px);
    margin-inline: auto;
    padding: 66px 0 52px;
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }

  .footer-brand {
    width: 100%;
    justify-self: center;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto 23px;
  }

  .footer-column {
    width: 100%;
    max-width: 142px;
    justify-self: center;
  }

  .footer-main > .footer-column {
    align-items: center;
  }

  .footer-main > .footer-column h2,
  .footer-main > .footer-column a {
    text-align: center;
  }

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

  .footer-bottom {
    width: min(calc(100% - 48px), 340px);
    margin-inline: auto;
    padding: 22px 0;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-bottom > div {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .text-size-toggle {
    width: 42px;
    height: 42px;
  }

  .text-size-panel {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    min-height: 46px;
    padding: 5px;
    flex-direction: row;
    border-radius: 25px;
  }

  .text-size-panel output {
    min-width: 48px;
    padding: 0 7px 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
