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

:root {
    --forest: #1B4332;
    --forest-light: #2D6A4F;
    --forest-dark: #0D2818;
    --cream: #FAF8F5;
    --cream-warm: #F5F0E8;
    --sand: #D4A574;
    --sand-light: #E8C9A0;
    --sand-pale: #F0E0CC;
    --sage: #95B8A0;
    --sage-light: #C5D9CA;
    --text-dark: #1A2E23;
    --text-mid: #3D5A48;
    --text-light: #6B8A74;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 8px 40px rgba(27, 67, 50, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--forest);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--forest);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-hero { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-header { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}
.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest);
}
.logo-light { color: var(--white); }

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--sand);
    transition: width var(--transition);
}
.main-nav a:hover { color: var(--forest); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest);
    transition: var(--transition);
    border-radius: 2px;
}
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-xl);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

.btn-primary {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}
.btn-primary:hover {
    background: var(--forest-light);
    border-color: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 40, 24, 0.88) 0%,
        rgba(27, 67, 50, 0.75) 50%,
        rgba(45, 106, 79, 0.6) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 8rem 1.5rem 4rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 165, 116, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--sand-light);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}
.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}
.hero-headline em {
    font-style: italic;
    color: var(--sand-light);
}
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--sand-light);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ─── Sections ─── */
.section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--forest);
}
.section-desc {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ─── Villas ─── */
.villas-section {
    background: var(--cream);
}
.villas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.villa-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.villa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.villa-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 8/5;
}
.villa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.villa-card:hover .villa-card-img img {
    transform: scale(1.05);
}
.villa-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(27, 67, 50, 0.9);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-xl);
}
.villa-card-body {
    padding: 1.75rem;
}
.villa-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.villa-card-desc {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.villa-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}
.villa-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-mid);
}
.villa-features svg {
    color: var(--sage);
    flex-shrink: 0;
}
.btn-block { margin-top: auto; }

/* ─── Amenities ─── */
.amenities-section {
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.amenity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(27, 67, 50, 0.05);
}
.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sage-light);
}
.amenity-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.08), rgba(45, 106, 79, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    margin-bottom: 1.25rem;
}
.amenity-card h3 {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
    color: var(--forest);
}
.amenity-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ─── Island ─── */
.island-section {
    background: var(--white);
    padding: 7rem 0;
}
.island-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.island-content .section-tag { text-align: left; }
.island-content .section-title { text-align: left; margin-bottom: 1.25rem; }
.island-desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.island-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.island-highlight {
    text-align: center;
}
.highlight-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--forest);
    line-height: 1;
}
.highlight-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}
.island-images {
    position: relative;
}
.island-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.island-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.island-img-secondary {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.island-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Gallery ─── */
.gallery-section {
    background: var(--cream);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.07);
}

/* ─── Contact ─── */
.contact-section {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
    color: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-section .section-tag { color: var(--sand-light); }
.contact-section .section-title { color: var(--white); text-align: left; }
.contact-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sand-light);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}
.contact-item p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}
.contact-item a {
    color: var(--sand-light);
    transition: color var(--transition);
}
.contact-item a:hover { color: var(--white); }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.form-title {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(27, 67, 50, 0.15);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}
.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: 0.75rem;
    text-align: center;
    padding: 2rem;
    color: var(--forest);
}
.form-success svg { color: var(--sage); }
.form-success p { font-size: 0.9375rem; color: var(--text-mid); }

/* ─── Footer ─── */
.site-footer {
    background: var(--forest-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand-light);
    margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}
.footer-contact a { color: var(--sand-light); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Mobile Nav Overlay ─── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 40, 24, 0.95);
    backdrop-filter: blur(16px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.mobile-nav-overlay.active {
    display: flex;
}
.mobile-nav-overlay nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.mobile-nav-overlay nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: var(--white);
    font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .villas-grid { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .island-grid { grid-template-columns: 1fr; gap: 3rem; }
    .island-img-secondary { left: 1rem; bottom: -1rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .main-nav, .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .hero-content { padding: 7rem 1.25rem 3rem; }
    .hero-stats { gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .section { padding: 4rem 0; }
    .amenities-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .island-img-secondary { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; }
    .villa-features { grid-template-columns: 1fr; }
    .island-highlights { gap: 1.5rem; }
    .contact-form-wrap { padding: 1.5rem; }
}
