/* ============================================
   AQUALOFT — Style
   Inspired by oodhouse.com aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg:          #0a0a0a;
    --bg-alt:      #111111;
    --surface:     #161616;
    --surface-2:   #1c1c1c;
    --border:      #222222;
    --text:        #edebe6;
    --text-dim:    #7a7a72;
    --text-muted:  #4a4a44;
    --accent:      #8ba4a8;
    --white:       #ffffff;

    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;

    --header-h:    80px;
    --container:   1280px;
    --gap:         clamp(2rem, 5vw, 5rem);
    --section-pad: clamp(5rem, 12vh, 10rem);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Language toggle */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="en"] { display: inline; }
html[lang="en"] [data-lang="et"] { display: none; }

/* Block-level language spans in paragraphs */
.lifestyle-text [data-lang],
.section-text [data-lang],
.section-title [data-lang],
.hero-title [data-lang],
.hero-sub [data-lang],
.hero-tag [data-lang],
.section-tag [data-lang],
.section-tag-light [data-lang],
.yacht-desc [data-lang],
.yacht-spec [data-lang],
.stat-label [data-lang],
.invest-period [data-lang],
.footer-tagline [data-lang],
.contact-info .section-text [data-lang],
.diff-title [data-lang],
.diff-desc [data-lang],
.floor-desc [data-lang],
.floor-label [data-lang],
.floor-tab-desc [data-lang],
.floor-tab-title [data-lang] {
    display: none;
}

html[lang="en"] [data-lang="en"],
html:not([lang="en"]) [data-lang="et"] {
    display: inline;
}

html[lang="et"] [data-lang="et"] {
    display: inline;
}

html[lang="et"] [data-lang="en"] {
    display: none;
}

/* Block display for elements containing paragraphs */
.lifestyle-text [data-lang] {
    display: none;
}
html[lang="en"] .lifestyle-text [data-lang="en"],
html:not([lang="en"]) .lifestyle-text [data-lang="et"] {
    display: block;
}
html[lang="et"] .lifestyle-text [data-lang="et"] {
    display: block;
}
html[lang="et"] .lifestyle-text [data-lang="en"] {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

/* --- Typography --- */
.section-tag,
.section-tag-light {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-tag-light {
    color: var(--accent);
}

.section-title,
.section-title-light {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.section-title-light {
    color: var(--white);
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 540px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(237, 235, 230, 0.3);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background 0.4s, box-shadow 0.4s, opacity 0.35s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.site-header.scroll-hidden {
    opacity: 0;
    pointer-events: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.logo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text);
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    color: var(--text) !important;
    border: 1px solid rgba(237, 235, 230, 0.2);
    padding: 0.5rem 1.2rem;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--text);
    color: var(--bg) !important;
}

.nav-cta::after { display: none !important; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

    .lang-toggle {
    background: none;
    border: 1px solid rgba(237, 235, 230, 0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.lang-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero (pinned reveal) --- */
.hero {
    position: relative;
    background: var(--bg);
}

.hero-stage {
    position: relative;
    height: 130vh;
}

.hero-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--bg);
}

.hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(calc(1 + var(--hero-progress, 0) * 0.05));
    will-change: transform;
    transition: transform 0.1s linear;
    /* Mask morphs with scroll progress:
       progress 0 = simple linear fade (top 60% solid, bottom 40% fades).
       progress 1 = 4-stop: top 10% pure solid, 10-20% eased ease-in to alpha 0.85,
                    20-30% fast drop to alpha 0.3, 30-100% long fade to transparent. */
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(60% - var(--hero-progress, 0) * 50%),
        rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.15)) calc(60% - var(--hero-progress, 0) * 40%),
        rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.7)) calc(60% - var(--hero-progress, 0) * 30%),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 calc(60% - var(--hero-progress, 0) * 50%),
        rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.15)) calc(60% - var(--hero-progress, 0) * 40%),
        rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.7)) calc(60% - var(--hero-progress, 0) * 30%),
        transparent 100%
    );
}

/* Scrims — dark gradients for nav legibility (top) and text legibility (bottom) */
.hero-scrim {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-scrim-top {
    top: 0;
    height: clamp(140px, 22vh, 260px);
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.78) 0%,
        rgba(10, 10, 10, 0.55) 28%,
        rgba(10, 10, 10, 0.22) 62%,
        rgba(10, 10, 10, 0) 100%
    );
    transition: opacity 0.4s ease;
}
/* When the header switches to its solid/scrolled state, the scrim fades out smoothly. */
body:has(.site-header.scrolled) .hero-scrim-top { opacity: 0; }

