/* ============================================================
   Azure Tower — landing "20 / 40 / 40" (offer pages only)
   Mobile-first. Shared by /{lang}/offer and /{lang}/offer/thanks
   ============================================================ */

@font-face {
    font-family: "Evolventa";
    src: url("/assets/fonts/Evolventa-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Evolventa";
    src: url("/assets/fonts/Evolventa-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ofr-navy: #0B1B3A;
    --ofr-navy-2: #10254D;
    --ofr-navy-3: #163061;
    --ofr-accent: #00AEEF;
    --ofr-accent-hover: #33C2F5;
    --ofr-text: #F2F5FA;
    --ofr-muted: #A9B7CC;
    --ofr-line: rgba(255, 255, 255, 0.12);
    --ofr-error: #FF8A8A;
    --ofr-radius: 10px;
    --ofr-head: "Evolventa", "Red Hat Display", sans-serif;
    --ofr-body: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ofr {
    margin: 0;
    background: var(--ofr-navy);
    color: var(--ofr-text);
    font-family: var(--ofr-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.ofr img { max-width: 100%; display: block; }
.ofr a { color: inherit; }
.ofr h1, .ofr h2, .ofr h3 { font-family: var(--ofr-head); font-weight: 700; line-height: 1.15; margin: 0; }
.ofr p { margin: 0; }

.ofr-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.ofr-skip {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--ofr-accent); color: var(--ofr-navy); padding: 8px 14px; border-radius: 6px; font-weight: 700;
}
.ofr-skip:focus { left: 8px; }

.ofr :focus-visible { outline: 2px solid var(--ofr-accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.ofr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 14px 26px;
    border: 0; border-radius: var(--ofr-radius);
    background: linear-gradient(110deg, #0A3D7A 0%, #0A6FB8 40%, var(--ofr-accent) 75%, var(--ofr-accent-hover) 100%) 0 0 / 134% 100%;
    color: #fff; text-shadow: 0 1px 2px rgba(5,25,60,.35);
    box-shadow: 0 6px 18px rgba(0,110,190,.28), inset 0 1px 0 rgba(255,255,255,.18);
    font-family: var(--ofr-body); font-size: 17px; font-weight: 700; line-height: 1.2;
    text-decoration: none; text-align: center; cursor: pointer;
    transition: background-position .4s ease, box-shadow .3s ease, transform .2s ease;
}
.ofr-btn:hover, .ofr-btn:focus-visible { background-position: 100% 0; color: #fff; box-shadow: 0 8px 24px rgba(0,140,220,.38), inset 0 1px 0 rgba(255,255,255,.22); }
.ofr-btn:active { transform: translateY(1px); }
.ofr-btn[disabled] { opacity: .65; cursor: wait; }
.ofr-btn--ghost { background: transparent; color: var(--ofr-text); text-shadow: none; box-shadow: inset 0 0 0 1px var(--ofr-line); }
.ofr-btn--ghost:hover, .ofr-btn--ghost:focus-visible { background: rgba(255,255,255,.08); color: var(--ofr-text); box-shadow: inset 0 0 0 1px var(--ofr-line); }
.ofr-btn--block { width: 100%; }

/* ---------- Header ---------- */
.ofr-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.ofr-header.is-solid { background: rgba(11, 27, 58, 0.96); box-shadow: 0 1px 0 var(--ofr-line); }
.ofr-header__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.ofr-header__logo { display: block; flex: 0 0 auto; }
.ofr-header__logo img { height: 44px; width: auto; }
.ofr-header__phone {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    color: var(--ofr-text); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
}
.ofr-header__phone svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ofr-header__phone span { display: none; }
.ofr-lang { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ofr-lang a {
    display: block; padding: 6px 7px; border-radius: 6px;
    font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ofr-muted); text-decoration: none;
}
.ofr-lang a:hover { color: var(--ofr-text); }
.ofr-lang a[aria-current="page"] { color: var(--ofr-accent); }

/* ---------- Hero ---------- */
.ofr-hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.ofr-hero__media, .ofr-hero__media img, .ofr-hero__media video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.ofr-hero__media video { opacity: 0; transition: opacity .8s ease; }
.ofr-hero__media video.is-playing { opacity: 1; }
.ofr-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(11,27,58,.55) 0%, rgba(11,27,58,.15) 35%, rgba(11,27,58,.85) 75%, var(--ofr-navy) 100%);
}
.ofr-hero__content { padding-top: 120px; padding-bottom: 56px; }
.ofr-hero h1 { font-size: clamp(30px, 8vw, 62px); max-width: 19em; }
.ofr-h1__line { display: block; text-wrap: balance; }
.ofr-h1__line--accent { margin-top: .15em; font-size: .82em; color: var(--ofr-accent); }
.ofr-hero__sub { margin-top: 20px; font-size: clamp(17px, 4.4vw, 21px); color: #DDE6F2; max-width: 34em; }
.ofr-hero__cta { margin-top: 28px; }

/* ---------- Sections ---------- */
.ofr-section { padding: 64px 0; }
.ofr-section--alt { background: var(--ofr-navy-2); }
.ofr-kicker {
    display: inline-block; margin-bottom: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ofr-accent);
}
.ofr-title { font-size: clamp(28px, 6.4vw, 44px); }
.ofr-lead { margin-top: 14px; color: var(--ofr-muted); font-size: 17px; max-width: 40em; }
.ofr-section__cta { margin-top: 32px; }

/* Plan 20/40/40 */
.ofr-steps { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.ofr-step {
    position: relative; padding: 20px 20px 20px 22px;
    border-radius: var(--ofr-radius); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--ofr-line);
}
.ofr-step__pct { display: block; font-family: var(--ofr-head); font-weight: 700; font-size: 46px; line-height: 1; color: var(--ofr-accent); }
.ofr-step__title { display: block; margin-top: 10px; font-size: 19px; font-weight: 700; }
.ofr-step__text { display: block; margin-top: 4px; color: var(--ofr-muted); }

.ofr-example { margin-top: 36px; }
.ofr-example h3 { font-size: 22px; }
.ofr-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 16px; }
.ofr-table th, .ofr-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--ofr-line); }
.ofr-table th { font-weight: 500; color: var(--ofr-muted); font-size: 14px; }
.ofr-table td:nth-child(2), .ofr-table th:nth-child(2) { white-space: nowrap; }
.ofr-table td:last-child, .ofr-table th:last-child { text-align: right; white-space: nowrap; }
.ofr-table tfoot td { font-weight: 700; border-bottom: 0; }
.ofr-note { margin-top: 12px; font-size: 14px; color: var(--ofr-muted); }

/* Turnkey */
.ofr-turnkey__grid { display: grid; gap: 28px; margin-top: 28px; }
.ofr-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ofr-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--ofr-radius); }
.ofr-gallery img:first-child { grid-column: 1 / -1; }
.ofr-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ofr-checks li { position: relative; padding-left: 34px; font-size: 18px; }
.ofr-checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ofr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%230B1B3A'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Apartments */
.ofr-cards { display: grid; gap: 16px; margin-top: 28px; }
.ofr-card {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--ofr-radius); background: var(--ofr-navy-3); box-shadow: inset 0 0 0 1px var(--ofr-line);
}
.ofr-card__img { background: #fff; padding: 12px; }
.ofr-card__img img { width: 100%; height: 200px; object-fit: contain; }
.ofr-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.ofr-card__title { font-size: 26px; }
.ofr-card__area { font-size: 18px; font-weight: 500; }
.ofr-card__extra { color: var(--ofr-muted); font-size: 15px; }
.ofr-card__price { color: var(--ofr-accent); font-weight: 700; font-size: 18px; }
.ofr-card__body .ofr-btn { margin-top: auto; }
.ofr-card__spacer { flex: 1; min-height: 10px; }

/* Why */
.ofr-facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ofr-fact { padding: 20px; border-radius: var(--ofr-radius); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--ofr-line); }
.ofr-fact__n { font-family: var(--ofr-head); font-weight: 700; font-size: 15px; color: var(--ofr-accent); }
.ofr-fact h3 { margin-top: 8px; font-size: 20px; }
.ofr-fact p { margin-top: 6px; color: var(--ofr-muted); }

