/*
 * Melanna Property Management — 2026 visual overhaul
 * Final cascade layer: editorial typography, sister-brand masthead, homepage,
 * shared surfaces, responsive behavior, and restrained progressive motion.
 */

:root {
    --mpm-navy: #23346d;
    --mpm-navy-dark: #0d2448;
    --mpm-navy-ink: #071c3e;
    --mpm-blue-soft: #334985;
    --mpm-gold: #f1c768;
    --mpm-gold-strong: #d89b00;
    --mpm-cream: #f8f6f0;
    --mpm-cream-deep: #efeadd;
    --mpm-white: #ffffff;
    --mpm-ink: #19233a;
    --mpm-muted: #5d6678;
    --mpm-border: #ddd6c8;
    --mpm-shadow-sm: 0 12px 30px rgba(7, 28, 62, 0.08);
    --mpm-shadow-lg: 0 28px 70px rgba(7, 28, 62, 0.16);
    --mpm-radius-sm: 10px;
    --mpm-radius: 18px;
    --mpm-radius-lg: 28px;
    --mpm-content: 1180px;
}

html { scroll-padding-top: 8rem; }
body {
    background: var(--mpm-white);
    color: var(--mpm-ink);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2,
h3,
.section-title,
.services-title,
.site-section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

/* Shared masthead */
.site-header,
.site-header.is-compact {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: block;
    min-height: 0;
    padding: 0;
    background: var(--mpm-navy-ink);
    border: 0;
    box-shadow: 0 12px 34px rgba(7, 28, 62, 0.18);
}

.utility-bar {
    color: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
}

.utility-bar__inner,
.nav-shell__inner {
    box-sizing: border-box;
    width: min(100%, calc(var(--mpm-content) + 3rem));
    margin: 0 auto;
    padding-inline: 1.5rem;
}

.utility-bar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.utility-bar p { margin: 0; }
.utility-bar a { color: var(--mpm-white); text-decoration: none; }
.utility-bar__links { display: flex; align-items: center; gap: 1rem; }
.utility-bar__phone { display: inline-flex; gap: 0.75rem; align-items: center; }
.utility-bar__language {
    padding-left: 0.75rem;
    color: var(--mpm-gold);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    font-family: "Playfair Display", serif;
    font-style: italic;
}

.nav-shell { background: var(--mpm-navy-ink); }
.nav-shell__inner {
    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-header .logo-container,
.site-header.is-compact .logo-container {
    grid-area: auto;
    justify-self: start;
}
.site-header .logo-container img,
.site-header.is-compact .logo-container img {
    width: auto;
    height: 92px;
    margin: 0;
    border-radius: 8px;
    transition: height 180ms ease;
}
.site-header .nav-container,
.site-header.is-compact .nav-container {
    position: static;
    grid-area: auto;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.site-header .menu-link,
.site-header .dropbtn,
.site-header.is-compact .menu-link,
.site-header.is-compact .dropbtn {
    width: auto;
    min-height: 44px;
    padding: 0.65rem 0.72rem;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.site-header .menu-link:hover,
.site-header .menu-link:focus-visible,
.site-header .dropbtn:hover,
.site-header .dropbtn:focus-visible {
    color: var(--mpm-gold);
    background: rgba(255, 255, 255, 0.07);
}
.site-header .nav-contact,
.site-header.is-compact .nav-contact {
    margin-left: 0.45rem;
    padding-inline: 1.15rem;
    background: var(--mpm-gold);
    color: var(--mpm-navy-ink);
}
.site-header .nav-contact:hover,
.site-header .nav-contact:focus-visible {
    background: var(--mpm-white);
    color: var(--mpm-navy-ink);
}
.site-header .dropdown-content {
    top: calc(100% + 0.5rem);
    min-width: 285px;
    padding: 0.55rem;
    background: var(--mpm-white);
    border: 0;
    border-radius: var(--mpm-radius-sm);
    box-shadow: var(--mpm-shadow-lg);
}
.site-header .dropdown-content a { border-radius: 7px; font-size: 0.9rem; }
.site-header .dropdown-section-label { margin: 0.25rem 0; border-radius: 5px; }
.site-header .nav-toggle,
.site-header.is-compact .nav-toggle {
    display: none;
    background: var(--mpm-gold);
}
.site-header .nav-toggle-line { background: var(--mpm-navy-ink); }

.site-header.is-compact .utility-bar { display: none; }
.site-header.is-compact .nav-shell__inner { min-height: 76px; }
.site-header.is-compact .logo-container img { height: 62px; }

/* Shared internal-page polish */
.site-page-hero {
    min-height: 420px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(112deg, rgba(7, 28, 62, 0.95), rgba(35, 52, 109, 0.72)),
        url("../images/dillon-kydd-pvdx8c6Y5BY-unsplash.png") center 58% / cover;
}
.site-page-hero h1,
.page-contact .carousel-overlay h1 {
    font-family: "Playfair Display", Georgia, serif;
}
.site-page-hero__action,
.site-home-hero__action,
form button,
.center-btn-container button {
    border-radius: 999px;
}
.service-card,
.content-panel,
.help-card,
.maintenance-container,
.fee-box {
    border-radius: var(--mpm-radius) !important;
}
.service-card {
    border-top-color: var(--mpm-gold-strong) !important;
}

/* Buttons and editorial labels */
.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.65rem 1.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--gold { background: var(--mpm-gold); color: var(--mpm-navy-ink); }
.button--gold:hover { background: var(--mpm-white); color: var(--mpm-navy-ink); }
.button--ghost { color: var(--mpm-white); border-color: rgba(255, 255, 255, 0.75); }
.button--ghost:hover { background: var(--mpm-white); color: var(--mpm-navy-ink); }

.home-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #9a6900;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}
.home-eyebrow::before,
.section-eyebrow::before {
    width: 2.2rem;
    height: 1px;
    background: currentColor;
    content: "";
}
.section-eyebrow--light { color: var(--mpm-gold); }

/* Homepage hero */
.home-hero {
    position: relative;
    min-height: clamp(620px, 76vh, 790px);
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 19, 42, 0.92) 0%, rgba(5, 19, 42, 0.74) 42%, rgba(5, 19, 42, 0.18) 74%, rgba(5, 19, 42, 0.06) 100%),
        url("../images/dillon-kydd-pvdx8c6Y5BY-unsplash.png") center 58% / cover;
    color: var(--mpm-white);
}
.home-hero::after {
    position: absolute;
    right: -8rem;
    bottom: -17rem;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(241, 199, 104, 0.48);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.025), 0 0 0 8rem rgba(255, 255, 255, 0.018);
    content: "";
}
.home-hero__content {
    box-sizing: border-box;
    width: min(100%, calc(var(--mpm-content) + 3rem));
    margin: 0 auto;
    padding: 7rem 1.5rem 10rem;
}
.home-eyebrow { color: var(--mpm-gold); }
.home-hero h1 {
    max-width: 760px;
    margin: 1.2rem 0 1.3rem;
    color: var(--mpm-white);
    font-size: clamp(3.25rem, 6.3vw, 6.25rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}
.home-hero h1 em { display: block; color: var(--mpm-gold); font-weight: 600; }
.home-hero__lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.7;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.home-hero__language { margin: 1.25rem 0 0; color: var(--mpm-gold); font-family: "Playfair Display", serif; font-style: italic; }
.home-hero__proof {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    width: min(calc(100% - 3rem), var(--mpm-content));
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.7rem;
    list-style: none;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.home-hero__proof li::before { margin-right: 0.65rem; color: var(--mpm-gold); content: "●"; }

/* Audience rail */
.audience-rail {
    position: relative;
    z-index: 4;
    width: min(calc(100% - 3rem), var(--mpm-content));
    margin: -1.65rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    background: var(--mpm-white);
    border-radius: var(--mpm-radius);
    box-shadow: var(--mpm-shadow-lg);
}
.audience-rail a {
    min-height: 122px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    color: var(--mpm-navy-ink);
    border-right: 1px solid var(--mpm-border);
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}
.audience-rail a:last-child { border-right: 0; }
.audience-rail a:hover { background: var(--mpm-navy-ink); color: var(--mpm-white); }
.audience-rail__number { color: var(--mpm-gold-strong); font-family: "Playfair Display", serif; font-weight: 700; }
.audience-rail small,
.audience-rail strong { display: block; }
.audience-rail small { margin-bottom: 0.25rem; color: var(--mpm-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.audience-rail a:hover small { color: rgba(255, 255, 255, 0.65); }
.audience-rail strong { font-family: "Playfair Display", serif; font-size: 1.08rem; line-height: 1.25; }

/* Services */
.home-services { padding: clamp(6rem, 10vw, 9rem) 1.5rem; background: var(--mpm-white); }
.section-heading {
    width: min(100%, var(--mpm-content));
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 3rem;
}
.section-heading h2,
.home-process h2,
.home-areas h2,
.home-cta h2 {
    margin: 0.75rem 0 0;
    color: var(--mpm-navy-ink);
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.section-heading > p { margin: 0; color: var(--mpm-muted); font-size: 1.05rem; }
.home-services__grid {
    width: min(100%, var(--mpm-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--mpm-border);
    border-left: 1px solid var(--mpm-border);
}
.home-service-card {
    min-height: 350px;
    box-sizing: border-box;
    padding: clamp(2rem, 4vw, 3.25rem);
    display: flex;
    flex-direction: column;
    background: var(--mpm-white);
    border-right: 1px solid var(--mpm-border);
    border-bottom: 1px solid var(--mpm-border);
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.home-service-card:hover { z-index: 1; background: var(--mpm-cream); box-shadow: var(--mpm-shadow-sm); transform: translateY(-3px); }
.home-service-card__top { display: flex; justify-content: space-between; color: var(--mpm-gold-strong); font-weight: 800; }
.home-service-card__top i { color: var(--mpm-navy); font-size: 1.55rem; }
.home-service-card h3 { margin: 2rem 0 0.75rem; color: var(--mpm-navy-ink); font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.15; }
.home-service-card p { margin: 0 0 1.6rem; color: var(--mpm-muted); }
.home-service-card a { margin-top: auto; color: var(--mpm-navy); font-weight: 800; text-underline-offset: 4px; }
.home-service-card a i { margin-left: 0.45rem; font-size: 0.78rem; }

/* Process */
.home-process {
    padding: clamp(5.5rem, 10vw, 8.5rem) max(1.5rem, calc((100vw - var(--mpm-content)) / 2));
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    overflow: hidden;
    background: var(--mpm-navy-ink);
    color: var(--mpm-white);
}
.home-process h2 { color: var(--mpm-white); }
.home-process__intro p { max-width: 560px; color: rgba(255, 255, 255, 0.7); }
.home-process__intro .button { margin-top: 1rem; }
.home-process__steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.16); list-style: none; }
.home-process__steps li { min-height: 190px; padding: 1.8rem; display: flex; flex-direction: column; background: var(--mpm-navy-ink); }
.home-process__steps span { color: var(--mpm-gold); font-family: "Playfair Display", serif; }
.home-process__steps strong { margin-top: auto; font-family: "Playfair Display", serif; font-size: 1.5rem; }
.home-process__steps small { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.62); font-size: 0.86rem; }

/* Areas */
.home-areas {
    padding: clamp(5.5rem, 10vw, 8.5rem) 1.5rem;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
    background: var(--mpm-cream);
}
.home-areas__heading,
.home-areas__content { align-self: center; }
.home-areas__heading { justify-self: end; max-width: 470px; }
.home-areas__heading > p { color: var(--mpm-muted); font-size: 1.04rem; }
.home-areas__content { max-width: 700px; padding: clamp(2rem, 5vw, 3.5rem); background: var(--mpm-white); border-radius: var(--mpm-radius); box-shadow: var(--mpm-shadow-lg); }
.home-areas__lead { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--mpm-border); }
.home-areas__lead i { margin-top: 0.25rem; color: var(--mpm-gold-strong); font-size: 1.4rem; }
.home-areas__lead p { margin: 0; }
.home-areas__lead strong,
.home-areas__lead span { display: block; }
.home-areas__lead strong { color: var(--mpm-navy-ink); font-family: "Playfair Display", serif; font-size: 1.3rem; line-height: 1.35; }
.home-areas__lead span { margin-top: 0.45rem; color: var(--mpm-muted); font-size: 0.9rem; }
.home-areas__list { margin: 1.5rem 0 0; color: var(--mpm-navy); font-weight: 700; line-height: 2; }

/* Closing CTA */
.home-cta {
    box-sizing: border-box;
    width: min(calc(100% - 3rem), var(--mpm-content));
    margin: clamp(5rem, 9vw, 8rem) auto;
    padding: clamp(2.5rem, 6vw, 5rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    position: relative;
    background: var(--mpm-navy);
    color: var(--mpm-white);
    border-radius: var(--mpm-radius-lg);
}
.home-cta::after { position: absolute; right: -9rem; top: -11rem; width: 25rem; height: 25rem; border: 1px solid rgba(241, 199, 104, 0.55); border-radius: 50%; box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, 0.03); content: ""; }
.home-cta > * { position: relative; z-index: 1; }
.home-cta h2 { max-width: 750px; color: var(--mpm-white); font-size: clamp(2.4rem, 4.4vw, 4rem); }
.home-cta p { margin-bottom: 0; color: rgba(255, 255, 255, 0.7); }
.home-cta__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.site-footer {
    padding: clamp(4rem, 8vw, 6.5rem) 1.5rem 1.5rem;
    background: var(--mpm-navy-ink);
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}
.site-footer::before { display: none; }
.site-footer__grid {
    width: min(100%, var(--mpm-content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.site-footer__logo { width: 116px; height: auto !important; margin: 0 !important; padding: 0 !important; background: var(--mpm-white); }
.site-footer__tagline { color: var(--mpm-gold); font-family: "Playfair Display", serif; font-style: italic; }
.site-footer__memberships { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-footer__memberships img { width: auto; height: 48px; margin: 0 !important; padding: 0.35rem !important; }
.site-footer h2 { margin: 0 0 1rem; color: var(--mpm-white); font-family: "DM Sans", sans-serif; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0.45rem 0; }
.site-footer p,
.site-footer address { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.7); font-style: normal; font-weight: 400; }
.site-footer a { color: rgba(255, 255, 255, 0.88); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--mpm-gold); }
.site-footer__legal {
    width: min(100%, var(--mpm-content));
    margin: 3.5rem auto 0;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
}

/* Content is never hidden; interactivity comes from hover, focus, and layout transitions. */
[data-reveal] { opacity: 1; }

@media (max-width: 1080px) {
    .nav-shell__inner { gap: 1rem; }
    .site-header .menu-link,
    .site-header .dropbtn { padding-inline: 0.5rem; font-size: 0.75rem; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 5rem; }
    .utility-bar { display: none; }
    .nav-shell__inner,
    .site-header.is-compact .nav-shell__inner { min-height: 76px; grid-template-columns: auto 1fr auto; padding-inline: 1rem; }
    .site-header .logo-container img,
    .site-header.is-compact .logo-container img { height: 58px; }
    .site-header .nav-toggle,
    .site-header.is-compact .nav-toggle { display: flex; grid-area: auto; }
    .site-header .nav-container,
    .site-header.is-compact .nav-container {
        box-sizing: border-box;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        width: min(340px, calc(100vw - 2rem));
        padding: 0.65rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        background: var(--mpm-white);
        border: 1px solid var(--mpm-border);
        border-radius: var(--mpm-radius-sm);
        box-shadow: var(--mpm-shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }
    .site-header.nav-open .nav-container,
    .site-header.is-compact.nav-open .nav-container { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
    .site-header .menu-link,
    .site-header .dropbtn,
    .site-header.is-compact .menu-link,
    .site-header.is-compact .dropbtn { box-sizing: border-box; width: 100%; justify-content: flex-start; color: var(--mpm-navy-ink); padding: 0.8rem 0.9rem; font-size: 0.88rem; }
    .site-header .nav-contact,
    .site-header.is-compact .nav-contact { margin: 0.35rem 0 0; justify-content: center; }
    .site-header .dropdown { width: 100%; }
    .site-header .dropdown-content,
    .site-header.is-compact .dropdown-content { position: static; display: none; min-width: 0; margin: 0.2rem 0; background: var(--mpm-cream); box-shadow: none; }
    .site-header .dropdown.submenu-open .dropdown-content { display: block; }

    .home-hero { min-height: 700px; background: linear-gradient(90deg, rgba(5, 19, 42, 0.9), rgba(5, 19, 42, 0.54)), url("../images/dillon-kydd-pvdx8c6Y5BY-unsplash.png") 60% 58% / cover; }
    .home-hero__content { padding: 5.5rem 1.25rem 11rem; }
    .home-hero h1 { font-size: clamp(3rem, 13vw, 4.6rem); }
    .home-hero__proof { bottom: 2rem; gap: 0.45rem; }
    .home-hero__proof li { width: 100%; }
    .audience-rail { grid-template-columns: 1fr; margin-top: -1rem; }
    .audience-rail a { min-height: 95px; border-right: 0; border-bottom: 1px solid var(--mpm-border); }
    .audience-rail a:last-child { border-bottom: 0; }
    .section-heading,
    .home-process,
    .home-areas { grid-template-columns: 1fr; gap: 2.5rem; }
    .home-services__grid { grid-template-columns: 1fr; }
    .home-service-card { min-height: 320px; }
    .home-areas__heading { max-width: none; justify-self: stretch; }
    .home-cta { align-items: flex-start; flex-direction: column; }
    .home-cta__actions { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .home-hero__actions,
    .home-cta__actions { flex-direction: column; }
    .home-hero__actions .button,
    .home-cta__actions .button { width: 100%; }
    .home-process__steps { grid-template-columns: 1fr; }
    .home-process__steps li { min-height: 155px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .home-service-card,
    .has-reveal-motion [data-reveal] { transition: none; transform: none; }
}
