/* Stackly Swiss Estate — Master Design & Responsive Stylesheet */

/* CSS Reset & Variables */
:root {
    --stk-cream: #F4F1EA;
    --stk-charcoal: #1D1D1B;
    --stk-terracotta: #D7603B;
    --stk-white: #FFFFFF;
    --stk-muted: #666663;
    --stk-border: rgba(29, 29, 27, 0.14);
    --stk-font-heading: 'DM Serif Display', Georgia, serif;
    --stk-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --stk-radius: 2px;
    --stk-container-max: 1320px;
    --stk-section-padding: clamp(70px, 8vw, 130px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--stk-cream);
    color: var(--stk-charcoal);
    font-family: var(--stk-font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container & Spacing Wrapper */
.stk-section-wrapper {
    max-width: var(--stk-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
    padding-top: var(--stk-section-padding);
    padding-bottom: var(--stk-section-padding);
}

/* Sticky Header */
.stk-site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(244, 241, 234, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stk-border);
    transition: all 300ms ease;
}

.stk-site-header.scrolled {
    background-color: rgba(244, 241, 234, 0.98);
    box-shadow: 0 4px 20px rgba(29, 29, 27, 0.05);
}

.stk-header-inner {
    max-width: var(--stk-container-max);
    margin: 0 auto;
    padding: 20px clamp(20px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stk-logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.stk-brand-main {
    font-family: var(--stk-font-heading);
    font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    letter-spacing: 0.04em;
    color: var(--stk-charcoal);
    line-height: 1.1;
}

.stk-brand-sub {
    font-family: var(--stk-font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--stk-terracotta);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Desktop Nav & Animated Underline Hover */
.stk-desktop-nav {
    display: flex;
    align-items: center;
}

.stk-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(24px, 2.5vw, 42px);
    align-items: center;
}

.stk-nav-link {
    font-family: var(--stk-font-body);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--stk-charcoal);
    position: relative;
    padding: 6px 0;
    transition: color 300ms ease;
}

.stk-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--stk-terracotta);
    transition: width 350ms cubic-bezier(0.25, 1, 0.5, 1);
}

.stk-nav-link:hover::after {
    width: 100%;
}

.stk-nav-link:hover {
    color: var(--stk-terracotta);
}

.stk-nav-link.active,
.current-menu-item > a {
    color: var(--stk-terracotta) !important;
}

.stk-nav-link.active::after,
.current-menu-item > a::after {
    width: 100% !important;
}

.stk-header-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stk-header-btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Mobile Toggle */
.stk-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    outline: none;
}

.stk-hamburger-bar {
    width: 26px;
    height: 2px;
    background-color: var(--stk-charcoal);
    transition: transform 300ms ease, opacity 300ms ease;
}

.stk-mobile-toggle[aria-expanded="true"] .stk-hamburger-bar:first-child {
    transform: translateY(4px) rotate(45deg);
}

.stk-mobile-toggle[aria-expanded="true"] .stk-hamburger-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
    .stk-desktop-nav, .stk-header-btn {
        display: none;
    }
    .stk-mobile-toggle {
        display: flex;
    }
}

/* Mobile Drawer */
.stk-mobile-drawer {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--stk-cream);
    border-top: 1px solid var(--stk-border);
    z-index: 998;
    overflow-y: auto;
    padding: 32px 24px;
}

.stk-mobile-drawer.open {
    display: block;
    animation: stkFadeIn 300ms ease;
}

@keyframes stkFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stk-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stk-mobile-nav-link {
    font-family: var(--stk-font-heading);
    font-size: 1.8rem;
    color: var(--stk-charcoal);
    text-decoration: none;
}

.stk-mobile-nav-link:hover {
    color: var(--stk-terracotta);
}

.stk-mobile-drawer-footer {
    border-top: 1px solid var(--stk-border);
    padding-top: 24px;
}

