/* =========================================================
   MSA REAL ESTATE — Main Stylesheet
   Plain CSS (no frameworks, no build tools)
   ========================================================= */

/* ---------- 1. Colors, fonts and sizes (change them here) ---------- */
:root {
  --ink: #0e1013;          /* very dark background */
  --ink-2: #171a1f;        /* dark cards */
  --cream: #f7f3ec;        /* light warm background */
  --white: #ffffff;
  --gold: #c8a165;         /* main brand color */
  --gold-2: #e8cf9c;       /* light gold */
  --gold-dark: #a8823f;
  --text: #1d2025;
  --muted: #6c7078;
  --line: rgba(14, 16, 19, .1);

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(14, 16, 19, .25);
  --shadow-lg: 0 30px 60px -20px rgba(14, 16, 19, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 80px;
}

/* ---------- 2. Basic reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

.icon {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--white); }

/* ---------- 3. Text styles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow__line { width: 34px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }

.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.section__title em, .logo__text em { font-style: italic; color: var(--gold); }
.section__text { color: var(--muted); max-width: 560px; font-size: 1.05rem; }
.section--dark .section__text { color: rgba(255, 255, 255, .65); }
.center .section__text { margin-inline: auto; }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 2rem;
}

.gold-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 45%, var(--gold) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  color: var(--ink);
  box-shadow: 0 10px 25px -10px rgba(200, 161, 101, .8);
}
.btn--gold:hover { box-shadow: 0 16px 35px -12px rgba(200, 161, 101, .95); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gold); color: var(--ink); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- 5. Scroll progress bar ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-2));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.nav.scrolled {
  --nav-h: 68px;
  height: 68px;
  background: rgba(14, 16, 19, .78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); }
.logo__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .05em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.logo__text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }

.nav__menu { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  position: relative; color: rgba(255, 255, 255, .8);
  font-size: .93rem; font-weight: 500; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .75rem 1.5rem; }
.nav__cta-mobile { display: none; }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px; border-radius: 2px;
  background: var(--white); transition: transform .4s var(--ease), opacity .3s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  color: var(--white); overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 16, 19, .92) 0%, rgba(14, 16, 19, .65) 45%, rgba(14, 16, 19, .25) 100%),
    linear-gradient(0deg, rgba(14, 16, 19, .9) 0%, transparent 40%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%;
  left: -200px; top: 10%;
  background: radial-gradient(circle, rgba(200, 161, 101, .25), transparent 65%);
  filter: blur(20px);
  animation: float 10s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(80px, 60px); } }

.hero__content { max-width: 1200px; }
.hero__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 1.5rem; max-width: 12ch;
}
.hero__text { max-width: 520px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .75); margin-bottom: 2.5rem; }

/* Search card (glass look) */
.search {
  max-width: 900px;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.search__tabs {
  position: relative; display: inline-flex; gap: .25rem;
  padding: .3rem; margin-bottom: .9rem;
  border-radius: 100px; background: rgba(0, 0, 0, .3);
}
.search__tab {
  position: relative; z-index: 1;
  padding: .45rem 1.3rem; border-radius: 100px;
  font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .7);
  transition: color .3s;
}
.search__tab.active { color: var(--ink); }
.search__tab-pill {
  position: absolute; top: .3rem; bottom: .3rem; left: 0; border-radius: 100px;
  background: var(--gold); transition: transform .45s var(--ease), width .45s var(--ease);
}
.search__fields {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .6rem;
  padding: .5rem; border-radius: 18px; background: var(--white); color: var(--text);
}
.search__field {
  display: flex; flex-direction: column; padding: .45rem 1rem;
  border-radius: 12px; transition: background .3s;
}
.search__field:hover { background: var(--cream); }
.search__field + .search__field { border-left: 1px solid var(--line); }
.search__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.search__field select {
  appearance: none; border: 0; outline: 0; background: transparent;
  font-weight: 500; padding: .1rem 1.2rem .1rem 0; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7078' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 16px;
}
.search__btn { border-radius: 14px; padding-inline: 2rem; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 3rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--gold-2); line-height: 1.1; }
.stat span { font-size: .88rem; color: rgba(255, 255, 255, .6); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .4);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 8. Location strip (moving text) ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 1.1rem 0; }
.marquee__track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic;
  animation: marquee 35s linear infinite;
}
.marquee__track i { font-style: normal; font-size: .9rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Filters + property cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .6rem 1.3rem; border-radius: 100px;
  border: 1px solid var(--line); font-size: .9rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s, scale .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card.is-hidden { display: none; }

.card__media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 16, 19, .6), transparent 50%);
}
.badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  padding: .3rem .85rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
}
.badge--light { background: var(--white); }
.fav {
  position: absolute; top: .8rem; right: .8rem; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.fav:hover { transform: scale(1.1); }
.fav[aria-pressed="true"] { background: #e2445c; color: var(--white); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.fav.pop { animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.card__price {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 1;
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--white);
}
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__loc { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.card__loc .icon { color: var(--gold); }
.card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin: .3rem 0 1rem; line-height: 1.3; }
.card__feats {
  display: flex; justify-content: space-between; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted);
}
.card__feats li { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.card__feats .icon { color: var(--gold-dark); }

.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
#listings .center { margin-top: 3.5rem; }

/* ---------- 10. About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; padding: 0 2.5rem 3.5rem 0; }
.about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--big { aspect-ratio: 4 / 5; }
.about__img--small {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1;
  border: 8px solid var(--cream);
}
.about__badge {
  position: absolute; left: -1.25rem; top: 2.5rem;
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
}
.about__badge strong { font-family: var(--font-head); font-size: 2.3rem; color: var(--gold-2); line-height: 1; }
.about__badge span { font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .75); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.about__content > p { color: var(--muted); margin-bottom: 1rem; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 2.25rem; }
.service {
  padding: 1.3rem; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .8rem;
  border-radius: 12px; font-size: 1.25rem;
  color: var(--gold-dark); background: rgba(200, 161, 101, .14);
  transition: background .4s, color .4s;
}
.service:hover .service__icon { background: var(--gold); color: var(--ink); }
.service h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.service p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- 11. Testimonials slider ---------- */
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(200, 161, 101, .14), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(200, 161, 101, .1), transparent 40%);
}
.slider { position: relative; max-width: 860px; margin-inline: auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius); touch-action: pan-y; }
.slider__track { display: flex; transition: transform .8s var(--ease); }
.quote {
  flex: 0 0 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.quote__mark { width: 46px; height: 46px; fill: var(--gold); opacity: .9; margin: 0 auto 1rem; display: block; }
.stars { display: flex; justify-content: center; gap: .2rem; margin-bottom: 1.25rem; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.quote blockquote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.6;
  color: rgba(255, 255, 255, .92); margin-bottom: 2rem;
}
.quote figcaption { display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-weight: 700; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.quote strong { display: block; font-size: 1rem; }
.quote small { color: rgba(255, 255, 255, .55); font-size: .85rem; }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--white); font-size: 1.2rem;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button {
  width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .25);
  transition: width .4s var(--ease), background .3s;
}
.slider__dots button.active { width: 32px; background: var(--gold); }

