/* ==========================================================================
   MonteResidence — style.css
   Palette lifted directly from the hero SVG (bay at dusk): pine teal,
   parchment cream, warm gold "seal" accent. Serif for authority (Fraunces),
   clean sans for body (Inter), mono for document-style labels (IBM Plex Mono).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* Color — pulled from the hero SVG gradients */
  --ink: #16211E;
  --ink-soft: #3E4A46;
  --cream: #F5F1E8;
  --cream-deep: #EDE9E0;
  --parchment: #DDD6C4;
  --pine-50: #E8EEEC;
  --pine-200: #A9B6AC;
  --pine-400: #4C7268;
  --pine-600: #0E5C56;
  --pine-700: #0A4842;
  --pine-900: #0A403B;
  --gold: #F0C572;
  --gold-dim: #D9AE5C;
  --line: rgba(22, 33, 30, 0.12);
  --line-on-dark: rgba(245, 241, 232, 0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container-w: 91%;
  --gap: 24px;
  --radius: 4px;
  --section-pad: 128px;
  --section-pad-mobile: 72px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
* { overflow-wrap: break-word; }
html { scroll-behavior: auto; } /* JS handles smooth scroll deliberately */

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0; }

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

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

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Visible keyboard focus everywhere — not just links/buttons */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons — the gold "seal" is the one bold accessory ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--pine-900);
}
.btn-primary:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 197, 114, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--pine-700);
  border-color: var(--pine-700);
}
.btn-secondary:hover {
  background: var(--pine-700);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-submit { width: 100%; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.45);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82vw);
  background: var(--cream);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
}
.mobile-menu-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-links a {
  display: block;
  padding: 12px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mobile-menu-langs a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.mobile-menu-langs a.active {
  color: var(--pine-900);
  background: var(--pine-50);
  border-color: var(--pine-900);
}
.mobile-menu-cta { text-align: center; }

body.mobile-menu-locked { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo { flex-shrink: 0; }
.logo img { height: 64px; width: auto; flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.lang-switcher a {
  padding: 5px 6px;
  color: var(--ink-soft);
  border-radius: 3px;
  opacity: 0.75;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.lang-switcher a:hover { opacity: 1; }
.lang-switcher a:hover { color: var(--ink); }
.lang-switcher a.active {
  color: var(--pine-900);
  background: var(--pine-50);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  background: var(--cream-deep);
  min-height: clamp(560px, 78vh, 860px);
}

.hero-inner {
  position: absolute;
  z-index: 2;
  max-width: 640px;
  padding: 14px;
}

/* Frosted panel sized exactly to the text block — the only thing that
   needs to sit above the artwork. Nothing outside this box is touched,
   so the rest of the scene stays fully saturated. */
.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine-700);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  margin: 0 0 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 197, 114, 0.3);
}

.hero-inner h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Stat strip anchored to the bottom edge of the hero — fills the empty
   space under the frosted text panel on wider/laptop viewports. */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(10, 64, 59, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-on-dark);
}

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

.hero-stat {
  padding: 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line-on-dark);
}
.hero-stat:first-child { border-left: none; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-200);
}

/* Standalone variant — for pages like the country-cluster landing pages,
   where hero-stats follows the short .honest-hero as its own section
   instead of being nested inside the homepage's tall, position:relative
   .hero. .honest-hero has no positioning context and no reserved height
   for an absolutely-positioned bar, so anchoring bottom:0 there makes the
   bar fall out to the document root and overlap whatever content happens
   to render below it. This variant just keeps it in normal flow instead. */
.hero-stats.hero-stats-standalone {
  position: static;
  background: var(--pine-900);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ambient motion, added by main.js once loaded */
.hero-scene.scene-live circle[fill="url(#sunGlow)"] {
  animation: sunBreathe 6s ease-in-out infinite;
  transform-origin: 965px 70px;
}
.hero-scene.scene-live polygon[fill="url(#sunPath)"] {
  animation: pathDrift 5s ease-in-out infinite;
  transform-origin: 750px 249px;
}
@keyframes sunBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
/* Wider swing + a touch of scale/opacity so the light on the water reads
   as a clear shimmer rather than a faint drift. */
@keyframes pathDrift {
  0%, 100% { transform: translateX(-18px) scaleX(0.96); opacity: 0.8; }
  50%      { transform: translateX(18px) scaleX(1.04); opacity: 1; }
}

/* Waves: each line is drawn twice (see markup) inside a track group that
   slides left by exactly one copy-width (1200px) and loops. Since the two
   copies are identical, the loop point is seamless by construction — no
   jump. Two tracks run at different speeds/directions for a bit of
   parallax instead of moving in lockstep. */
.hero-scene.scene-live .wave-track-1 {
  animation: waveDrift 14s linear infinite;
}
.hero-scene.scene-live .wave-track-2 {
  animation: waveDrift 19s linear infinite reverse;
}
@keyframes waveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1200px); }
}

