/*
Theme Name: MORA Group — Sambutan
Description: Beranda MORA Group dengan direktori unit bisnis interaktif.
Version: 1.4.0
Author: MORA Group
Text Domain: mora-group
Requires at least: 6.0
Requires PHP: 7.4
*/
@font-face {
    font-family: Prata;
    src: url("assets/Prata-Regular.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: Arimo;
    src: url("assets/Arimo-Regular.woff2") format("woff2");
    font-display: swap;
}
:root {
    --paper: #f7f6ef;
    --ink: #25372e;
    --forest: #304533;
    --rule: #b1b6a6;
    --gutter: clamp(24px, 4.2vw, 88px);
    --serif: Prata, Georgia, serif;
    --mark-gesture: mora-gesture 1300ms cubic-bezier(.45,0,.36,1);
    --mark-assemble: 720ms;
    color: var(--ink);
    background: var(--paper);
    font-family: Arimo, Arial, sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.welcome) { scroll-behavior: smooth; }
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-130%); z-index: 8; background: white; color: var(--ink); padding: 12px; }
.skip:focus { transform: none; }
.masthead { position: relative; z-index: 4; display: flex; padding: 25px var(--gutter); align-items: center; justify-content: space-between; gap: 20px; background: var(--forest); color: #fff; }
.masthead-overlay { position: absolute; inset: auto 0; background: transparent; }
.wordmark { width: clamp(170px, 17.7vw, 292px); display: inline-block; }
.wordmark img { width: 100%; height: auto; }
.desktop-nav, .nav-links { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 44px); }
.nav-links { list-style: none; padding: 0; margin: 0; }
.desktop-nav, .mobile-nav { font-size: 14px; }
.nav-links a { display: inline-block; padding-block: 10px; }
.nav-links a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.booking, .text-link { display: inline-flex; gap: 14px; align-items: center; padding-block: 8px; border-bottom: 1px solid currentColor; }
.booking:hover, .text-link:hover { border-bottom-width: 2px; padding-bottom: 7px; }
.booking span, .text-link span { font: 1.15em Arial, sans-serif; }
.mobile-nav { display: none; }
.welcome { isolation: isolate; position: relative; display: flex; align-items: flex-end; min-height: clamp(510px, 48vw, 830px); color: #fffaf0; background: #28291e; }
.welcome-photo, .welcome::after { position: absolute; inset: 0; height: 100%; width: 100%; }
.welcome-photo { z-index: -2; object-fit: cover; object-position: 59% 46%; }
.welcome::after { content: ""; z-index: -1; background: linear-gradient(180deg,rgba(13,16,11,.55),transparent 26%), linear-gradient(90deg,rgba(14,18,12,.54),transparent 65%),linear-gradient(0deg,rgba(12,17,11,.38),transparent 40%); }
.welcome-copy { padding: 125px var(--gutter) clamp(40px, 4.8vw, 82px); }
.welcome h1 { margin: 0 0 14px; font: 400 clamp(64px, 6.6vw, 128px)/1.14 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.welcome .text-link { font-size: clamp(14px, 1.15vw, 18px); }
.units { padding: clamp(40px, 4.7vw, 83px) var(--gutter) clamp(52px, 6vw, 112px); }
.units h2, .footer h2 { font: 400 12px/1.4 Arimo, Arial, sans-serif; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 24px; }
.unit-index { position: relative; }
.unit { border-top: 1px solid var(--rule); }
.unit:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.unit summary { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 24px; padding: 13px 6px; min-height: 65px; font: 400 clamp(25px, 2.35vw, 43px)/1.28 var(--serif); letter-spacing: -.045em; }
.unit summary .mark-symbol { width: 36px; height: 36px; }
.unit summary:hover { background: #ebede2; }
.direction { display: block; position: relative; width: 16px; height: 16px; justify-self: center; }
.direction::before, .direction::after { content: ""; position: absolute; background: currentColor; }
.direction::before { width: 14px; height: 1px; left: 1px; top: 7px; }
.direction::after { height: 13px; width: 1px; left: 8px; top: 1px; }
.unit[open] .direction::after { display: none; }
.unit-profile { background: #e2e5d7; color: var(--ink); }
.unit-photo { width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; background: #d9ddcf; }
.unit-copy { padding: clamp(14px, 1.6vw, 28px) clamp(20px, 2.35vw, 42px) clamp(20px, 2.2vw, 38px); }
.unit-art { margin-bottom: 6px; }
.unit-art .unit-entry { display: block; width: clamp(146px, 13vw, 192px); margin-inline-start: -10px; }
.unit-copy p { font-size: clamp(16px, 1.25vw, 21px); line-height: 1.55; margin: 0 0 10px; max-width: 54ch; }
.unit-copy .text-link { font-size: 14px; }
.unit[data-unit="culinary"] .unit-profile { background: #ebe0ce; }
.unit[data-unit="consultant"] .unit-profile { background: #e0e3df; }
.unit[data-unit="capital"] .unit-profile { background: #e4dfcf; }
.about-band, .properties { padding: clamp(38px, 6vw, 100px) var(--gutter); }
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5.5vw, 92px); background: #e8ebe0; align-items: start; }
.about-band h2, .properties h2 { margin: 0; font: 400 clamp(32px, 4.3vw, 74px)/1.15 var(--serif); letter-spacing: -.05em; }
.about-band p { max-width: 45ch; margin: 0 0 16px; font-size: clamp(17px, 1.45vw, 23px); line-height: 1.55; }
.properties-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4.2vw, 72px) clamp(16px, 2.4vw, 50px); list-style: none; padding: 0; margin: clamp(25px, 3.2vw, 52px) 0 0; }
.property-link { display: block; }
.property-link img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: #e2e5d7; }
.property-link h3 { margin: 14px 0 0; font: 400 clamp(19px, 2vw, 33px)/1.25 var(--serif); letter-spacing: -.036em; }
.property-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.brands { padding: clamp(34px, 4vw, 70px) var(--gutter) 0; background: var(--forest); color: #f5f9e9; text-align: center; }
.brands h2 { margin: 0 0 clamp(18px, 2.3vw, 34px); font: 400 clamp(27px, 2.8vw, 46px)/1.2 var(--serif); letter-spacing: -.042em; }
.brand-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px clamp(24px, 3.25vw, 54px); list-style: none; margin: 0 auto; padding: 0 0 clamp(26px, 3.1vw, 48px); max-width: 1460px; border-bottom: 1px solid #748475; }
.brand-item, .brand-item a { display: grid; place-items: center; min-width: 0; }
.brand-item { width: var(--brand-width); min-height: 56px; }
.brand-item a { min-height: 48px; width: 100%; }
.brand-item img { width: 100%; height: auto; }
@media (max-width: 1140px) {
    .brand-grid { column-gap: clamp(22px, 4vw, 38px); padding-inline: max(0px, calc((100% - 580px) / 2)); }
}
@media (max-width: 535px) {
    .brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 6vw, 30px); }
    .brand-item { width: min(100%, calc(var(--brand-width) * .81)); }
    .brand-item:nth-child(odd) { justify-self: end; }
}
.footer { padding: clamp(45px, 5vw, 86px) var(--gutter); display: grid; grid-template-columns: 1.35fr 1fr 1fr; align-items: start; gap: 36px; background: var(--forest); color: #f5f9e9; font-size: 15px; line-height: 1.7; }
.footer h2 { color: #d4dbc4; margin-bottom: 12px; }
.footer address { font-style: normal; }
.page-content { max-width: 76ch; min-height: 50vh; margin: 64px auto; padding: 0 24px; line-height: 1.65; }
.page-content h1, .page-content h2 { font-family: var(--serif); font-weight: 400; }
.page-content a { text-decoration: underline; }

.mora-mark { display: block; max-width: 100%; }
.unit-art .mark-logo { width: 100%; height: auto; }
.mark-piece { transform-box: fill-box; transform-origin: center; }
[data-unit="hospitality"] :is(.piece-1, .piece-3) { --x: -5px; --r: -5deg; }
[data-unit="hospitality"] :is(.piece-2, .piece-4) { --x: 5px; --r: 5deg; }
[data-unit="hospitality"] :is(.piece-3, .piece-4) { --y: 2px; }
[data-unit="commercial"] .piece-1 { --x: 7px; --y: -2px; }
[data-unit="commercial"] .piece-2 { --x: -7px; --y: 2px; }
[data-unit="culinary"] .piece-1 { --x: 2px; --y: -8px; --r: -5deg; }
[data-unit="culinary"] .piece-2 { --y: 2px; --r: 2deg; }
[data-unit="consultant"] .piece-1 { --x: -5px; --y: 4px; }
[data-unit="consultant"] .piece-2 { --x: 5px; --y: -4px; }
[data-unit="academy"] .piece-1 { --x: -3px; --r: -8deg; transform-origin: right bottom; }
[data-unit="academy"] .piece-2 { --x: 3px; --r: 8deg; transform-origin: left bottom; }
[data-unit="capital"] .piece-1 { --y: -2px; }
[data-unit="capital"] .piece-2 { --y: -5px; }
[data-unit="capital"] .piece-3 { --y: -9px; }
.unit-page { padding: clamp(28px, 4vw, 70px) var(--gutter) clamp(44px, 6vw, 112px); }
.unit-back { display: inline-flex; align-items: center; gap: .75em; padding-block: 8px; font-size: 15px; }
.unit-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.unit-spread { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 100px); margin-top: 28px; }
.unit-emblem { display: grid; place-items: center; background: var(--unit-stock, #e2e5d7); min-height: clamp(290px, 34vw, 590px); }
.unit-emblem .mark-symbol { width: clamp(125px, 15vw, 230px); }
[data-unit="culinary"] { --unit-stock: #ebe0ce; }
[data-unit="consultant"] { --unit-stock: #e0e3df; }
[data-unit="capital"] { --unit-stock: #e4dfcf; }
.unit-story h1 { font: 400 clamp(33px, 4.6vw, 90px)/1.14 var(--serif); letter-spacing: -.055em; margin: 0 0 22px; text-wrap: balance; }
.unit-story p { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; max-width: 48ch; margin: 0 0 22px; }
.unit-arrival, .unit-departure { display: none; }
@media (max-width: 700px) {
    .about-band { grid-template-columns: 1fr; }
    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-spread { grid-template-columns: 1fr; gap: 28px; margin-top: 18px; }
    .unit-emblem { min-height: 200px; }
}
@keyframes mora-gesture {
    48% { transform: translate(var(--x,0),var(--y,0)) rotate(var(--r,0deg)); }
}
@keyframes mora-assemble {
    from { transform: var(--mark-open); }
    to { transform: none; }
}
@keyframes mora-uncover {
    from { clip-path: inset(0); }
    to { clip-path: inset(0 0 100%); visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
    .unit summary:focus-visible .mark-piece, .unit-entry:focus-visible .mark-piece { animation: var(--mark-gesture); }
    .unit-arrival, .unit-departure {
        display: grid; place-items: center; position: fixed; inset: 0; z-index: 30;
        background: var(--unit-stock, #e2e5d7); pointer-events: none;
    }
    .unit-arrival .mark-symbol, .unit-departure .mark-symbol { width: clamp(84px, 10vw, 150px); }
    .unit-arrival { animation: mora-uncover 520ms cubic-bezier(.57,.02,.28,1) var(--mark-assemble) forwards; }
    :is(.unit-arrival, .unit-departure) .mark-piece {
        --mark-open: translate(calc(var(--x,0px) * 1.4),calc(var(--y,0px) * 1.4)) rotate(var(--r,0deg));
    }
    .unit-arrival .mark-piece { animation: mora-assemble var(--mark-assemble) cubic-bezier(.44,0,.22,1) both; }
    .unit-departure .mark-piece { transform: var(--mark-open); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .unit summary:hover .mark-piece, .unit-emblem:hover .mark-piece,
    .unit-art .unit-entry:hover .mark-piece { animation: var(--mark-gesture); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
    .unit[open] .unit-art .mark-piece { animation: var(--mark-gesture); }
}
@media (min-width: 801px) {
    .unit-index.enhanced { min-height: var(--profile-height, 0px); }
    .enhanced .unit { width: 45%; }
    .enhanced .unit-profile { position: absolute; inset: 0 0 auto auto; width: 49.5%; min-height: 100%; }
    .enhanced .unit[open] summary { color: #203b29; }
    .enhanced .unit[open] .direction::after { display: block; width: 8px; height: 8px; top: 3px; left: 6px; background: transparent; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
}
@media (max-width: 800px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .masthead { padding-block: 17px; }
    .mobile-nav summary { display: flex; align-items: center; gap: 10px; min-height: 44px; }
    .menu-lines { width: 19px; height: 8px; border-block: 1px solid currentColor; }
    .mobile-nav nav { position: absolute; top: 100%; left: 0; right: 0; padding: 16px var(--gutter) 26px; background: var(--forest); }
    .masthead:has(.mobile-nav[open]) { background: var(--forest); }
    .mobile-nav .nav-links { display: block; }
    .mobile-nav .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid #657562; }
    .mobile-nav .booking { margin-top: 10px; }
    .unit summary { gap: 15px; }
    .unit-profile { margin-bottom: 16px; }
    .unit-photo { aspect-ratio: 16/9; }
    .footer { grid-template-columns: 1fr 1fr; }
    .footer .wordmark { grid-column: 1/-1; }
}
@media (max-width: 700px) {
    .welcome { min-height: clamp(515px, 73svh, 740px); }
    .welcome-photo { object-position: 22% 50%; }
    .welcome::after { background: linear-gradient(180deg,rgba(14,18,12,.54),transparent 26%,transparent 42%,rgba(14,18,12,.79) 100%); }
    .welcome h1 { font-size: clamp(42px, 10.4vw, 71px); letter-spacing: -.065em; }
    .welcome-copy { padding-bottom: 34px; }
    .unit summary { font-size: 27px; }
    .units h2 { margin-bottom: 17px; }
    .footer { grid-template-columns: 1fr; gap: 27px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .desktop-nav, .nav-links { gap: 15px; }
}
