/* =========================
   Design tokens
   ========================= */
:root {
    /* color + layout */
    --bg: #fff;
    --text: #0f172a;
    --muted: #f6f7fb;
    --line: #e6e8ef;
    --brand: #111827;
    --radius: 14px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --header-h: 64px;

    /* lightbox */
    --lb-btn-size: 42px;
    --lb-btn-bg: rgba(15, 23, 42, .55);
    --lb-btn-bg-hover: rgba(15, 23, 42, .70);
    --lb-btn-ring: #60a5fa;
    --lb-btn-border: rgba(255, 255, 255, .25);

    /* neon */
    --neon-purple: #7702b0;
    --neon-blue: #007def;
    --neon-green: #019652;
}

@media (max-width:820px) {
    :root {
        --header-h: 56px
    }
}

/* Anchor offset */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 16px)
}

/* =========================
   Base / reset
   ========================= */
* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius)
}

:focus {
    outline: 2px solid #111;
    outline-offset: 2px
}

:focus:not(:focus-visible) {
    outline: none
}

:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px
}

::placeholder {
    color: #64748b
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000
}

/* =========================
   Layout
   ========================= */
.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 0 16px
}

.row {
    display: flex;
    gap: 16px
}

.row.center {
    align-items: center
}

.row.between {
    justify-content: space-between
}

.grid {
    display: grid;
    gap: 24px
}

.grid.two,
.grid.three {
    grid-template-columns: 1fr
}

@media (min-width:800px) {
    .grid.two {
        grid-template-columns: 1fr 1fr
    }

    .grid.three {
        grid-template-columns: repeat(3, 1fr)
    }
}

.section {
    padding: 56px 0
}

.section-muted {
    background: var(--muted);
    padding: 56px 0
}

/* =========================
   Header / nav
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    z-index: 20
}

.site-header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h)
}

.brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    color: inherit;
    text-decoration: none
}

.brand .logo {
    font-size: 20px
}

.brand-mark {
    height: 44px;
    width: auto;
    display: block
}

.nav a {
    margin-left: 14px;
    text-decoration: none;
    color: #334155;
    line-height: 1
}

.nav a.active,
.nav a:hover {
    color: #000
}

/* dark header variant */
.site-header.is-dark {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.site-header.is-dark .brand {
    color: #fff
}

.site-header.is-dark .brand-mark {
    height: 48px
}

.site-header.is-dark .nav a {
    color: rgba(255, 255, 255, .92)
}

.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a.active {
    color: #fff
}

.site-header.is-dark .menu-toggle {
    color: #fff
}

@media (max-width:820px) {
    .site-header.is-dark .brand-mark {
        height: 28px
    }
}

/* mobile menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem
}

.menu-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px
}

@media (max-width:820px) {
    .menu-toggle {
        display: inline-block;
        position: relative;
        z-index: 21
    }

    .nav {
        position: absolute;
        right: 12px;
        top: calc(100% + 8px);
        width: min(78vw, 280px);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
        z-index: 20;
        display: grid;
        gap: 6px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px) scale(.98);
        transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition-delay: 0s
    }

    .nav::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 22px;
        border: 8px solid transparent;
        border-bottom-color: #fff;
        filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .05))
    }

    .nav a {
        display: block;
        padding: 10px 14px;
        border-radius: 10px
    }

    .nav a:hover {
        background: #f1f5f9
    }

    .nav a.active {
        background: #eef2ff
    }

    .site-header.is-dark .nav {
        background: #0b0f14;
        border-color: rgba(255, 255, 255, .14)
    }

    .site-header.is-dark .nav::before {
        border-bottom-color: #0b0f14;
        filter: none
    }

    .site-header.is-dark .nav a {
        color: #fff
    }

    .site-header.is-dark .nav a:hover {
        background: #111827
    }

    .site-header.is-dark .nav a.active {
        background: #0f172a
    }
}

/* =========================
   Controls
   ========================= */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px
}

.btn {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #111
}

.btn:hover {
    background: #fafafa
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand)
}

.chip {
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer
}

.chip.is-active,
.chip:hover {
    background: #111;
    color: #fff;
    border-color: #111
}

.btn,
.chip,
.icon-btn {
    min-height: 44px
}

.icon-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer
}

.icon-btn:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .3)
}

.contact-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
    color: #475569
}

