/* ==========================================================================
   MORA LONDON — stylesheet
   One compact page: deep green field, the logo's house mark, a white form card.
   ========================================================================== */
:root {
  --green-950: #022720;
  --green-900: #04382d;
  --green-800: #0a4a3c;
  --green-700: #13604e;
  --green-on: #e9efe9;
  --green-on-2: #d3dfd8;
  --gold: #ac8753;
  --gold-700: #8a6a3c;
  --gold-300: #d8bd8f;
  --white: #ffffff;
  --mist: #eef2ef;
  --ink: #15201c;
  --muted: #55625d;
  --line: #dae2dd;
  --danger: #a3372a;
  --wa: #128c4b;
  --wa-hover: #0e7740;

  --display: "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --r: 14px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 80px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 2px 4px rgba(2, 39, 32, .06), 0 24px 60px rgba(2, 39, 32, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--green-700) var(--mist); }
body { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 450; line-height: 1.6; color: var(--ink); background: var(--green-900); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { background: var(--white); }
::selection { background: var(--gold-300); color: var(--green-950); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-700); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
input { caret-color: var(--green-700); }
[hidden] { display: none !important; }
svg { flex: none; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; color: var(--green-900); margin: 0 0 .45em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.8vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--green-900); padding: 10px 16px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 58px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-900); color: var(--white); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-300); color: var(--green-950); }
.btn--ghost { border-color: rgba(233, 239, 233, .45); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--green-900); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--text { background: none; border: 0; min-height: 44px; padding: 0 4px; color: var(--green-800); text-decoration: underline; text-underline-offset: .25em; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 500; color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--gold); vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { margin-right: auto; display: flex; }
.brand img { width: 172px; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--green-900); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--mist); }
.lang summary svg { width: 18px; height: 18px; }
.lang summary svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; list-style: none; margin: 0; padding: 6px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); z-index: 70; }
.lang a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang a span { font-size: .75rem; font-weight: 600; color: var(--gold-700); width: 22px; }
.lang a:hover, .lang a[aria-current="true"] { background: var(--mist); color: var(--green-900); }
@media (max-width: 520px) { .brand img { width: 118px; } .header-wa span { display: none; } .header-wa { padding: 0 12px; } }

.lang-offer { background: var(--mist); border-bottom: 1px solid var(--line); font-size: .95rem; }
.lang-offer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.lang-offer a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.lang-offer a svg { width: 18px; height: 18px; }
.lang-offer button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.lang-offer button svg { width: 18px; height: 18px; }