.stk-mobile-desc {
    font-size: 13.5px;
    color: var(--stk-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Hero Section (55/45 Asymmetric Editorial) */
.stk-hero-section {
    max-width: var(--stk-container-max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px) var(--stk-section-padding);
}

.stk-hero-composition {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 1024px) {
    .stk-hero-composition {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.stk-hero-tag-badge {
    display: inline-block;
    font-family: var(--stk-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--stk-terracotta);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.stk-hero-headline {
    font-family: var(--stk-font-heading);
    font-size: clamp(2.8rem, 5.2vw, 5.4rem);
    line-height: 1.04;
    font-weight: 400;
    color: var(--stk-charcoal);
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
}

.stk-terracotta-text {
    color: var(--stk-terracotta);
}

.stk-hero-paragraph {
    font-family: var(--stk-font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--stk-muted);
    max-width: 520px;
    margin: 0 0 36px 0;
}

.stk-hero-cta-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Imagery Composition */
.stk-hero-right {
    position: relative;
    width: 100%;
}

.stk-hero-image-primary-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--stk-charcoal);
    border-radius: var(--stk-radius);
    overflow: hidden;
    position: relative;
}

.stk-hero-image-primary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.96);
    transition: transform 800ms ease;
}

.stk-hero-image-primary-wrap:hover .stk-hero-image-primary {
    transform: scale(1.035);
}

.stk-hero-image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(29, 29, 27, 0.88);
    backdrop-filter: blur(6px);
    color: var(--stk-cream);
    padding: 10px 16px;
    border-radius: 1px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stk-hero-image-caption span {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--stk-terracotta);
}

.stk-hero-image-overlap-wrap {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 48%;
    aspect-ratio: 1 / 1;
    border-radius: var(--stk-radius);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(29, 29, 27, 0.15);
    border: 4px solid var(--stk-cream);
}

@media (max-width: 1024px) {
    .stk-hero-image-overlap-wrap {
        left: -10px;
        bottom: -20px;
        width: 40%;
    }
}

@media (max-width: 600px) {
    .stk-hero-image-overlap-wrap {
        display: none;
    }
}

.stk-hero-image-overlap {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Header Rows */
.stk-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--stk-border);
    padding-bottom: 20px;
}

.stk-section-eyebrow {
    display: inline-block;
    font-family: var(--stk-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--stk-terracotta);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stk-section-title {
    font-family: var(--stk-font-heading);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--stk-charcoal);
    margin: 0;
}

.stk-section-link {
    font-family: var(--stk-font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--stk-charcoal);
    text-decoration: none;
    transition: color 300ms ease;
}

.stk-section-link:hover {
    color: var(--stk-terracotta);
}

.stk-section-header-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
}

.stk-section-subtitle {
    font-family: var(--stk-font-body);
    font-size: 15px;
    color: var(--stk-muted);
    margin-top: 10px;
}

/* Editorial About Section */
.stk-editorial-about-section {
    max-width: var(--stk-container-max);
    margin: 0 auto;
    padding: var(--stk-section-padding) clamp(20px, 4vw, 48px);
}

.stk-editorial-grid {
    display: grid;
    grid-template-columns: 48fr 52fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

@media (max-width: 1024px) {
    .stk-editorial-grid {
        grid-template-columns: 1fr;
    }
}

.stk-editorial-image-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--stk-radius);
    background: var(--stk-charcoal);
}

.stk-editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stk-editorial-heading {
    font-family: var(--stk-font-heading);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 400;
    color: var(--stk-charcoal);
    margin: 0 0 24px 0;
}

.stk-editorial-body {
    font-family: var(--stk-font-body);
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.65;
    color: var(--stk-charcoal);
    margin-bottom: 16px;
}

.stk-editorial-subtext {
    font-family: var(--stk-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--stk-muted);
    margin-bottom: 24px;
}

/* Contact Section & Grid */
.stk-contact-section-wrapper {
    max-width: var(--stk-container-max);
    margin: 0 auto;
    padding: var(--stk-section-padding) clamp(20px, 4vw, 48px);
}

.stk-contact-grid {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 960px) {
    .stk-contact-grid {
        grid-template-columns: 1fr;
    }
}

.stk-contact-heading {
    font-family: var(--stk-font-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--stk-charcoal);
    margin: 0 0 20px 0;
}

.stk-contact-intro {
    font-size: 15px;
    line-height: 1.65;
    color: var(--stk-muted);
    margin-bottom: 32px;
}

