/* melachim.com · group landing: two doors (Rio real estate | Bahia games studio) */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/fraunces-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/archivo-var-latin.woff2') format('woff2'); }

:root {
  --mar-ink: #061F1C; --mar: #0E3B36; --areia: #F4EFE3; --ouro: #C8A24B; --ouro-vivid: #D9B45C; --ouro-pale: #E9D9A8; --mare: #3FC1B0;
  --f-display: 'Fraunces', Georgia, serif; --f-text: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22,.8,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--f-text); color: var(--areia); background: var(--mar-ink); line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ouro-vivid); outline-offset: -6px; }

.top { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem clamp(1rem, 3vw, 2rem); pointer-events: none; }
.group { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ouro-pale); pointer-events: auto; margin: 0; font-weight: 500; }
.group img { height: 30px; width: auto; }
.lang { display: flex; gap: .35rem; font-size: .8rem; letter-spacing: .08em; pointer-events: auto; }
.lang a { color: var(--areia); text-decoration: none; opacity: .75; padding: .2rem .3rem; }
.lang a[aria-current] { opacity: 1; color: var(--ouro-pale); font-weight: 600; }

.doors { display: flex; min-height: 100svh; }
.door { position: relative; isolation: isolate; flex: 1 1 50%; display: flex; align-items: flex-end; padding: clamp(5.5rem, 10vh, 7rem) clamp(1.4rem, 4vw, 3.5rem) clamp(4.5rem, 9vh, 6rem); color: inherit; text-decoration: none; overflow: hidden; transition: flex-grow .6s var(--ease); }
.door picture, .door picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.door picture img { object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 31 28 / .55) 0%, rgb(6 31 28 / .1) 35%, rgb(6 31 28 / .35) 60%, rgb(6 31 28 / .93) 100%); transition: background-color .6s; }
.door + .door { border-left: 1px solid rgb(200 162 75 / .45); }
@media (hover: hover) and (min-width: 801px) {
  .doors:hover .door { flex-grow: .82; }
  .doors:hover .door:hover, .doors .door:focus-visible { flex-grow: 1.18; }
  .door:hover picture img, .door:focus-visible picture img { transform: scale(1.04); filter: saturate(1.05); }
}
.door-inner { max-width: 30rem; }
.mark { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.mark img { height: 48px; width: auto; }
.mark svg { height: 50px; width: auto; color: var(--ouro-vivid); }
.brand-name { font-family: var(--f-display); font-weight: 520; font-size: clamp(1.9rem, 2.6vw + .8rem, 3rem); letter-spacing: .03em; line-height: 1.05; margin: 0 0 .9rem; }
.brand-name small { display: block; font-family: var(--f-text); font-weight: 500; font-size: clamp(.68rem, .3vw + .6rem, .8rem); letter-spacing: .34em; text-transform: uppercase; color: var(--ouro-pale); margin-top: .5rem; }
.door--studio .brand-name small { color: #A6ECE2; }
.tagline { font-size: clamp(1rem, .5vw + .9rem, 1.15rem); color: rgb(244 239 227 / .9); margin: 0 0 1.5rem; max-width: 26rem; }
.cta { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem; border-radius: 999px; background: var(--ouro); color: var(--mar-ink); font-weight: 600; font-size: .95rem; transition: background-color .2s, gap .3s var(--ease); }
.door--studio .cta { background: var(--areia); }
.door:hover .cta, .door:focus-visible .cta { background: var(--ouro-vivid); gap: .85rem; }
.cta svg { width: 18px; height: 18px; }
.credit { position: absolute; right: .8rem; top: 4.2rem; font-size: .66rem; color: rgb(244 239 227 / .6); }

.foot { position: absolute; inset: auto 0 0; z-index: 10; text-align: center; padding: .9rem 1rem; font-size: .74rem; color: rgb(244 239 227 / .62); pointer-events: none; }

@media (max-width: 800px) {
  .doors { flex-direction: column; }
  .door { min-height: 50svh; padding: 4.8rem 1.4rem 2.2rem; }
  .door + .door { border-left: 0; border-top: 1px solid rgb(200 162 75 / .45); padding-bottom: 3.8rem; }
  .mark img { height: 38px; } .mark svg { height: 40px; }
  .tagline { margin-bottom: 1.1rem; }
  .credit { top: auto; bottom: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
