/* ==========================================================================
   ГЕРМЕС — агентство недвижимости в Крыму
   ========================================================================== */

:root {
  --bg: #090909;
  --bg-alt: #0e0e0e;
  --card-bg: #151515;
  --text: #f3efe6;
  --text-muted: #aaa69e;
  --gold: #c8a45d;
  --gold-hover: #e0c17a;
  --border-gold: rgba(200, 164, 93, 0.25);
  --border-gold-strong: rgba(200, 164, 93, 0.5);
  --border-soft: rgba(255, 255, 255, 0.08);

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

  --container-w: 1220px;
  --header-h: 92px;
  --header-h-scrolled: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 0.9s;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  display: block;
}

::selection {
  background: var(--gold);
  color: #14110a;
}

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

.icon-sprite {
  display: none;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--gold);
  color: #14110a;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--text);
  margin-top: 14px;
}

.section-subtitle {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  max-width: 640px;
}

.section-head.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.divider-line {
  height: 1px;
  width: 100%;
  max-width: 120px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}

.section-head.center .divider-line {
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
}

.is-visible .divider-line {
  transform: scaleX(1);
}

section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
  scroll-margin-top: var(--header-h-scrolled);
}

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

.section-border-top {
  border-top: 1px solid var(--border-soft);
}

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* If JS never runs (blocked, failed to load, ancient browser), the
   .no-js class never gets removed from <html> — keep reveal content,
   the divider line and the process route visible in that case. */
.no-js [data-reveal],
.no-js [data-reveal-group] > * {
  opacity: 1;
  transform: none;
}

.no-js .divider-line,
.no-js .process-route::after {
  transform: scaleX(1);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.28s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.36s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.44s; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #14110a;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 rgba(200, 164, 93, 0);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease), transform 0.15s var(--ease);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 8px 28px -8px rgba(224, 193, 122, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(243, 239, 230, 0.35);
}

.btn-outline:hover {
  border-color: var(--gold-hover);
  color: var(--gold-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  border-color: var(--border-gold-strong);
  color: var(--gold-hover);
}

.btn:hover svg {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.text-link:hover {
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  transition: min-height var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform 0.4s var(--ease), backdrop-filter var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-16px);
  animation: header-in 0.8s var(--ease) 0.15s forwards;
}

@keyframes header-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.is-scrolled {
  min-height: var(--header-h-scrolled);
  background: rgba(9, 9, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 34px;
  width: auto;
  transition: height var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

.site-header.is-scrolled .logo-link img {
  height: 28px;
}

.logo-link:hover img {
  filter: brightness(1.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.main-nav a {
  font-size: 0.94rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-cta {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle span {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: background 0.2s var(--ease);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(100px + env(safe-area-inset-top, 0px)) 32px calc(48px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
    visibility 0s linear var(--dur-fast);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav ul a {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  display: block;
}

.mobile-nav-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-actions .btn {
  width: 100%;
  font-family: var(--font-sans);
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.015);
  animation: hero-push-in 20s ease-out forwards;
}

@keyframes hero-push-in {
  from {
    transform: scale(1.015);
  }
  to {
    transform: scale(1.05);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 3, 0.8) 0, rgba(4, 4, 3, 0.62) 90px, rgba(4, 4, 3, 0) 210px),
    linear-gradient(180deg, rgba(6, 6, 5, 0.18) 0%, rgba(6, 6, 5, 0.1) 38%, rgba(6, 6, 5, 0.5) 74%, rgba(5, 5, 4, 0.9) 100%);
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 0.1s forwards;
}

/* Dedicated dark panel behind the hero text column — stays legible regardless
   of what part of the looping video sits behind it. */
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 3, 0) 0%, rgba(4, 4, 3, 0) 32%, rgba(4, 4, 3, 0.48) 50%, rgba(4, 4, 3, 0.8) 66%, rgba(4, 4, 3, 0.86) 100%);
}

@media (max-width: 760px) {
  .hero-scrim::after {
    background: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 40px) 0 96px;
}

.hero-content .container {
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  max-width: min(560px, 52%);
  text-align: left;
}

@media (max-width: 760px) {
  .hero-content .container {
    justify-content: flex-start;
  }

  .hero-text {
    max-width: 100%;
  }
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-item-in 0.7s var(--ease) 0.5s forwards;
  color: var(--gold-hover);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  color: var(--text);
  margin-top: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: hero-line-in 0.9s var(--ease) forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.65s;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  margin-top: 22px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(14px);
  animation: hero-item-in 0.8s var(--ease) 1.05s forwards;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-item-in 0.8s var(--ease) 1.25s forwards;
}

.hero-actions .btn {
  padding: 18px 32px;
}

.hero-more {
  margin-top: 30px;
  display: flex;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-item-in 0.8s var(--ease) 1.4s forwards;
}

.hero-trust {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: hero-item-in 0.8s var(--ease) 1.55s forwards;
}

.hero-trust .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

@keyframes hero-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: hero-item-in 0.8s var(--ease) 1.75s forwards;
  color: var(--text-muted);
}

.scroll-indicator .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  overflow: hidden;
  position: relative;
}

.scroll-indicator .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-hover);
  animation: scroll-line 2.6s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* ==========================================================================
   Brand statement
   ========================================================================== */

.brand-statement {
  text-align: center;
}

.brand-statement .divider-line {
  margin: 0 auto 40px;
}

.brand-statement-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.4;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--text);
}

