/*
Theme Name: Habitaris
Theme URI: http://habitaris.pe
Author: Larico
Author URI: https://larico.dev
Description: A super simple theme that can be customized.
Version: 1.1
License: GNU General Public License
Text Domain: habitaris
*/

:root {
    --blue-brand: #1f325c;
    --blue-dark: #121e37;
    --blue-mid: #294178;
    --accent: #fce883;
    --accent-dark: #e6cd5c;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Kumbh Sans", sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.container {
    max-width: 90%;
    margin-inline: auto;
}

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

/* ---- HEADER ---- */
.main-header {
    position: sticky;
    top: 0;
    padding: 12px 0;
    z-index: 100;
    background: #fff;

    box-shadow: 1px 1px 10px rgba(0, 0, 0, .15);

    .nav-social-group {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        margin-left: 0.25rem;
    }

    .nav-center-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 200px;
    }

    @media (max-width: 767px) {



        .nav-depas-link {
            display: none;
        }

        .nav-social-group {
            display: none;
        }

        .nav-center-logo {
            max-width: 100px;

            img {
                height: auto;
            }
        }

        .btn-secondary {
            padding: 7px 6px;
            font-size: 0.7rem;
        }

    }

    @media (max-width: 1023px) {
        .nav-btn-proyectos {
            display: none;
        }
    }

    @media (min-width: 768px) {

        #main-nav .container {
            gap: 12px
        }
    }
}

/* ---- NAV ---- */
nav#main-nav {


    .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}



.nav-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;

    span {
        display: block;
        width: 30px;
        height: 3px;
        background: currentColor;
        border-radius: 2px;
        transition: all 0.2s;

        &:nth-child(2) {
            width: 20px;
            background-color: var(--accent-dark);
        }
    }

    &:hover {
        color: var(--blue-brand);
    }
}



.btn-blue {
    background: var(--blue-brand);
    color: #fff;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-blue:hover {
    background: var(--blue-dark);
}

.btn-outline {
    background: transparent;
    color: var(--blue-brand);
    padding: 0.45rem 1.3rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--blue-brand);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--blue-brand);
    color: #fff;
}

.btn-secondary {
    background: var(--accent);
    color: var(--text-main);
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--accent-dark);
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--blue-brand);
    transition: color 0.2s;
    text-decoration: none;
    padding: 4px;

    svg {
        width: 100%;
        height: 100%;
    }

    &:hover {
        color: var(--accent);
    }
}



.nav-depas-link {
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-depas-link:hover {
    color: var(--blue-brand);
    border-bottom-color: var(--blue-brand);
}

/* ---- HAMBURGER MENU OVERLAY ---- */
#menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.38s, opacity 0s linear 0.38s;
}

#menu-overlay.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.menu-left {
    width: 65%;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(.77, 0, .175, 1);
    overflow: auto;
}

#menu-overlay.open .menu-left {
    transform: translateX(0);
}

.menu-right {
    flex: 1;
    background-color: #c8d8e8;
    background-image: url('/wp-content/themes/habitaris/images/hamburger-menu-bg.jpg');
    background-size: cover;
    background-position: center top;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.77, 0, .175, 1);
}

#menu-overlay.open .menu-right {
    transform: translateX(0);
}

/* Menu header row */
.menu-header {
    display: flex;
    align-items: center;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid #f0f3f7;
    gap: 1rem;
}

.menu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue-brand);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Nav items in menu */
.menu-nav {
    padding: 1.5rem 2.5rem;
    flex: 1;
}

.menu-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 400;
    color: #1f2937;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
    transition: color 0.18s;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.menu-nav-item:last-child {
    border-bottom: none;
}

.menu-nav-item:hover {
    color: var(--blue-brand);
}

.menu-nav-chevron {
    color: var(--blue-brand);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Menu footer area */
.menu-footer {
    padding: 1.5rem 2.5rem 2rem;
    border-top: 1px solid #f0f3f7;
}

.menu-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-top: 1.2rem;
}

.contact-block-label {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.contact-block-value {
    color: #374151;
    font-weight: 400;
    line-height: 1.55;
}

.menu-social-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.menu-social-label {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-brand);
}

.menu-social-icons {
    display: flex;
    gap: 0.6rem;
}

.menu-social-icons a {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    transition: color 0.18s;
}

.menu-social-icons a:hover {
    color: var(--blue-brand);
}