/* ---------- 12. Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.agent { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.agent:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.agent__media { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--cream); }
.agent__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.agent:hover .agent__media img { transform: scale(1.06); }
.agent__social {
  position: absolute; left: 50%; bottom: 1rem; display: flex; gap: .5rem;
  translate: -50% 20px; opacity: 0; transition: translate .5s var(--ease), opacity .4s;
}
.agent:hover .agent__social, .agent:focus-within .agent__social { translate: -50% 0; opacity: 1; }
.agent__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--ink); transition: background .3s;
}
.agent__social a:hover { background: var(--gold); }
.agent__body { padding: 1.4rem; text-align: center; }
.agent__body h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.agent__body p { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.agent__sold {
  display: inline-block; padding: .35rem .9rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: var(--gold-dark); background: rgba(200, 161, 101, .14);
}

/* ---------- 13. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 2rem; }
.info-list { display: grid; gap: 1rem; }
.info-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.info-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.info-list__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  font-size: 1.2rem; color: var(--ink); background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.info-list h4 { font-size: .95rem; font-weight: 600; }
.info-list p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.info-list a:hover { color: var(--gold-dark); }

.form {
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-lg);
  display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .85rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfaf7; outline: 0; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 161, 101, .18);
}
.field__error { display: none; color: #d0384d; font-size: .8rem; }
.field.invalid input, .field.invalid textarea { border-color: #d0384d; }
.field.invalid .field__error { display: block; }

/* ---------- 14. Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding-top: 5rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer__brand p { margin: 1.25rem 0 1.5rem; max-width: 320px; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15); transition: all .3s;
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__heading { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer__links { display: grid; gap: .6rem; }
.footer__links a { transition: color .3s, padding .3s; }
.footer__links a:hover { color: var(--gold-2); padding-left: 6px; }
.newsletter {
  display: flex; margin-top: 1rem; padding: .35rem; border-radius: 100px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .3s;
}
.newsletter:focus-within { border-color: var(--gold); }
.newsletter input { flex: 1; min-width: 0; padding: .6rem 1rem; border: 0; outline: 0; background: transparent; color: var(--white); }
.newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--ink); transition: transform .3s var(--ease);
}
.newsletter button:hover { transform: rotate(-45deg); }
.newsletter.invalid { border-color: #d0384d; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.75rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
}
.footer__bottom nav { display: flex; gap: 1.5rem; }
.footer__bottom a:hover { color: var(--gold-2); }

/* ---------- 15. Back to top + toast ---------- */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.2rem; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 25px -8px rgba(200, 161, 101, .8);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 300;
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.4rem .9rem .9rem; border-radius: 100px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg);
  font-size: .93rem; font-weight: 500;
  translate: -50% 150%; opacity: 0; transition: translate .5s var(--ease), opacity .4s;
}
.toast.show { translate: -50% 0; opacity: 1; }
.toast__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); }