/* Sail boat: bob/rock in place, as if riding the waves it's sitting on. */
.hero-scene.scene-live .hero-sail-motion {
  animation: sailFloat 4.5s ease-in-out infinite;
  transform-origin: 0 19px;
}
@keyframes sailFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-2.5deg); }
  50%      { transform: translateY(0.5px) rotate(0deg); }
  75%      { transform: translateY(2.5px) rotate(2.5deg); }
}

/* Sail boat: slow left-to-right crossing of the whole scene. Starts fully
   visible at its natural placement the instant the page loads (no fade-in
   delay), drifts right at a leisurely pace, and only fades out right at
   the very end as it exits off-canvas — then resets instantly to the
   start, which reads as "reappearing at the left" rather than a jump,
   since the reset happens off-screen. */
.hero-scene.scene-live .hero-sail-drift {
  animation: sailDrift 48s linear infinite;
}
@keyframes sailDrift {
  0%   { transform: translateX(0); opacity: 1; }
  90%  { transform: translateX(950px); opacity: 1; }
  100% { transform: translateX(1000px); opacity: 0; }
}

/* ---------- Section scaffolding ---------- */
section { padding: var(--section-pad) 0; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-600);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold); }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 640px;
  margin-bottom: 16px;
}
.section-title-light { color: var(--cream); }

.section-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 91%;
}
.section-subtitle-light { color: var(--pine-200); }

/* ---------- Who We Help ---------- */
.audiences { background: var(--cream); }

.audience-grid {
  display: block;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.audience-card {
  margin-top: 56px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--pine-600);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(14, 92, 86, 0.08);
  border-top-color: var(--gold);
}
.audience-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.audience-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------- Pathways (instrument detail — the layer under the audience cards) ---------- */
.pathways { background: var(--cream-deep); }

.pathway-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.pathway-row {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.pathway-row:last-child { border-bottom: 1px solid var(--line); }

.pathway-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pine-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pathway-row-main h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.pathway-row-main p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 62ch;
}

.pathway-stat {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--pine-900);
  text-align: right;
  white-space: nowrap;
}

.pathways-cta {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Packages (concierge tiers, dark pine like Process) ---------- */
.packages {
  background: var(--pine-900);
  background-image: linear-gradient(180deg, var(--pine-700) 0%, var(--pine-900) 100%);
}

.package-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}

.packages-intro-note {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--pine-200);
  font-size: 15px;
}

.package-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
}

.package-card-featured {
  background: rgba(245, 241, 232, 0.07);
  border-color: var(--gold);
}

.package-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--pine-900);
  font-size: 13px;
}

.package-card h3 {
  color: var(--cream);
  font-size: 20px;
  margin-bottom: 6px;
}

.package-price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 16px;
}

.package-desc {
  color: var(--pine-200);
  font-size: 14px;
  margin-bottom: 22px;
}

.package-feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-feat-list li {
  position: relative;
  padding-left: 20px;
  color: var(--cream-deep);
  font-size: 14px;
}
.package-feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.addons {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line-on-dark);
  text-align: center;
}
.addons-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.addons-subtitle {
  font-size: 14px;
  color: var(--pine-200);
  margin-bottom: 24px;
}
.addon-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.addon-chip {
  padding: 9px 18px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cream-deep);
  background: rgba(245, 241, 232, 0.04);
}

.packages-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--pine-200);
  font-family: var(--font-mono);
}

.packages-cta {
  margin-top: 24px;
  text-align: center;
}

/* ---------- Process (dark pine, sits opposite the cream sections) ---------- */
.process {
  background: var(--pine-900);
  background-image: linear-gradient(180deg, var(--pine-700) 0%, var(--pine-900) 100%);
}

.process-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.process-step {
  padding-top: 20px;
  border-top: 1px solid var(--line-on-dark);
}
.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 20px;
}
.process-step h3 {
  color: var(--cream);
  font-size: 19px;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--pine-200);
  font-size: 15px;
}

/* ---------- Case Outcomes ---------- */
.outcomes { background: var(--cream-deep); }

.outcomes-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap) var(--gap);
}

.outcome-card {
  padding: 24px 22px;
  background: var(--cream);
  border-radius: var(--radius);
  border-top: 2px solid var(--gold);
}
.outcome-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pine-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.outcome-stat {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--pine-900);
  font-weight: 500;
  margin-bottom: 8px;
}
.outcome-desc {
  color: var(--ink-soft);
  font-size: 14px;
}