/* =========================
   HERO (brick bg + neon frame)
   ========================= */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: clamp(16px, 2.5vw, 32px) 0;
    background: #000 center/cover no-repeat;
    /* default ≤640 */
    background-image: image-set(url("../img/hero/brick-640.avif") type("image/avif"),
            url("../img/hero/brick-640.webp") type("image/webp"),
            url("../img/hero/brick-640.jpg") type("image/jpeg"));
}

@supports(height:100svh) {
    .hero {
        min-height: calc(100svh - var(--header-h))
    }
}

@media (min-width:700px) {
    .hero {
        background-image: image-set(url("../img/hero/brick-1024.avif") type("image/avif"),
                url("../img/hero/brick-1024.webp") type("image/webp"),
                url("../img/hero/brick-1024.jpg") type("image/jpeg"));
    }
}

@media (min-width:1000px) {
    .hero {
        background-image: image-set(url("../img/hero/brick-1536.avif") type("image/avif"),
                url("../img/hero/brick-1536.webp") type("image/webp"),
                url("../img/hero/brick-1536.jpg") type("image/jpeg"));
    }
}

@media (min-width:1300px) {
    .hero {
        background-image: image-set(url("../img/hero/brick-1920.avif") type("image/avif"),
                url("../img/hero/brick-1920.webp") type("image/webp"),
                url("../img/hero/brick-1920.jpg") type("image/jpeg"));
    }
}

@media (min-width:1800px) {
    .hero {
        background-image: image-set(url("../img/hero/brick-2560.avif") type("image/avif"),
                url("../img/hero/brick-2560.webp") type("image/webp"),
                url("../img/hero/brick-2560.jpg") type("image/jpeg"));
    }
}

/* readability overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .75));
    pointer-events: none;
}

/* framed content */
.hero-frame {
    width: min(1666px, 90vw);
    min-height: 80vh;
    margin: 0 auto;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .15);
    backdrop-filter: blur(4px) brightness(1.05);
    -webkit-backdrop-filter: blur(4px) brightness(1.05);
    padding: clamp(32px, 4vw, 64px);
    box-sizing: border-box;
}

.frame-safe {
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    width: 100%;
    margin: 0 auto
}

.hero-panel {
    background: rgba(0, 0, 0, .15);
    backdrop-filter: saturate(1.05) blur(1.5px);
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
    padding: clamp(24px, 3vw, 48px) clamp(32px, 4vw, 64px);
    max-width: 1200px;
    margin: auto;
}

.hero-logo {
    display: block;
    margin: 0 auto 1rem;
    max-width: 333px;
    height: auto
}

.hero h1 {
    font-size: clamp(28px, 4.8vw, 48px);
    line-height: 1.15;
    margin: 0 0 8px
}

.hero .lead {
    color: #e5e7eb
}

@media (max-width:768px) {
    .hero-panel {
        padding: 16px 24px
    }

    .hero-logo {
        max-width: 220px
    }

    .hero h1 {
        font-size: clamp(22px, 6vw, 32px)
    }

    .actions {
        flex-wrap: wrap;
        gap: 8px
    }
}

/* =========================
   Cards / grids
   ========================= */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm)
}

.card-body {
    padding: 14px
}

.card .block img {
    height: clamp(160px, 24vw, 220px);
    object-fit: cover
}

/* =========================
   Testimonials scroller
   ========================= */
.header-with-controls {
    margin-bottom: 12px
}

.scroller {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    grid-auto-columns: clamp(240px, 85%, 340px)
}

.scroller:focus {
    outline: 2px solid #000
}

@media (min-width:800px) {
    .scroller {
        grid-auto-columns: clamp(260px, 33%, 360px)
    }
}

.testimonial {
    padding: 18px;
    scroll-snap-align: start
}

.stars {
    letter-spacing: 3px;
    color: #eab308;
    margin-bottom: 8px
}

.scroll-controls {
    display: flex;
    gap: 6px
}

/* =========================
   Forms
   ========================= */
.form {
    padding: 18px
}

.form label {
    display: block;
    margin-bottom: 12px
}

.form label span {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font: inherit
}

.form .row.two {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr
}

@media (min-width:700px) {
    .form .row.two {
        grid-template-columns: 1fr 1fr
    }
}

.form-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px
}

.status {
    margin-top: 10px;
    min-height: 1.2em;
    font-size: 14px
}

