/* ===================================================
   HandyMaster Pro - Unified Stylesheet
   Cross-browser: Chrome, Safari, Firefox, Edge, iOS Safari, Android Chrome
   =================================================== */

/* --- Browser Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
button { -webkit-appearance: none; appearance: none; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* --- Design Tokens --- */
:root {
    --color-primary: #1a237e;
    --color-primary-dark: #0d124d;
    --color-accent: #d32f2f;
    --color-accent-dark: #b71c1c;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #1eb954;
    --color-instagram: #E4405F;
    --color-highlight: #ffeb3b;
    --color-bg: #f4f4f4;
    --color-bg-alt: #f0f2f5;
    --color-bg-white: #fff;
    --color-bg-dark: #222;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-muted: #666;
    --color-text-footer: #777;
    --color-border: #ddd;
    --color-border-light: #eee;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: 0.3s;
    --radius-md: 6px;
    --radius-lg: 12px;
}

/* --- Base --- */
html { scroll-behavior: smooth; }

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

a { transition: 0.3s; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-heading); }

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* --- Navigation Bar (combined logo + nav + contacts) --- */
nav {
    background: var(--color-primary);
    padding: 0 4%;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-height: 58px;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
    background: white;
    padding: 4px 7px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links a {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 19px 13px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.phone-num {
    font-family: var(--font-heading);
    font-size: 15px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
}

.phone-num:hover { background: rgba(255,255,255,0.1); }
.phone-num i { margin-right: 5px; font-size: 13px; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
    color: white;
}

.social-btn-wa { background: var(--color-whatsapp); }
.social-btn-wa:hover { background: var(--color-whatsapp-dark); }
.social-btn-ig { background: var(--color-instagram); }
.social-btn-ig:hover { background: #d62e50; }

.fa-whatsapp { color: inherit; }
.fa-instagram { color: inherit; }
.whatsapp-float .fa-whatsapp { color: white; font-size: 32px; }

/* --- Homepage Hero (combined header) --- */
.hero-home {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.hero-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 5% 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-logo {
    flex-shrink: 0;
    margin-left: -72px;
}

.hero-logo img {
    height: 110px;
    width: auto;
    display: block;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-contact {
    flex-shrink: 0;
    text-align: center;
    margin-left: auto;
    margin-right: -72px;
}

.hero-phone {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-highlight);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
}

.hero-phone:hover { opacity: 0.85; }
.hero-phone i { margin-right: 6px; }

.hero-contact > p {
    font-size: 13px;
    opacity: 0.7;
    margin: 4px 0 12px;
}

.hero-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero-nav {
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hero-nav a {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 13px 22px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.hero-nav a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}


.hero-text h1 {
    font-size: 42px;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.hero-text > p {
    font-size: 18px;
    margin: 0 0 12px 0;
    opacity: 0.95;
}

.hero-text .fa-check-circle,
.hero-text .fa-star { color: var(--color-highlight); }

.hero-badges {
    display: flex;
    gap: 25px;
    margin: 12px 0 0 0;
    justify-content: center;
}

.hero-badges span {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: white;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-top: 18px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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


/* --- Profile Photo (Homepage) --- */
.profile-photo-container {
    max-width: 1280px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

.profile-photo-container img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: block;
}

/* --- About Section (Homepage) --- */
.about-section {
    background: var(--color-bg-white);
    max-width: 1140px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: var(--color-primary);
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* --- Services Grid (Homepage) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-cube {
    background: var(--color-bg-white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

.service-cube:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-cube img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.service-cube span {
    display: flex;
    padding: 15px;
    font-weight: bold;
    background: var(--color-bg-white);
    text-align: center;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 13px;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
}

/* --- Reviews Section (Homepage) --- */
.reviews-section {
    padding: 60px 5%;
    background: var(--color-bg-white);
    margin-top: 40px;
}

.reviews-section h2,
.testimonials-heading {
    text-align: center;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* --- Map Section (Homepage) --- */
.map-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.map-box {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

/* --- Service Pages: Main Content --- */
.main-content {
    background: var(--color-bg-white);
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.inner-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    transition: 0.3s;
    text-transform: uppercase;
}

.inner-back-btn:hover { color: var(--color-accent); }

.main-content h2 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
    text-transform: uppercase;
    margin-top: 0;
}

/* --- Why Choose Us Grid --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.why-item {
    text-align: center;
    padding: 20px 15px;
    border-radius: 8px;
    background: var(--color-bg);
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.why-item i {
    font-size: 28px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
}

.why-item strong {
    color: var(--color-text);
    font-size: 1rem;
}

/* --- Related Services Links --- */
.related-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.related-services a {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-bg);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.related-services a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* --- Gallery Carousel --- */
.gallery {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: none;
    animation: fadeIn 0.4s ease;
}

.gallery img.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.gallery button:hover { background: var(--color-accent); }
.gallery .prev { left: 12px; }
.gallery .next { right: 12px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-heading);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* --- Services List (service pages) --- */
.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.service-item i { color: var(--color-accent); }

/* --- CTA Box --- */
.cta-box {
    background: var(--color-primary);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.cta-box h3 { margin-top: 0; }

.btn-estimate {
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-estimate:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.cta-btn {
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
}

.cta-btn:hover { background: var(--color-accent-dark); }

/* --- About Page --- */
.content-container {
    max-width: 1140px;
    margin: 40px auto;
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
}

.content-container h1 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.about-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- FAQ Page --- */
.faq-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.faq-container h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.faq-item {
    background: var(--color-bg-white);
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

.faq-question {
    background: var(--color-bg-white);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--color-primary);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-family: var(--font-body);
}

.faq-question i {
    color: var(--color-accent);
    transition: 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    background: var(--color-bg-white);
    color: var(--color-text-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid var(--color-border-light);
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- Emergency Page --- */
.emergency-hero {
    background: var(--color-accent);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.emergency-hero h1 {
    font-size: 42px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-hero p {
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
}

.emergency-list {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.e-item {
    background: #f9f9f9;
    padding: 25px;
    border-left: 6px solid var(--color-accent);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.e-item i {
    font-size: 30px;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: block;
}

.e-item h3 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 22px;
}

.e-item p {
    margin: 0;
    line-height: 1.5;
    color: var(--color-text-light);
}

.call-now-box {
    text-align: center;
    margin: 50px auto;
    max-width: 700px;
    padding: 40px 20px;
    border: 3px dashed var(--color-accent);
    border-radius: 12px;
    background: #fffcfc;
}

.call-now-box h2 {
    color: var(--color-primary);
    margin-top: 0;
}

.big-phone {
    font-size: 36px;
    color: var(--color-accent);
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin: 20px 0;
}

.btn-emergency-wa {
    font-family: var(--font-heading);
    background: var(--color-whatsapp);
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-emergency-wa:hover { transform: scale(1.05); background: var(--color-whatsapp-dark); }

.reviews-container {
    max-width: 1140px;
    margin: 50px auto;
    padding: 0 20px;
}

/* --- Estimate Page --- */
.page-estimate { background: var(--color-bg-alt); }

.form-card {
    background: var(--color-bg-white);
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.form-card h1 {
    color: var(--color-primary);
    text-align: center;
    margin-top: 0;
    font-size: 32px;
    text-transform: uppercase;
}

.form-card .subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.section-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: block;
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
}

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

.location-grid input[type="radio"] { display: none; }

.location-card {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.location-card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--color-text-footer);
    transition: 0.3s;
}

.location-card span {
    display: block;
    font-weight: bold;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.location-grid input[type="radio"]:checked + .location-card {
    border-color: var(--color-accent);
    background: #fff5f5;
}

.location-grid input[type="radio"]:checked + .location-card i { color: var(--color-accent); }
.location-grid input[type="radio"]:checked + .location-card span { color: var(--color-accent); }

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: 0.3s;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-bg-white);
}

.photo-hint {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 15px;
    color: var(--color-text-light);
}

.photo-hint .fa-camera { color: var(--color-accent); }

.submit-btn {
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 20px;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.submit-btn:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.whatsapp-alt {
    margin-top: 40px;
    padding: 30px;
    background: #f0fff4;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #c6f6d5;
}

.whatsapp-alt p {
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--color-primary);
}

.wa-btn {
    background-color: var(--color-whatsapp);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    transition: 0.3s;
}

.wa-btn:hover { background-color: var(--color-whatsapp-dark); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }

.form-consent { font-size: 12px; color: var(--color-text-muted); margin: 8px 0; line-height: 1.5; }
.form-consent a { color: var(--color-primary); }

.form-card input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
}

.form-card input[type="file"]:hover {
    border-color: var(--color-primary);
    background: #f0f4ff;
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-whatsapp:hover { background-color: var(--color-whatsapp-dark); }

/* --- 404 Page --- */
.error-page {
    text-align: center;
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 120px;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.error-page h2 { color: var(--color-text); }

.error-page p { color: var(--color-text-muted); font-size: 18px; }

.error-page a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
}

.error-page a:hover { text-decoration: underline; }

/* --- Legal Pages --- */
.legal-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--color-bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-content h1 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    border: 3px solid white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    font-size: 35px;
}

.whatsapp-float:hover { transform: scale(1.1); background-color: var(--color-whatsapp-dark); }

/* --- Footer --- */
footer {
    background: var(--color-bg-dark);
    color: var(--color-text-footer);
    text-align: center;
    padding: 40px 5% 30px;
    margin-top: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.footer-socials {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials .social-btn-wa { background: var(--color-whatsapp); }
.footer-socials .social-btn-wa:hover { background: var(--color-whatsapp-dark); }
.footer-socials .social-btn-ig { background: var(--color-instagram); }
.footer-socials .social-btn-ig:hover { background: #d62e50; }
.footer-socials .social-btn-phone { background: var(--color-accent); }
.footer-socials .social-btn-phone:hover { background: var(--color-accent-dark); }

footer p { margin: 0; font-size: 14px; }

.footer-links { margin-top: 12px; font-size: 13px; }
.footer-links a { color: #999; text-decoration: none; margin: 0 8px; }
.footer-links a:hover { color: white; }

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    color: #ccc;
    padding: 20px 5%;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.active { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 14px; flex: 1; min-width: 250px; }
.cookie-banner a { color: var(--color-highlight); }

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 14px; }
.cookie-accept { background: var(--color-whatsapp); color: white; }
.cookie-accept:hover { background: var(--color-whatsapp-dark); }
.cookie-necessary { background: transparent; color: #ccc; border: 1px solid #666; }
.cookie-necessary:hover { border-color: #999; color: #fff; }

/* --- Areas We Serve --- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.area-card {
    background: var(--color-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.area-card h2 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0 0 10px;
    border-bottom: none;
    display: block;
}

.area-card h2 i { color: var(--color-accent); margin-right: 8px; }

.area-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.lang-switcher a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    opacity: 0.85;
}

.lang-switcher a:hover { opacity: 1; }
.lang-switcher a.active { opacity: 1; outline: 1px solid rgba(255,255,255,0.5); }

/* Flag background images - semi-transparent with clear text */
.lang-switcher a {
    background-size: cover;
    background-position: center;
    color: #fff !important;
    text-shadow: 0 1px 3px #000, 0 0 6px #000, 0 0 10px rgba(0,0,0,0.5);
    min-width: 36px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lang-switcher a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: rgba(0,0,0,0.45);
    z-index: 0;
    transition: 0.3s;
}

.lang-switcher a:hover::after {
    background: rgba(0,0,0,0.3);
}

.lang-switcher .lang-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect fill='%23012169' width='60' height='30'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0V30M0,15H60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0V30M0,15H60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.lang-switcher .lang-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect fill='%23002395' width='1' height='2'/%3E%3Crect fill='%23fff' x='1' width='1' height='2'/%3E%3Crect fill='%23ED2939' x='2' width='1' height='2'/%3E%3C/svg%3E"); }
.lang-switcher .lang-es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect fill='%23c60b1e' width='3' height='2'/%3E%3Crect fill='%23ffc400' y='.5' width='3' height='1'/%3E%3C/svg%3E"); }
.lang-switcher .lang-uk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect fill='%230057B7' width='3' height='1'/%3E%3Crect fill='%23FFD700' y='1' width='3' height='1'/%3E%3C/svg%3E"); }

/* Active language — hidden */
.lang-switcher a.active { display: none !important; }

/* --- Sticky Mobile CTA Bar --- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    z-index: 999;
    padding: 8px 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.mobile-cta-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-cta .cta-call { background: var(--color-accent); }
.mobile-cta .cta-wa { background: var(--color-whatsapp); }
.mobile-cta .cta-estimate { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }

/* iOS safe area support (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-cta { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

/* ===================================================
   Responsive Breakpoints
   =================================================== */

@media (max-width: 992px) {
    /* Services grid */
    .services-grid { grid-template-columns: repeat(3, 1fr); }

    /* Hero - tablet */
    .hero-main { padding: 20px 4%; gap: 25px; }
    .hero-logo img { height: 90px; padding: 8px 12px; }
    .hero-text h1 { font-size: 34px; }
    .hero-text > p { font-size: 16px; }
    .hero-badges span { font-size: 14px; }
    .hero-phone { font-size: 20px; }
    .hero-contact { margin-right: 0; }
    .hero-logo { margin-left: 0; }

    /* Nav - tablet */
    .nav-links a { padding: 18px 10px; font-size: 11px; }
    .phone-num { font-size: 14px; }
    .social-btn { width: 32px; height: 32px; font-size: 16px; }

    /* Content */
    .about-section { margin: 15px 3%; }
    .main-content { margin: 20px 3%; }
    .content-container { margin: 20px 3%; }
    .form-card { max-width: 90%; }

    /* About grid */
    .about-grid { gap: 20px; }

    /* Gallery */
    .gallery img { height: 380px; }

    /* Areas - tablet */
    .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .area-card { padding: 20px; }

    /* Emergency - tablet */
    .emergency-list { grid-template-columns: 1fr 1fr; }
    .call-now-box { max-width: 80%; }

    /* Why Choose Us - tablet */
    .why-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }

    /* Legal pages */
    .legal-content { margin: 20px 3%; }
}

@media (max-width: 768px) {
    /* Typography */
    body { font-size: 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    /* Inner pages nav */
    nav { flex-wrap: wrap; padding: 8px 3%; min-height: auto; }
    .nav-logo { margin-right: auto; }
    .nav-logo img { height: 32px; padding: 3px 5px; }
    .nav-links { order: 3; width: 100%; justify-content: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4px; padding-top: 4px; }
    .nav-links a { padding: 8px 8px; font-size: 10px; }
    .nav-contact { gap: 6px; }
    .phone-num { font-size: 13px; padding: 5px 6px; }
    .phone-num i { display: none; }
    .social-btn { width: 30px; height: 30px; font-size: 15px; }

    /* Homepage hero - mobile */
    .hero-main {
        flex-direction: column;
        padding: 20px 5% 15px;
        gap: 0;
        text-align: center;
        align-items: center;
    }
    .hero-logo { margin: 0 0 12px; }
    .hero-logo img { height: 55px; padding: 6px 10px; }
    .hero-text h1 { font-size: 24px; margin-bottom: 4px; }
    .hero-text > p { font-size: 14px; margin-bottom: 6px; }
    .hero-badges { justify-content: center; gap: 15px; margin: 6px 0; }
    .hero-badges span { font-size: 13px; }
    .btn-primary { font-size: 13px; padding: 10px 20px; margin-top: 10px; }
    .hero-contact { margin: 12px 0 0; width: auto; display: flex; align-items: center; gap: 10px; }
    .hero-contact > p { display: none; }
    .hero-phone { font-size: 17px; }
    .hero-socials { display: flex; gap: 8px; }
    .hero-socials .social-btn { width: 34px; height: 34px; font-size: 17px; }
    .hero-nav a { padding: 10px 10px; font-size: 11px; }

    /* Profile photo */
    .profile-photo-container { padding: 0 10px; }
    .profile-photo-container img { border-radius: 15px; }

    /* Services grid */
    .services-grid { grid-template-columns: repeat(2, 1fr); padding: 10px 3%; gap: 12px; }
    .service-cube img { height: 140px; }

    /* About */
    .about-section { margin: 15px 10px; padding: 25px; }
    .about-grid { grid-template-columns: 1fr; }
    .content-container { margin: 15px 10px; padding: 25px; }

    /* Service pages */
    .main-content { margin: 15px 10px; padding: 25px; }
    .services-list { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .why-item { padding: 15px 10px; }
    .why-item i { font-size: 22px; margin-bottom: 6px; }
    .why-item strong { font-size: 0.9rem; }
    .why-item { font-size: 0.8rem; }
    .related-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .related-services a { padding: 6px 12px; font-size: 12px; }
    .gallery img { height: 250px; }

    /* Areas page mobile */
    .areas-grid { grid-template-columns: 1fr; gap: 12px; }
    .area-card { padding: 18px; }
    .area-card h2 { font-size: 1.1rem; }
    .area-card p { font-size: 0.85rem; }

    /* Emergency page mobile */
    .emergency-hero { padding: 30px 15px; }
    .emergency-hero h1 { font-size: 24px; }
    .emergency-hero p { font-size: 15px; }
    .emergency-list { grid-template-columns: 1fr; padding: 0 10px; gap: 12px; }
    .e-item { padding: 18px; }
    .e-item i { font-size: 24px; margin-bottom: 10px; }
    .e-item h3 { font-size: 18px; }
    .e-item p { font-size: 0.85rem; }
    .call-now-box { margin: 30px 10px; padding: 25px 15px; }
    .call-now-box h2 { font-size: 1.2rem; }
    .big-phone { font-size: 24px; }
    .btn-emergency-wa { font-size: 16px; padding: 14px 25px; }
    .reviews-container { padding: 0 10px; }

    /* Estimate form */
    .form-card { margin: 10px; padding: 20px; }
    .form-card h1 { font-size: 24px; }
    .location-grid { grid-template-columns: 1fr; }
    .submit-btn { font-size: 16px; padding: 16px; }

    /* FAQ */
    .faq-container { padding: 0 10px; }

    /* Legal pages */
    .legal-content { margin: 15px 10px; padding: 25px; }

    /* Reviews & Map */
    .reviews-section { padding: 30px 3%; }
    .map-section { padding: 20px 3%; }

    /* Footer */
    footer { padding: 30px 3% 20px; }
    .footer-logo img { height: 50px; }

    /* Cookie banner */
    .cookie-banner.active { flex-direction: column; text-align: center; padding: 15px; }
    .cookie-banner p { font-size: 13px; min-width: auto; }
    .cookie-buttons { justify-content: center; }

    /* Mobile: show CTA bar, hide WhatsApp float */
    .mobile-cta { display: block; }
    .whatsapp-float { display: none; }
    .a11y-toggle { bottom: 65px; left: 8px; width: 38px; height: 38px; font-size: 16px; border-width: 2px; opacity: 0.7; }
    .a11y-toggle:hover { opacity: 1; }
    .a11y-panel { bottom: 110px; left: 10px; min-width: 230px; padding: 15px; }
    .how-it-works { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cookie-banner.active { padding-bottom: 70px; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 24px; }
    .hero-text > p { font-size: 14px; }
    .hero-badges span { font-size: 13px; }
    .btn-primary { font-size: 14px; padding: 12px 20px; }
    .nav-links a { font-size: 9px; padding: 7px 5px; }
    .hero-nav a { font-size: 10px; padding: 9px 8px; }
    .gallery img { height: 200px; }
    .service-cube img { height: 120px; }
    .why-grid { grid-template-columns: 1fr; }
    .emergency-hero h1 { font-size: 18px; }
    .big-phone { font-size: 20px; }
    .btn-emergency-wa { font-size: 14px; padding: 12px 20px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 15px; right: 12px; }
    .whatsapp-float .fa-whatsapp { font-size: 25px; }
    .a11y-toggle { width: 45px; height: 45px; bottom: 15px; left: 12px; font-size: 20px; }
    .how-it-works { grid-template-columns: 1fr; }
}


/* ============================================
   Accessibility Widget
   ============================================ */

.a11y-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: 3px solid white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.a11y-toggle:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.a11y-panel {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1001;
    min-width: 250px;
    display: none;
    border: 2px solid var(--color-primary);
}

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

.a11y-panel h3 {
    margin: 0 0 15px 0;
    color: var(--color-primary);
    font-size: 16px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

.a11y-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-text);
    transition: var(--transition);
}

.a11y-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.a11y-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.a11y-btn i { width: 20px; text-align: center; }

.a11y-reset {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    padding: 5px 0;
    font-family: var(--font-body);
}

.a11y-reset:hover { text-decoration: underline; }

/* Areas We Serve - moved to before responsive */

/* --- How It Works --- */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
    text-align: center;
}

.step-card {
    padding: 15px 8px;
}

.step-card .step-num {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 12px;
}

.step-card h3 {
    font-size: 0.85rem;
    margin: 0 0 4px;
    color: var(--color-primary);
}

.step-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* --- Response Badge --- */
.response-badge {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text);
}

.response-badge i { color: var(--color-whatsapp); margin-right: 6px; }

/* Sticky Mobile CTA Bar - moved to before responsive */

/* High Contrast Mode */
body.a11y-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.a11y-high-contrast header,
body.a11y-high-contrast .hero-card,
body.a11y-high-contrast .main-content,
body.a11y-high-contrast .content-container,
body.a11y-high-contrast .form-card,
body.a11y-high-contrast .about-section,
body.a11y-high-contrast .service-cube,
body.a11y-high-contrast .faq-item,
body.a11y-high-contrast .faq-question,
body.a11y-high-contrast .faq-answer,
body.a11y-high-contrast .legal-content,
body.a11y-high-contrast .e-item,
body.a11y-high-contrast .reviews-section,
body.a11y-high-contrast .location-card,
body.a11y-high-contrast .photo-hint,
body.a11y-high-contrast .whatsapp-alt,
body.a11y-high-contrast .call-now-box,
body.a11y-high-contrast .cta-box,
body.a11y-high-contrast .a11y-panel,
body.a11y-high-contrast .cookie-banner {
    background: #111 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.a11y-high-contrast nav { background: #000 !important; border-top: 2px solid #ffeb3b !important; }
body.a11y-high-contrast a { color: #ffeb3b !important; }
body.a11y-high-contrast nav a { color: #ffeb3b !important; }
body.a11y-high-contrast nav a:hover { color: #fff !important; }
body.a11y-high-contrast .phone-num { color: #ff6b6b !important; }
body.a11y-high-contrast .service-cube span { color: #fff !important; background: #222 !important; }
body.a11y-high-contrast .btn-primary,
body.a11y-high-contrast .btn-estimate,
body.a11y-high-contrast .submit-btn,
body.a11y-high-contrast .cta-btn { background: #ffeb3b !important; color: #000 !important; }
body.a11y-high-contrast .hero-premium { background: #000 !important; }
body.a11y-high-contrast .hero-text h1 { color: #fff !important; }
body.a11y-high-contrast .card-action a { color: #ffeb3b !important; }
body.a11y-high-contrast h1, body.a11y-high-contrast h2, body.a11y-high-contrast h3 { color: #fff !important; }
body.a11y-high-contrast p, body.a11y-high-contrast li, body.a11y-high-contrast label { color: #ddd !important; }
body.a11y-high-contrast input, body.a11y-high-contrast select, body.a11y-high-contrast textarea {
    background: #222 !important; color: #fff !important; border-color: #666 !important;
}
body.a11y-high-contrast footer { background: #000 !important; }
body.a11y-high-contrast .footer-links a { color: #aaa !important; }
body.a11y-high-contrast img { filter: contrast(1.2) brightness(0.9); }
body.a11y-high-contrast .a11y-btn { background: #222 !important; color: #fff !important; border-color: #555 !important; }
body.a11y-high-contrast .a11y-btn:hover { background: #ffeb3b !important; color: #000 !important; }
