.demo-macabich {
    --mac-black: #08090b;
    --mac-coal: #111318;
    --mac-graphite: #1c2028;
    --mac-cream: #fff6e8;
    --mac-paper: #f7efe1;
    --mac-red: #c1121f;
    --mac-red-dark: #7b0610;
    --mac-blue: #1f4f9a;
    --mac-cyan: #54d7ef;
    --mac-chrome: #d8dde5;
    --mac-gold: #d7a548;
    --mac-shadow: 0 26px 70px rgba(0, 0, 0, .38);
    background: var(--mac-black);
}

.demo-macabich .site-header {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(8, 9, 11, .78);
    box-shadow: 0 8px 34px rgba(0, 0, 0, .24);
}

.demo-macabich .brand,
.demo-macabich .nav-links,
.demo-macabich .nav-links a {
    color: rgba(255, 246, 232, .88);
}

.demo-macabich .brand-mark {
    background: linear-gradient(135deg, var(--mac-red), var(--mac-blue));
    color: #fff;
}

.demo-macabich .nav-links a:hover,
.demo-macabich .nav-links a[aria-current="page"] {
    background: rgba(255, 246, 232, .11);
    color: #fff;
}

.demo-macabich .site-footer {
    border-color: rgba(255, 255, 255, .12);
    background: #07080a;
    color: rgba(255, 246, 232, .68);
}

.macabich-wrap {
    background: var(--mac-black);
}

.macabich-page {
    overflow: hidden;
    background: var(--mac-black);
    color: var(--mac-cream);
}

.mac-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    background: #18a957;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mac-whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .4);
}

.mac-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.mac-hero {
    position: relative;
    min-height: calc(100svh - 72px);
    display: grid;
    align-items: center;
    isolation: isolate;
    padding: 88px 0 142px;
    background: #08090b;
}

.mac-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.mac-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.12) contrast(1.08);
    transform: scale(1.03);
    animation: macHeroDrift 18s ease-in-out infinite alternate;
}

.mac-hero__texture {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 9, 11, .94), rgba(8, 9, 11, .74) 42%, rgba(8, 9, 11, .16)),
        radial-gradient(circle at 78% 40%, rgba(193, 18, 31, .26), transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 80px);
}

.mac-hero__texture::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 100% 4px;
    mix-blend-mode: screen;
    opacity: .45;
}

.mac-hero__content {
    position: relative;
    max-width: 760px;
}

.mac-kicker {
    margin: 0 0 12px;
    color: var(--mac-cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.mac-title {
    margin: 0 0 10px;
    max-width: 980px;
    color: #fff;
    font-size: clamp(60px, 13vw, 156px);
    line-height: .82;
    letter-spacing: 0;
    text-shadow:
        0 3px 0 var(--mac-red),
        0 22px 48px rgba(0, 0, 0, .68);
}

.mac-subtitle {
    max-width: 680px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(23px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.02;
}

.mac-copy {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 246, 232, .84);
    font-size: 18px;
}

.mac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mac-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 13px 18px;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mac-btn:hover {
    transform: translateY(-2px);
}

.mac-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--mac-red), #f04b3d);
    box-shadow: 0 16px 34px rgba(193, 18, 31, .32);
}

.mac-btn--whatsapp {
    border-color: transparent;
    background: linear-gradient(135deg, #118f4b, #20c66b);
    box-shadow: 0 16px 34px rgba(24, 169, 87, .26);
}

.mac-btn--ghost {
    background: rgba(255, 246, 232, .09);
    backdrop-filter: blur(8px);
}

.mac-marquee {
    position: relative;
    z-index: 6;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(90deg, var(--mac-red-dark), var(--mac-red), var(--mac-blue));
    color: #fff;
    min-height: 96px;
    display: flex;
    align-items: center;
    margin-top: -96px;
    box-shadow:
        0 -28px 60px rgba(0, 0, 0, .42),
        0 18px 40px rgba(8, 9, 11, .22);
}

.mac-marquee__track {
    width: max-content;
    display: flex;
    align-items: center;
    padding: 32px 0;
    animation: macMarquee 28s linear infinite;
    will-change: transform;
}

.mac-marquee__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
}

