/* =========================================
   QUALYTECH MANUTENÇÃO INDUSTRIAL
   CSS v3.0 — Responsivo · Mobile-first
   ========================================= */

:root {
    --primary-color: #0056b3;
    --secondary-color: #003d82;
    --accent-color: #28a745;
    --reform-color: #ff6b35;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --navbar-h: 76px;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', 'Roboto', sans-serif;
    font-weight: 400;
    background-color: #f5f5f5;
    margin: 0; padding: 0;
    overflow-x: hidden;
    color: var(--dark-color);
    -webkit-text-size-adjust: 100%;
}

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

/* ── LOGO ── */
.logo-img {
    border-radius: 8px;
    height: 72px;          /* aumentado */
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}
.logo-img:hover { transform: scale(1.05); }

.brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
    font-size: 1rem;
    line-height: 1.2;
}

/* ── NAVBAR ── */
.navbar {
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    min-height: var(--navbar-h);
}
.navbar-scrolled {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    background: rgba(10,10,10,0.97) !important;
    backdrop-filter: blur(12px);
    min-height: 60px;
}
.navbar-brand { padding: 0.2rem 0; }

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255,255,255,0.75) !important;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}
.nav-link.active, .nav-link:hover { color: #fff !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }

.btn-nav-cta {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px;
    padding: 0.42rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}
.btn-nav-cta:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,86,179,0.4);
}
.btn-nav-cta::after { display: none !important; }

/* ── SECTIONS ── */
section {
    scroll-margin-top: var(--navbar-h);
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* ── HERO ── */
#home {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('images/manutencao3.jpeg') center center/cover no-repeat;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,30,80,0.88) 0%, rgba(0,0,0,0.72) 100%);
    z-index: 1;
}
#home .container { position: relative; z-index: 2; }
#home .content {
    text-align: center;
    color: white;
    padding: 20px 15px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    display: inline-block;
}
#home h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-accent { color: #4da3ff; display: block; }

#home p.lead {
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
    padding: 12px 18px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    min-width: 72px;
}
.hero-stat strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #4da3ff;
    line-height: 1;
}
.hero-stat span {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    display: block;
}

/* ── BOTÕES ── */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.92rem;
    box-shadow: 0 5px 20px rgba(0,86,179,0.35);
    font-family: 'Barlow Condensed', sans-serif;
    white-space: nowrap;
}
.btn-custom:hover {
    background: linear-gradient(135deg, #0066cc, #002855);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,86,179,0.45);
    color: white;
}

/* ── CAROUSEL (sobre) ── */
#equipeCarousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
#equipeCarousel img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ── SERVICE CARDS ── */
.service-card {
    background: white;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 28px 24px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;          /* alinhado à esquerda */
}
.service-card { will-change: transform; }
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.13);
}
.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 14px;
    display: block;
    float: none;              /* sem float */
}
.service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
    margin-left: 0;            /* sem recuo */
    clear: both;
}
.service-card p {
    color: #555;
    line-height: 1.65;
    font-size: 0.93rem;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}
.service-card ul {
    color: #555;
    font-size: 0.9rem;
    padding-left: 0;
    list-style: none;
    text-align: left;
    margin-top: 12px;
}
.service-card ul li { margin-bottom: 5px; }
.service-card .btn { align-self: flex-start; margin-top: auto; padding-top: 12px; }

/* ── ABOUT CARDS (mini-cards na seção sobre) ── */
.about-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    padding: 22px 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    border-left: 3px solid var(--primary-color);
    text-align: left;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.about-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
    float: none;
}
/* h4 usado nos about-cards para hierarquia semântica correta */
.about-card-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    margin-left: 0;
    font-family: inherit;
}
.about-card h6 {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    margin-left: 0;
}
.about-card small { color: #777; font-size: 0.8rem; }

/* ── ESTATÍSTICAS ── */
.stats-section {
    background: linear-gradient(135deg, #001d3d, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('images/caldeiraria8.jpeg') center/cover;
    opacity: 0.06;
}
.stats-container { position: relative; z-index: 1; }
.stat-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.13);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.counter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: #7ec8ff;
}
.counter-symbol { font-size: 1.8rem; vertical-align: super; color: #7ec8ff; }
.stat-label { font-size: 0.95rem; font-weight: 500; opacity: 0.85; margin-top: 10px; }

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, #0a1628 0%, var(--secondary-color) 50%, #001d3d 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('images/caldeiraria2.jpeg') center/cover;
    opacity: 0.05;
}
.cta-section .container { position: relative; z-index: 1; }

/* ── CONTACT FORM ── */
.contact-form-container {
    background: white;
    padding: 42px 40px 38px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}