/* Location */
.ofr-loc { display: grid; gap: 24px; margin-top: 28px; }
.ofr-map { position: relative; border-radius: var(--ofr-radius); overflow: hidden; background: var(--ofr-navy-3); min-height: 280px; }
.ofr-map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
.ofr-dist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.ofr-dist li { padding: 16px 0; border-bottom: 1px solid var(--ofr-line); font-size: 18px; }
.ofr-dist b { color: var(--ofr-accent); font-weight: 700; }
.ofr-maplink { display: inline-block; margin-top: 16px; color: var(--ofr-accent); font-weight: 700; }

/* ---------- Form (3 steps) ---------- */
.ofr-form-section { padding: 0; scroll-margin-top: 0; }
.ofr-form {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.ofr-form__bg { position: absolute; inset: 0; z-index: -2; }
.ofr-form__bg img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .5s ease;
}
.ofr-form__bg img.is-active { opacity: 1; }
.ofr-form::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,27,58,.55), rgba(11,27,58,.88)); }
.ofr-form__in { width: 100%; padding-top: 88px; padding-bottom: 88px; }
.ofr-form__panel { max-width: 620px; }
.ofr-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: #DDE6F2; }
.ofr-progress__bar { flex: 1; max-width: 160px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.ofr-progress__bar i { display: block; height: 100%; width: 33.34%; background: var(--ofr-accent); transition: width .3s ease; }
.ofr-qstep[hidden] { display: none; }
.ofr-qstep h2 { font-size: clamp(28px, 7vw, 46px); outline: none; }
.ofr-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.ofr-answer {
    min-height: 64px; padding: 14px 16px; border: 0; border-radius: var(--ofr-radius);
    background: rgba(255,255,255,.94); color: var(--ofr-navy);
    font-family: var(--ofr-body); font-size: 18px; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.ofr-answer:hover { background: #fff; box-shadow: 0 0 0 2px var(--ofr-accent); }
.ofr-answer[aria-pressed="true"] { background: var(--ofr-accent); color: var(--ofr-navy); }
.ofr-answer small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.ofr-answers--two { grid-template-columns: 1fr; }
.ofr-back {
    margin-top: 20px; padding: 6px 0; border: 0; background: none; color: #DDE6F2;
    font-family: var(--ofr-body); font-size: 15px; text-decoration: underline; cursor: pointer;
}
.ofr-fields { display: grid; gap: 14px; margin-top: 24px; }
.ofr-field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: #E6EDF7; }
.ofr-field input {
    width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--ofr-radius);
    background: rgba(255,255,255,.96); color: var(--ofr-navy); font-family: var(--ofr-body); font-size: 17px;
}
.ofr-field input:focus { outline: none; border-color: var(--ofr-accent); box-shadow: 0 0 0 3px rgba(0,174,239,.35); }
.ofr-field input[aria-invalid="true"] { border-color: var(--ofr-error); }
.ofr-field__err { display: block; min-height: 0; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ofr-error); }
.ofr-field__err:empty { display: none; }
.ofr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ofr-submit { margin-top: 8px; }
.ofr-consent { margin-top: 12px; font-size: 14px; color: #DDE6F2; }
.ofr-consent a { color: #fff; }
.ofr-status { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--ofr-error); }
.ofr-status:empty { display: none; }
.ofr-status a { color: #fff; }

/* ---------- Footer ---------- */
.ofr-footer { padding: 56px 0 120px; background: #081530; }
.ofr-footer h2 { font-size: clamp(24px, 5.6vw, 34px); }
.ofr-footer__lead { margin-top: 10px; color: var(--ofr-muted); }
.ofr-footer__grid { display: grid; gap: 20px; margin-top: 28px; }
.ofr-footer__item span { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ofr-muted); }
.ofr-footer__item b, .ofr-footer__item a { display: block; margin-top: 4px; font-size: 18px; font-weight: 500; text-decoration: none; }
.ofr-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ofr-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ofr-line); font-size: 14px; color: var(--ofr-muted); }
.ofr-footer__legal a { color: var(--ofr-muted); }

/* ---------- Floating CTA (mobile) ---------- */
.ofr-float {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: transform .25s ease, opacity .25s ease;
}
.ofr-float.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }

