/* =========================================================
   Magaly Moreno Real Estate - style.css
   Premium • modern • mobile-first
   Palette: ink / white / gold / warm neutral (matches logo)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #121319;
  --ink-soft: #1b1d25;
  --ink-700: #2a2d37;
  --paper: #ffffff;
  --cream: #f8f5f0;
  --sand: #efe9e0;
  --line: rgba(18, 19, 25, 0.10);
  --line-light: rgba(255, 255, 255, 0.16);
  --text: #21232b;
  --muted: #5f636c;
  --muted-light: rgba(255, 255, 255, 0.72);

  --gold: #c2a15b;
  --gold-lt: #ddc188;
  --gold-dk: #a8843c;
  --crimson: #d50032;

  --shadow-sm: 0 2px 8px rgba(18, 19, 25, 0.06);
  --shadow-md: 0 14px 40px rgba(18, 19, 25, 0.10);
  --shadow-lg: 0 30px 70px rgba(18, 19, 25, 0.16);

  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 76px;
  --maxw: 1180px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/* The [hidden] attribute must win over display:flex/grid component rules */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

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

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-lt); }

.accent { color: var(--gold); }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
}
.section__title--light { color: #fff; }

.section__lead {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(194, 161, 91, 0.32); }
.btn--gold:hover { background: var(--gold-lt); box-shadow: 0 16px 32px rgba(194, 161, 91, 0.42); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-700); box-shadow: var(--shadow-md); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold-lt); }

.btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 19, 25, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 25, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 70px;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% 12%, rgba(194, 161, 91, 0.16), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(213, 0, 50, 0.10), transparent 60%),
    linear-gradient(155deg, #15161d 0%, #101117 55%, #0c0d12 100%);
}
.hero__bg::after {
  /* faint peak/topographic line texture echoing the logo */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 90 30 50 60 80 90 30 120 70' fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1.5'/%3E%3C/svg%3E");
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted-light);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted-light);
}
.hero__meta a { color: inherit; }
.hero__meta a:hover { color: var(--gold-lt); }
.hero__meta svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }

/* Hero photo */
.hero__media { position: relative; justify-self: center; }
.hero__photo-wrap {
  position: relative;
  width: min(380px, 80vw);
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}
.hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(160deg, var(--gold-lt), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.hero__badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 24px;
  border-radius: 14px;
  white-space: nowrap;
}
.glass {
  background: rgba(20, 21, 27, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__badge-name { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.hero__badge-role { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt); }

.hero__glow {
  position: absolute;
  inset: -10% -10% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(194, 161, 91, 0.22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold-lt);
  border-radius: 4px;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ---------- Communities strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 22px 0; }
.strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
}
.strip__label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.strip__list { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; }
.strip__list li {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}
.strip__list li:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -16px;
  color: var(--gold);
}

/* ---------- Buy section ---------- */
.section--buy { background: var(--paper); }
.proptypes__hint { color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--gold);
  color: var(--gold-dk);
  box-shadow: var(--shadow-sm);
}
.buy__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 40px; }
.buy__note { color: var(--muted); font-size: 0.92rem; }

/* ---------- Sell section ---------- */
.section--sell { position: relative; color: #fff; overflow: hidden; }
.hero__bg--soft {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(194, 161, 91, 0.14), transparent 60%),
    linear-gradient(160deg, #1a1c24 0%, #121319 60%, #0e0f14 100%);
}
.section--sell .eyebrow { color: var(--gold-lt); }
.section--sell .section__title { color: #fff; }
.section--sell .section__lead { color: var(--muted-light); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(194, 161, 91, 0.5);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  background: linear-gradient(160deg, var(--gold-lt), var(--gold));
  margin-bottom: 18px;
}
.step__title { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.step__text { color: var(--muted-light); font-size: 0.95rem; }
.sell__cta { margin-top: 44px; }

/* ---------- Services carousel ---------- */
.section--services { background: var(--cream); }

.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  padding: 14px 2px 30px;         /* room for card hover-lift + shadow */
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel__track > .card {
  flex: 0 0 calc((100% - 48px) / 3);  /* 3 per view on desktop (two 24px gaps) */
  scroll-snap-align: start;
}
.carousel__arrow {
  position: absolute;
  top: 14px;
  bottom: 56px;
  margin-block: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel__arrow:hover { background: var(--gold); transform: scale(1.06); }
.carousel__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__arrow--prev { left: -20px; }
.carousel__arrow--next { right: -20px; }
.carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(18, 19, 25, 0.18);
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.carousel__dot.is-active { background: var(--gold); width: 26px; }

@media (max-width: 980px) {
  .carousel__track > .card { flex-basis: calc((100% - 24px) / 2); } /* 2 per view */
}
@media (max-width: 620px) {
  .carousel__track > .card { flex-basis: 100%; }                    /* 1 per view */
  .carousel__arrow { display: none; }                               /* swipe instead */
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 161, 91, 0.4);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cream);
  margin-bottom: 20px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover .card__icon { background: rgba(194, 161, 91, 0.16); transform: translateY(-2px); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-dk); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.35rem; margin-bottom: 10px; }
.card__text { color: var(--muted); margin-bottom: 18px; }
.card__link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-dk);
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
  gap: 7px;
}
.card__link span { transition: transform 0.25s var(--ease); }
.card__link:hover span { transform: translateX(5px); }

