/* ==========================================================================
   Meezan Property — Coming Soon
   Palette: deep Meezan green, warm ivory, brushed gold.
   Type: Fraunces (display) + Manrope (UI/body).
   ========================================================================== */

:root {
    --c-green-950: #06150f;
    --c-green-900: #0b231d;
    --c-green-850: #0e2a23;

    --c-on-dark: #f4efe5;
    --c-on-dark-muted: rgba(244, 239, 229, .76);
    --c-on-dark-faint: rgba(244, 239, 229, .6);

    --c-gold: #c8a46a;
    --c-gold-light: #dfc496;
    --gold-rgb: 200, 164, 106;

    --f-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --gutter: clamp(20px, 5vw, 56px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--c-green-900);
    color: var(--c-on-dark);
    font-family: var(--f-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

::selection { background: var(--c-gold); color: var(--c-green-950); }

:focus-visible {
    outline: 2px solid var(--c-gold-light);
    outline-offset: 4px;
    border-radius: 6px;
}

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Page frame: header / centred hero / footer in one screen
   ========================================================================== */
.page {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-inline: var(--gutter);
    overflow: hidden;
    text-align: center;
}

/* Backdrop
   ========================================================================== */
.backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.backdrop__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 50% at 50% 38%, rgba(40, 96, 80, .5) 0%, rgba(40, 96, 80, 0) 70%),
        linear-gradient(180deg, var(--c-green-900) 0%, var(--c-green-850) 55%, var(--c-green-950) 100%);
}

/* Faint drafting grid */
.backdrop__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--gold-rgb), .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gold-rgb), .07) 1px, transparent 1px);
    background-size: 88px 88px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}

/* Keeps the centred copy and the footer legible over the skyline */
.backdrop__fade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(48% 34% at 50% 50%, rgba(11, 35, 29, .78) 0%, rgba(11, 35, 29, 0) 100%),
        linear-gradient(180deg, rgba(11, 35, 29, 0) 70%, rgba(6, 21, 15, .85) 100%);
}

/* Skyline (inline SVG, see includes/skyline.php) */
.skyline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 48%;
    animation: skyline-in 2.2s var(--ease-out) .2s both;
}
.skyline__mass {
    fill: #0d2b23;
    stroke: rgba(var(--gold-rgb), .24);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.skyline__mass--front {
    fill: #0a221c;
    stroke: rgba(var(--gold-rgb), .4);
}
.skyline__win { fill: rgba(var(--gold-rgb), .12); }
.skyline__win--back { fill: rgba(var(--gold-rgb), .07); }
.skyline__detail,
.skyline__ground {
    fill: none;
    stroke: rgba(var(--gold-rgb), .35);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.skyline__ground { stroke: rgba(var(--gold-rgb), .5); }
.skyline__lit {
    fill: #f0d29a;
    opacity: .12;
    animation: window-glow var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}
.crane__line,
.crane__lattice {
    fill: none;
    stroke: rgba(var(--gold-rgb), .42);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}
.crane__lattice { stroke: rgba(var(--gold-rgb), .22); stroke-width: .8; }

/* Narrow screens: keep the whole skyline in a fixed 2.5:1 box instead of cropping it */
@media (max-width: 767px) {
    .skyline {
        left: 50%;
        width: 1000px;
        height: 400px;
        margin-left: -500px;
    }
    .backdrop__fade {
        background:
            radial-gradient(90% 40% at 50% 46%, rgba(11, 35, 29, .8) 0%, rgba(11, 35, 29, 0) 100%),
            linear-gradient(180deg, rgba(11, 35, 29, 0) 60%, rgba(6, 21, 15, .85) 100%);
    }
}

/* Header
   ========================================================================== */
.site-header {
    display: flex;
    justify-content: center;
    padding-top: clamp(28px, 6vh, 56px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    color: var(--c-gold);
}
.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}
.brand__name {
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 500;
    font-variation-settings: "opsz" 72;
}
.brand__sub {
    margin-top: 6px;
    padding-left: 1px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .44em;
    text-transform: uppercase;
    color: var(--c-gold);
}

/* Hero
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: clamp(40px, 8vh, 96px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 14px;
    border: 1px solid rgba(var(--gold-rgb), .5);
    border-radius: 999px;
    background: rgba(var(--gold-rgb), .1);
    color: var(--c-gold-light);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1;
}
.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold);
    animation: dot 2.4s ease-in-out infinite;
}

.hero__title {
    max-width: 14.5em;
    margin-top: clamp(24px, 4vh, 36px);
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 1.3rem + 4vw, 4.75rem);
    font-weight: 380;
    font-variation-settings: "opsz" 144;
    line-height: 1.06;
    letter-spacing: -.022em;
    text-wrap: balance;
}
.hero__title em {
    font-style: italic;
    font-weight: 350;
    color: var(--c-gold-light);
}

.hero__lead {
    max-width: 50ch;
    margin-top: clamp(18px, 3vh, 26px);
    font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
    line-height: 1.7;
    color: var(--c-on-dark-muted);
    text-wrap: balance;
}

/* Contact
   ========================================================================== */
.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(30px, 5vh, 44px);
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid rgba(var(--gold-rgb), .42);
    border-radius: 999px;
    background: rgba(6, 21, 15, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition:
        background-color .35s var(--ease),
        border-color .35s var(--ease),
        color .35s var(--ease),
        transform .45s var(--ease-out);
}
.contact__link .icon { color: var(--c-gold); transition: color .35s var(--ease); }
.contact__link:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-green-950);
    transform: translateY(-2px);
}
.contact__link:hover .icon { color: var(--c-green-950); }

@media (max-width: 479px) {
    .contact { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
    .contact__link { display: flex; justify-content: center; }
}

/* Footer
   ========================================================================== */
.site-footer {
    padding-block: 20px max(20px, env(safe-area-inset-bottom));
    font-size: .8rem;
    letter-spacing: .02em;
    color: var(--c-on-dark-faint);
}

/* Motion — restrained: one entrance, softly lit windows
   ========================================================================== */
.enter {
    animation: enter 1.1s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}

@keyframes enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
@keyframes skyline-in {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}
@keyframes window-glow {
    0%, 40% { opacity: .12; }
    100%    { opacity: .8; }
}
@keyframes dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
    .skyline__lit { opacity: .5; }
    .contact__link:hover { transform: none; }
}
