/* Homepage  - conversion-focused layout
   Brand tokens: charcoal #1a1a1a / gold #B17006 / Poppins */

.home-page {
    --hm-ink: #1a1a1a;
    --hm-paper: #f3efe8;
    --hm-sand: #e8dfd2;
    --hm-gold: #b17006;
    --hm-gold-deep: #8f5a05;
    --hm-muted: #5c564e;
    --hm-white: #fffaf4;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(177, 112, 6, 0.1), transparent 55%),
        linear-gradient(180deg, #efe8dc 0%, var(--hm-paper) 45%, #f7f3ec 100%);
    color: var(--hm-ink);
    font-family: 'Poppins', sans-serif;
}

.hm-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hm-section {
    padding: 4.5rem 0;
}

.hm-section__head {
    max-width: 34rem;
    margin-bottom: 2.25rem;
}

.hm-section__head h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--hm-ink);
}

.hm-section__head p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hm-section__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.hm-section__row .hm-section__head {
    margin-bottom: 0;
}

/* Buttons */
.hm-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1.5rem;
    border-radius: 4px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.hm-btn:active {
    transform: translateY(1px);
}

.hm-btn--primary {
    background: var(--hm-gold);
    color: #fff;
}

.hm-btn--primary:hover {
    background: var(--hm-gold-deep);
    color: #fff;
}

.hm-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.hm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hm-btn--ink {
    background: transparent;
    color: var(--hm-ink);
    border: 1px solid rgba(26, 26, 26, 0.22);
}

.hm-btn--ink:hover {
    background: rgba(26, 26, 26, 0.05);
    color: var(--hm-ink);
}

.hm-btn--block {
    width: 100%;
}

.hm-link {
    color: var(--hm-gold);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hm-link:hover {
    color: var(--hm-gold-deep);
    text-decoration: underline;
}

/* Hero */
.hm-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
}

.hm-hero__media,
.hm-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hm-hero__img {
    object-fit: cover;
    transform: scale(1.04);
    animation: hmHeroZoom 18s ease-out forwards;
}

.hm-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.28) 0%, rgba(26, 26, 26, 0.18) 35%, rgba(26, 26, 26, 0.82) 100%),
        linear-gradient(90deg, rgba(26, 26, 26, 0.5) 0%, transparent 55%);
    pointer-events: none;
}

.hm-hero__content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 2.5rem));
    margin: 0;
    margin-left: max(1.25rem, calc((100% - 1120px) / 2));
    padding: 7rem 0 5.5rem;
    animation: hmRise 0.9s ease both;
}

.hm-hero__brand {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hm-sand);
    margin: 0 0 0.85rem;
}

.hm-hero__title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 14ch;
}

.hm-hero__pitch {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.75rem;
    max-width: 36ch;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Spaces */
.hm-spaces {
    padding-top: 5rem;
}

.hm-space-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hm-space {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.hm-space:hover {
    transform: translateY(-4px);
}

.hm-space__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hm-ink);
}

.hm-space__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hm-space:hover .hm-space__media img {
    transform: scale(1.04);
}

.hm-space__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff;
    border: 1px solid var(--hm-gold);
    font-weight: 600;
}

.hm-space__body {
    padding: 1.15rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.hm-space__body h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hm-space__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--hm-muted);
}

.hm-space__price {
    margin: 0.25rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hm-gold);
}

.hm-space__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.hm-space__actions .hm-btn {
    flex: 1;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
}

.hm-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hm-muted);
}

/* How it works */
.hm-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: hm-step;
}

.hm-steps__list li {
    counter-increment: hm-step;
    position: relative;
    padding-top: 0.25rem;
    animation: hmRise 0.7s ease both;
}

.hm-steps__list li:nth-child(2) { animation-delay: 0.1s; }
.hm-steps__list li:nth-child(3) { animation-delay: 0.2s; }

.hm-steps__list li::before {
    content: counter(hm-step, decimal-leading-zero);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--hm-gold);
    margin-bottom: 0.75rem;
}

.hm-steps__list h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.hm-steps__list p {
    margin: 0;
    color: var(--hm-muted);
    line-height: 1.55;
    font-size: 0.98rem;
}

/* Location */
.hm-place {
    padding: 0 0 4.5rem;
}

.hm-place__panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.hm-place__copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.hm-place__copy p {
    margin: 0 0 1.25rem;
    color: var(--hm-muted);
    line-height: 1.6;
    max-width: 36ch;
}