.outcomes-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------- Why Us ---------- */
.credentials { background: var(--cream); }

.credentials-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px var(--gap);
}

.credential {
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.credential h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.credential p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Team ---------- */
.team { background: var(--cream-deep); }

.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.team-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.team-photo {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.team-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pine-700);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.team-bio {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }

.faq-list {
  margin-top: 56px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  background: #fff;
  padding: 22px 28px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--pine-600);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--gold-dim);
}

.faq-item p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- AI Assistant (floating chat, docked bottom-right) ---------- */
.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: var(--gold);
  color: var(--pine-900);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 64, 59, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.assistant-launcher:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(10, 64, 59, 0.28);
}
.assistant-launcher[aria-expanded="true"] { display: none; }

.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 48px);
  max-height: min(600px, calc(100vh - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(10, 64, 59, 0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.assistant-panel.open { display: flex; }

.assistant-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--pine-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.assistant-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  padding: 0;
}
.assistant-panel-close:hover { color: var(--ink); }

.ai-assistant-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
}
.ai-assistant-log:empty { display: none; }

.ai-msg {
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: var(--radius);
  max-width: 88%;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--pine-50);
  color: var(--pine-900);
}
.ai-msg-assistant {
  align-self: flex-start;
  background: var(--cream-deep);
  color: var(--ink);
}
.ai-msg-loading { color: var(--ink-soft); font-style: italic; }
.ai-msg-error {
  background: #FBEAEA;
  color: #A23B3B;
  border: 1px solid #E7B6B6;
}

.ai-assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-assistant-form textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  resize: none;
  max-height: 260px;
  overflow-y: auto;
  line-height: 1.4;
}
.ai-assistant-form textarea:focus {
  outline: none;
  border-color: var(--pine-400);
}
.ai-assistant-form textarea::-webkit-scrollbar { width: 6px; }
.ai-assistant-form textarea::-webkit-scrollbar-track { background: transparent; }
.ai-assistant-form textarea::-webkit-scrollbar-thumb {
  background: var(--pine-200);
  border-radius: 3px;
}
.ai-assistant-form textarea { scrollbar-width: thin; scrollbar-color: var(--pine-200) transparent; }
.ai-assistant-form .btn { flex-shrink: 0; }

.ai-assistant-note {
  padding: 0 18px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.75;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .assistant-launcher,
  .assistant-panel { right: 16px; bottom: 16px; }
  .assistant-panel { width: calc(100vw - 32px); }
}

/* ---------- Contact ---------- */
.contact { background: var(--cream-deep); }

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.contact-direct {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 91%
}
.contact-direct li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-direct-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-600);
}
.contact-direct a {
  font-size: 16px;
  transition: color 0.2s ease;
}
.contact-direct a:hover { color: var(--pine-700); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: 1fr 1fr;
  max-width: 91%;
  border-left: solid 4px;
  padding: 7px 0 7px 7px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 91%
}
.form-row-full { grid-column: 1 / -1; }

.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--pine-600);
  background: #fff;
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 96px; }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.form-flash {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.form-flash-success {
  background: var(--pine-50);
  color: var(--pine-700);
  border: 1px solid var(--pine-200);
}
.form-flash-error {
  background: #FBEAEA;
  color: #A23B3B;
  border: 1px solid #E7B6B6;
}

/* Honeypot — invisible to real users, still in the tab order for bots to fill */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Legal / Privacy / Terms (stub pages) ---------- */
.legal-page {
  background: var(--cream);
  min-height: 55vh;
}
.legal-page .section-title { max-width: 680px; }
.legal-content {
  margin-top: 24px;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.legal-content p + p { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-900);
  color: var(--pine-200);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--cream);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.footer-contact li {
  position: relative;
  padding-left: 18px;
}
.footer-contact li:first-child { padding-left: 0; }
.footer-contact li:not(:first-child)::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--pine-400);
}
.footer-contact a { transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--gold); }
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-rights {
  width: 100%;
  font-size: 13px;
  color: var(--pine-400);
  margin-top: 8px;
}

/* ---------- Motion hooks (driven by main.js) ---------- */
.hero-load-init {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-load-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-load-init,
  .reveal-init {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-scene.scene-live * {
    animation: none !important;
  }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 13px; }
}

