/* ===========================
   Villa Jolo–Inspired Design
   Clean, white, minimal with green accents
   =========================== */

:root {
    --green: #4a6741;
    --green-dark: #3a5433;
    --green-light: #6b8a60;
    --cream: #f9f7f3;
    --beige: #f0ece4;
    --white: #ffffff;
    --black: #1a1a1a;
    --charcoal: #333333;
    --gray: #777777;
    --gray-light: #bbbbbb;
    --gray-border: #e0ddd6;

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

    --max-width: 1100px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color-scheme: light only;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    color-scheme: light only;
    forced-color-adjust: none;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    color: var(--charcoal);
    background: var(--white);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 70px 0;
}

/* ===========================
   Section Title with Lines
   =========================== */

.section-title-lined {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.section-title-lined::before,
.section-title-lined::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-border);
}

/* ===========================
   Divider
   =========================== */

.section-divider {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-divider::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--green);
    opacity: 0.3;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: var(--white);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 120px;
    width: auto;
    margin: -20px 0;
}

.navbar.scrolled .nav-logo-img {
    height: 90px;
    margin: -15px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--charcoal);
    padding: 4px 0;
    position: relative;
}

.nav-link--active {
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link--active::after {
    width: 100%;
}

.nav-cta {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    padding: 10px 22px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

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

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
}

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

/* ===========================
   Hero
   =========================== */

.hero {
    padding-top: 90px;
    padding-bottom: 40px;
    text-align: center;
    background: var(--white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 6px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--black);
    margin-bottom: 28px;
    line-height: 1.1;
}

/* Hero Collage */
.hero-collage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 36px;
    max-height: 380px;
}

.hero-collage-large {
    border-radius: 4px;
    overflow: hidden;
    height: 380px;
}

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

.hero-collage-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 380px;
}

.hero-collage-small {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

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

/* Outline Button */
.btn-outline {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    padding: 14px 36px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-outline--sm {
    padding: 10px 24px;
    font-size: 11px;
}

/* ===========================
   About
   =========================== */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.about-photo-left {
    border-radius: 4px;
    overflow: hidden;
}

.about-photo-left img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.about-text {
    padding-top: 20px;
}

.about-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 14px;
}

.about-photos-right {
    position: relative;
    height: 360px;
}

.about-photo-overlap-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 55%;
    border-radius: 4px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.08);
}

.about-photo-overlap-2 {
    position: absolute;
    top: 30%;
    left: 35%;
    width: 55%;
    height: 50%;
    border-radius: 4px;
    overflow: hidden;
    z-index: 3;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.08);
}

.about-photo-overlap-3 {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 45%;
    height: 40%;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.08);
}

.about-photos-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Amenities Bar
   =========================== */

.amenities-bar {
    padding: 40px 0;
}

.amenities-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.amenity-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 28px;
    border: 1px solid var(--gray-border);
    border-right: none;
    min-width: 130px;
    transition: var(--transition);
}

.amenity-chip:last-child {
    border-right: 1px solid var(--gray-border);
}

.amenity-chip--active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.amenity-chip--active + .amenity-chip {
    border-left-color: var(--green);
}

.amenity-chip-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.amenity-chip--active .amenity-chip-icon {
    color: var(--white);
}

.amenity-chip-icon svg {
    width: 100%;
    height: 100%;
}

.amenity-chip span {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ===========================
   Services / Spaces
   =========================== */

.service-block {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.service-block--reverse {
    grid-template-columns: 1.3fr 1fr;
}

.service-block--reverse .service-text {
    order: 2;
}

.service-block--reverse .service-photos {
    order: 1;
}

.service-heading {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 18px;
}

.service-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 24px;
}

.service-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-photo-1,
.service-photo-2 {
    border-radius: 4px;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-photo-1 {
    grid-column: 1 / -1;
    height: 260px;
}

/* ===========================
   Gallery Grid
   =========================== */

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

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* ===========================
   Lightbox
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.15); }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ===========================
   Location
   =========================== */

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.location-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 24px;
}

.location-details li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    font-size: 14px;
    color: var(--gray);
}

.location-details li strong {
    color: var(--green);
    margin-right: 8px;
}

.location-map {
    border-radius: 6px;
    overflow: hidden;
    min-height: 340px;
}

.location-map iframe { display: block; }

/* ===========================
   Contact
   =========================== */

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

.contact-left p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 28px;
}

.contact-info-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
}

.contact-info-row strong {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 2px;
}

.contact-info-row span {
    font-size: 14px;
    color: var(--charcoal);
}

