/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Identidade (RSO Instalações Elétricas) */
    --primary-color: #0b2a4a;          /* azul do logo (principal) */
    --accent-color: #ff6a00;           /* laranja do logo (destaque) */
    --accent-color-2: #f59e0b;         /* variação quente (apoio/hover) */

    --dark-color: #07111d;             /* fundo/rodapé mais escuro */
    --light-color: #f5f7fb;            /* fundo claro */
    --gray-color: #64748b;
    --white-color: #ffffff;

    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #114b7a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --transition: all 0.3s ease;

    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white-color);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    color: var(--gray-color);
    font-size: 1.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #111827;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.03);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white-color);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ✅ suporte ao logo em IMG (do seu HTML) */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* mantém se existir <i> */
.logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #0b1220;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(1200px 600px at 70% 30%, rgba(255, 106, 0, 0.26) 0%, rgba(255, 106, 0, 0) 60%),
        linear-gradient(135deg, rgba(11, 42, 74, 0.96) 0%, rgba(11, 42, 74, 0.86) 100%),
        url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=1920&q=80') center/cover no-repeat;
    z-index: -1;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--white-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white-color);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 106, 0, 0.22), rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.hero-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 100px 0;
    background: var(--light-color);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-accent);
    color: #111827;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-lg);
}

.about-badge i {
    font-size: 2rem;
}

.about-badge span {
    font-weight: 900;
    font-size: 1.125rem;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-subtitle {
    margin-bottom: 10px;
}

.about-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1220;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: 100px 0;
    background: var(--white-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 42, 74, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white-color);
    font-size: 2rem;
}

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

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

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 100px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* ===================================
   Highlights Section
   =================================== */
.highlights {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.highlights .section-subtitle,
.highlights .section-title {
    color: var(--white-color);
}

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

.highlight-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-10px);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(255, 106, 0, 0.22);
}

.highlight-icon i {
    font-size: 2rem;
    color: #111827;
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 15px;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ===================================
   Benefits Section
   =================================== */
.benefits {
    padding: 100px 0;
    background: var(--white-color);
}

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

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-item p {
    color: var(--gray-color);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: 100px 0;
    background: var(--light-color);
}

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

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--gray-color);
    line-height: 1.7;
    font-style: italic;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: 100px 0;
    background: var(--white-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 106, 0, 0.10);
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--gray-color);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 100px 0;
    background: var(--light-color);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 12px 30px rgba(255, 106, 0, 0.22);
}

.contact-icon i {
    font-size: 1.75rem;
    color: #111827;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 5px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 20px;
}

/* ✅ suporte ao logo em IMG (do seu HTML) */
.footer-logo img {
    height: 34px;
    width: auto;
    display: block;
}

/* mantém se existir <i> */
.footer-logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.footer-description {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-accent);
    color: #111827;
}

.footer-column h4 {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.03);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }
}



/* ===================================
   Orçamento (Form WhatsApp) — ADICIONE NO FINAL
   =================================== */

/* Wrapper do form */
.contact-form{
  background: var(--white-color);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-top: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Grid dos campos */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Campo */
.form-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label{
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* Inputs */
.form-field input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: var(--light-color);
  color: var(--dark-color);
  outline: none;
  transition: var(--transition);
}

.form-field input::placeholder{
  color: rgba(100, 116, 139, 0.85);
}

/* Focus bonito (RSO - laranja do logo) */
.form-field input:focus{
  border-color: rgba(255, 106, 0, 0.70);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.18);
  background: var(--white-color);
}

/* Campo ocupando linha inteira */
.form-full{
  grid-column: 1 / -1;
}

/* Ajuste do botão dentro do form (não quebra seus .btn) */
.contact-form .btn{
  border-radius: 10px;
}

/* Responsivo */
@media (max-width: 768px){
  .contact-form{
    padding: 22px;
  }

  .form-grid{
    grid-template-columns: 1fr;
  }
}