/* ===================================
   Homex AVM - Modern Static Website
   Version: 1.0.0
   Colors: Copper (#B87333) & Black (#000000)
   =================================== */

/* CSS Variables for Easy Theming */
:root {
    --copper: #B87333;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --copper-light: #D4A574;
    --copper-dark: #8B5A2B;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(184, 115, 51, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(184, 115, 51, 0.2);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    opacity: 0.5;
}

.navbar {
    padding: 1.2rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--copper);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition);
}

.logo:hover::before {
    opacity: 1;
}

.logo-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(184, 115, 51, 0.3));
    flex-shrink: 0;
}

.logo:hover .logo-image {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 4px 12px rgba(184, 115, 51, 0.5));
}

.logo-text {
    color: var(--white);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--copper);
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--copper);
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.3);
}

.nav-link.active::after {
    width: 70%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(184, 115, 51, 0.2);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--copper);
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(184, 115, 51, 0.5);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--copper-dark) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="50" fill="rgba(184,115,51,0.1)"/><circle cx="900" cy="400" r="80" fill="rgba(184,115,51,0.1)"/><circle cx="1100" cy="150" r="60" fill="rgba(184,115,51,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--copper-light);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4);
}

.btn-primary:hover {
    background: var(--copper-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.6);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--copper-light);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition);
}

.hero-scroll:hover {
    color: var(--copper);
}

.scroll-arrow {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--copper);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--copper);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--dark-gray);
    margin: 0;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid .product-card {
    width: 100%;
    max-width: 350px;
}

.product-card-centered {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 350px !important;
}

.product-card {
    background: var(--light-gray);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--copper);
    box-shadow: 0 10px 30px var(--shadow-hover);
    background: var(--white);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.product-title {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--dark-gray);
    line-height: 1.7;
}

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

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--copper);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

.contact-card p strong {
    color: var(--black);
    font-weight: 600;
}

.contact-link {
    color: var(--copper);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--copper-dark);
    text-decoration: underline;
}

.contact-person {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.contact-person strong {
    color: var(--copper);
    font-weight: 600;
}

.contact-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--copper-light);
    font-size: 0.95rem;
}

.footer-social h4 {
    color: var(--copper);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--copper);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(184, 115, 51, 0.3);
}

.social-link:hover {
    background: var(--copper-light);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(184, 115, 51, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 115, 51, 0.3);
}

.footer-bottom p {
    color: var(--copper-light);
    font-size: 0.9rem;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--copper);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--copper-light);
    transform: translateY(-5px);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-wrapper {
        position: relative;
    }

    .logo {
        padding: 0.25rem 0.5rem;
        gap: 0.5rem;
    }

    .logo-image {
        height: 38px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0.3s;
        border-bottom: 2px solid rgba(184, 115, 51, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        border-radius: 0 0 12px 12px;
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        padding: 1.5rem 1rem;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0s;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        text-align: center;
        width: 100%;
    }

    .nav-link::before,
    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Tablet */
@media (max-width: 600px) {
    .logo {
        padding: 0.2rem 0.3rem;
        gap: 0.4rem;
    }

    .logo-image {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .menu-toggle {
        padding: 8px;
    }

    .menu-toggle span {
        width: 22px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .logo {
        padding: 0.15rem 0.2rem;
        gap: 0.3rem;
    }

    .logo-image {
        height: 28px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .menu-toggle {
        padding: 6px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        gap: 4px;
    }

    .nav-menu {
        top: calc(100% + 0.8rem);
        padding: 1rem;
    }

    .nav-link {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .products-grid,
    .about-features,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll,
    .back-to-top,
    .menu-toggle {
        display: none;
    }

    body {
        color: var(--black);
    }
}