/* Form */
.contact-form {
    background: var(--cream);
    padding: 36px;
    border-radius: 6px;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover { background: var(--green-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===========================
   Footer
   =========================== */

.footer {
    padding: 50px 0 30px;
    text-align: center;
}

.footer-logo-img {
    height: 50px;
    margin: 0 auto 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
}

.footer-nav a {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
}

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

.footer-copy {
    font-size: 12px;
    color: var(--gray-light);
}

/* ===========================
   Responsive
   =========================== */

/* ===========================
   Tablet (max-width: 900px)
   =========================== */

@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .section { padding: 50px 0; }

    /* Nav logo */
    .nav-logo-img { height: 90px; margin: -14px 0; }
    .navbar.scrolled .nav-logo-img { height: 70px; margin: -10px 0; }

    /* Hero */
    .hero-collage {
        grid-template-columns: 1fr 1fr;
        max-height: none;
    }
    .hero-collage-large { height: 260px; }
    .hero-collage-stack { height: 260px; }

    /* About */
    .about-layout { grid-template-columns: 1fr 1fr; }
    .about-photo-left img { height: 280px; }
    .about-photos-right { height: 280px; }

    /* Services */
    .service-block,
    .service-block--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-block--reverse .service-text { order: 1; }
    .service-block--reverse .service-photos { order: 2; }
    .service-photo-1 { height: 220px; }
    .service-photo-2 { height: 180px; }

    /* Location & Contact */
    .location-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .location-map { min-height: 280px; }

    /* Amenities */
    .amenities-row { flex-wrap: wrap; gap: 0; }
    .amenity-chip {
        flex: 1 1 calc(33.33% - 0px);
        border: 1px solid var(--gray-border);
        border-bottom: none;
    }
    .amenity-chip:nth-child(4),
    .amenity-chip:nth-child(5) { border-bottom: 1px solid var(--gray-border); }

    /* Section titles */
    .section-title-lined { letter-spacing: 4px; font-size: 13px; gap: 16px; margin-bottom: 36px; }
}

/* ===========================
   Phone (max-width: 640px)
   =========================== */

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 40px 0; }
    .section-divider { padding: 0 18px; }

    /* Nav */
    .nav-toggle { display: flex; }
    .nav-logo-img { height: 70px; margin: -10px 0; }
    .navbar.scrolled .nav-logo-img { height: 60px; margin: -8px 0; }
    .navbar { padding: 12px 0; }
    .navbar.scrolled { padding: 8px 0; }
    .nav-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 999;
    }
    .nav-menu.active { opacity: 1; pointer-events: all; }
    .nav-menu .nav-link { font-size: 18px; letter-spacing: 2px; }
    .nav-cta { display: none; }

    /* Hero */
    .hero { padding-top: 80px; padding-bottom: 30px; }
    .hero-title { letter-spacing: 3px; font-size: 28px; margin-bottom: 20px; }
    .hero-subtitle { font-size: 11px; }
    .hero-collage {
        grid-template-columns: 1fr;
        max-height: none;
        gap: 8px;
    }
    .hero-collage-large { height: 200px; }
    .hero-collage-stack { flex-direction: row; height: 120px; gap: 8px; }
    .btn-outline { padding: 12px 28px; font-size: 11px; }

    /* About */
    .about-layout { grid-template-columns: 1fr; gap: 20px; }
    .about-photo-left img { height: 200px; }
    .about-text { padding-top: 0; }
    .about-photos-right { height: 220px; }

    /* Section titles */
    .section-title-lined {
        letter-spacing: 2px;
        font-size: 11px;
        gap: 12px;
        margin-bottom: 28px;
    }

    /* Amenities */
    .amenities-row { flex-wrap: wrap; gap: 0; }
    .amenity-chip {
        flex: 1 1 50%;
        padding: 14px 12px;
        border: 1px solid var(--gray-border);
        min-width: 0;
    }
    .amenity-chip:last-child {
        flex: 1 1 100%;
    }
    .amenity-chip span { font-size: 10px; }

    /* Services */
    .service-block { gap: 20px; margin-bottom: 40px; }
    .service-photo-1 { height: 180px; }
    .service-photo-2 { height: 140px; }
    .service-heading { font-size: 12px; letter-spacing: 3px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

    /* Lightbox */
    .lightbox { padding: 16px; }
    .lightbox-img { max-width: 95vw; max-height: 80vh; }
    .lightbox-prev { left: 8px; width: 36px; height: 36px; font-size: 16px; }
    .lightbox-next { right: 8px; width: 36px; height: 36px; font-size: 16px; }
    .lightbox-close { top: 12px; right: 16px; font-size: 28px; }

    /* Location */
    .location-map { min-height: 220px; }

    /* Contact */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 20px 16px; }
    .contact-left p { margin-bottom: 20px; }

    /* Footer */
    .footer { padding: 36px 0 24px; }
    .footer-nav { flex-wrap: wrap; gap: 14px 20px; }
    .footer-nav a { font-size: 11px; }
    .footer-copy { font-size: 11px; }
}

/* ===========================
   Fade-in Animations
   =========================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children for gallery and amenities */
.gallery-item.fade-in { transition-delay: 0.05s; }
.gallery-item.fade-in:nth-child(2) { transition-delay: 0.1s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.15s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.2s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.25s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: 0.3s; }
.gallery-item.fade-in:nth-child(7) { transition-delay: 0.35s; }
.gallery-item.fade-in:nth-child(8) { transition-delay: 0.4s; }
.gallery-item.fade-in:nth-child(9) { transition-delay: 0.45s; }

.amenity-chip.fade-in:nth-child(1) { transition-delay: 0s; }
.amenity-chip.fade-in:nth-child(2) { transition-delay: 0.07s; }
.amenity-chip.fade-in:nth-child(3) { transition-delay: 0.14s; }
.amenity-chip.fade-in:nth-child(4) { transition-delay: 0.21s; }
.amenity-chip.fade-in:nth-child(5) { transition-delay: 0.28s; }