/* ---------- Amount visibility flag ---------- */
.ofr-hide-amounts .ofr-amount { display: none !important; }

/* ---------- Thank-you page ---------- */
.ofr-thanks { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.ofr-thanks__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ofr-thanks::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,27,58,.6), rgba(11,27,58,.92)); }
.ofr-thanks__in { padding-top: 110px; padding-bottom: 60px; max-width: 640px; }
.ofr-thanks h1 { font-size: clamp(30px, 7.5vw, 50px); }
.ofr-thanks__text { margin-top: 16px; font-size: 19px; color: #DDE6F2; }
.ofr-thanks__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ofr-thanks__visit { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ofr-line); color: var(--ofr-muted); }

/* ============================================================
   >= 576px
   ============================================================ */
@media (min-width: 576px) {
    .ofr-header__phone span { display: inline; }
    .ofr-answers--two { grid-template-columns: 1fr 1fr; }
    .ofr-thanks__actions { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   >= 768px
   ============================================================ */
@media (min-width: 768px) {
    .ofr-section { padding: 88px 0; }
    .ofr-steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .ofr-step { border-radius: 0; padding: 26px 24px; }
    .ofr-step:first-child { border-radius: var(--ofr-radius) 0 0 var(--ofr-radius); }
    .ofr-step:last-child { border-radius: 0 var(--ofr-radius) var(--ofr-radius) 0; }
    .ofr-step + .ofr-step { margin-left: -1px; }
    .ofr-step__pct { font-size: 56px; }
    .ofr-example { max-width: 640px; }
    .ofr-cards { grid-template-columns: repeat(3, 1fr); }
    .ofr-facts { grid-template-columns: repeat(2, 1fr); }
    .ofr-footer__grid { grid-template-columns: repeat(3, 1fr); }
    .ofr-footer { padding-bottom: 48px; }
}

/* ============================================================
   >= 992px
   ============================================================ */
@media (min-width: 992px) {
    .ofr-header__in { min-height: 76px; gap: 20px; }
    .ofr-header__logo img { height: 52px; }
    .ofr-hero { align-items: center; }
    .ofr-hero::after {
        background:
            linear-gradient(90deg, rgba(11,27,58,.75) 0%, rgba(11,27,58,.35) 55%, rgba(11,27,58,0) 80%),
            linear-gradient(180deg, rgba(11,27,58,.45) 0%, rgba(11,27,58,.1) 35%, rgba(11,27,58,.7) 80%, var(--ofr-navy) 100%);
    }
    .ofr-hero__content { padding-top: 140px; padding-bottom: 96px; }
    .ofr-turnkey__grid { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
    .ofr-facts { grid-template-columns: repeat(3, 1fr); }
    .ofr-loc { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 48px; }
    .ofr-map, .ofr-map iframe { min-height: 380px; }
    .ofr-form { min-height: 720px; }
    .ofr-float { display: none; }
}
