/* ==========================================================================
   Euroasia Immigration Services — redesign
   Plain CSS, no build step. Tokens first, then base, layout, components.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #1f2d50;
  --navy-700: #2a3a63;
  --navy-900: #141d36;
  --sand: #c19d70;
  --sand-700: #8a6a3f; /* sand dark enough for text on cream (AA) */
  --sand-200: #ecdfcc;
  --sand-100: #f4ede3;

  /* Neutrals */
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #1b2236;
  --muted: #586074;
  --line: #e7e0d5;
  --line-strong: #d8cfc1;

  --wa: #1fa855;

  /* Type */
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 29, 54, 0.06);
  --shadow: 0 1px 2px rgba(20, 29, 54, 0.05), 0 8px 24px -8px rgba(20, 29, 54, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 29, 54, 0.04), 0 24px 48px -16px rgba(20, 29, 54, 0.22);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw + 0.6rem, 3.85rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 2.4vw + 0.8rem, 2.6rem);
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tint {
  background: var(--sand-100);
}

.section--white {
  background: var(--white);
}

/* when the CTA follows a section on the same background, don't double the gap */
.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

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

.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.22rem);
  color: var(--muted);
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
}

.eyebrow--light {
  color: var(--sand-200);
}

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

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  --btn-bg: var(--navy-700);
  --btn-border: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(31, 45, 80, 0.5);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  --btn-border: var(--navy);
  box-shadow: none;
}

.btn--wa .icon {
  color: var(--wa);
}

.btn--sand {
  --btn-bg: var(--sand);
  --btn-fg: var(--navy-900);
  --btn-border: var(--sand);
}

.btn--sand:hover {
  --btn-bg: #cdae86;
  --btn-border: #cdae86;
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: var(--white);
  box-shadow: none;
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.2s ease;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(20, 29, 54, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.main-nav a:hover {
  background: var(--sand-100);
}

.main-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-panel {
  display: none;
}

@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }
}

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

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

  .brand img {
    height: 40px;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 29, 54, 0.35);
    padding: 12px var(--gutter) 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-panel ul {
    list-style: none;
    margin-bottom: 20px;
  }

  .mobile-panel li + li {
    border-top: 1px solid var(--line);
  }

  .mobile-panel a:not(.btn) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
  }

  .mobile-panel .btn {
    width: 100%;
  }

  .mobile-panel .btn-row {
    flex-direction: column;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--sand-700);
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  color: var(--sand-700);
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.hero-media {
  position: relative;
}

.hero-media .photo {
  width: 100%;
  aspect-ratio: 5 / 4.4;
  object-fit: cover;
  object-position: 45% 50%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-quote {
  position: absolute;
  left: -36px;
  bottom: -32px;
  max-width: 320px;
  margin: 0;
  padding: 20px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-quote p {
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 10px;
}

.hero-quote footer {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-badge {
  position: absolute;
  top: 22px;
  right: -18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px rgba(193, 157, 112, 0.3);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 620px;
  }

  .hero-quote {
    left: 16px;
    bottom: -28px;
  }

  .hero-badge {
    right: 16px;
  }
}

@media (max-width: 520px) {
  .hero .btn-row .btn {
    flex: 1 1 100%;
  }

  .hero-quote {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -48px 16px 0;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px);
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
}

.page-hero .lead {
  max-width: 680px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center .lead {
  margin-inline: auto;
}

.page-hero--center .btn-row {
  justify-content: center;
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sand-100);
  color: var(--navy);
  flex: none;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.icon-badge--navy {
  background: var(--navy);
  color: var(--sand-200);
}

/* Goal cards — "What brings you to Romania?" */

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

.goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.goal-card:hover {
  transform: translateY(-4px);
  border-color: var(--sand-200);
  box-shadow: var(--shadow-lg);
}

.goal-card .icon-badge {
  margin-bottom: 22px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.goal-card:hover .icon-badge {
  background: var(--navy);
  color: var(--sand-200);
}

.goal-card h3 a {
  text-decoration: none;
}

/* Whole card is clickable via the heading link */
.goal-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.goal-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.goal-card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sand-700);
}

.goal-card .more .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.goal-card:hover .more .icon {
  transform: translateX(4px);
}

.goal-note {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}

.goal-note a {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 960px) {
  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .goal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .goal-card {
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
  }

  .goal-card .icon-badge {
    grid-row: span 3;
    margin-bottom: 0;
  }

  .goal-card p {
    margin-bottom: 0;
    font-size: 0.97rem;
  }

  /* the whole card is the link; the extra cue only adds height on small screens */
  .goal-card .more {
    display: none;
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--sand-100);
}

.section--white .step-num {
  box-shadow: 0 0 0 6px var(--white);
}

.step-num::before {
  content: counter(step);
}

/* connecting line between step numbers */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 48px;
  right: -24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sand) 0 6px, transparent 6px 12px);
  opacity: 0.7;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
    padding-bottom: 32px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step-num {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .step:not(:last-child)::before {
    top: 48px;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--sand) 0 6px, transparent 6px 12px);
  }

  .step h3 {
    margin-top: 10px;
  }
}