/* Dot pattern decoration */
.dot-pattern {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 260px;
    background-image: radial-gradient(circle, #bfcfe0 1.4px, transparent 1.4px);
    background-size: 13px 13px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 420px;
    background: var(--blue-dark);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;

    @media (min-width: 768px) {
        min-height: 500px;
    }
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(31, 50, 92, 0.5) 0%, rgba(18, 30, 55, 0.8) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: #00000069;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.2rem 1.2rem;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-title {

    margin-top: 0rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--blue-brand);
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-hero-primary:hover {
    background: var(--blue-dark);
}

.btn-hero-outline {
    background: #00000069;
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid #fff;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: var(--accent);
    color: var(--text-main);
    border-color: var(--accent);
}

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 2;
}

.hero-dot {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 2;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow.left {
    left: 1.5rem;
}

.hero-arrow.right {
    right: 1.5rem;
}

/* ---- PROJECTS SECTION ---- */
.section-title {

    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.section-icon {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--blue-brand);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0 8px 32px rgba(31, 50, 92, 0.15);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 300px;
    background: #dde4f0;
    overflow: hidden;

    @media (min-width: 1330px) {

        min-height: 450px;
    }
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.card-badge-district {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--blue-brand);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.card-badge-status {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.status-en-contruccion {
    background-color: var(--accent);
}

.status-entrgado {
    background-color: var(--blue-brand);
    color: #fff;
}

.status-construccion {
    background: #f59e0b;
    color: #fff;
}

.status-entrega {
    background: #10b981;
    color: #fff;
}

.status-entregado {
    background: #6b7280;
    color: #fff;
}

.card-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    letter-spacing: 0.03em;
}

.card-address {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.spec-icon {
    color: var(--blue-brand);
    margin-right: 0.5rem;
    width: 34px;
    height: 34px;
}

.spec-label {
    font-size: 0.65rem;
    color: #6e6e6e;
    display: block;
    font-weight: bold;
}

.spec-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.8rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.card-price {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-price strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

/* ---- BRAND SECTION ---- */
.brand-section {
    background: #f7f9fc;
    padding: 5rem 1.5rem;
}

.brand-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(31, 50, 92, 0.1);
    background-color: #fff;
}

.brand-image-wrapper {
    width: 46%;
    flex-shrink: 0;
    overflow: hidden;
    height: 320px;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-content {
    padding: 2.5rem 3rem;
    background: #fff;
    flex: 1;
}

.brand-subtitle {
    letter-spacing: 0.1em;
    color: var(--blue-brand);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.brand-divider {
    width: 48px;
    height: 2px;
    background: var(--blue-brand);
    margin-bottom: 0.75rem;
}

.brand-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: #1a1a2e;
    margin: 0;
}

.brand-description {
    font-size: 1.15rem;
    color: var(--blue-brand);
    font-weight: 600;
    margin: 0.3rem 0 1.5rem;
}


/* ---- FOOTER ---- */
footer {
    background: var(--blue-dark);
    color: #c8d5ec;
    padding: 3rem 0 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto repeat(4, 1fr) auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    align-items: start;
}

.footer-logo {
    max-width: 200px;

}

.footer-col-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.footer-col-value {
    font-size: 0.85rem;
    color: #e2e8f0;

    a {
        color: inherit;

        &:hover {
            color: var(--accent);
        }
    }
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.footer-social-icons {
    display: flex;
    gap: 0.6rem;

    a {
        display: inline-block;
        color: inherit;
        padding: 5px;

        &:hover {
            color: var(--accent);
        }
    }

    svg {
        width: 22px;
        height: 22px;

    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    color: #94a3b8;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;

    &:hover {
        color: var(--accent);
    }
}


.footer-bottom {
    max-width: 1200px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-disclaimer {
    max-width: 1200px;
    margin: 1rem auto 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
}

/* ---- Dot pattern in projects bg ---- */
.dot-pattern-section {
    position: absolute;
    width: 120px;
    height: 200px;
    background-image: radial-gradient(circle, #c8d5e8 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.5;
    pointer-events: none;
}

/* Scroll to top */
#scroll-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--accent);
    opacity: 0.5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 50;
    transition: all 0.3s ease-in-out;

    &:hover {
        opacity: 1;
    }

    @media (max-width: 1280px) {
        display: none !important;
    }
}



@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-section {
        flex-direction: column;
    }

    .brand-image {
        width: 100%;
        min-height: 220px;
    }

    .menu-right {
        display: none;
    }

    .menu-left {
        width: 100%;
    }
}