/* ---------- About ---------- */
.section--about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.about__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(18, 19, 25, 0.18));
}
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.about__text { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.about__values { display: grid; gap: 12px; margin-bottom: 30px; }
.about__values li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text); }
.about__values svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold-dk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.about__sign { margin-bottom: 28px; }
.about__sign-name { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.about__sign-role { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dk); }

/* ---------- Contact ---------- */
.section--contact { position: relative; color: #fff; overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.contact__lead { color: var(--muted-light); font-size: 1.08rem; margin-bottom: 34px; max-width: 460px; }
.contact__details { display: grid; gap: 22px; }
.contact__details li { display: flex; gap: 16px; align-items: flex-start; }
.contact__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}
.contact__detail-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-lt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__details a:hover { color: var(--gold-lt); }
.contact__detail-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 2px;
}

/* Form */
.contact__form-wrap {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-lg);
}
.lead-form__title { font-size: 1.5rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.req { color: var(--crimson); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194, 161, 91, 0.16);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(213, 0, 50, 0.12); }

.field--conditional { animation: fadeField 0.35s var(--ease); }
@keyframes fadeField { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold-dk); }

.g-recaptcha { margin-bottom: 20px; }

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(18, 19, 25, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__spinner { display: inline-block; }

.form-status { margin-top: 16px; font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }
.form-status.is-success { color: #1d7a4d; }
.form-status.is-error { color: var(--crimson); }

/* ---------- Floating mobile contact button ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 28px rgba(18, 19, 25, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease),
    visibility 0.3s var(--ease), background 0.25s var(--ease);
}
.fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab:hover { background: var(--gold-lt); }
.fab svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding-top: 64px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}
.footer__name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.footer__role { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 18px; }
.footer__contact { display: grid; gap: 8px; margin-bottom: 24px; }
.footer__contact a:hover { color: var(--gold-lt); }
.footer__heading { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__nav ul { display: grid; gap: 11px; }
.footer__nav a { color: rgba(255, 255, 255, 0.74); transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.footer__nav a:hover { color: var(--gold-lt); padding-left: 5px; }

/* Social icons */
.social { display: flex; gap: 12px; }
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.social__link svg { width: 20px; height: 20px; fill: var(--ink); transition: fill 0.25s var(--ease); }
.social__link:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(194, 161, 91, 0.22);
}

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Inner pages (privacy / terms) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-h) + 70px) 0 70px;
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--gold-lt); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted-light); margin-top: 12px; }

.legal { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper); }
.legal__inner { max-width: 820px; margin-inline: auto; }
.legal__inner h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.legal__inner h2:first-child { margin-top: 0; }
.legal__inner p, .legal__inner li { color: var(--muted); margin-bottom: 14px; }
.legal__inner ul { list-style: disc; padding-left: 22px; }
.legal__inner ul li { margin-bottom: 8px; }
.legal__inner a { color: var(--gold-dk); font-weight: 500; text-decoration: underline; }
.legal__updated { font-size: 0.9rem; color: var(--muted); font-style: italic; margin-bottom: 30px; }

/* ---------- Reveal-on-scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__media { order: 1; margin-bottom: 10px; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__meta { border-top: none; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Mobile slide-in nav */
  .nav-toggle { display: flex; }
  .nav {
    /* top + explicit height (not bottom:0) so the drawer fills the viewport even
       though the backdrop-filtered header is its containing block */
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: calc(var(--header-h) + 16px) 28px 40px;
    background: #fff;
    box-shadow: -20px 0 50px rgba(18, 19, 25, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 999;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav__link { display: block; padding: 12px 0; font-size: 1.08rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 18px; width: 100%; }

  .fab { display: inline-flex; }

  .hero { min-height: auto; }
  .hero__scroll { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .btn { padding: 13px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