/* ---------- Testimonials ---------- */

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

.quote-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-card .mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 0.6;
  height: 26px;
  color: var(--sand);
}

.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 1.04rem;
  color: var(--ink);
}

.quote-card blockquote p:last-child {
  margin: 0;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-card .who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-card .who strong {
  color: var(--navy);
  font-weight: 600;
}

.quote-card .who span {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-grid--masonry {
  display: block;
  columns: 3 320px;
  column-gap: 20px;
}

.quote-grid--masonry > li {
  break-inside: avoid;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .quote-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

/* ---------- Split / feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.portrait {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 50% 22%;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    max-width: 520px;
  }
}

.team-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}

.team-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-list img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  flex: none;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.team-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

.team-list span {
  font-size: 0.93rem;
  color: var(--muted);
}

.pull {
  margin: 0 0 8px;
  padding-left: 20px;
  border-left: 3px solid var(--sand);
  font-family: var(--font-head);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--navy);
}

/* ---------- Dark band (real estate teaser) ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.band::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -260px;
  border-radius: 50%;
  border: 90px solid rgba(193, 157, 112, 0.09);
  pointer-events: none;
}

.band h2,
.band h3 {
  color: var(--white);
}

.band .container {
  position: relative;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.band p {
  font-size: 1.08rem;
}

.market-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.market {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.market h3 {
  margin: 2px 0 4px;
  font-size: 1.08rem;
}

.market p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.72);
}

.country-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--sand);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .band-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-aside p {
  color: var(--muted);
}

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

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--sand-100);
  transition: background-color 0.2s ease, transform 0.25s ease;
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--navy);
}

.faq-item summary .plus::after {
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.faq-item[open] summary .plus {
  background: var(--navy);
}

.faq-item[open] summary .plus::before,
.faq-item[open] summary .plus::after {
  background: var(--white);
}

.faq-item[open] summary .plus::after {
  transform: rotate(0deg);
}

.faq-item .answer {
  padding: 0 52px 24px 0;
  color: var(--muted);
}

.faq-item .answer p:last-child {
  margin: 0;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item .answer {
    padding-right: 0;
  }
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -260px;
  border-radius: 50%;
  border: 70px solid rgba(193, 157, 112, 0.1);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta p {
  margin: 0;
  font-size: 1.1rem;
}

.cta-actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

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

.cta-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.cta-meta .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.96rem;
}

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

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 300px;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--sand);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 96px; /* room for the floating WhatsApp button */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom ul {
  display: flex;
  gap: 20px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(15, 90, 45, 0.55);
  transition: transform 0.2s ease;
}

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

.wa-float .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .wa-float {
    width: 56px;
    padding: 0;
    justify-content: center;
  }

  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

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

.chip-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}

.chip-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding-block: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-nav ul::-webkit-scrollbar {
  display: none;
}

.chip-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-nav a .icon {
  width: 17px;
  height: 17px;
}

.chip-nav a:hover,
.chip-nav a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.callout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.callout h2,
.callout h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout .btn {
  margin-left: auto;
  align-self: center;
}

@media (max-width: 760px) {
  .callout {
    flex-direction: column;
    padding: 24px;
  }

  .callout .btn {
    margin-left: 0;
    align-self: flex-start;
  }
}

.service-group {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.service-group:first-of-type {
  border-top: 0;
}

.service-group-head {
  position: sticky;
  top: calc(var(--header-h) + 90px);
  align-self: start;
}

.service-group-head .icon-badge {
  margin-bottom: 20px;
}

.service-group-head h2 {
  font-size: clamp(1.6rem, 1.6vw + 0.9rem, 2.1rem);
}

.service-group-head p {
  color: var(--muted);
  margin: 0;
}

.service-cards {
  display: grid;
  gap: 16px;
}

.service-card {
  padding: 28px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tick-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tick-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: var(--sand-100);
  font-size: 0.9rem;
  color: var(--navy);
}

.tick-list .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
  color: var(--sand-700);
}

.service-card--link {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-card--link h3 {
  color: var(--white);
}

.service-card--link p {
  margin: 0;
}

.service-card--link .icon-arrow {
  margin-left: auto;
  width: 26px;
  height: 26px;
  color: var(--sand);
}

@media (max-width: 900px) {
  .service-group {
    grid-template-columns: 1fr;
  }

  .service-group-head {
    position: static;
  }
}

/* ==========================================================================
   Real estate page
   ========================================================================== */

.market-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.market-cards > li {
  display: flex;
}

.market-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.market-card .country-tag {
  margin-bottom: 22px;
}

.market-card .kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-700);
  margin-bottom: 6px;
}

.market-card p {
  color: var(--muted);
  margin: 0;
}

.stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.stat span {
  max-width: 200px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .market-cards {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.invest-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.invest-card .icon-badge {
  margin-bottom: 24px;
}

.invest-card h3 {
  font-size: 1.45rem;
}

.invest-card p {
  color: var(--muted);
}

.invest-card .tick-list {
  margin-bottom: 28px;
}

.invest-card .link-arrow {
  margin-top: auto;
}

@media (max-width: 760px) {
  .invest-grid {
    grid-template-columns: 1fr;
  }
}

.people-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.people-row li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.people-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.people-row strong {
  display: block;
  color: var(--navy);
  line-height: 1.3;
}

.people-row span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   About page
   ========================================================================== */

.wide-photo {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 700px) {
  .wide-photo {
    aspect-ratio: 4 / 3;
  }
}

.prose p {
  color: var(--muted);
  font-size: 1.06rem;
}

.prose p:first-child {
  color: var(--ink);
  font-size: 1.18rem;
}

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

.value-grid .card .icon-badge {
  margin-bottom: 20px;
}

.value-grid .card p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--sand-100);
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .team-card:first-child {
    grid-column: 1 / -1;
  }

  .team-card:first-child img {
    aspect-ratio: 4 / 3.6;
  }
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.partner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.partner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.partner strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
}

.partner span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

.big-quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.big-quote blockquote {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2vw + 0.9rem, 2.2rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.big-quote figcaption {
  color: var(--muted);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}

.contact-quick a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-quick a:hover {
  border-color: var(--sand-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-quick .txt strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
}

.contact-quick .txt span {
  display: block;
  font-size: 0.93rem;
  color: var(--muted);
}

.contact-quick .icon-badge--wa {
  background: #e3f6ea;
  color: var(--wa);
}

@media (max-width: 860px) {
  .contact-quick {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.form-head p {
  color: var(--muted);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label,
.field legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31, 45, 80, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9097a6;
}

.field[data-invalid] input,
.field[data-invalid] textarea {
  border-color: #b3261e;
}

.field .error {
  display: none;
  font-size: 0.88rem;
  color: #b3261e;
}

.field[data-invalid] .error {
  display: block;
}

fieldset.field {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}

fieldset.field legend {
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip input:hover + span {
  border-color: var(--navy);
}

.chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 26px;
  font-size: 0.93rem;
  color: var(--muted);
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  flex: none;
}

.consent a {
  color: var(--navy);
}

.form-card .btn[type="submit"] {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.form-success .icon-badge {
  margin: 0 auto 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f6ea;
  color: var(--wa);
}

.form-success p {
  color: var(--muted);
  max-width: 420px;
  margin-inline: auto;
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-head {
  display: none;
}

.form-card.is-sent .form-success {
  display: block;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.side-card h3 .icon {
  color: var(--sand-700);
}

.side-card p {
  margin: 0;
  color: var(--muted);
}

.price-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}

.price-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-list strong {
  color: var(--navy);
  white-space: nowrap;
}

.side-card .note {
  margin-top: 14px;
  font-size: 0.9rem;
}

.mini-steps {
  list-style: none;
  counter-reset: mini;
  display: grid;
  gap: 14px;
}

.mini-steps li {
  counter-increment: mini;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}

.mini-steps li::before {
  content: counter(mini);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.mini-steps strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.side-card--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.side-card--navy h3 {
  color: var(--white);
}

.side-card--navy h3 .icon {
  color: var(--sand);
}

.side-card--navy p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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

@media (max-width: 600px) {
  .service-card,
  .market-card,
  .quote-card {
    padding: 22px;
  }
}
