/* Right Hand Marbella — shared styles */
:root {
  --brown: #5C4033;   /* dark chocolate: buttons, dark blocks */
  --brown-soft: #6E5243;
  --accent: #84573A;  /* caramel: small headings, icons */
  --apricot: #E2B48E;
  --bone: #EFE4DB;   /* main nude background */
  --sand: #E3D2C5;   /* deeper nude for alternate sections */
  --paper: #F7F0EA;  /* light nude for cards */
  --ink: #2A2723;
  --ink-soft: #3F3A34;
  --muted: #5A544C;
  --line: #D6C3B5;
  --line-soft: #E4D5CA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: 6px; color: var(--accent); text-transform: uppercase; }
.on-dark .eyebrow { color: var(--apricot); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid var(--brown);
  transition: background .2s, color .2s;
}
.btn-solid { background: var(--brown); color: var(--bone); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-line { background: transparent; color: var(--brown); }
.btn-line:hover { background: var(--brown); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--brown); border-color: var(--bone); }
.btn-light:hover { background: var(--apricot); border-color: var(--apricot); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; letter-spacing: 2px; }

/* Language bar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-bar { background: var(--sand); border-bottom: 1px solid var(--line); }
.lang-bar .wrap { display: flex; justify-content: flex-end; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 10px;
  color: var(--muted); text-decoration: none;
  font-size: 12px; letter-spacing: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang-switch a img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); opacity: .85; transition: opacity .2s; }
.lang-switch a:hover { color: var(--brown); }
.lang-switch a:hover img { opacity: 1; }
.lang-switch a[aria-current] { color: var(--brown); border-bottom-color: var(--accent); }
.lang-switch a[aria-current] img { opacity: 1; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bone); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name .n1 { font-family: 'Marcellus', serif; font-size: 20px; letter-spacing: 5px; color: var(--brown); }
.brand-name .n2 { font-size: 11px; letter-spacing: 6px; color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 80px; padding-bottom: 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 66px; line-height: 1.06; }
.hero .lead { font-size: 20px; font-weight: 300; color: var(--ink-soft); max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { flex: 1 1 400px; min-width: 0; display: block; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; object-position: center 40%; border-radius: 2px; }
.langs { font-size: 14px; color: var(--muted); }
.hero-visual {
  flex: 1 1 400px; min-width: 0; min-height: 480px;
  background: var(--brown); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.hero-visual img { width: 100%; max-width: 420px; }

/* Promise strip */
.strip { background: var(--brown); color: var(--bone); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }

/* Sections */
.section { padding: 104px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section h2 { font-size: 44px; line-height: 1.15; }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.bg-brown { background: var(--brown); color: var(--bone); }
.bg-brown h2 { color: var(--bone); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line-soft); padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; }
.card p { color: var(--ink-soft); }
.card.dark { background: var(--brown); border-color: var(--brown); color: var(--bone); }
.card.dark p { color: #E9E2D3; }
.icon { width: 34px; height: 34px; }

/* Comparison */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > .text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .compare { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.compare-box { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.compare-box .label { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }
.compare-box.plain { background: var(--bone); }
.compare-box.plain .label { color: var(--muted); }
.compare-box.ours { background: var(--brown); color: var(--bone); }
.compare-box.ours .label { color: var(--apricot); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step .num { font-family: 'Marcellus', serif; font-size: 52px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 24px; }
.step p { color: var(--ink-soft); max-width: 320px; }

/* Membership */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); background: var(--bone); padding: 38px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 28px; }
.plan .price { font-size: 15px; color: var(--muted); }
.plan p { color: var(--ink-soft); }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--brown); border-color: var(--brown); color: var(--bone); }
.plan.featured .tag { font-size: 12px; letter-spacing: 4px; color: var(--apricot); }
.plan.featured .price, .plan.featured p { color: #E9E2D3; }

/* About */
.about .split { align-items: center; gap: 64px; }
.about-visual { flex: 1 1 360px; min-width: 0; background: var(--sand); padding: 56px 44px; display: flex; flex-direction: column; gap: 20px; }
.about-visual blockquote { margin: 0; font-family: 'Marcellus', serif; font-size: 30px; line-height: 1.3; color: var(--brown); }
.about-visual .sig { font-size: 13px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; }
.about .text p { color: var(--ink-soft); }

/* Contact */
.contact .split { gap: 64px; }
.contact .text p { color: #E9E2D3; }
.contact-options { flex: 1 1 420px; min-width: 0; display: grid; gap: 18px; }
.contact-option {
  display: flex; align-items: center; gap: 18px; padding: 24px 26px;
  border: 1px solid #9A7C68; background: var(--brown-soft); color: var(--bone); text-decoration: none;
  transition: background .2s;
}
.contact-option:hover { background: #7D5F4D; color: var(--bone); }
.contact-option svg { flex-shrink: 0; width: 30px; height: 30px; }
.contact-option .t1 { font-size: 13px; letter-spacing: 3px; color: var(--apricot); text-transform: uppercase; }
.contact-option .t2 { font-size: 19px; overflow-wrap: anywhere; }
.contact-option > span { min-width: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #D9D2C3; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.site-footer .brand img { height: 46px; }
.site-footer .brand-name .n1 { color: var(--bone); font-size: 18px; }
.site-footer .brand-name .n2 { color: var(--apricot); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-nav a, .site-footer small { color: #D9D2C3; }
.site-footer small { font-size: 14px; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 44px; margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal .note { background: var(--sand); padding: 18px 22px; font-size: 15px; margin: 24px 0 8px; }
.fill { background: #F3DCC8; padding: 0 4px; }

/* Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center 15%; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 18px; }
  .hero-visual { min-height: 300px; padding: 32px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 32px; }
  .main-nav { gap: 6px 18px; font-size: 14px; }
  .brand img { height: 44px; }
  .about-visual blockquote { font-size: 24px; }
  .contact-option { padding: 20px; gap: 14px; }
  .lang-bar .wrap { justify-content: center; }
  .lang-switch a { padding: 0 8px; }
  .contact-option .t2 { font-size: 16px; }
  .legal h1 { font-size: 34px; }
}

/* Hero flows straight into Services */
.hero + .section { padding-top: 24px; }

/* =========================================================
   Motion: slow, soft, never flashy
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Hero entrance (runs once on load) */
.js .load { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js.loaded .load { opacity: 1; transform: none; }
.hero-photo { overflow: hidden; border-radius: 2px; }
.hero-photo img { transition: scale 2.6s var(--ease); will-change: translate; }
.js .hero-photo img { scale: 1.08; }
.js.loaded .hero-photo img { scale: 1; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Sticky, translucent menu */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.scrolled { background: rgba(239, 228, 219, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -22px rgba(60, 40, 30, .45); }
.site-header .wrap { transition: padding .4s; }
.site-header.scrolled .wrap { padding-top: 10px; padding-bottom: 10px; }
html { scroll-padding-top: 96px; }

/* Soft hover lifts */
.card, .compare-box, .contact-option { transition: translate .5s var(--ease), box-shadow .5s var(--ease), background .3s; }
.card:hover, .compare-box:hover { translate: 0 -5px; box-shadow: 0 24px 48px -30px rgba(60, 40, 30, .45); }
.contact-option:hover { translate: 0 -3px; }
.btn { transition: background .3s, color .3s, border-color .3s, translate .4s var(--ease); }
.btn:hover { translate: 0 -2px; }

/* Step numbers in fine circles */
.step .num { width: 84px; height: 84px; border: 1px solid var(--accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; transition: background .5s, color .5s; }
.step:hover .num { background: var(--brown); color: var(--bone); border-color: var(--brown); }

/* Thin line before section labels */
.section-head .eyebrow, .split .text .eyebrow, .quiz-intro .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.section-head .eyebrow::before, .split .text .eyebrow::before, .quiz-intro .eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }

/* =========================================================
   "What do you need?" quiz
   ========================================================= */
.quiz-section { padding-top: 24px; }
.quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); border-radius: 2px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(60, 40, 30, .5); }
.quiz-intro { background: var(--brown); color: var(--bone); padding: 56px 48px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.quiz-intro .eyebrow { color: var(--apricot); }
.quiz-intro h2 { color: var(--bone); font-size: 44px; line-height: 1.15; }
.quiz-intro p { color: #E9E2D3; font-size: 18px; font-weight: 300; }
.quiz-panel { background: var(--paper); padding: 44px 48px; display: flex; flex-direction: column; gap: 22px; min-height: 460px; }
.quiz-top { display: flex; align-items: center; gap: 18px; }
.quiz-count { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); white-space: nowrap; min-width: 92px; }
.quiz-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.quiz-bar span { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.quiz-step.is-active { display: block; animation: quizIn .55s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.quiz-step legend { font-family: 'Marcellus', Georgia, serif; font-size: 28px; line-height: 1.25; color: var(--ink); padding: 0; margin-bottom: 20px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 54px; padding: 0 20px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  font-family: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, translate .4s var(--ease);
}
.quiz-opt svg { color: var(--accent); opacity: 0; translate: -6px 0; transition: opacity .3s, translate .4s var(--ease); flex-shrink: 0; }
.quiz-opt:hover { background: var(--bone); border-color: var(--accent); translate: 4px 0; }
.quiz-opt:hover svg, .quiz-opt:focus-visible svg { opacity: 1; translate: 0 0; }
.quiz-opt[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--bone); }
.quiz-opt[aria-pressed="true"] svg { color: var(--apricot); opacity: 1; translate: 0 0; }
.quiz-opt:focus-visible, .quiz-back:focus-visible, .lang-switch a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiz-back { align-self: flex-start; background: none; border: 0; padding: 8px 0; min-height: 44px; font-family: inherit; font-size: 14px; letter-spacing: 1px; color: var(--muted); cursor: pointer; }
.quiz-back:hover { color: var(--brown); }
.quiz-done h3 { font-size: 30px; margin-bottom: 18px; }
.quiz-summary { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.quiz-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.quiz-summary dt { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.quiz-summary dd { margin: 0; text-align: right; color: var(--ink); }
.quiz-done p { color: var(--ink-soft); margin-bottom: 22px; }
.quiz-done .btn-row button { font-family: inherit; cursor: pointer; }

@media (max-width: 760px) {
  .quiz-intro { padding: 40px 28px; }
  .quiz-intro h2 { font-size: 34px; }
  .quiz-panel { padding: 32px 24px; min-height: 0; }
  .quiz-step legend { font-size: 24px; }
  .step .num { width: 72px; height: 72px; font-size: 30px; }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .load, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero-photo img { scale: 1 !important; }
  html { scroll-behavior: auto; }
}

/* Phones: menu scrolls away normally (too tall to pin), answers get breathing room */
@media (max-width: 760px) {
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
  .quiz-opt { padding: 12px 18px; line-height: 1.35; }
}
