/* ============================================
   Zhafira Villa Landing Page
   Optimized CSS - Mobile First Approach
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #192925;
    --color-secondary: #529A88;
    --color-accent: #61CE70;
    --color-gold: #CFB465;
    --color-text: #54595F;
    --color-white: #FFFFFF;
    --color-dark: #111111;
    --color-light-bg: #f8f9fa;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Roboto Slab', serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #4fb85e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #3d7a6b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b89a4a 100%);
    color: var(--color-dark);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 16px 36px;
    font-size: 18px;
}

.btn-cta:hover {
    background-color: #4fb85e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-header {
    background: var(--color-gold);
    color: var(--color-dark);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.btn-header:hover {
    background: #b89a4a;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.section-title.left {
    text-align: left;
}

.section-subtitle {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--color-text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Header
   ============================================ */
.header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.tagline {
    font-family: var(--font-accent);
    color: var(--color-gold);
    font-size: 13px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--color-primary);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 41, 37, 0.9) 0%, rgba(25, 41, 37, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero-label {
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--color-gold);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-subtitle strong {
    color: var(--color-accent);
}

.hero-buttons {
    margin-bottom: 25px;
}

.hero-badge {
    display: inline-block;
}

.hero-badge span {
    display: inline-block;
    background: rgba(207, 180, 101, 0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Why Zhafira Section
   ============================================ */
.why-zhafira {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.why-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3d7a6b 100%);
    border-radius: 50%;
    color: var(--color-white);
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.why-card p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* ============================================
   Location Section
   ============================================ */
.location {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1b18 100%);
    padding: 60px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.location-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
}

.location-item .distance {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.location-item .place {
    display: block;
    font-size: 14px;
    color: var(--color-white);
    opacity: 0.9;
}

.location-map {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#villa-map {
    width: 100%;
    height: 350px;
}

@media (min-width: 768px) {
    #villa-map {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    #villa-map {
        height: 450px;
    }
}

.location-note {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ============================================
   Unit Highlight Section
   ============================================ */
.unit-highlight {
    background-color: var(--color-white);
    padding: 60px 0;
}

.unit-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.unit-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.unit-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.unit-info .section-title {
    margin-bottom: 25px;
}

.unit-specs {
    list-style: none;
    margin-bottom: 30px;
}

.unit-specs li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: var(--color-text);
}

.unit-specs li svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* ============================================
   Management Section
   ============================================ */
.management {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.management-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.management-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.management-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-gold);
}

.management-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.management-cta {
    text-align: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1b18 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-gold);
}

.management-cta p {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.9;
}

/* ============================================
   Income Teaser Section
   ============================================ */
.income-teaser {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3d7a6b 100%);
    padding: 60px 0;
}

.income-box {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.income-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.income-content > p {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 25px;
}

.income-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1b18 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 15px;
}

.income-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.income-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gold);
}

.income-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.income-action {
    text-align: center;
}

.income-action .btn {
    width: 100%;
}

/* ============================================
   Legality Section
   ============================================ */
.legality {
    background-color: var(--color-white);
    padding: 60px 0;
}

.legality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.legality-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.legality-item:hover {
    background: var(--color-primary);
}

.legality-item:hover h4,
.legality-item:hover p {
    color: var(--color-white);
}

.legality-item:hover .legality-icon {
    background: var(--color-gold);
    color: var(--color-dark);
}

.legality-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-gold);
    transition: var(--transition);
}

.legality-item h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: var(--transition);
}