.hero-scrim-bottom {
    bottom: 0;
    height: 70%;
    background: linear-gradient(
        0deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.75) 25%,
        rgba(10, 10, 10, 0.45) 50%,
        rgba(10, 10, 10, 0.15) 75%,
        rgba(10, 10, 10, 0) 100%
    );
    opacity: var(--hero-progress, 0);
    transition: opacity 0.1s linear;
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: clamp(1rem, 1.8vw, 1.5rem);
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
    text-align: left;
    opacity: var(--hero-progress, 0);
    transform: translateY(calc((1 - var(--hero-progress, 0)) * 60px));
    transition: opacity 0.1s linear, transform 0.1s linear;
    pointer-events: none;
}


.hero-content.is-visible {
    pointer-events: auto;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 44ch;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.hero-scroll {
    display: none;
}

/* Portrait phone only: restored to the contain + top-anchored + top-origin version that was working.
   Square, landscape, tablets, and desktop all use the default (desktop) hero rules. */
@media (max-width: 600px) and (orientation: portrait) {
    .hero-stage { height: 150vh; }
    .hero-pinned {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 100%;
        overflow: hidden;
    }
    .hero-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }
    .hero-visual img {
        object-fit: contain;
        object-position: center top;
        transform: scale(calc(1.43 + var(--hero-progress, 0) * 1.45));
        transform-origin: center top;
        transition: transform 0.12s linear;
        /* Same morph, pixel-based (tied to image content height = 100vw × aspect). */
        mask-image: linear-gradient(
            to bottom,
            #000 0px,
            #000 calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.5)),
            rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.15)) calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.4)),
            rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.7)) calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.3)),
            transparent calc(100vw * 788 / 1049)
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0px,
            #000 calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.5)),
            rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.15)) calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.4)),
            rgba(0, 0, 0, calc(1 - var(--hero-progress, 0) * 0.7)) calc(100vw * 788 / 1049 * (0.6 - var(--hero-progress, 0) * 0.3)),
            transparent calc(100vw * 788 / 1049)
        );
    }
    .hero-scrim-top { height: clamp(96px, 18vh, 180px); }
    .hero-scrim-bottom {
        display: block;
        height: 55%;
        opacity: var(--hero-progress, 0);
    }
    .hero-content {
        position: absolute;
        top: min(
            calc(100vw * 788 / 1049 * 1.43 * 0.8),
            calc(100vh - 290px)
        );
        bottom: auto;
        left: 0;
        right: 0;
        z-index: 3;
        padding: 0.75rem 1.5rem 1.25rem;
        text-align: center;
        align-items: center;
        max-width: none;
        margin: 0 auto;
        justify-content: flex-start;
        opacity: 1;
        gap: 0.75rem;
        transform: translateY(calc(var(--hero-progress, 0) * -12vh));
        pointer-events: auto;
    }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-sub { max-width: none; font-size: 0.95rem; }
    .hero-cta { justify-content: center; }
}

/* Short-height viewports (landscape phones, small laptops in split view):
   compact hero typography + center the text block vertically so it lands in the middle of the screen. */
@media (max-height: 500px) {
    .hero-title { font-size: clamp(1.25rem, 4.5vw, 2rem); line-height: 1.05; }
    .hero-tag { font-size: 0.7rem; letter-spacing: 0.25em; }
    .hero-sub { font-size: 0.8rem; line-height: 1.45; max-width: 52ch; }
    .hero-scrim-top { height: clamp(60px, 14vh, 120px); }
    .hero-content {
        top: 50%;
        bottom: auto;
        left: 50%;
        right: auto;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.75rem clamp(1.5rem, 5vw, 3rem);
        gap: 0.5rem;
        width: min(100%, 70ch);
        max-width: none;
        /* Centered on screen; initial state is offset 40px below center, slides up as progress grows. */
        transform: translate(-50%, calc(-50% + (1 - var(--hero-progress, 0)) * 40px));
    }
    .hero-cta { gap: 0.5rem; margin-top: 0.25rem; }
    /* Buttons keep uniform height across the page — hero CTAs inherit the mobile .btn sizing. */
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text), transparent);
    opacity: 0.4;
    animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* --- Sections --- */
.section {
    padding: var(--section-pad) 0;
}

.section-about {
    background: transparent;
}

.section-yachts {
    background: transparent;
}

.section-lifestyle {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.section-invest {
    background: transparent;
}

.section-contact {
    background: transparent;
}

/* --- Split Layout --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

/* --- Stats --- */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.stat-card {
    background: var(--surface);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-body);
    font-size: 0.45em;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    vertical-align: super;
    margin-left: 0.15em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* --- Yacht Cards --- */
.yacht-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.yacht-card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s;
}