@media (max-width: 960px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }
  .main-nav { display: none; } /* replaced on mobile by the hamburger drawer above */
  /* The 6-code inline language switcher plus the "Book a Consultation"
     button don't both fit a phone-width header with no wrapping — that
     was forcing the whole page to overflow horizontally, which is what
     made the hero and contact form look off-center below. The language
     switcher now lives in the mobile drawer instead. */
  .lang-switcher { display: none; }
  .header-inner { gap: 7px; }
  .mobile-menu-toggle { display: flex; }
  .audience-grid,
  .credentials-grid,
  .team-grid,
  .package-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px var(--gap); }
  .pathway-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pathway-stat { text-align: left; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { grid-template-columns: 1fr; padding: 7px; }
  .hero-inner { margin-left: 0; padding: 32px 24px 40px; }
  .hero-scene { display: none; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .hero-stat { border-left: none; border-top: 1px solid var(--line-on-dark); }
  .hero-stat:first-child { border-top: none; }

  /* Below ~960px the stats stack to 3 rows and label text can wrap to two
     lines (translations run longer than English, and this label itself
     already does). A fixed padding-bottom + absolute/bottom:0 combo has to
     be re-tuned by hand every time copy changes, and silently overlaps the
     hero text when it isn't — so on mobile we take the stats out of
     absolute positioning and let them sit in normal flow underneath. */
  .hero { min-height: 0; }
  .hero-stats { position: static; margin-top: 24px; }
  .honest-intro { margin-top: 0px !important; }
}

@media (max-width: 560px) {
  .container { padding: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   New pages: honest-guide teaser (homepage), why-montenegro.php,
   tax-calculator.php.

   Built on the existing tokens in :root (pine/gold/cream palette, Fraunces/
   Inter/IBM Plex Mono, --radius, --gap, --line, --line-on-dark) and the
   same light/dark section rhythm used elsewhere on the site: cream ↔
   cream-deep for light sections, the pine-700→pine-900 gradient for dark
   ones, gold as the one accent color.
   ========================================================================== */

/* ---- Homepage teaser strip (sits between .hero and #who-we-help) ---- */
.honest-teaser {
  background: var(--cream-deep);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.honest-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.honest-teaser-copy {
  max-width: 620px;
}

.honest-teaser-copy .section-title {
  margin-bottom: 10px;
}

.honest-teaser-copy p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---- why-montenegro.php ---- */
.honest-hero {
  background: var(--cream-deep);
  padding: 96px 0 64px;
  text-align: center;
}

.honest-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 14px auto 20px;
}

.honest-hero .section-subtitle {
  max-width: 620px;
  margin: 0 auto;
}

.honest-intro { background: var(--cream); margin-top: 350px; }

.honest-intro .container { max-width: 720px; }

.honest-intro p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.honest-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.honest-card {
  padding: 32px;
  border-radius: var(--radius);
}

.honest-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.honest-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.honest-pros { background: var(--cream); }

.honest-card-pro {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pine-600);
}

.honest-cons {
  background: var(--pine-900);
  background-image: linear-gradient(180deg, var(--pine-700) 0%, var(--pine-900) 100%);
}

.honest-card-con {
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid var(--line-on-dark);
  border-top: 3px solid var(--gold);
}
.honest-card-con h3 { color: var(--cream); }
.honest-card-con p { color: var(--pine-200); }

.honest-approach { background: var(--cream-deep); }

.honest-approach-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--gap);
}

.honest-approach-item {
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.honest-approach-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.honest-approach-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

.honest-cta {
  background: var(--cream);
  text-align: center;
}
.honest-cta .section-title,
.honest-cta .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.honest-cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- tax-calculator.php ---- */
.calc-hero {
  background: var(--pine-900);
  background-image: linear-gradient(180deg, var(--pine-700) 0%, var(--pine-900) 100%);
  padding: 96px 0 64px;
  text-align: center;
}
.calc-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 760px;
  margin: 14px auto 20px;
}
.calc-hero .section-subtitle-light { max-width: 620px; margin: 0 auto; }

.calc-tool { background: var(--cream); }

.calc-tool-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.calc-form {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-help {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.calc-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-results-empty {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  opacity: 0.75;
}

.calc-result-list {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.calc-result-row dt {
  font-size: 14px;
  color: var(--ink-soft);
}
.calc-result-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--pine-900);
}

.calc-result-row-highlight {
  border-bottom: none;
  padding-top: 16px;
}
.calc-result-row-highlight dt {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.calc-result-row-highlight dd {
  font-size: 21px;
  font-weight: 600;
  color: var(--pine-700);
}

.calc-results .btn { margin-top: 4px; }

.calc-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
  max-width: 800px;
}

.calc-brackets { background: var(--cream-deep); }

.calc-brackets-list {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-brackets-list li {
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--pine-900);
}

.calc-disclaimer-note {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.65;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .honest-grid,
  .honest-approach-grid { grid-template-columns: 1fr; }
  .calc-tool-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .honest-teaser-inner { flex-direction: column; align-items: flex-start; }
  .honest-cta-actions { flex-direction: column; align-items: stretch; }
}