.mac-marquee__group span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .16em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

.mac-marquee__group span::after {
    content: "/";
    margin-left: 28px;
    color: rgba(255, 255, 255, .38);
}

.mac-band {
    position: relative;
    padding: 86px 0;
}

.mac-band--white {
    background: var(--mac-paper);
    color: var(--mac-coal);
}

.mac-band--dark {
    background:
        linear-gradient(135deg, rgba(193, 18, 31, .12), transparent 42%),
        linear-gradient(180deg, var(--mac-coal), #08090b);
}

.mac-band--road {
    background:
        linear-gradient(90deg, rgba(8, 9, 11, .98), rgba(28, 32, 40, .92)),
        repeating-linear-gradient(90deg, transparent 0 96px, rgba(255, 255, 255, .04) 96px 97px);
}

.mac-band--gallery {
    background: var(--mac-paper);
    color: var(--mac-coal);
}

.mac-band--reviews {
    background:
        linear-gradient(135deg, rgba(31, 79, 154, .14), transparent 42%),
        var(--mac-paper);
    color: var(--mac-coal);
}

.mac-band--map {
    background:
        linear-gradient(135deg, #0b0d12, #171a22 68%, #2a0710);
}

.mac-band--booking {
    background:
        linear-gradient(120deg, rgba(8, 9, 11, .96), rgba(123, 6, 16, .88)),
        url("/images/demos/macabich/macabich-facade.webp") center / cover;
}

.mac-story,
.mac-road,
.mac-booking,
.mac-location {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: clamp(28px, 7vw, 74px);
    align-items: center;
}

.mac-story h2,
.mac-section-head h2,
.mac-road h2,
.mac-booking h2,
.mac-location h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .95;
    letter-spacing: 0;
}

.mac-story p,
.mac-section-head p,
.mac-road p,
.mac-booking p,
.mac-location p {
    max-width: 700px;
    color: inherit;
    opacity: .78;
    font-size: 18px;
}

.mac-story__stack {
    position: relative;
    min-height: 540px;
}

.mac-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 9px solid #fff;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--mac-shadow);
}

.mac-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mac-photo--tilt-left {
    inset: 0 auto auto 0;
    width: 58%;
    height: 78%;
    transform: rotate(-3deg);
}

.mac-photo--tilt-right {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 68%;
    transform: rotate(3deg);
}

.mac-quote {
    position: relative;
    margin-top: 30px;
    border-left: 5px solid var(--mac-red);
    padding: 16px 0 16px 22px;
    color: var(--mac-red-dark);
}

.mac-quote span,
.mac-quote strong {
    display: block;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 950;
    line-height: 1;
}

.mac-section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.mac-band--dark .mac-section-head p {
    color: rgba(255, 246, 232, .72);
}

.mac-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mac-service {
    min-height: 246px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 22px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
        var(--mac-graphite);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}

.mac-service span {
    display: block;
    margin-bottom: 46px;
    color: var(--mac-cyan);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .14em;
}

.mac-service h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
    line-height: 1;
}

.mac-service p {
    margin: 0;
    color: rgba(255, 246, 232, .7);
}

.mac-service-board {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .06);
}

.mac-service-board img {
    width: 100%;
    border-radius: 6px;
}

.mac-service-board h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 4vw, 38px);
}

.mac-service-board p {
    margin: 0;
    color: rgba(255, 246, 232, .72);
}

.mac-road {
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr);
}

.mac-road__visual {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--mac-shadow);
}

.mac-road__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 48%, rgba(193, 18, 31, .48));
    mix-blend-mode: screen;
}

.mac-road__visual img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.mac-statline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 32px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.mac-statline div {
    min-height: 116px;
    padding: 20px;
    background: rgba(255, 255, 255, .07);
}

.mac-statline strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.mac-statline span {
    color: rgba(255, 246, 232, .68);
}

.mac-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 12px;
}

.mac-gallery figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mac-coal);
    box-shadow: 0 16px 46px rgba(8, 9, 11, .18);
}

.mac-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .6s ease;
}

.mac-gallery figure:hover img {
    transform: scale(1.06);
    filter: saturate(1.15) contrast(1.05);
}