.contact-form-container .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.contact-form-container .form-control,
.contact-form-container .form-select {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.93rem;
    transition: all 0.3s ease;
    background: #fafafa;
}
.contact-form-container .form-control:focus,
.contact-form-container .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.12);
    background: white;
}
.contact-form-container .btn-success {
    background: linear-gradient(135deg, #1a9e3f, #28a745);
    border: none;
    color: white;
    font-weight: 700;
    padding: 15px;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.98rem;
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
    font-family: 'Barlow Condensed', sans-serif;
    width: 100%;
}
.contact-form-container .btn-success:hover {
    background: linear-gradient(135deg, #28a745, #1a6e2e);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(40,167,69,0.4);
}

/* ── FAQ ── */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background: white;
    font-size: 0.97rem;
}
.accordion-button:not(.collapsed) {
    background: #f0f6ff;
    color: var(--primary-color);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-item { border-radius: 12px !important; overflow: hidden; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9999;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 13px 20px 13px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 6px 25px rgba(37,211,102,0.45);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    animation: float-pulse 3s infinite;
}
.whatsapp-float i { font-size: 1.4rem; }
.whatsapp-float:hover {
    background: #1fb855;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(37,211,102,0.55);
    color: white;
}
@keyframes float-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 35px rgba(37,211,102,0.7); }
}

/* Carousel controls (global) */
.carousel-control-prev, .carousel-control-next {
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 0.9;
    bottom: auto;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* ── FOOTER ── */
footer {
    background: linear-gradient(135deg, #080808, #151515);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}
footer h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: var(--primary-color);
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
}
footer ul li i { color: var(--primary-color); margin-right: 9px; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.social-icons { display: flex; gap: 12px; margin-top: 14px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────
   RESPONSIVIDADE COMPLETA
   ───────────────────────────────────────── */

/* Large (≤1200px) */
@media (max-width: 1200px) {
    .brand-text { font-size: 0.9rem; }
}

/* Medium (≤992px) — tablets landscape */
@media (max-width: 992px) {
    :root { --navbar-h: 70px; }
    .logo-img { height: 62px; }
    #equipeCarousel img { height: 340px; }
    .counter { font-size: 2.8rem; }
    .hero-stats { gap: 12px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; }
    section { padding-top: 64px; padding-bottom: 64px; }
}

/* Small (≤768px) — tablets portrait */
@media (max-width: 768px) {
    :root { --navbar-h: 64px; }
    .logo-img { height: 54px; }
    body { padding-top: 0; }
    #home { background-attachment: scroll; }
    #equipeCarousel img { height: 280px; }

    .service-card { padding: 22px 18px; }
    .contact-form-container { padding: 28px 22px; }
    footer { padding: 40px 0 20px; }
    .counter { font-size: 2.4rem; }

    .hero-stat strong { font-size: 1.6rem; }
    .hero-stat { padding: 10px 14px; min-width: 64px; }

    .stats-section { padding: 60px 0; }
    .stat-card { padding: 22px 12px; }

    /* Carousel arrows smaller on mobile */
    .carousel-control-prev, .carousel-control-next { width: 40px; height: 40px; }

    /* Footer cols */
    footer .col-md-6 { margin-bottom: 32px !important; }
}

/* Extra small (≤576px) — phones */
@media (max-width: 576px) {
    :root { --navbar-h: 60px; }
    .logo-img { height: 48px; }
    .brand-text { font-size: 0.82rem; letter-spacing: 0.5px; }

    #home h1 { font-size: 2rem; letter-spacing: 1px; }
    #home p.lead { font-size: 0.8rem; letter-spacing: 1.5px; }

    .hero-badge { font-size: 0.72rem; padding: 4px 14px; }
    .hero-stats { gap: 8px; }
    .hero-stat { padding: 9px 12px; min-width: 58px; }
    .hero-stat strong { font-size: 1.45rem; }

    .btn-custom { padding: 11px 24px; font-size: 0.88rem; }
    .section-title { font-size: 1.8rem; }

    .about-card { min-height: 95px; padding: 16px 14px; }
    .about-card i { font-size: 1.5rem; }

    .service-card { padding: 20px 16px; }
    .service-card h3 { font-size: 1.25rem; }

    .contact-form-container { padding: 22px 16px; }
    .stat-card { padding: 18px 10px; margin-bottom: 16px; }
    .counter { font-size: 2rem; }
    .counter-symbol { font-size: 1.4rem; }

    .whatsapp-float { bottom: 18px; right: 18px; }

    #equipeCarousel img { height: 230px; }
    section { padding-top: 50px; padding-bottom: 50px; }
}

/* Very small (≤400px) */
@media (max-width: 400px) {
    .brand-text { font-size: 0.75rem; }
    #home h1 { font-size: 1.75rem; }
    .hero-stats { flex-direction: row; }
    .hero-stat { min-width: 50px; padding: 8px 10px; }
}
