/*
Theme Name: Elias Conservation & Restoration
Theme URI: https://eliasrestoration.com
Author: Elias Conservation & Restoration Inc.
Author URI: https://eliasrestoration.com
Description: Tema elegante y profesional para servicios de restauración y conservación de muebles. Incluye opciones completas de personalización desde el Customizer de WordPress.
Version: 1.1.6
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elias-restoration
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Classic & Elegant Color Palette */
    --background: hsl(40, 30%, 97%);
    --foreground: hsl(30, 10%, 15%);
    --card: hsl(40, 25%, 95%);
    --card-foreground: hsl(30, 10%, 15%);
    
    /* Deep forest green - primary brand color */
    --primary: hsl(150, 30%, 20%);
    --primary-foreground: hsl(40, 30%, 97%);
    
    /* Warm cream */
    --secondary: hsl(40, 35%, 92%);
    --secondary-foreground: hsl(30, 10%, 15%);
    
    /* Soft warm gray */
    --muted: hsl(35, 15%, 90%);
    --muted-foreground: hsl(30, 10%, 40%);
    
    /* Rich gold accent */
    --accent: hsl(42, 75%, 45%);
    --accent-foreground: hsl(30, 10%, 10%);
    
    --border: hsl(35, 20%, 85%);
    
    /* Custom tokens for this design */
    --gold: hsl(42, 75%, 45%);
    --cream: hsl(40, 35%, 96%);
    --forest: hsl(150, 30%, 20%);
    --warm-brown: hsl(30, 25%, 25%);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --section-padding: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.transparent {
    background: transparent;
}

.site-header.scrolled {
    background: rgba(31, 56, 47, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--primary-foreground);
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: var(--gold);
}

.main-navigation {
    display: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}


.nav-cta {
    background: var(--gold);
    color: var(--accent-foreground);
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-cta:hover {
    background: hsl(42, 75%, 40%);
    color: var(--accent-foreground);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-foreground);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.mobile-navigation a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-navigation .nav-cta {
    display: block;
    margin: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-texture {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+CjxyZWN0IHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgZmlsbD0iI2ZmZiI+PC9yZWN0Pgo8cGF0aCBkPSJNMzYgMzRoLTJ2LTRoMnYtMmgtMnYtMmgydi0yaC0ydi0yaC0ydjJoLTJ2LTJoLTJ2Mmgtdjh2Mmg0djJoMnY0aDJ2LTRoMnYtMnoiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iMC4wMyI+PC9wYXRoPgo8L3N2Zz4=');
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-divider-top {
    width: 6rem;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 2rem;
}

.hero-tagline {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 1rem;
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(195, 160, 85, 0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-divider-bottom {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(195, 160, 85, 0.5), transparent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--accent-foreground);
}

.btn-primary:hover {
    background: hsl(42, 75%, 40%);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--accent-foreground);
}

.btn-forest {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-forest:hover {
    background: hsl(150, 30%, 15%);
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 3rem);
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-title-light {
    color: var(--primary-foreground);
}

.section-divider {
    width: 4rem;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
}

.section-description {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    font-family: var(--font-body);
}

.section-description-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background: var(--cream);
}

.about-content {
    max-width: 64rem;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.about-text {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--foreground);
    font-weight: 600;
}

.about-stats {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-foreground);
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

.stat-icon.gold {
    background: var(--gold);
    color: var(--accent-foreground);
}

.stat-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.insurance-badge {
    margin: 3rem auto 0;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    background: rgba(31, 56, 47, 0.1);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.insurance-badge::before,
.insurance-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background: hsl(35, 85%, 55%);
    border-radius: 50%;
}

.insurance-badge::before {
    left: 0.75rem;
}

.insurance-badge::after {
    right: 0.75rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background: var(--background);
}

.services-grid {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(195, 160, 85, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(31, 56, 47, 0.1);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(195, 160, 85, 0.2);
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon svg {
    color: var(--gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.7;
}

.services-note {
    margin-top: 4rem;
    text-align: center;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background: var(--primary);
}

.gallery-carousel-wrapper {
    max-width: 72rem;
    margin: 0 auto;
    position: relative;
}

.gallery-carousel-viewport {
    overflow: hidden;
    cursor: grab;
    width: 100%;
}

.gallery-carousel-viewport:active {
    cursor: grabbing;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 1rem;
    will-change: transform;
}

.gallery-carousel-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .gallery-carousel-item {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

@media (min-width: 1024px) {
    .gallery-carousel-item {
        flex: 0 0 calc((100% - 2rem) / 3);
    }
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    border-radius: 0.125rem;
    border: 1px solid rgba(195, 160, 85, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

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

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

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

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    color: var(--primary);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 20;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-carousel-btn:hover {
    background: hsl(42, 75%, 40%);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--primary);
    stroke-width: 2.5;
}

.gallery-carousel-prev {
    left: -20px;
}

.gallery-carousel-next {
    right: -20px;
}

@media (max-width: 767px) {
    .gallery-carousel-prev {
        left: 0.5rem;
    }
    
    .gallery-carousel-next {
        right: 0.5rem;
    }
    
    .gallery-carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .gallery-carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background: var(--cream);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--gold);
    color: var(--gold);
}

.rating-badge span {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.25rem;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(195, 160, 85, 0.3);
}

.testimonial-card .stars {
    margin-bottom: 1rem;
}

.testimonial-card .stars svg {
    width: 1rem;
    height: 1rem;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: var(--background);
}

.contact-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(195, 160, 85, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-card .contact-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(31, 56, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: rgba(195, 160, 85, 0.2);
}

.contact-card .contact-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    color: var(--gold);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.7;
}

.contact-cta {
    margin-top: 4rem;
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary);
    padding: 3rem 0;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-foreground);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 4rem;
    height: 2px;
    background: rgba(195, 160, 85, 0.5);
    margin: 0 auto 1.5rem;
}

.footer-insurance {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-gold {
    color: var(--gold);
}

.bg-gold {
    background-color: var(--gold);
}

.text-forest {
    color: var(--forest);
}

.bg-forest {
    background-color: var(--forest);
}

.bg-cream {
    background-color: var(--cream);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