.mac-gallery__wide {
    grid-column: span 2;
}

.mac-gallery__tall {
    grid-row: span 2;
}

.mac-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mac-review-card {
    min-height: 260px;
    border: 1px solid rgba(8, 9, 11, .12);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 18px 46px rgba(8, 9, 11, .11);
}

.mac-stars {
    margin-bottom: 26px;
    color: var(--mac-gold);
    font-size: 18px;
    letter-spacing: .08em;
}

.mac-review-card h3 {
    margin: 0 0 10px;
    color: var(--mac-coal);
    font-size: 24px;
    line-height: 1;
}

.mac-review-card p {
    margin: 0 0 22px;
    color: rgba(17, 19, 24, .72);
}

.mac-review-card span {
    color: var(--mac-red);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mac-reviews-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    border-radius: 8px;
    padding: 20px;
    background: var(--mac-coal);
    color: #fff;
}

.mac-reviews-cta strong,
.mac-reviews-cta span {
    display: block;
}

.mac-reviews-cta strong {
    margin-bottom: 4px;
    font-size: 22px;
}

.mac-reviews-cta span {
    color: rgba(255, 246, 232, .72);
}

.mac-location {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
}

.mac-location__copy p {
    color: rgba(255, 246, 232, .78);
}

.mac-location__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mac-map {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: var(--mac-coal);
    box-shadow: var(--mac-shadow);
}

.mac-map iframe {
    display: block;
    width: 100%;
    min-height: 460px;
    border: 0;
    filter: saturate(.92) contrast(1.04);
}

.mac-booking {
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
}

.mac-booking__logo {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--mac-shadow);
}

.mac-booking__logo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.mac-booking__copy {
    max-width: 720px;
}

.mac-booking__copy p {
    color: rgba(255, 246, 232, .78);
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes macHeroDrift {
    from {
        transform: scale(1.03) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.08) translate3d(16px, -10px, 0);
    }
}

@keyframes macMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 980px) {
    .mac-story,
    .mac-road,
    .mac-booking,
    .mac-location {
        grid-template-columns: 1fr;
    }

    .mac-story__stack {
        min-height: 620px;
    }

    .mac-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mac-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mac-reviews-grid {
        grid-template-columns: 1fr;
    }

    .mac-reviews-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .mac-shell {
        width: min(100% - 24px, 1160px);
    }

    .mac-hero {
        min-height: calc(100svh - 64px);
        padding: 60px 0 116px;
    }

    .mac-hero__texture {
        background:
            linear-gradient(90deg, rgba(8, 9, 11, .95), rgba(8, 9, 11, .72)),
            radial-gradient(circle at 74% 24%, rgba(193, 18, 31, .22), transparent 42%);
    }

    .mac-title {
        font-size: 58px;
    }

    .mac-subtitle {
        font-size: 28px;
    }

    .mac-band {
        padding: 58px 0;
    }

    .mac-story__stack {
        min-height: auto;
        display: grid;
        gap: 14px;
    }

    .mac-photo,
    .mac-photo--tilt-left,
    .mac-photo--tilt-right {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        transform: none;
    }

    .mac-photo img {
        aspect-ratio: 4 / 5;
    }

    .mac-services,
    .mac-service-board,
    .mac-statline,
    .mac-gallery,
    .mac-reviews-grid {
        grid-template-columns: 1fr;
    }

    .mac-service {
        min-height: 190px;
    }

    .mac-service span {
        margin-bottom: 24px;
    }

    .mac-gallery {
        grid-auto-rows: 260px;
    }

    .mac-gallery__wide,
    .mac-gallery__tall {
        grid-column: auto;
        grid-row: auto;
    }

    .mac-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mac-location__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mac-btn {
        width: 100%;
    }

    .mac-marquee {
        min-height: 88px;
        margin-top: -88px;
    }

    .mac-marquee__track {
        padding: 28px 0;
    }

    .mac-marquee__group {
        gap: 22px;
        padding-right: 22px;
    }

    .mac-marquee__group span::after {
        margin-left: 22px;
    }

    .mac-map iframe {
        min-height: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mac-hero__media img,
    .mac-marquee__track,
    .reveal-item {
        animation: none;
        transition: none;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