/* ---------- Hero with form ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: var(--green-on); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: bg-in 2.2s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(4, 56, 45, .94) 0%, rgba(4, 56, 45, .8) 40%, rgba(4, 56, 45, .5) 100%); pointer-events: none; }
.hero__grid { z-index: 1; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: min(calc(100svh - var(--header-h)), 780px); padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); max-width: 12ch; margin-bottom: 20px; }
.hero__sub { font-size: 1.2rem; color: var(--green-on-2); max-width: 40ch; margin-bottom: 28px; }
.hero__years { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; color: var(--white); font-weight: 500; font-size: 1.05rem; line-height: 1.35; max-width: 30ch; }
.hero__years-n { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--gold-300); letter-spacing: -.02em; }
.points { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid rgba(216, 189, 143, .35); display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 500; color: var(--white); }
.points svg { width: 20px; height: 20px; color: var(--gold-300); }
.hero__houses { margin: 0; font-size: .98rem; color: var(--green-on-2); }
.direct { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(216, 189, 143, .35); }
.direct p { margin: 0 0 10px; font-size: .95rem; color: var(--green-on-2); }
.direct__links { display: flex; flex-wrap: wrap; gap: 10px; }
.direct__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: var(--white); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .2s; }
.direct__links a:hover { background: var(--wa); color: var(--white); }
.direct__links svg { width: 20px; height: 20px; color: #6fd99b; }
.direct__links a:hover svg { color: var(--white); }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: clamp(22px, 3.4vw, 38px); box-shadow: var(--shadow); animation: card-in 1s .2s var(--ease) both; }
.form-card h2 { margin-bottom: 20px; }
@keyframes card-in { from { transform: translateY(24px); } to { transform: none; } }
@keyframes bg-in { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2.2rem, 8.4vw, 3rem); max-width: 16ch; margin-bottom: 12px; }
  .hero__sub { font-size: 1.05rem; margin-bottom: 16px; }
  .points { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; margin-bottom: 0; }
  .points li { font-size: .95rem; gap: 6px; }
  .points svg { width: 17px; height: 17px; }
  .hero__houses { display: none; }
  .direct { margin-top: 16px; padding-top: 14px; }
  .hero__years { margin-bottom: 4px; font-size: .98rem; }
  .hero__years-n { font-size: 2.3rem; }
  .hero::after { background: linear-gradient(180deg, rgba(4, 56, 45, .86) 0%, rgba(4, 56, 45, .74) 40%, rgba(4, 56, 45, .9) 100%); }
}

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .95rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field__hint { margin: 0; font-size: .82rem; color: var(--muted); }
input[type="text"], input[type="tel"], select { width: 100%; min-height: 52px; padding: 11px 14px; border: 1px solid #c9d4ce; border-radius: 10px; background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2304382d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
input:hover, select:hover { border-color: var(--green-700); }
input:focus, select:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(19, 96, 78, .14); }
::placeholder { color: #6b7873; }
.field.has-error input, .field.has-error select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 55, 42, .1); }
.field__error { display: none; margin: 0; color: var(--danger); font-size: .88rem; }
.field.has-error .field__error { display: block; }
.field.has-error .field__hint { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn--lg { margin-top: 6px; }
.lead.is-sending [type="submit"] { opacity: .6; pointer-events: none; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

.lead-done { text-align: center; padding: 8px 0; }
.lead-done:focus { outline: none; }
.lead-done__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: #e6f2eb; color: var(--green-700); }
.lead-done__icon svg { width: 30px; height: 30px; }
.lead-done h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; color: var(--green-900); margin: 0 0 10px; }
.lead-done p { color: var(--muted); max-width: 34ch; margin: 0 auto 22px; }
.lead-done .btn--wa { width: 100%; }
.lead-done .btn--text { margin-top: 10px; }

/* ---------- Steps band ---------- */
.steps-band { background: var(--white); padding: clamp(32px, 5vw, 56px) 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0 auto; }
.steps::before { content: ""; position: absolute; left: calc(var(--gutter) + 11px); right: var(--gutter); top: 10px; height: 4px; border-radius: 2px; background: var(--gold); }
.steps li { position: relative; padding-top: 40px; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; color: var(--green-900); }
.steps__stop { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 5px var(--green-900); }
.steps li:last-child .steps__stop { background: var(--gold-300); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: calc(var(--gutter) + 10px); right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .steps li { padding: 0 0 0 44px; font-size: 1.2rem; }
}

/* ---------- FAQ ---------- */
.faq-band { background: var(--mist); padding: clamp(48px, 7vw, 88px) 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-wrap h2 { margin: 0; max-width: 16ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-700); }
.faq summary svg { width: 20px; height: 20px; color: var(--gold-700); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--green-900); color: var(--green-on-2); padding: clamp(44px, 7vw, 80px) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-hero p { margin: 0; }
.page-hero--404 { padding: clamp(80px, 14vw, 160px) 0; }
.page-hero--404 .btn-row { margin-top: 28px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 24px; background: var(--green-950); color: var(--green-on-2); font-size: .95rem; }
.site-footer a { color: var(--green-on); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-langs a[aria-current="true"] { color: var(--gold-300); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(233, 239, 233, .14); font-size: .85rem; padding-right: 150px; }
.footer-bottom p { margin: 0; }
@media (max-width: 600px) { .footer-bottom { padding-right: 76px; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 10px 30px rgba(2, 39, 32, .3); transition: transform .3s var(--ease), background-color .2s, opacity .3s; }
.wa-float:hover { background: var(--wa-hover); color: #fff; transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; padding: 15px; }
  .wa-float span { display: none; }
}
/* On phones and tablets the header already has WhatsApp; the float appears once the visitor scrolls */
@media (max-width: 900px) { .page-home:not(.is-scrolled) .wa-float { opacity: 0; pointer-events: none; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
