/*
 * Marmolar Main Styles
 * High-End, Luxury Dark Premium Design 
 */

:root {
    /* Luxury Dark Mode Palette - Champagne Gold */
    --color-primary: #D4AF37; /* Classic Gold */
    --color-primary-light: #F3E5AB; /* Champagne */
    --color-primary-dark: #996515; /* Golden Brown */
    
    --color-bg: #050505; /* True Black for depth */
    --color-dark: #121212; /* Dark Gray for elevation */
    --color-darker: #0a0a0a; /* Almost Black */
    --color-light: #ffffff; /* White */
    --color-text: #e0e0e0; /* Off-white for general text */
    --color-text-muted: #888888; /* Muted text */
    
    /* Golden Gradients */
    --gradient-gold: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-light);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.6rem;
}

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

a:hover {
    color: var(--color-primary-light);
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

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

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

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

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
    color: var(--color-bg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    z-index: -1;
    transition: opacity var(--transition-fast);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 0.95rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a img {
    height: 50px; 
    width: auto;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.2));
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.main-navigation li a {
    color: var(--color-text);
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.main-navigation li a:hover {
    color: var(--color-primary-light);
}

.main-navigation li a:hover::after {
    width: 100%;
}

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

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../marmo_front.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomOutHero 10s ease-out forwards;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Radial gradient clears the center to let the image shine, keeps edges dark for text */
    background: radial-gradient(circle, rgba(5,5,5,0.2) 20%, rgba(5,5,5,0.85) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: var(--spacing-md);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.hero-title {
    color: var(--color-light);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: #e8e8e8;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.hero-content .btn {
    margin: 0 1rem;
}

/* ==========================================================================
   Services Section (Glassmorphism)
   ========================================================================== */
.services-section .section-header h2 {
    color: var(--color-primary);
}

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

.service-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon,
.service-img {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.service-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin: 0 auto 2rem auto;
    border-radius: 2px;
    filter: grayscale(30%) contrast(110%);
    transition: filter 0.4s ease;
}

.service-card:hover .service-img {
    filter: grayscale(0%) contrast(120%);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--color-light);
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--color-text-muted);
}

/* ==========================================================================
   Materials Section
   ========================================================================== */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
    margin-top: 4rem;
}

.material-card {
    background: var(--color-dark);
    padding: 3rem 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.material-card:hover::before {
    opacity: 1;
}

.material-card:hover {
    transform: scale(1.03);
    border-color: rgba(197, 160, 89, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

.material-card h3 {
    color: var(--color-primary-light);
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.material-card p {
    color: var(--color-text);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.material-card.full-width {
    grid-column: 1 / -1;
    background: var(--gradient-gold);
}

.material-card.full-width h3 {
    color: var(--color-bg);
}

.material-card.full-width p {
    color: rgba(5,5,5, 0.8);
    font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--color-text);
}

.contact-details strong {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-details a {
    color: var(--color-light);
    font-weight: 300;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-dark);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* WhatsApp standard green, very clickable */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    padding: 5rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.widget-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 1rem;
    font-family: var(--font-heading);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--color-primary);
}

.footer-widget p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--color-primary-light);
    padding-left: 8px;
}

.site-info {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-bg);
    font-weight: 300;
}

.site-info p {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

@keyframes zoomOutHero {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1);
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Multi-Step Form Styles */
.multi-step-form {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator .step {
    position: relative;
    z-index: 2;
    background: var(--color-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--color-light);
    transition: all 0.3s ease;
}

.step-indicator .step.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.step-indicator .step.completed {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.step-panel {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.step-panel.active {
    display: block;
}

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

.step-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.step-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-card {
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.option-card:hover {
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-3px);
    border-color: rgba(197, 160, 89, 0.8);
}

.option-card.selected {
    border-color: var(--color-primary);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.option-card-icon {
    display: none;
}

.option-card-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-light);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.step-actions.center-btn {
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.alert-message {
    display: none;
    text-align: center;
    color: #ef5350;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5,5,5,0.98);
        padding: 2rem 0;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }

    .main-navigation.toggled .menu-1-container ul,
    .main-navigation.toggled ul,
    .main-navigation.toggled div > ul {
        display: flex !important;
    }

    .main-navigation li {
        text-align: center;
        padding: 0.8rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-content .btn {
        display: block;
        margin: 0 0 1rem 0;
        width: 100%;
    }

    .materials-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    /* Mobile Multi-Step Form Adjustments */
    .multi-step-form {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .step-indicator {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .step-indicator .step {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .option-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .option-card {
        padding: 1rem;
        min-height: 60px;
    }

    .option-card-title {
        font-size: 1rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
    }
}