.legality-item p {
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    background-color: var(--color-primary);
    padding: 60px 0;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-container {
    overflow: hidden;
    flex: 1;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    flex: 0 0 100%;
    padding: 0 5px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item .caption {
    display: block;
    text-align: center;
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

.gallery-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: #4fb85e;
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dots .dot.active {
    background: var(--color-accent);
}

/* ============================================
   Promo Section
   ============================================ */
.promo-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
}

.promo-banner {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(207, 180, 101, 0.3);
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3d7a6b 100%);
    padding: 70px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-white);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-content > p {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ============================================
   Brand Statement Section
   ============================================ */
.brand-statement {
    background-color: var(--color-primary);
    padding: 50px 0;
}

.brand-statement blockquote {
    font-family: var(--font-accent);
    font-size: 18px;
    color: var(--color-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-style: italic;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-dark);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-weight: 500;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #4fb85e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (min-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .unit-content {
        grid-template-columns: 1fr 1fr;
    }

    .unit-image img {
        height: 400px;
    }

    .management-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .income-box {
        padding: 50px;
    }

    .legality-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item {
        flex: 0 0 50%;
    }

    .gallery-item img {
        aspect-ratio: 3/4;
    }

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

/* ============================================
   Responsive - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-label {
        font-size: 16px;
    }

    .hero-content {
        padding: 80px 20px;
    }

    .why-zhafira {
        padding: 80px 0;
    }

    .why-card {
        padding: 40px 30px;
    }

    .location {
        padding: 80px 0;
    }

    .location-item {
        padding: 25px;
    }

    .location-item .distance {
        font-size: 32px;
    }

    .unit-highlight {
        padding: 80px 0;
    }

    .unit-content {
        gap: 60px;
    }

    .management {
        padding: 80px 0;
    }

    .management-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }

    .management-card {
        padding: 20px 15px;
    }

    .income-teaser {
        padding: 80px 0;
    }

    .income-value {
        font-size: 32px;
    }

    .legality {
        padding: 80px 0;
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery-item {
        flex: 0 0 33.333%;
    }

    .gallery-item img {
        aspect-ratio: 3/4;
    }

    .final-cta {
        padding: 100px 0;
    }

    .cta-content h2 {
        font-size: 36px;
    }

    .brand-statement {
        padding: 60px 0;
    }

    .brand-statement blockquote {
        font-size: 20px;
    }
}

/* ============================================
   Responsive - Small Mobile (320-480px)
   ============================================ */
@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    /* Section Spacing */
    .why-zhafira,
    .location,
    .unit-highlight,
    .management,
    .income-teaser,
    .legality,
    .gallery,
    .promo-section {
        padding: 36px 0;
    }

    .final-cta {
        padding: 40px 0;
    }

    /* Typography */
    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* Location Grid - 3 kolom compact */
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .location-item {
        padding: 12px 8px;
    }

    .location-item .distance {
        font-size: 20px;
    }

    .location-item .place {
        font-size: 12px;
    }

    /* Unit Highlight */
    .unit-image img {
        height: 220px;
    }

    .unit-specs li {
        padding: 14px 0;
        font-size: 14px;
    }

    /* Management Grid */
    .management-card {
        padding: 18px 12px;
    }

    .management-icon {
        width: 48px;
        height: 48px;
    }

    .management-icon svg {
        width: 32px;
        height: 32px;
    }

    .management-card h4 {
        font-size: 12px;
    }

    /* Income Teaser */
    .income-box {
        padding: 24px 16px;
    }

    .income-value {
        font-size: 22px;
    }

    .income-highlight {
        padding: 16px;
    }

    /* Promo Banner */
    .promo-banner {
        border-radius: 12px;
    }

    /* Final CTA & Buttons */
    .btn-cta {
        width: 100%;
    }

    .btn {
        padding: 12px 20px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    /* Gallery */
    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    /* Footer */
    .footer-brand img {
        height: 40px;
    }

    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    /* Floating WhatsApp */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    /* Leaflet Map */
    #villa-map {
        height: 280px;
    }

    /* Brand Statement */
    .brand-statement {
        padding: 30px 0;
    }

    .brand-statement blockquote {
        font-size: 15px;
    }
}

/* ============================================
   Animation - Fade In on Scroll
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Loading Optimization
   ============================================ */
img[loading="lazy"] {
    background-color: transparent;
}

.gallery-item img[loading="lazy"] {
    background-color: #f0f0f0;
}
