/*
Theme Name: Vulcanizare24
Theme URI: https://vulcanizare.web-apps.online/
Author: EcoSoft
Description: Temă personalizată pentru Vulcanizare Mobilă Sibiu
Version: 1.1
Text Domain: vulcanizare24
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
    --bg-primary:    #FAFAF8;
    --bg-section:    #F5F0EB;
    --bg-card:       #FFFFFF;
    --bg-dark:       #2D2D2D;
    --accent:        #DC2626;
    --accent-dark:   #B91C1C;
    --accent-light:  rgba(220, 38, 38, 0.12);
    --text-primary:  #1C1C1C;
    --text-secondary:#6B7280;
    --white:         #ffffff;
    --border:        rgba(0, 0, 0, 0.08);
    --font-main:     'Inter', sans-serif;
    --transition:    0.3s ease;
    --radius:        8px;
    --radius-lg:     16px;
    --max-width:     1200px;
    --shadow:        0 4px 24px rgba(0, 0, 0, 0.1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===========================
   UTILITIES
=========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.accent {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    font-size: 1.05rem;
}

/* ===========================
   HEADER / NAV
=========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    padding: 1.4rem 0;
}

.site-header.scrolled {
    background-color: rgba(45, 45, 45, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-phone {
    background-color: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.3rem !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    transition: background-color var(--transition), transform var(--transition) !important;
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    background-color: var(--accent-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.open {
    display: block;
    opacity: 1;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background-color: var(--bg-dark);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(220, 38, 38, 0.25);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .footer-logo span {
    color: #F87171;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links .footer-col-label,
.footer-contact .footer-col-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a {
    color: #F87171;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-contact-item a:hover {
    color: #FCA5A5;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: #F87171;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #FCA5A5;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2.5rem;
        gap: 0.5rem;
        transition: right 0.35s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .nav-menu li:last-child {
        margin-top: auto;
        width: 100%;
    }

    .nav-phone {
        padding: 0.75rem 1.5rem !important;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .section-padding {
        padding: 3.5rem 0;
    }
}

/* ===========================
   SCROLL TO TOP
=========================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-dark);
}
