/* ============================================
   KARTARAYA GROUP - Company Profile
   Modern Property Website CSS
   ============================================ */

/* CSS Custom Properties */
:root {
    --primary: #166534;
    --primary-dark: #14532d;
    --primary-light: #22c55e;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    --accent: #d4a843;
    --accent-light: #e6c36a;

    --dark: #0f1a0f;
    --dark-800: #1a2e1a;
    --gray-50: #f8faf8;
    --gray-100: #f1f5f1;
    --gray-200: #e2e8e2;
    --gray-300: #c8d5c8;
    --gray-400: #94a894;
    --gray-500: #6b7f6b;
    --gray-600: #4a5c4a;
    --gray-700: #334033;
    --gray-800: #1f2b1f;
    --gray-900: #111a11;

    --white: #ffffff;
    --black: #000000;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ============================================
   PRELOADER — Animated House
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* House SVG Container */
.loader-house {
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(34, 197, 94, 0.3));
}

/* Staggered build animation for house parts */
.house-foundation {
    opacity: 0;
    animation: buildUp 0.3s ease forwards 0.1s;
}

.house-wall {
    opacity: 0;
    transform-origin: bottom center;
    animation: buildWall 0.4s ease forwards 0.35s;
}

.house-door {
    opacity: 0;
    animation: fadeInPart 0.3s ease forwards 0.7s;
}

.house-doorknob {
    opacity: 0;
    animation: fadeInPart 0.2s ease forwards 0.9s;
}

.house-window-l {
    opacity: 0;
    animation: fadeInPart 0.3s ease forwards 0.8s;
}

.house-window-r {
    opacity: 0;
    animation: fadeInPart 0.3s ease forwards 0.85s;
}

.house-roof {
    opacity: 0;
    transform-origin: bottom center;
    animation: buildRoof 0.4s ease forwards 0.5s;
}

.house-roof-accent {
    opacity: 0;
    animation: fadeInPart 0.3s ease forwards 0.65s;
}

.house-chimney {
    opacity: 0;
    transform-origin: bottom center;
    animation: buildUp 0.3s ease forwards 0.75s;
}

/* Smoke animation — loops */
.house-smoke {
    opacity: 0;
}

.house-smoke.s1 {
    animation: smokeRise 2s ease-in-out infinite 1.1s;
}

.house-smoke.s2 {
    animation: smokeRise 2s ease-in-out infinite 1.4s;
}

.house-smoke.s3 {
    animation: smokeRise 2s ease-in-out infinite 1.7s;
}

@keyframes buildUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buildWall {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes buildRoof {
    0% {
        opacity: 0;
        transform: scaleY(0) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

@keyframes fadeInPart {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes smokeRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    30% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-18px) scale(1.5);
    }
}

/* Loader text */
.loader-text {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInPart 0.4s ease forwards 1s;
}

.loader-karta {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 6px;
}

.loader-raya {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 6px;
}

.loader-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 14px;
    opacity: 0;
    animation: fadeInPart 0.4s ease forwards 1.2s;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInPart 0.3s ease forwards 1s;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 10px;
    animation: loading 1.8s ease-in-out forwards 0.2s;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    40% {
        width: 60%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-200);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-accent {
    color: var(--primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: var(--gray-700);
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
    color: var(--primary);
}

#navbar.scrolled .logo-karta,
#navbar.scrolled .logo-raya {
    color: var(--dark);
}

#navbar.scrolled .logo-raya {
    color: var(--primary);
}

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

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    position: relative;
}

.logo-karta {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo-raya {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    position: absolute;
    bottom: -4px;
    right: 0;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

#navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

.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 SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 26, 15, 0.85) 0%,
            rgba(22, 101, 52, 0.6) 50%,
            rgba(15, 26, 15, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--primary-light);
    font-style: italic;
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    right: 48px;
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary-light);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--white);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
}

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

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.exp-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   HOUSING SECTION
   ============================================ */
.housing {
    background: var(--gray-50);
}

.showcase-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    margin-bottom: 48px;
    aspect-ratio: 16/9;
    max-height: 550px;
}

.showcase-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    z-index: 3;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

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

.slider-dots .dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

/* Housing Features */
.housing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.hf-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.hf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

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

.hf-card:hover .hf-icon {
    background: var(--primary);
    color: var(--white);
}