.yacht-card:hover {
    border-color: rgba(139, 164, 168, 0.3);
}

.yacht-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.yacht-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: mask-image 1.2s ease,
                -webkit-mask-image 1.2s ease;
    mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0.35) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0.35) 100%);
}

.yacht-card:hover .yacht-image img {
    mask-image: radial-gradient(ellipse at center, black 0%, black 30%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.6) 85%, rgba(0,0,0,0.5) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, black 30%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.6) 85%, rgba(0,0,0,0.5) 100%);
}

.yacht-info {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.yacht-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.yacht-spec {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}

.yacht-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* --- Lifestyle Section --- */
.lifestyle-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lifestyle-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lifestyle-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(10,10,10,0.92) 0%,
        rgba(10,10,10,0.75) 50%,
        rgba(10,10,10,0.3) 100%
    );
}

.lifestyle-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    padding: var(--section-pad) 0;
}

.lifestyle-text {
    color: rgba(237, 235, 230, 0.75);
    font-size: 1.05rem;
    line-height: 1.9;
}

.lifestyle-text p {
    margin-bottom: 1.5rem;
}

.lifestyle-text p:last-child {
    margin-bottom: 0;
}

/* --- Investment --- */
.invest-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--border);
    background: var(--surface);
}

.invest-amount {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    margin-bottom: 1rem;
}

.invest-period {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: start;
}

/* Captain card — direct tel link */
.captain-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 2.5rem;
    padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2rem);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
    position: relative;
}
.captain-card::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: clamp(1.25rem, 2.2vw, 1.75rem);
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.55;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.captain-card:hover {
    border-color: rgba(139, 164, 168, 0.55);
    background-color: rgba(139, 164, 168, 0.03);
}
.captain-card:hover::after {
    transform: translateY(-50%) translateX(4px);
    opacity: 1;
}
.captain-label {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.01em;
}
.captain-number {
    font-family: var(--font-body);
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.contact-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.1rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: var(--text-dim);
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--text);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Honeypot — hidden from real users, visible to dumb bots */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--white);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a72' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form success message */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-dim);
}

/* --- Footer --- */
.site-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap);
    margin-bottom: 3rem;
}

.footer-tagline {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact li {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .split-layout,
    .yacht-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .split-reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .lang-toggle {
        color: var(--text);
    }

    .site-header.menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    :root {
        --header-h: 64px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        /* Close is instant — no transition here means removing .open snaps the overlay shut,
           so nothing can flash/bleed during a fade-out. */
        transition: none;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* Opening still fades smoothly. */
        transition: opacity 0.25s ease 0s;
    }

    /* Kill the tap-highlight + focus outline on menu links so the tapped link doesn't
       linger visible after close. */
    .nav-links a {
        -webkit-tap-highlight-color: transparent;
    }
    .nav-links a:focus,
    .nav-links a:focus-visible {
        outline: none;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero keeps CTAs side-by-side even on narrow mobile so they fit above viewport bottom */
    .section .hero-cta,
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
    }
    /* All .btn scale down together on mobile so heights stay uniform across the page */
    .btn {
        padding: 0.75rem 1.1rem;
        font-size: 0.78rem;
    }

    .lifestyle-overlay {
        background: linear-gradient(
            0deg,
            rgba(10,10,10,0.95) 0%,
            rgba(10,10,10,0.8) 50%,
            rgba(10,10,10,0.6) 100%
        );
    }
}

/* --- Differentiators Section --- */
.section-diff {
    background: transparent;
    padding-top: 0;
    padding-bottom: var(--section-pad);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.diff-card {
    position: relative;
    padding: clamp(2rem, 3vw, 2.8rem);
    border-right: 1px solid var(--border);
}

.diff-card:last-child {
    border-right: none;
}

@media (max-width: 1100px) {
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    .diff-card:nth-child(2n) { border-right: none; }
    .diff-card:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 560px) {
    .diff-grid { grid-template-columns: 1fr; }
    .diff-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
    .diff-card:last-child { border-bottom: none !important; }
}

.diff-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.diff-line {
    display: none;
}

.diff-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.diff-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 320px;
}

@media (max-width: 1024px) {
    .diff-grid {
        grid-template-columns: 1fr;
    }

    .diff-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .diff-card:last-child {
        border-bottom: none;
    }
}


/* --- Floor Plan Section --- */
.section-floorplan {
    background: transparent;
}

/* Floor plan image stage */
.floorplan-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 1.6vw, 1.25rem);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    overflow: visible;
}