.brand-statement-sub {
  margin: 30px auto 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.75;
}

.brand-statement-sig {
  margin-top: 34px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.service-card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: linear-gradient(160deg, rgba(200, 164, 93, 0.07), transparent 60%), var(--bg);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.65);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 0.05em;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.service-card:hover .service-number {
  opacity: 1;
  transform: translateX(2px);
}

.service-title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  font-weight: 600;
}

.service-text {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  flex-grow: 1;
}

.service-cta {
  margin-top: 26px;
}

/* ==========================================================================
   Statistics
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 40px);
  text-align: center;
}

.stat-item {
  padding: 0 12px;
  min-width: 0;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold);
}

.stat-label {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.stats-note {
  margin-top: 44px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.benefits-intro {
  position: sticky;
  top: calc(var(--header-h-scrolled) + 48px);
}

.benefits-intro .section-title {
  margin-top: 14px;
}

.benefits-intro .section-subtitle {
  max-width: 32ch;
}

.benefits-intro .divider-line {
  margin-top: 32px;
}

.benefits-footnote {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
  opacity: 0.85;
  max-width: 32ch;
}

.benefits-list {
  border-top: 1px solid var(--border-soft);
}

.benefit-row {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--border-soft);
}

.benefit-num {
  flex-shrink: 0;
  width: 2.6ch;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--gold);
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.benefit-row:hover .benefit-num {
  opacity: 1;
  color: var(--gold-hover);
  transform: translateX(2px);
}

.benefit-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  font-weight: 600;
}

.benefit-text {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 52ch;
}

@media (max-width: 1080px) {
  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .benefits-intro {
    position: static;
  }

  .benefits-intro .section-subtitle,
  .benefits-footnote {
    max-width: 60ch;
  }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-route {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-gold);
  overflow: hidden;
}

.process-route::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}

.is-visible .process-route::after {
  transform: scaleX(1);
}

.process-step {
  position: relative;
  padding-top: 48px;
}

.process-step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--gold);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.process-step:hover .process-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #14110a;
}

.process-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.34rem);
  font-weight: 600;
}

.process-text {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ==========================================================================
   Accordion (Concerns + FAQ)
   ========================================================================== */

.accordion-item {
  border-bottom: 1px solid var(--border-soft);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.accordion-trigger::-webkit-details-marker {
  display: none;
}

.accordion-trigger:hover {
  color: var(--gold-hover);
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item[open] > .accordion-trigger .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  overflow: hidden;
}

.accordion-panel p {
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* Concerns */

.concerns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}

.concerns-cta {
  margin-top: 52px;
  text-align: center;
  padding-top: 44px;
  border-top: 1px solid var(--border-soft);
}

.concerns-cta p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin-bottom: 24px;
}

/* FAQ */

.faq-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.faq-group-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.testimonials-head .section-head {
  margin-bottom: 0;
}

.testimonials-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.t-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.t-btn:hover {
  border-color: var(--gold-hover);
  background: rgba(200, 164, 93, 0.08);
}

.t-btn svg {
  width: 18px;
  height: 18px;
}