/* =========================
   Properties / Rentals
   ========================= */
.badge {
    font-size: .75rem;
    text-align: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3
}

.rental img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

#airbnbGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start
}

.card.stay {
    border-radius: 16px
}

.card.stay img {
    width: 100%;
    height: clamp(150px, 38vw, 220px);
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.card.stay .card-body {
    padding: 12px 14px
}

.card.stay h3 {
    font-size: 1rem;
    margin: 0 0 6px
}

.card.stay .tags {
    font-size: .9rem
}

.card.stay .btn {
    padding: 8px 12px;
    font-size: .875rem
}

/* =========================
   Lightbox (glassy controls)
   ========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000
}

.lightbox.is-open {
    display: flex
}

.lightbox-dialog {
    position: relative;
    max-width: min(92vw, 1100px);
    width: 100%
}

.lightbox-img {
    width: 100%;
    max-height: 80vh;
    min-height: 220px;
    object-fit: contain;
    background: #000;
    border-radius: 12px
}

.lightbox-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: var(--lb-btn-size);
    height: var(--lb-btn-size);
    border-radius: 999px;
    border: 1px solid var(--lb-btn-border);
    background: var(--lb-btn-bg);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 1002;
    transition: transform .18s ease, background .18s ease, border-color .18s ease
}

.lightbox-btn svg {
    width: 22px;
    height: 22px
}

.lightbox-btn:hover {
    transform: translateY(-1px);
    background: var(--lb-btn-bg-hover);
    border-color: rgba(255, 255, 255, .35)
}

.lightbox-btn:active {
    transform: translateY(0) scale(.98)
}

.lightbox-btn:focus-visible {
    outline: 3px solid var(--lb-btn-ring);
    outline-offset: 2px
}

.lightbox-btn[data-lightbox="prev"],
.lightbox-btn[data-lightbox="next"] {
    top: 50%;
    transform: translateY(-50%)
}

.lightbox-btn[data-lightbox="prev"] {
    left: 18px
}

.lightbox-btn[data-lightbox="next"] {
    right: 18px
}

.lightbox-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: var(--lb-btn-size);
    height: var(--lb-btn-size);
    border-radius: 999px;
    border: 1px solid var(--lb-btn-border);
    background: var(--lb-btn-bg);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 1003;
    transition: transform .18s ease, background .18s ease, border-color .18s ease
}

.lightbox-close:hover {
    transform: translateY(-1px);
    background: var(--lb-btn-bg-hover);
    border-color: rgba(255, 255, 255, .35)
}

.lightbox-close:focus-visible {
    outline: 3px solid var(--lb-btn-ring);
    outline-offset: 2px
}

.lightbox-btn[data-lightbox="prev"]::before,
.lightbox-btn[data-lightbox="next"]::before {
    content: ""
}

.lightbox-btn[data-lightbox="prev"]:not(:has(svg))::before {
    content: "‹";
    font-size: 22px;
    line-height: 1
}

.lightbox-btn[data-lightbox="next"]:not(:has(svg))::before {
    content: "›";
    font-size: 22px;
    line-height: 1
}

.lightbox-close:not(:has(svg))::before {
    content: "×";
    font-size: 22px;
    line-height: 1
}

.lightbox-caption {
    color: #fff;
    margin-top: 8px;
    text-align: center
}

@media (max-width:640px) {
    :root {
        --lb-btn-size: 38px
    }

    .lightbox-btn[data-lightbox="prev"] {
        left: 10px
    }

    .lightbox-btn[data-lightbox="next"] {
        right: 10px
    }

    .lightbox-close {
        right: 10px;
        top: 10px
    }

    .lightbox-img {
        max-height: 70vh
    }
}

@media (prefers-reduced-motion:reduce) {

    .lightbox-btn,
    .lightbox-close {
        transition: none
    }
}

/* =========================
   Before/after slider
   ========================= */
.ba {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 16px;
    overflow: hidden
}

.ba img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ba-after {
    z-index: 0
}

.ba-before {
    z-index: 1;
    clip-path: inset(0 50% 0 0)
}

.ba-handle {
    position: absolute;
    inset: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .15);
    cursor: ew-resize;
    z-index: 2;
    touch-action: none;
    user-select: none
}

/* =========================
   Contact layout (text + card on left; form spans right)
   ========================= */