.hf-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.hf-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Housing Types */
.types-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    color: var(--dark);
    margin-bottom: 36px;
}

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

.types-grid-single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.type-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.type-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.type-card-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.type-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-dark);
}

.type-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.type-card-featured .type-img {
    height: 280px;
}

.type-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.type-card:hover .type-img img {
    transform: scale(1.08);
}

.type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.type-card.featured .type-badge {
    background: var(--accent);
    color: var(--dark);
}

.type-content {
    padding: 24px;
}

.type-content h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.type-description {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.type-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.type-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.type-specs svg {
    color: var(--primary);
    flex-shrink: 0;
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--primary-100);
}

.feature-badge svg {
    width: 14px;
    height: 14px;
}

.type-price {
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
}

.price-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--white);
}

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

.service-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-100);
    line-height: 1;
    margin-bottom: 16px;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: var(--primary-200);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    background: var(--gray-50);
}

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

.why-content p {
    font-size: 1.02rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 2px;
}

.why-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.why-item p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0;
}

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

.why-img-grid img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    height: 350px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.why-img-grid img:first-child {
    margin-top: 40px;
}

.why-img-grid img:hover {
    transform: scale(1.03);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 101, 52, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: 3;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: 3;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 0 0 100px;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--gray-50);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   WHATSAPP FLOAT & BACK TO TOP
   ============================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: wa-bounce 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes wa-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.wa-float:hover {
    animation: none;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 100px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS (AOS-like with CSS + JS)
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-down"] {
    transform: translateY(-40px);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ============================================
   RESPONSIVE DESIGN — Mobile-First Approach
   ============================================ */

/* --- Tablet landscape & small desktop (1024px) --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

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

    .why-grid {
        gap: 48px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* --- Tablet portrait & large mobile (768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.72rem;
        letter-spacing: 2px;
        padding: 5px 14px;
    }

    /* Buttons — bigger touch targets */
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    /* Mobile Navigation — full redesign */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 48px 32px;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--gray-700);
        font-size: 1.15rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-md);
        transition: var(--transition-fast);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary);
        background: var(--primary-50);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    /* Mobile menu overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }

    /* Hero — optimized for mobile */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 120px 20px 48px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.8rem);
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 16px;
        margin-bottom: 24px;
    }

    .hero-actions {
        margin-bottom: 40px;
        gap: 12px;
    }

    .hero-stats {
        gap: 20px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px 24px;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .hero-scroll {
        display: none;
    }

    /* About — stack vertically */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        max-width: 100%;
    }

    .about-img-main img {
        height: 280px;
    }

    .about-img-accent {
        right: 0;
        bottom: -16px;
        width: 140px;
        height: 140px;
        border-width: 4px;
    }

    .about-experience-badge {
        width: 90px;
        height: 90px;
        top: -12px;
        right: -8px;
    }

    .exp-number {
        font-size: 1.5rem;
    }

    .exp-text {
        font-size: 0.55rem;
    }

    .about-features {
        gap: 16px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Housing — responsive slider */
    .showcase-main {
        border-radius: var(--radius-lg);
        margin-bottom: 32px;
        aspect-ratio: 4/3;
        max-height: 380px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: 12px;
    }

    .slider-btn.next {
        right: 12px;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .slider-dots .dot.active {
        width: 24px;
    }

    .housing-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hf-card {
        padding: 24px 16px;
    }

    .hf-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .hf-card h3 {
        font-size: 0.95rem;
    }

    .hf-card p {
        font-size: 0.82rem;
    }

    .types-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

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

    .types-grid-single {
        max-width: 100%;
    }

    .type-card-featured .type-img {
        height: 220px;
    }

    .type-content {
        padding: 20px;
    }

    .type-content h4 {
        font-size: 1.2rem;
    }

    .type-description {
        font-size: 0.88rem;
    }

    .type-specs {
        gap: 10px;
    }

    .type-specs span {
        font-size: 0.82rem;
    }

    /* Services — single column */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-number {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .service-icon svg {
        width: 36px;
        height: 36px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    /* Why Us — stack */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-img-grid {
        gap: 12px;
    }

    .why-img-grid img {
        height: 200px;
        border-radius: var(--radius-md);
    }

    .why-img-grid img:first-child {
        margin-top: 0;
    }

    .why-item {
        gap: 12px;
    }

    .why-check {
        width: 32px;
        height: 32px;
    }

    .why-check svg {
        width: 16px;
        height: 16px;
    }

    /* Gallery — 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        border-radius: var(--radius-sm);
    }

    /* Lightbox mobile */
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    /* Contact — stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .map-wrapper {
        height: 280px;
        border-radius: var(--radius-md);
    }

    /* CTA */
    .cta-section {
        padding: 0 0 64px;
    }

    .cta-card {
        padding: 36px 20px;
        border-radius: var(--radius-lg);
    }

    .cta-card h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .cta-card p {
        font-size: 0.92rem;
    }

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

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

    /* Footer mobile */
    .footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    /* Float buttons */
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .back-to-top {
        bottom: 20px;
        right: 80px;
        width: 40px;
        height: 40px;
    }
}

/* --- Small phone (480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 52px 0;
    }

    /* Hero optimized for small screens */
    .hero-content {
        padding: 110px 16px 36px;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 24px;
        line-height: 1.65;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 16px 16px;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-plus {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-divider {
        height: 30px;
    }

    /* About small */
    .about-img-main img {
        height: 220px;
    }

    .about-img-accent {
        width: 110px;
        height: 110px;
    }

    .about-experience-badge {
        width: 80px;
        height: 80px;
        top: -10px;
        right: -4px;
    }

    .exp-number {
        font-size: 1.3rem;
    }

    .exp-text {
        font-size: 0.5rem;
    }

    .about-text {
        font-size: 0.92rem;
    }

    .feature-item h4 {
        font-size: 0.92rem;
    }

    .feature-item p {
        font-size: 0.82rem;
    }

    /* Housing small */
    .showcase-main {
        aspect-ratio: 3/2;
        max-height: 280px;
        border-radius: var(--radius-md);
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

    .housing-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hf-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 18px 16px;
    }

    .hf-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .hf-card h3 {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .hf-card p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .types-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .type-card-featured .type-img {
        height: 180px;
    }

    .type-content {
        padding: 16px;
    }

    .type-content h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .type-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .type-specs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .type-specs span {
        font-size: 0.78rem;
        gap: 6px;
    }

    .type-specs svg {
        width: 16px;
        height: 16px;
    }

    .type-features {
        gap: 8px;
        margin-bottom: 16px;
    }

    .feature-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .type-price {
        margin-bottom: 14px;
        padding: 10px 0;
    }

    .price-label {
        font-size: 0.72rem;
    }

    .price-value {
        font-size: 1.05rem;
    }

    .type-content .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    /* Services small */
    .service-card {
        padding: 24px 20px;
    }

    .service-number {
        font-size: 2rem;
    }

    /* Gallery small */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gallery-item {
        border-radius: 4px;
    }

    /* Contact small */
    .contact-card {
        padding: 16px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-card h4 {
        font-size: 0.88rem;
    }

    .contact-card p {
        font-size: 0.82rem;
    }

    .map-wrapper {
        height: 240px;
    }

    /* CTA small */
    .cta-card {
        padding: 28px 16px;
    }

    .cta-card p {
        font-size: 0.88rem;
    }

    /* Footer small */
    .footer-social {
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    /* Fix float buttons */
    .wa-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .wa-float svg {
        width: 24px;
        height: 24px;
    }

    .back-to-top {
        bottom: 16px;
        right: 72px;
        width: 36px;
        height: 36px;
    }

    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Very small phone (360px) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.82rem;
    }

    .hero-stats {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .type-specs {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TOUCH-FRIENDLY: Larger tap areas on touch devices
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .gallery-overlay {
        display: none;
    }

    .gallery-item {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .hf-card:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .type-card:hover {
        transform: none;
    }

    .type-card:hover .type-img img {
        transform: none;
    }

    .why-img-grid img:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* ============================================
   SAFE AREA: Notch & gesture handling (iPhone etc.)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .wa-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .footer-bottom {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .nav-menu {
        padding-bottom: calc(48px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 80px 24px 32px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        display: none;
    }

    .hero-actions {
        margin-bottom: 20px;
    }
}

/* ============================================
   PERFORMANCE: Reduce motion for users who prefer it
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {

    #navbar,
    .wa-float,
    .back-to-top,
    .hero-scroll,
    .lightbox {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-bg {
        display: none;
    }

    .hero-content {
        color: var(--dark);
    }
}