.stk-contact-details-list {
    border-top: 1px solid var(--stk-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stk-detail-row {
    display: flex;
    flex-direction: column;
}

.stk-detail-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stk-muted);
    margin-bottom: 2px;
}

.stk-detail-val {
    font-size: 16px;
    color: var(--stk-charcoal);
}

.stk-form-card {
    background: #FFFFFF;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--stk-border);
    border-radius: var(--stk-radius);
}

/* Single Property Page */
.stk-single-title {
    font-family: var(--stk-font-heading);
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 32px 0;
}

.stk-single-hero-media {
    width: 100%;
    margin-bottom: 48px;
    border-radius: var(--stk-radius);
    overflow: hidden;
}

.stk-single-main-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.stk-single-grid {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 960px) {
    .stk-single-grid {
        grid-template-columns: 1fr;
    }
}

.stk-single-inquiry-box {
    background: #FFFFFF;
    border: 1px solid var(--stk-border);
    padding: 32px 24px;
    border-radius: var(--stk-radius);
    position: sticky;
    top: 100px;
}

.stk-sidebar-title {
    font-family: var(--stk-font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.stk-sidebar-desc {
    font-size: 13.5px;
    color: var(--stk-muted);
    margin-bottom: 24px;
}

/* Page Intro Header */
.stk-page-intro {
    margin-bottom: 40px;
    max-width: 760px;
}

.stk-page-title {
    font-family: var(--stk-font-heading);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--stk-charcoal);
    margin: 0 0 16px 0;
}

.stk-page-desc {
    font-size: 16px;
    color: var(--stk-muted);
    line-height: 1.6;
}

/* 404 Page */
.stk-404-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stk-404-title {
    font-family: var(--stk-font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    margin: 0 0 16px 0;
}

.stk-404-desc {
    font-size: 16px;
    color: var(--stk-muted);
    margin-bottom: 32px;
}

/* Site Footer */
.stk-site-footer {
    background-color: var(--stk-charcoal);
    color: var(--stk-cream);
    position: relative;
    overflow: hidden;
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: 40px;
}

.stk-footer-watermark {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-family: var(--stk-font-heading);
    font-size: clamp(6rem, 15vw, 16rem);
    font-weight: 700;
    color: rgba(244, 241, 234, 0.03);
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.stk-footer-inner {
    max-width: var(--stk-container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    position: relative;
    z-index: 2;
}

.stk-footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.3fr;
    gap: clamp(32px, 4vw, 64px);
    margin-bottom: clamp(48px, 6vw, 80px);
}

@media (max-width: 1024px) {
    .stk-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stk-footer-grid {
        grid-template-columns: 1fr;
    }
}

.stk-footer-brand-name {
    font-family: var(--stk-font-heading);
    font-size: 1.5rem;
    color: var(--stk-cream);
    display: block;
    margin-bottom: 12px;
}

.stk-footer-brand-tagline {
    font-size: 14px;
    color: rgba(244, 241, 234, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.stk-footer-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--stk-terracotta);
    border: 1px solid rgba(215, 96, 59, 0.3);
    padding: 6px 12px;
    border-radius: 1px;
}

.stk-footer-heading {
    font-family: var(--stk-font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stk-terracotta);
    margin: 0 0 20px 0;
}

.stk-footer-links, .stk-footer-locations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stk-footer-links a {
    color: rgba(244, 241, 234, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms ease;
}

.stk-footer-links a:hover {
    color: var(--stk-cream);
}

.stk-footer-locations li {
    font-size: 13.5px;
    color: rgba(244, 241, 234, 0.75);
}

.stk-footer-locations strong {
    color: var(--stk-cream);
}

.stk-footer-contact-item {
    font-size: 13.5px;
    color: rgba(244, 241, 234, 0.75);
    margin: 0 0 10px 0;
}

.stk-footer-contact-item strong {
    color: var(--stk-cream);
}

.stk-footer-inquire-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--stk-terracotta);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.stk-footer-inquire-link:hover {
    text-decoration: underline;
}

.stk-footer-bottom {
    border-top: 1px solid rgba(244, 241, 234, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(244, 241, 234, 0.5);
}

.stk-footer-bottom p {
    margin: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}