/* ---------- 16. Show-on-scroll animation ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
/* Cards keep their own hover movement after they appear */
.card.reveal.visible, .agent.reveal.visible, .service.reveal.visible {
  transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}

/* ---------- 17. Tablet ---------- */
@media (max-width: 1024px) {
  .search__fields { grid-template-columns: 1fr 1fr; }
  .search__field:nth-child(3) { border-left: 0; }
  .search__btn { padding-block: 1rem; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .about__badge { left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 18. Mobile ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: rgba(14, 16, 19, .97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav__menu.open { opacity: 1; visibility: visible; }
  .nav__link { font-family: var(--font-head); font-size: 1.8rem; opacity: 0; transform: translateY(20px); transition: all .5s var(--ease); }
  .nav__menu.open .nav__link { opacity: 1; transform: none; }
  .nav__menu.open .nav__link:nth-child(2) { transition-delay: .05s; }
  .nav__menu.open .nav__link:nth-child(3) { transition-delay: .1s; }
  .nav__menu.open .nav__link:nth-child(4) { transition-delay: .15s; }
  .nav__menu.open .nav__link:nth-child(5) { transition-delay: .2s; }
  .nav__menu.open .nav__link:nth-child(6) { transition-delay: .25s; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1rem; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .search__fields { grid-template-columns: 1fr; }
  .search__field + .search__field { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .form__row, .services { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .about__media { padding: 0 1.5rem 2.5rem 0; }
  .about__badge { top: 1rem; padding: .8rem 1rem; }
  .about__badge strong { font-size: 1.8rem; }
  .hero__scroll { display: none; }
  .logo__text { font-size: 1.15rem; }
}

/* ---------- 19. Respect "reduce motion" setting ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