.hm-place__facts {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hm-place__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--hm-ink);
    font-size: 0.98rem;
    line-height: 1.45;
}

.hm-place__facts i {
    color: var(--hm-gold);
    margin-top: 0.15rem;
}

.hm-place__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hm-ink);
}

.hm-place__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Final CTA */
.hm-cta {
    padding: 0 0 5.5rem;
}

.hm-cta__inner {
    background: var(--hm-ink);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 3.75rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.hm-cta__inner h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hm-cta__inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    max-width: 36ch;
    line-height: 1.5;
}

.hm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Floating utilities */
.hm-float-contact,
.hm-float-cart {
    position: fixed;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hm-float-contact {
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--hm-ink);
    color: #fff;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.hm-float-contact:hover {
    background: #2a2a2a;
    color: #fff;
    transform: translateY(-2px);
}

.hm-float-cart {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    background: var(--hm-gold);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.hm-float-cart:hover {
    background: var(--hm-gold-deep);
    color: #fff;
    transform: translateY(-2px);
}

.hm-float-cart span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--hm-ink);
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Toast */
.hm-toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    background: #fff;
    border-left: 4px solid #2d7a3e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: hmSlideIn 0.3s ease-out;
}

.hm-toast__icon { color: #2d7a3e; font-size: 1.25rem; }
.hm-toast__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.hm-toast__msg { color: var(--hm-muted); font-size: 0.82rem; line-height: 1.4; }
.hm-toast__close {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--hm-muted);
    padding: 0;
    line-height: 1;
}

.hm-notice {
    margin: 1rem auto;
    max-width: 800px;
    padding: 0.9rem 1rem;
    background: #ffe0e0;
    color: #d32f2f;
    text-align: center;
    border-radius: 4px;
}

/* Modal  - shared pattern with space details */
.hm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.62);
}

.hm-modal.is-open {
    display: flex;
}

.hm-modal[hidden] {
    display: none !important;
}

.hm-modal__panel {
    width: min(480px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: var(--hm-white);
    border-radius: 4px;
    animation: hmRise 0.35s ease both;
}

.hm-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0.75rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.hm-modal__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hm-gold);
    margin: 0 0 0.25rem;
}

.hm-modal__head h3 {
    margin: 0;
    font-size: 1.35rem;
}

.hm-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--hm-muted);
}

.hm-modal__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.hm-modal__lead {
    color: var(--hm-muted);
    margin: 0 0 1.25rem;
}

.hm-field {
    margin-bottom: 1rem;
}

.hm-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.hm-field input,
.hm-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(26, 26, 26, 0.18);
    border-radius: 4px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    background: #fff;
}

.hm-field input:focus,
.hm-field select:focus {
    outline: 2px solid rgba(177, 112, 6, 0.35);
    border-color: var(--hm-gold);
}

.hm-modal__actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.hm-modal__actions .hm-btn--ghost {
    color: var(--hm-ink);
    border-color: rgba(26, 26, 26, 0.2);
}

.hm-modal__actions .hm-btn--ghost:hover {
    background: rgba(26, 26, 26, 0.05);
    color: var(--hm-ink);
}

.hm-avail {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.hm-avail--loading {
    background: #f0ebe3;
    color: var(--hm-muted);
}

.hm-avail--ok {
    background: #eaf5ea;
    color: #1f5a2a;
}

.hm-avail--bad {
    background: #f8eaea;
    color: #7a2222;
}

.hm-avail .hm-btn {
    margin-top: 0.85rem;
}

@keyframes hmHeroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes hmRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hmSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes hmSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero__img,
    .hm-hero__content,
    .hm-modal__panel,
    .hm-steps__list li,
    .hm-space {
        animation: none !important;
        transition: none !important;
    }
    .hm-hero__img { transform: none; }
}

@media (max-width: 960px) {
    .hm-space-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-steps__list,
    .hm-place__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hm-hero__content {
        padding: 6.5rem 0 4.5rem;
        margin-left: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    .hm-hero__actions,
    .hm-space__actions,
    .hm-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hm-space-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .hm-space__body h3 {
        font-size: 1rem;
    }

    .hm-space__meta {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hm-space__actions .hm-btn {
        min-height: 40px;
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
    }

    .hm-section__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm-float-contact span {
        display: none;
    }

    .hm-float-contact {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 4px;
    }

    .hm-toast {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }
}
