/* =========================================
   Detailing Mobil — styles.css
   Theme: CSS Custom Properties + System Fonts
   ========================================= */

:root {
    /* Culori principale */
    --primary: #0066cc;
    --primary-dark: #005bb5;
    --accent: #ff6600;
    --accent-dark: #cc5200;
    --success: #28a745;
    --danger: #dc3545;
    --gray-dark: #333;
    --gray: #555;
    --gray-light: #999;
    --gray-bg: #f4f4f4;
    --border: #ddd;
    --border-light: #ccc;

    /* Layout */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,.2);

    /* Font */
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* General Reset & Basics */
html {
    font-size: 16px; /* baseline for scaling */
}

/* Global Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-size: calc(1.5rem + 1vw);
}

p, label {
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: #ff6600; /* Orange */
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #e65c00; /* Darker shade for hover effect */
    transform: translateY(-2px); /* Subtle upward animation */
}

/* Links & Navigation */
header a, nav a, .nav-menu a {
    color: #fff; /* Changed from #0066cc to white */
    text-decoration: none;
    font-weight: bold;
}

/* Starter Prices Section */
.starter-prices-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.starter-prices-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.starter-prices-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Package Card */
.package-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.package-card h3 {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 1.5rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.package-card .btn-primary {
    padding: 8px 15px;
    background: #ff6600;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.package-card .btn-primary:hover {
    background: #cc5200;
}

/* Call Us Card Specific Styling */
.call-us-card {
    background-color: #ffe5cc; /* Light orange background */
    border: 1px solid #ffcc99; /* Orange border */
}

.call-us-card h3 {
    color: #cc6600; /* Darker orange for emphasis */
}

.call-us-card .price {
    color: #cc6600;
}

/* Carpet Pricing and Calculator Container */
.carpet-calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

/* Carpet Pricing */
.carpet-pricing {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carpet-pricing .sub-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.carpet-pricing .carpet-pricing-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.carpet-pricing .carpet-pricing-list li {
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    color: #555;
}

.carpet-pricing .carpet-pricing-list li:last-child {
    border-bottom: none;
}

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

/* Carpet Area Calculator */
.carpet-calculator {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carpet-calculator .sub-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.carpet-calculator form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carpet-calculator .form-group {
    display: flex;
    flex-direction: column;
}

.carpet-calculator label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.carpet-calculator input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.carpet-calculator button.btn-primary {
    padding: 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.carpet-calculator button.btn-primary:hover {
    background: #005bb5;
}

.calculator-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
    color: #0066cc;
    font-weight: bold;
}

/* =========================================
   Calculator Preț — CARD EVIDENȚIAT (featured)
   Background accent, badge, border evident
   ========================================= */
.carpet-calculator--featured {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    border: 2px solid #ff9800;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
    position: relative;
}

.carpet-calculator--featured .sub-section-title {
    color: #e65100;
}

.carpet-calculator--featured .calculator-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: center;
}

.carpet-calculator--featured .btn-primary {
    background: #ff9800;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 12px 24px;
}

.carpet-calculator--featured .btn-primary:hover {
    background: #e65100;
}

.carpet-calculator--featured .calculator-result {
    font-size: 1.4rem;
    color: #e65100;
    font-weight: bold;
    margin-top: 18px;
}

/* Dark mode pentru calculator featured */
[data-theme="dark"] .carpet-calculator--featured {
    background: linear-gradient(135deg, #2a1a08 0%, #1f1406 100%);
    border-color: #ff9800;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.12);
}

[data-theme="dark"] .carpet-calculator--featured .sub-section-title {
    color: #ff9800;
}

[data-theme="dark"] .carpet-calculator--featured .calculator-result {
    color: #ff9800;
}

[data-theme="dark"] .carpet-calculator--featured .calculator-badge {
    background: linear-gradient(135deg, #e65100, #bf360c);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .starter-prices-section {
        padding: 40px 10px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .package-card h3 {
        font-size: 1rem;
    }
    
    .package-card .price {
        font-size: 1.2rem;
    }
    
    .carpet-pricing, .carpet-calculator {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .package-card h3 {
        font-size: 0.9rem;
    }
    
    .package-card .price {
        font-size: 1rem;
    }
    
    .carpet-pricing .sub-section-title,
    .carpet-calculator .sub-section-title {
        font-size: 1.2rem;
    }
    
    .carpet-calculator {
        padding: 15px;
    }
}

/* Header, Nav, and Hero */
.main-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
}

.main-header .logo {
    font-size: 1.5rem;
    flex: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-menu a.btn-cta,
.nav-menu a.btn-primary {
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a.btn-primary {
    background: #ff6600;
    color: #fff;
    transition: background-color 0.3s ease;
}

.nav-menu a.btn-primary:hover {
    background: #cc5200;
}

.nav-menu a.btn-cta {
    background: #ff6600;
    color: white;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #ddd;
    min-width: 200px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu .dropdown-menu li {
    padding: 10px 20px;
    white-space: nowrap;
}

.nav-menu .dropdown-menu li a:hover {
    color: #0066cc;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Buttons & Inputs */
button,
input[type="submit"] {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background: #0066cc;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: #005bb5;
}

/* Button Outline Variant */
a.btn-outline {
    background: transparent;
    color: #ff6600;
    border: 2px solid #ff6600;
    padding: 10px 23px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a.btn-outline:hover {
    background: #ff6600;
    color: #fff;
}

/* Form Inputs */
input[type="text"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    background: url('images/hero-cleaning.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* Services Section Styling */
.services-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.services-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #0066cc;
}

/* Grid Layouts */
.package-grid,
.services-grid,
.services-list {
    display: grid;
    gap: 20px;
    margin: 20px auto;
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
}

.service-card,
.service-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 250px;
}

.service-card:hover,
.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-card img,
.service-item img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 8px;
}

.service-card h4,
.service-item h4 {
    font-size: 1.5rem;
    color: #0066cc;
    margin: 10px 0;
}

.service-card p,
.service-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.service-item label {
    display: block;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.service-item input[type="radio"],
.service-item input[type="checkbox"] {
    margin-right: 10px;
}

.service-item input[type="radio"]:checked + span,
.service-item input[type="checkbox"]:checked + span {
    color: #ff6600;
}

/* Buttons */
.review-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.review-btn:hover {
    background-color: #005bb5;
}

/* Forms */
.booking-form {
    background: #f9f9f9; 
    padding: 20px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    max-width: 500px; 
    margin: 20px auto;
}

.confirmation {
    background:#d4edda; 
    padding:20px; 
    border-radius:8px; 
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

/* Testimonials & Footer */
.testimonials-section {
    background: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.testimonial {
    font-size: 1.2rem;
    color: #333;
    margin: 20px auto;
    max-width: 700px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.main-footer a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #cc5200;
    text-decoration: underline;
}

.main-footer nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-footer nav ul li {
    margin: 0;
    padding: 0;
}

.main-footer nav ul li a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-footer nav ul li a:hover {
    color: #cc5200;
    text-decoration: underline;
}

/* Services Section Styling */
.services-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #0066cc;
}

/* Dropdown Menu */
.nav-menu .dropdown-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: block;
}

/* Step Wizard Styles */
.step-wizard .step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.step-wizard.step-1 .step.calendar-step,
.step-wizard.step-2 .step.times-step,
.step-wizard.step-3 .step.form-step {
    display: block;
    opacity: 1;
    position: relative;
}

/* Back Buttons */
.back-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

/* Time Slots */
.time-slot {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.time-slot.available {
    background-color: #28a745;
    color: #fff;
}

.time-slot.available:hover {
    background-color: #218838;
}

.time-slot.booked {
    background-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.calendar-grid .day-header,
.calendar-grid .disabled,
.calendar-grid .calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.calendar-grid .day-header {
    font-weight: bold;
    background-color: #f1f1f1;
}

.calendar-grid .calendar-day:hover {
    background-color: #e2e6ea;
    cursor: pointer;
}

.calendar-grid .today {
    border: 2px solid #007bff;
}

.calendar-grid .selected-date {
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
}

/* Responsive Calendar */
@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 30px);
        gap: 2px;
    }

    .calendar-grid .day-header,
    .calendar-grid .calendar-day,
    .calendar-grid .disabled {
        padding: 5px;
        font-size: 0.8rem;
    }

    .time-slot.available,
    .time-slot.booked {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .step-wizard {
        max-width: 100%;
    }

    .calendar-container, .times-step, .form-step {
        width: 100%;
    }
}

/* Prețuri orientative - disclaimer */
.price-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffa000;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}
.price-disclaimer p {
    margin: 0;
}
.price-disclaimer strong {
    color: #e65100;
}

/* =========================================
   Sticky Call Now — mobil (nice-to-have)
   Apare doar pe ecrane mici, fixat jos
   ========================================= */
.sticky-call {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--success, #28a745);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
    transition: background-color .3s ease;
}
.sticky-call:hover {
    background: #218838;
}
.sticky-call::before {
    content: '📞 ';
}
@media (max-width: 768px) {
    .sticky-call {
        display: block;
    }
    /* Facem loc pentru bara fixă de jos */
    body {
        padding-bottom: 50px;
    }
}

/* =========================================
   DARK MODE — doar CSS variables + [data-theme="dark"]
   Zero framework. Salvat în localStorage.
   ========================================= */
[data-theme="dark"] {
    /* Dark palette */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #aaa;
    --text-muted: #777;
    --border-dark: #333;
    --border-light-dark: #444;
    --shadow-dark: 0 2px 5px rgba(0,0,0,.4);

    /* Override CSS variables for dark mode */
    --gray-dark: #e0e0e0;
    --gray: #aaa;
    --gray-light: #777;
    --gray-bg: #1a1a1a;
    --border: #333;
    --border-light: #444;
    --shadow-sm: 0 2px 5px rgba(0,0,0,.4);
    --shadow-md: 0 4px 15px rgba(0,0,0,.5);
}

[data-theme="dark"] body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="dark"] .main-header {
    background-color: #0a1628;
}

[data-theme="dark"] .main-header .dropdown-menu {
    background-color: #1a1a2e;
    border-color: var(--border-dark);
}

[data-theme="dark"] .main-header .dropdown-menu li a {
    color: var(--text-primary);
}

[data-theme="dark"] .main-header .dropdown-menu li a:hover {
    background-color: #2a2a4e;
}

/* Package / Service / Testimonial cards */
[data-theme="dark"] .package-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-item,
[data-theme="dark"] .carpet-pricing,
[data-theme="dark"] .carpet-calculator,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .services-section {
    background: var(--bg-card);
    border-color: var(--border-dark);
}

[data-theme="dark"] .package-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-item:hover {
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .package-card h3,
[data-theme="dark"] .service-card h4,
[data-theme="dark"] .service-item h4,
[data-theme="dark"] .carpet-pricing .sub-section-title,
[data-theme="dark"] .carpet-calculator .sub-section-title,
[data-theme="dark"] .starter-prices-section .section-title,
[data-theme="dark"] .services-section h4,
[data-theme="dark"] .prices-section th {
    color: var(--primary);
}

[data-theme="dark"] .package-card .price,
[data-theme="dark"] .service-item .service-price {
    color: var(--accent);
}

[data-theme="dark"] .carpet-pricing .carpet-pricing-list li {
    color: var(--text-secondary);
    border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .carpet-calculator label,
[data-theme="dark"] .service-item label {
    color: var(--text-primary);
}

[data-theme="dark"] .carpet-calculator input[type="number"] {
    background: var(--bg-card);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

[data-theme="dark"] .calculator-result {
    color: var(--primary);
}

/* Call Us card */
[data-theme="dark"] .call-us-card {
    background-color: #2a1a0a;
    border-color: #664400;
}
[data-theme="dark"] .call-us-card h3,
[data-theme="dark"] .call-us-card .price {
    color: #ff9933;
}

/* Sections bg */
[data-theme="dark"] .starter-prices-section,
[data-theme="dark"] .testimonials-section {
    background-color: #1a1a1a;
}

[data-theme="dark"] .starter-prices-section .section-description {
    color: var(--text-secondary);
}

/* Breadcrumbs */
[data-theme="dark"] .breadcrumbs {
    color: var(--text-muted);
}
[data-theme="dark"] .breadcrumbs span {
    color: var(--text-primary);
}

/* Price disclaimer */
[data-theme="dark"] .price-disclaimer {
    background: #2a2000;
    border-left-color: #ffa000;
    color: #ccc;
}
[data-theme="dark"] .price-disclaimer strong {
    color: #ffb74d;
}

/* Hero overlay text */
[data-theme="dark"] .hero-section h1 {
    color: var(--primary);
}
[data-theme="dark"] .hero-section p {
    color: var(--text-secondary);
}

/* Footer */
[data-theme="dark"] .main-footer {
    background: #0a0a0a;
}

/* Forms - general */
[data-theme="dark"] .booking-form {
    background: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .booking-form label {
    color: var(--text-primary);
}
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg-card);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

/* Booking page specific */
[data-theme="dark"] .booking-page body,
[data-theme="dark"] .booking-page .step-wizard {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}
[data-theme="dark"] .booking-page .step-wizard {
    background: var(--bg-card);
    box-shadow: var(--shadow-dark);
}
[data-theme="dark"] .booking-page h1,
[data-theme="dark"] .booking-page h2,
[data-theme="dark"] .booking-page h3,
[data-theme="dark"] .booking-page h4 {
    color: var(--primary);
}
[data-theme="dark"] .booking-page .calendar-header button {
    color: var(--primary);
}
[data-theme="dark"] .booking-page .day-header {
    background-color: #2a2a2a;
    color: var(--text-primary);
}
[data-theme="dark"] .booking-page .calendar-day:hover:not(.disabled):not(.selected-date):not(.today) {
    background-color: #2a2a4e;
}
[data-theme="dark"] .booking-page .service-item {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .booking-page .service-item:hover {
    box-shadow: var(--shadow-dark);
}
[data-theme="dark"] .booking-page .services-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .booking-page .category-label {
    background-color: #1a1a2e;
}
[data-theme="dark"] .booking-page .category-label:hover {
    background-color: #2a2a4e;
}
[data-theme="dark"] .booking-page .category-content {
    background-color: var(--bg-card);
}
[data-theme="dark"] .booking-page .booking-form {
    background-color: var(--bg-card);
}
[data-theme="dark"] .booking-page .confirmation {
    background-color: #1a2a1a;
    border-color: #2a4a2a;
    color: #8bc34a;
}

/* Calendar grid */
[data-theme="dark"] .calendar-grid .day-header {
    background-color: #2a2a2a;
}
[data-theme="dark"] .calendar-grid .calendar-day:hover {
    background-color: #2a2a4e;
}

/* Services common table */
[data-theme="dark"] .prices-section th {
    background-color: #1a1a2e;
}
[data-theme="dark"] .prices-section td {
    border-bottom-color: var(--border-dark);
}
[data-theme="dark"] .faq-section details[open] summary {
    background-color: #1a1a1a;
}

/* Step wizard */
[data-theme="dark"] .step-wizard {
    background: var(--bg-card);
    box-shadow: var(--shadow-dark);
}

/* Time slots */
[data-theme="dark"] .time-slot.available {
    background-color: #1a5c2a;
}
[data-theme="dark"] .time-slot.booked {
    background-color: #5c1a1a;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: none;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0 0 0 10px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease, background-color .3s ease;
    color: #fff;
    vertical-align: middle;
    position: relative;
}
.dark-mode-toggle:hover {
    border-color: rgba(255,255,255,.7);
    background-color: rgba(255,255,255,.1);
}
.dark-mode-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
[data-theme="dark"] .dark-mode-toggle {
    border-color: rgba(255,255,255,.4);
}
[data-theme="dark"] .dark-mode-toggle:hover {
    border-color: rgba(255,255,255,.8);
    background-color: rgba(255,255,255,.15);
}

/* =========================================
   Dark Mode — page-specific overrides
   (services, portfolio, contact, terms, privacy, cookie-policy, booking)
   ========================================= */

/* --- services.php --- */
[data-theme="dark"] .services-container h1 {
    color: var(--primary);
}
[data-theme="dark"] .service-item p {
    color: var(--text-secondary);
}
[data-theme="dark"] .service-item h4 {
    color: var(--text-primary);
}

/* --- portfolio.php --- */
[data-theme="dark"] .portfolio-container {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-dark);
}
[data-theme="dark"] .portfolio-container h1 {
    color: var(--primary);
}
[data-theme="dark"] .project-card {
    background: var(--bg-card-hover);
    border-color: var(--border-dark);
}
[data-theme="dark"] .project-desc {
    color: var(--text-secondary);
}

/* --- contact.php --- */
[data-theme="dark"] .contact-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .contact-info div {
    background: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .contact-info h3 {
    color: var(--primary);
}

/* --- terms.php (.terms-section) --- */
[data-theme="dark"] .terms-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .terms-section h2 {
    color: var(--primary);
}

/* --- privacy.php (.privacy-section) --- */
[data-theme="dark"] .privacy-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .privacy-section h2 {
    color: var(--primary);
}

/* --- cookie-policy.php (.cookie-policy-section) --- */
[data-theme="dark"] .cookie-policy-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .cookie-policy-section h2 {
    color: var(--primary);
}

/* --- tariffs.php (.tariffs-section + tables) --- */
[data-theme="dark"] .tariffs-section {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .tariffs-section h2 {
    color: var(--primary);
}
[data-theme="dark"] .tariffs-section th,
[data-theme="dark"] .tariffs-section td {
    border-color: var(--border-dark);
}
[data-theme="dark"] .tariffs-section th {
    background-color: #1a1a2e;
    color: var(--text-primary);
}
[data-theme="dark"] .tariffs-section td {
    color: var(--text-secondary);
}
[data-theme="dark"] .tariffs-section tr {
    background-color: transparent;
}
[data-theme="dark"] .prices-section td {
    color: var(--text-secondary);
}

/* --- review.php (.review-form) --- */
[data-theme="dark"] .review-form {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .review-form h2 {
    color: var(--primary);
}
[data-theme="dark"] .review-form input,
[data-theme="dark"] .review-form textarea,
[data-theme="dark"] .review-form select {
    background: var(--bg-card);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

/* --- covoare.php (.calculator) --- */
[data-theme="dark"] .calculator {
    background-color: var(--bg-card);
    border-color: var(--border-dark);
}
[data-theme="dark"] .calculator h2 {
    color: var(--primary);
}
[data-theme="dark"] .calculator input[type="number"] {
    background: var(--bg-card);
    border-color: var(--border-dark);
    color: var(--text-primary);
}
[data-theme="dark"] .calculator button {
    background-color: var(--accent);
}
[data-theme="dark"] .calculator button:hover {
    background-color: var(--accent-dark);
}
[data-theme="dark"] .calculator-result {
    color: var(--primary);
}

/* --- booking.php (booking.css overrides — aceeași specificitate) --- */
[data-theme="dark"] .booking-page .step-wizard {
    background: var(--bg-card);
    box-shadow: var(--shadow-dark);
}
[data-theme="dark"] .booking-page .booking-form {
    background-color: var(--bg-card);
}
[data-theme="dark"] .booking-page .service-item {
    background-color: var(--bg-card-hover);
    border-color: var(--border-dark);
}
[data-theme="dark"] .booking-page .service-item:hover {
    box-shadow: var(--shadow-dark);
}
[data-theme="dark"] .booking-page .category-label {
    background-color: #1a1a2e;
}
[data-theme="dark"] .booking-page .category-label:hover {
    background-color: #2a2a4e;
}
[data-theme="dark"] .booking-page .category-content {
    background-color: var(--bg-card);
}
[data-theme="dark"] .booking-page .day-header {
    background-color: #2a2a2a;
    color: var(--text-primary);
}
[data-theme="dark"] .booking-page .calendar-day:hover:not(.disabled):not(.selected-date):not(.today) {
    background-color: #2a2a4e;
}
[data-theme="dark"] .booking-page .calendar-header button {
    color: var(--primary);
}
[data-theme="dark"] .booking-page .confirmation {
    background-color: #1a2a1a;
    border-color: #2a4a2a;
    color: #8bc34a;
}

/* Smooth transition for theme change */
html {
    transition: background-color .3s ease, color .3s ease;
}
html[data-theme="dark"] {
    transition: background-color .3s ease, color .3s ease;
}

/* Transition helper for elements that change bg */
.main-header,
.main-footer,
.package-card,
.service-card,
.service-item,
.testimonial,
.step-wizard,
.carpet-pricing,
.carpet-calculator,
.services-section,
.price-disclaimer,
.call-us-card,
.starter-prices-section,
.testimonials-section,
.booking-page .step-wizard,
.booking-page .service-item,
.booking-page .services-section,
/* Page-specific transitions */
.terms-section,
.privacy-section,
.cookie-policy-section,
.tariffs-section,
.contact-section,
.contact-info div,
.portfolio-container,
.project-card,
.services-container,
.booking-page .booking-form,
.booking-page .day-header,
.booking-page .category-content {
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

/* =========================================
   SCROLL ANIMATIONS — IntersectionObserver
   Clasele .reveal + .revealed (JS adaugă .revealed)
   ========================================= */

/* Stare inițială: ascuns, ușor translatat */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Când elementul devine vizibil */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Varianta fade-in fără translate (mai subtilă) */
.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.reveal-fade.revealed {
    opacity: 1;
}

/* Varianta din stânga */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Varianta din dreapta */
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Varianta scale-up subtil */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delay pentru carduri consecutive */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Respectă prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-fade,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
