/* 
   Rexformas.es - Premium CSS Stylesheet
   Designed for Rexformas Valencia - Modern, fast, and highly-optimized for local conversions.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-dark: #070B13;
    --bg-card: #0F172A;
    --bg-card-hover: #1E293B;
    --primary: #FF5722;
    --primary-hover: #E64A19;
    --primary-light: rgba(255, 87, 34, 0.1);
    --primary-glow: rgba(255, 87, 34, 0.35);
    --accent: #F59E0B;
    --accent-light: rgba(245, 158, 11, 0.1);
    --text-white: #FFFFFF;
    --text-light: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.12);
    --border-focus: rgba(255, 87, 34, 0.5);
    
    --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(255, 87, 34, 0.2);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

input, select, textarea, button {
    font-family: inherit;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
}

/* --- LOGO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

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

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(7, 11, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

header:not(.scrolled) {
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-white);
}

.phone-link svg {
    color: var(--primary);
    animation: pulse 2s infinite;
}

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

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 87, 34, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.trust-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 87, 34, 0.2);
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
}

.hero-image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(8px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.badge-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.badge-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- SECTION TYPOGRAPHY --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.2);
    box-shadow: var(--shadow-premium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 28px;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--text-white);
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-features li svg {
    color: var(--primary);
}

/* --- PRICE CALCULATOR SECTION --- */
.calculator-section {
    background: radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.05) 0%, transparent 50%);
}

.calc-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.calc-form {
    padding: 50px;
}

.calc-results {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-left: 1px solid var(--border-color);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-group {
    margin-bottom: 35px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

/* Custom Card Radios */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.radio-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.radio-card-content svg {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.radio-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.radio-card:hover {
    border-color: rgba(255, 87, 34, 0.4);
    background-color: rgba(255, 87, 34, 0.02);
}

.radio-card input:checked + .radio-card-content svg {
    color: var(--primary);
    transform: scale(1.1);
}

.radio-card input:checked ~ .radio-card-content .radio-card-title {
    color: var(--text-white);
}

.radio-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.15);
}

/* Area Slider */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slider-val-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-value {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-dark);
    outline: none;
    border: 1px solid var(--border-color);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.checkbox-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    transform: scale(0);
    transition: var(--transition-fast);
}

.checkbox-card input:checked + .checkbox-custom {
    border-color: var(--primary);
}

.checkbox-card input:checked + .checkbox-custom::after {
    transform: scale(1);
}

.checkbox-card:hover {
    border-color: rgba(255, 87, 34, 0.3);
}

.checkbox-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.checkbox-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Results Display */
.results-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.price-display {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(7, 11, 19, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 87, 34, 0.05) 0%, transparent 70%);
}

.price-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.price-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.price-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breakdown-row span:last-child {
    font-weight: 600;
    color: var(--text-white);
}

.breakdown-row.total-row {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 1rem;
}

.breakdown-row.total-row span:last-child {
    color: var(--primary);
}

.calc-cta-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* --- MAINTENANCE SECTION --- */
.maintenance-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.maintenance-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.maintenance-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tab-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.maint-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.maint-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.maint-checklist li svg {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.maint-checklist li strong {
    color: var(--text-white);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.maintenance-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    height: 480px;
}

.maintenance-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 19, 0.9) 0%, transparent 60%);
    z-index: 2;
}

.maintenance-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maint-overlay-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.overlay-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.overlay-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- CONTACT & LEAD CAPTURE SECTION --- */
.contact-section {
    background: radial-gradient(circle at 10% 80%, rgba(255, 87, 34, 0.06) 0%, transparent 40%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.method-card:hover {
    border-color: rgba(255, 87, 34, 0.25);
    transform: translateX(5px);
}

.method-icon {
    width: 52px;
    height: 52px;
    background-color: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.method-details h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.method-details a, .method-details p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

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

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.contact-form-container h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.contact-form-container p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-input {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.form-consent input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.form-consent label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-consent a {
    color: var(--primary);
}

.form-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- FAQS & TRUST SECTION --- */
.faq-section {
    background-color: var(--bg-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    padding: 0 24px;
}

.faq-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
}

.faq-item.active {
    border-color: rgba(255, 87, 34, 0.25);
    background-color: var(--bg-card-hover);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-body {
    max-height: 1000px; /* high value for open */
    transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
}

/* --- TESTIMONIALS SECTION --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    position: relative;
}

.stars {
    display: flex;
    gap: 4px;
    color: var(--accent);
    margin-bottom: 20px;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    border: 2px solid rgba(255, 87, 34, 0.2);
}

.reviewer-name h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.reviewer-name p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    background-color: #03060a;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-contact li svg {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* --- FLOATING & INTERACTIVE COMPONENTS --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
    animation: bounce 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.call-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: none; /* Shown on mobile only */
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    z-index: 999;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.call-float:hover {
    transform: scale(1.1);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid, 
    .calc-container, 
    .maintenance-grid, 
    .contact-wrapper,
    .featured-video-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calc-results {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 40px;
    }
    
    .hero-image-wrapper img {
        height: 400px;
    }
    
    .maintenance-img-container {
        height: 350px;
        order: -1; /* Image first on mobile */
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header:not(.scrolled) {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px 40px;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    nav.open {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }
    
    .header-cta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }
    
    .header-cta .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calc-form {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .maint-checklist {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .call-float {
        display: flex; /* Show floating call on mobile */
    }
    
    .whatsapp-float {
        bottom: 100px; /* Push WhatsApp up to avoid blocking call button */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-filters {
        gap: 8px;
    }
    
    .gallery-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background-color: var(--bg-dark);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.gallery-filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-filter-btn:hover {
    color: var(--text-white);
    border-color: rgba(255, 87, 34, 0.4);
    background-color: var(--primary-light);
}

.gallery-filter-btn.active {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    animation: fadeIn 0.4s ease forwards;
}

.gallery-item.hidden {
    display: none !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 19, 0.95) 0%, rgba(7, 11, 19, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0.9;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    align-self: flex-start;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.gallery-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.gallery-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Featured Video Project */
.featured-video-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.video-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background-color: #03060a;
    aspect-ratio: 16/9;
    width: 100%;
}

.video-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    z-index: 3;
}

.video-play-btn svg {
    margin-left: 4px;
    transition: var(--transition-fast);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-hover);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.6);
}

.video-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    background-color: rgba(7, 11, 19, 0.7);
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    backdrop-filter: blur(4px);
    z-index: 2;
    text-align: center;
}
