/* 
   Los Weros Fencing - Professional Style System
   Theme: Rugged Professional (Green, Gold, Wood)
*/

:root {
    --primary: #1a472a; /* Deep Forest Green */
    --secondary: #c5a059; /* Classic Gold */
    --accent: #2d5a27;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Header & Nav */
header {
    background: white;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Removed transparent header classes as per user request */

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

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.hero {
    height: 90vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero_fence_texas.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for premium feel */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 4px 6px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
}


/* Premium Layout Helpers */
.glass-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 70px rgba(26, 71, 42, 0.1);
    border-color: var(--secondary);
}

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

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Badge Style */
.badge-gold {
    display: inline-block;
    background: rgba(197, 160, 89, 0.15);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* Section Transitions */
.section-curve {
    position: relative;
    background: #fbfbfb;
}

.section-curve::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fbfbfb;
    border-radius: 50% 50% 0 0;
}
section {
    padding: 5rem 1.5rem;
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Ensure these sections are always edge-to-edge */
.hero, .page-header, footer, nav-container {
    max-width: none !important;
}

.section-title, .services-grid, .footer-container, .about-content, .nosotros-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.section-title h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}


/* Modern Contact Form Styling */
.contact-container {
    max-width: 1100px;
    margin: -100px auto 100px; /* Overlap with hero */
    background: white;
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
    width: calc(100% - 20px);
}

.contact-info-card {
    background: #fdfaf5;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(184, 153, 94, 0.2);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 10px 20px rgba(184, 153, 94, 0.1);
}

.contact-icon-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.3);
}

.btn-send {
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-send:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(184, 153, 94, 0.4);
}


/* Sticky Call Floating Button (Mobile Focused) */
.floating-call-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #c5a059, #d4af37);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.6);
    z-index: 2000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseCall 2s infinite;
}

.floating-call-fab:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.8);
}

@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* Nav Call Button - Refined & Integrated */
.nav-call-btn {
    background: linear-gradient(135deg, var(--secondary), #d4af37);
    color: white !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.nav-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.5);
    filter: brightness(1.1);
}

.nav-call-btn i {
    font-size: 0.9rem;
}
.page-header {
    width: 100%;
    height: 48vh;
    min-height: 350px;
    background: linear-gradient(rgba(10, 33, 19, 0.8), rgba(10, 33, 19, 0.4)), url('images/hero_fence_texas.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: inset 0 -40px 100px rgba(0,0,0,0.5);
    margin-bottom: 4rem;
    overflow-x: hidden;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0px;
    line-height: 1;
    text-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.page-header .accent-line {
    width: 100px;
    height: 6px;
    background: var(--secondary);
    margin: 1.5rem auto;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.page-header p {
    font-size: 1.25rem;
    max-width: 800px;
    opacity: 0.95;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

/* Language Toggle */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(0,0,0,0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-switch span.active {
    color: var(--secondary);
}

[data-lang="es"] .en-text,
[data-lang="en"] .es-text {
    display: none !important;
}

/* About Page Specifics */
.about-story {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1.1;
}

.about-text .highlight {
    color: var(--secondary);
}

.about-text p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.about-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.about-feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.about-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 71, 42, 0.1);
    border-color: var(--secondary);
}

.about-feature-card .icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(26, 71, 42, 0.2);
}

.about-feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.about-feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.8rem 1rem !important;
    }

    .logo-text {
        font-size: 1.1rem !important;
        flex-shrink: 1;
    }

    .logo-text img {
        height: 35px !important;
    }

    .mobile-nav-toggle {
        display: block !important;
        z-index: 1002;
    }

    nav {
        display: block;
    }

    nav ul {
        display: flex; /* Keep flex but column */
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: none;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1001;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 1rem 0 !important;
    }

    nav ul li:last-child {
        margin-left: 0 !important; /* Reset phone button margin */
        padding: 0 2rem;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.5rem;
    }

    nav ul.active {
        right: 0;
    }

    header {
        background: white !important;
        position: fixed !important;
    }

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

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

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

    .logo-text img {
        height: 35px !important;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
        margin-top: -30px;
        width: 100%;
        border-radius: 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .floating-call-fab {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        right: 20px;
        bottom: 20px;
    }

    .floating-whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        right: 20px;
        bottom: 85px;
    }
}

/* Ensure images and videos don't overflow */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* Fix for horizontal scroll issues */
.nav-container, section, .footer-container {
    width: 100%;
    overflow-x: hidden;
}

/* Floating FAB Buttons */
.floating-whatsapp-fab {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
}

/* Footer Polishing */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Global Overflow Fix */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

* {
    max-width: 100vw;
    box-sizing: border-box;
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 3rem;
    background: var(--primary);
    color: white;
}

/* Shared Special Sections */
.about-stats-section {
    background: #fdfaf5;
    padding: 5rem 1.5rem 8rem;
}

.service-area-section {
    background: #f0f0f0;
    border-radius: 30px;
    margin-bottom: 5rem;
    padding: 4rem 2rem;
}

/* Final Mobile Polish */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: 70vh;
        padding-top: 100px;
    }

    .page-header {
        background-attachment: scroll;
        width: 100%;
        margin-left: 0;
        height: auto;
        padding: 6rem 1.5rem;
    }
    
    .about-stats-section {
        padding: 3rem 1rem 5rem;
    }
    
    .service-area-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
        border-radius: 20px;
    }
}
