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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2B;
    --burgundy-light: #9B4D5B;
    --blush: #F5D5CC;
    --blush-light: #FBEDE8;
    --blush-pale: #FDF6F3;
    --cream: #FAFAF8;
    --white: #FFFFFF;
    --text-dark: #1A1416;
    --text-body: #3D2C30;
    --text-muted: #7A656A;
    --text-light: #A89095;
    --border: #E8D8D4;
    --border-light: #F0E4E0;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
}

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border: 1.5px solid var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary-light {
    background: var(--white);
    color: var(--burgundy);
    border: 1.5px solid var(--white);
}

.btn-primary-light:hover {
    background: var(--blush-light);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

.site-header.scrolled .logo {
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    opacity: 0.85;
}

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

/* ===== Nav ===== */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.site-header.scrolled .nav-toggle-bar {
    background: var(--text-dark);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 999;
}

.nav-menu.open {
    transform: translateX(0);
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-dark);
    padding: 12px 24px;
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--burgundy);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 20, 22, 0.45) 0%,
        rgba(26, 20, 22, 0.35) 40%,
        rgba(26, 20, 22, 0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== Section Spacing ===== */
section {
    padding: 120px 0;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-signature {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--burgundy);
    line-height: 1.7;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 2px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: -24px;
    bottom: -24px;
    border: 1px solid var(--blush);
    border-radius: 2px;
    z-index: -1;
}

/* ===== Divider ===== */
.divider {
    padding: 0 24px;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--border);
}

/* ===== Residences ===== */
.residences {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-sub {
    margin: 0 auto;
}

.residences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.residence-card {
    background: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.residence-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.08);
}

.card-image {
    overflow: hidden;
    height: 260px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.residence-card:hover .card-image img {
    transform: scale(1.04);
}

.card-body {
    padding: 32px 28px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-features li {
    font-size: 0.82rem;
    color: var(--text-body);
    padding-left: 16px;
    position: relative;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 1px;
    background: var(--burgundy);
}

/* ===== Location ===== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.location-text p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 32px;
}

.location-address {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
}

.map-link {
    position: relative;
    display: block;
    border-radius: 2px;
    overflow: hidden;
}

.map-link img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.map-link:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(26,20,22,0.7), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

/* ===== Testimonial ===== */
.testimonial {
    background: var(--blush-pale);
    padding: 100px 0;
}

.testimonial-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.testimonial-quote {
    color: var(--burgundy);
    opacity: 0.2;
    margin-bottom: 32px;
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.testimonial cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.guest-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.04em;
}

.guest-detail {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== CTA ===== */
.cta {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(92, 31, 43, 0.88) 0%,
        rgba(123, 45, 59, 0.82) 60%,
        rgba(123, 45, 59, 0.70) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
}

.section-label-light {
    color: var(--blush);
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ===== Contact ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-body);
    transition: color 0.3s;
}

.contact-detail:hover {
    color: var(--burgundy);
}

.contact-detail svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--burgundy);
    transition: color 0.3s;
}

.contact-detail:hover svg {
    color: var(--burgundy-deep);
}

.contact-detail span {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Form ===== */
.contact-form-wrap {
    background: var(--blush-pale);
    padding: 48px;
    border-radius: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    -webkit-appearance: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    color: var(--burgundy);
}

.form-success svg {
    color: var(--burgundy);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    padding: 72px 0 48px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--blush);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 480px;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid,
    .location-grid,
    .contact-grid {
        gap: 56px;
    }

    .residences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .header-inner {
        height: 68px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 360px;
    }

    .about-image::after {
        display: none;
    }

    .residences-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .map-link img {
        height: 320px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 100px 0;
    }

    .hero-headline {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }

    .footer-bottom {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 1.4rem;
    }
}