/* Floor plan up/down navigation — framed hairline squares, centered above + below stage */
.floor-arrow {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border);
    min-height: 36px;
    padding: 0 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 0;
    position: relative;
    z-index: 4;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.floor-arrow svg {
    width: 16px;
    height: 16px;
}
.floor-arrow svg polyline {
    stroke-width: 1.6;
}
.floor-arrow:hover {
    color: var(--text);
    border-color: rgba(139, 164, 168, 0.55);
    background-color: rgba(139, 164, 168, 0.04);
}
.floor-arrow.is-active {
    color: var(--accent);
    border-color: transparent;
    background-color: transparent;
    cursor: default;
}
.floor-arrow:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}
.floor-arrow-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.floor-arrow.is-active .floor-arrow-label { color: var(--accent); }

@media (max-width: 768px) {
    .floor-arrow { padding: 0 0.7rem; gap: 0.5rem; min-height: 32px; }
    .floor-arrow svg { width: 14px; height: 14px; }
    .floor-arrow-label { font-size: 0.62rem; letter-spacing: 0.2em; }
}

.section-floorplan {
    overflow: hidden;
}

.floorplan-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 2.5 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floorplan-stage {
    overflow: visible;
}

.floorplan-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 40px rgba(139, 164, 168, 0.08));
}

.floorplan-img.active {
    opacity: 1;
    transform: scale(1);
}

/* --- Atmospheric particles --- */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Floor plan lightbox --- */
.floorplan-stage {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    background: transparent;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.lightbox-close {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    background: none;
    border: 1px solid rgba(237, 235, 230, 0.15);
    color: var(--text);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    border-color: var(--text);
    color: var(--white);
}

/* Floor switcher — reuses diff-card design, 2 columns */
.floor-switcher-grid {
    grid-template-columns: repeat(2, 1fr);
}

.floor-card {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.5s, background 0.5s;
}

.floor-card .diff-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floor-card:hover {
    background: rgba(139, 164, 168, 0.03);
}

.floor-card.active {
    opacity: 1;
}

.floor-card.active .diff-num {
    color: var(--accent);
}

.floor-card.active .diff-line {
    width: 60px;
}

@media (max-width: 768px) {
    .floor-switcher-grid {
        grid-template-columns: 1fr;
    }

    .floorplan-stage {
        aspect-ratio: 2.2 / 1;
        min-height: 200px;
    }
}

/* Logo image (nav + footer) */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}
.footer-brand .logo img {
    height: 48px;
}

/* --- Seaview section — cinematic full-bleed stack --- */
.section-views {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
    background: var(--bg);
    overflow: hidden;
}

.views-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vw, 7rem);
    margin-top: clamp(4rem, 8vw, 6.5rem);
}

.view-stage {
    position: relative;
    width: 100%;
    margin: 0;
}

.view-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
}

.view-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(10, 10, 10, 0.18) 0%,
        rgba(10, 10, 10, 0) 25%,
        rgba(10, 10, 10, 0) 75%,
        rgba(10, 10, 10, 0.35) 100%);
    opacity: 1;
    transition: opacity 0.9s ease;
}

.view-frame:hover::before {
    opacity: 0.6;
}

.view-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    transform: translate3d(0, calc(var(--view-scroll, 0) * -8%), 0);
    will-change: transform, filter;
    filter:
        brightness(calc(0.86 + var(--view-focus, 0) * 0.18))
        saturate(calc(0.92 + var(--view-focus, 0) * 0.1));
    transition: filter 0.35s ease;
}

.view-frame:hover .view-img {
    filter: brightness(1.05) saturate(1.02);
}

.view-caption {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 5vw, 4rem) 0;
    color: var(--text);
}

.view-index {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
}

.view-index em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    color: var(--accent);
    text-transform: none;
    line-height: 0.9;
    margin-right: 0.25em;
}

.view-index .view-sep {
    color: var(--text-muted);
    letter-spacing: 0;
}

.view-divider {
    display: block;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, var(--border) 40%, transparent 100%);
}

.view-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 400;
    white-space: nowrap;
}

/* Staggered reveal for each stage */
.views-stack .view-stage.reveal {
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(70px);
}
.views-stack .view-stage.reveal.visible {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .view-frame { aspect-ratio: 4 / 3; }
    .view-caption { padding-top: 1rem; gap: 1rem; }
    .view-name { font-size: 0.7rem; letter-spacing: 0.25em; }
    .view-index em { font-size: 1.5rem; }
}
