/*
Theme Name: Habita Elqui Theme
Theme URI: http://example.com/habita-elqui-theme
Author: Antigravity
Author URI: http://example.com
Description: A custom theme for Habita Elqui
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: habita-elqui-theme
*/

:root {
    /* Premium Color Palette - Refined */
    --primary-color: #1a252f;
    /* Deep Navy */
    --secondary-color: #c0a062;
    /* Gold/Copper */
    --secondary-hover: #a3864d;
    --accent-color: #27ae60;
    /* Nature Green */
    --text-color: #2c3e50;
    --text-light: #6c7a89;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-overlay: rgba(26, 37, 47, 0.7);
    --border-color: #e0e0e0;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Effects */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    font-weight: 300;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-block;
}

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

.section-padding {
    padding: 8rem 0;
}

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

.subtitle {
    display: block;
    font-family: var(--font-main);
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Header */
/* Header */
header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 47, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 4.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section (New) */
.intro-section {
    background-color: var(--white);
    position: relative;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Projects Section */
.projects {
    background-color: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--white);
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 0;
    padding-top: 65%;
    /* ~3:2 Aspect Ratio */
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    z-index: 1;
    text-align: center;
}

.project-location {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-main);
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Virtual Map Section */
.virtual-map-section {
    background-color: var(--white);
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1.5rem 2.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.map-content {
    display: none;
    animation: fadeIn 0.6s ease;
}

.map-content.active {
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 600px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.google.com/maps/about/images/mymaps/mymaps-desktop-1x.png') center/cover no-repeat;
    opacity: 0.4;
    filter: grayscale(100%);
}

.map-placeholder iframe {
    position: relative;
    z-index: 10;
}

.map-placeholder span {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About/Values Section */
.values-section {
    background-color: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.value-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.value-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.contact-info p:last-child {
    border-bottom: none;
}

.contact-info strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    background: #fcfcfc;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: var(--radius);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192, 160, 98, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #151e26;
    color: var(--white);
    padding: 6rem 0 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

footer p {
    opacity: 0.5;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* WhatsApp Widget (Retained) */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-tooltip {
    background-color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    animation: fadeIn 0.5s ease;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    transform-origin: bottom right;
}

.whatsapp-chat-popup.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-header {
    background-color: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-img {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('https://cdn-icons-png.flaticon.com/512/3135/3135715.png');
    background-size: cover;
}

.admin-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-family: var(--font-main);
}

.admin-info p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-message {
    background-color: white;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 10px;
}

.chat-message p {
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 5px;
    line-height: 1.4;
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-align: right;
}

.chat-footer {
    padding: 15px;
    background-color: #f0f0f0;
    text-align: center;
}

.whatsapp-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.whatsapp-send-btn:hover {
    background-color: #128c7e;
}

/* Mobile Responsiveness */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Typography & Layout Adjustments */
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .map-placeholder {
        height: 400px;
    }

    /* Fix Overflow Issues */
    .container {
        width: 100%;
        padding: 0 1.5rem;
        overflow-x: hidden;
    }

    .tabs-container {
        flex-direction: column;
        border-bottom: none;
        gap: 1rem;
    }

    .tab-btn {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }

    .tab-btn.active {
        border-bottom: 1px solid var(--secondary-color);
        background-color: var(--light-bg);
    }

    img,
    iframe {
        max-width: 100%;
    }
}