#contact .container {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "lead form"
        "card form";
    gap: 24px;
    align-items: start;
}

#contact .container>h2,
#contact .container>p,
#contact .container>ul {
    grid-area: lead;
}

#contact .contact-card {
    grid-area: card;
    border-radius: 16px
}

#contact form {
    grid-area: form;
    align-self: start;
    margin-top: 0
}

/* contact card internals */
#contact .contact-body {
    display: grid;
    grid-template-columns: 1fr auto;
    /* info | CTA */
    align-items: center;
    gap: 14px 18px;
    padding: 16px 18px;
}

#contact .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px
}

#contact .contact-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px
}

#contact .contact-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
}

#contact .contact-card .btn {
    justify-self: end
}

@media (max-width:900px) {
    #contact .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "lead"
            "card"
            "form";
    }

    #contact .contact-card .btn {
        justify-self: start
    }
}

/* =========================
   Footer
   ========================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    text-align: right;
    background: #fff
}

.site-footer .credit {
    color: #64748b;
    font-size: .9rem
}

.site-footer .credit a {
    color: inherit
}

.site-footer .dot {
    margin: 0 .5ch;
    color: #cbd5e1
}

/* =========================
   Utilities
   ========================= */
.block {
    display: block
}

.m-0 {
    margin: 0
}

.text-center {
    text-align: center
}

.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px
}

.filters::-webkit-scrollbar {
    display: none
}

a {
    color: #0a66c2;
    text-decoration: none
}

a:hover {
    color: #084c9e
}

a:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
    text-decoration: none
}

/* =========================
   Neon border utilities — single color, no fill
   ========================= */
.bdr-neon {
    position: relative;
    border-radius: 28px;
    z-index: 0;
    --neon-w: 3px;
    border: var(--neon-w) solid transparent
}

.bdr-neon::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    opacity: .55;
    filter: blur(10px) saturate(1.3) brightness(1.2);
}

.bdr-neon--thin {
    --neon-w: 2px
}

.bdr-neon--thick {
    --neon-w: 6px
}

.bdr-neon--purple {
    --neon-color: var(--neon-purple)
}

.bdr-neon--blue {
    --neon-color: var(--neon-blue)
}

.bdr-neon--green {
    --neon-color: var(--neon-green)
}

.bdr-neon.bdr-neon--purple,
.bdr-neon.bdr-neon--blue,
.bdr-neon.bdr-neon--green {
    border-color: var(--neon-color)
}

.bdr-neon.bdr-neon--purple::after,
.bdr-neon.bdr-neon--blue::after,
.bdr-neon.bdr-neon--green::after {
    border: var(--neon-w) solid var(--neon-color);
    box-shadow: 0 0 16px var(--neon-color), 0 0 32px var(--neon-color);
}

/* section stack fix */
section+section {
    margin-top: 0
}

@media (prefers-reduced-data:reduce) {
    .hero {
        background-image: none
    }
}

/* =========================
   Services page
   ========================= */

/* Intro paragraph */
.services-intro {
    max-width: 680px;
    margin-bottom: 0;
    color: #334155
}

/* Grid spacing below intro (replaces jump nav margin) */
.services-grid {
    margin-top: 40px
}

.grid.two {
    margin-top: 40px
}
/* Service cards */
.service-card {
    scroll-margin-top: calc(var(--header-h) + 24px)
}

.service-card .card-body {
    padding: 24px 26px
}

.service-card h2 {
    font-size: 1.25rem;
    margin: 0 0 10px
}

.service-card .service-desc {
    color: #334155;
    margin: 0 0 16px;
    font-size: .975rem;
    line-height: 1.65
}

.service-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px
}

.service-list li {
    font-size: .875rem;
    color: #475569;
    padding-left: 14px;
    position: relative
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-size: .75rem;
    top: 2px
}

.service-cta {
    font-size: .875rem;
    font-weight: 500
}

/* CTA banner */
.cta-banner {
    margin-top: 40px;
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.cta-banner h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.2rem
}

.cta-banner p {
    color: #94a3b8;
    margin: 0;
    font-size: .925rem
}

.cta-banner .btn-primary {
    white-space: nowrap;
    flex-shrink: 0
}

@media (max-width: 600px) {
    .service-list {
        grid-template-columns: 1fr
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start
    }
}