.testimonials-track {
  margin-top: 44px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(20px, 5vw, 56px);
  padding-bottom: 6px;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 86vw, 380px);
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 20px 36px -26px rgba(0, 0, 0, 0.6);
}

@media (min-width: 700px) {
  .testimonial-card {
    flex-basis: calc((100% - 44px) / 2.4);
  }
}

@media (min-width: 1080px) {
  .testimonial-card {
    flex-basis: calc((100% - 66px) / 3.15);
  }
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.85;
}

.testimonial-text {
  margin-top: 14px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
  flex-grow: 1;
}

.testimonial-cite {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.testimonials-cta {
  margin-top: 60px;
  text-align: center;
}

.testimonials-cta .btn-row {
  justify-content: center;
}

.testimonials-cta p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 26px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(200, 164, 93, 0.16), transparent 62%), var(--bg-alt);
}

.final-cta-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 140vw);
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.18;
}

.final-cta-text {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.final-cta .btn-row {
  margin-top: 40px;
  justify-content: center;
}

.final-cta-contact {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
}

.final-cta-phone {
  color: var(--gold);
  font-size: 1.4rem;
  margin-top: 4px;
  display: inline-block;
  transition: color var(--dur-fast) var(--ease);
}

.final-cta-phone:hover {
  color: var(--gold-hover);
}

.final-cta-footnote {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.86rem;
  opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: clamp(56px, 7vw, 88px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-tagline {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-contact li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--gold-hover);
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.84rem;
}

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

/* ==========================================================================
   Mobile contact bar
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  padding: 10px clamp(14px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  gap: 10px;
  transform: translateY(0);
  transition: transform var(--dur-fast) var(--ease);
}

.mobile-bar.is-hidden {
  transform: translateY(110%);
}

.mobile-bar-inner {
  display: flex;
  gap: 10px;
}

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 8px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
}

.mobile-bar a svg {
  width: 17px;
  height: 17px;
}

.mobile-bar .mb-call {
  border: 1px solid rgba(243, 239, 230, 0.3);
  color: var(--text);
}

.mobile-bar .mb-whatsapp {
  background: var(--gold);
  color: #14110a;
}

.mobile-bar .mb-max {
  border: 1px solid var(--border-gold-strong);
  color: var(--gold);
}

/* ==========================================================================
   Privacy page
   ========================================================================== */

.policy-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
}

.policy-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 22ch;
}

.policy-page .updated {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-content {
  margin-top: 48px;
  max-width: 74ch;
}

.policy-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-content ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-back {
  margin-top: 48px;
  display: inline-block;
}

.policy-back-arrow {
  display: inline-block;
  transform: rotate(180deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    padding-bottom: 128px;
  }

  .mobile-bar {
    display: block;
  }

  body {
    padding-bottom: 78px;
  }

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

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }

  .process-route {
    display: none;
  }

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

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

@media (max-width: 860px) {
  .concerns-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .faq-groups {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-group + .faq-group {
    margin-top: 12px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 76px;
    --header-h-scrolled: 64px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-media video,
  .hero-media img {
    object-position: 32% center;
  }

  .hero-title {
    max-width: 14ch;
  }

  .hero-subtitle {
    max-width: 34ch;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .stat-item {
    padding: 0;
  }

  .services-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

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

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

  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 520px) {
  .testimonial-card {
    flex-basis: 85vw;
  }
}

/* Short viewports (small-height phones, and phones in landscape) — the
   hero content stack can outgrow the screen and push the primary CTA
   below the fold. Tighten vertical rhythm only; layout stays the same. */
@media (max-height: 700px) {
  .hero-content {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
    padding-bottom: 90px;
  }

  .hero-title {
    margin-top: 10px;
  }

  .hero-subtitle {
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-more {
    margin-top: 14px;
  }

  .hero-trust {
    margin-top: 18px;
  }

  /* On short viewports the 6 nav links + 2 buttons can be taller than the
     screen. Centering then pushes the top of the list past the header and
     off-screen with no way to reach it — switch to a scrollable top-aligned
     list instead so everything stays reachable. */
  .mobile-nav {
    justify-content: flex-start;
    overflow-y: auto;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }

  .hero-media video,
  .hero-media img {
    animation: none !important;
    transform: none !important;
  }

  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-indicator .line::after {
    display: none;
  }
}
