/* 
* Grupo Zyun - Style.css
* Identity: Blue #283138 | Red #a02e2a | BG #f2f2f2 
* REFACTOR: Stability & Premium Polish
*/

:root {
    --color-primary: #283138;
    /* Azul Institucional */
    --color-secondary: #a02e2a;
    /* Vermelho Institucional */
    --color-secondary-dark: #802421;
    --color-bg: #f2f2f2;
    /* Cinza claro */
    --color-white: #ffffff;
    --color-text-main: #333333;
    --color-text-light: #555555;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Tighter, more modern spacing */
    line-height: 1.3;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 120px 0;
    /* More breathing room */
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: #fff;
}

.center {
    text-align: center;
}

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: var(--color-primary);
    text-align: center;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 15px auto 0;
    transition: var(--transition);
}

.section-title:hover::after {
    width: 100px;
}

/* --- Buttons (Premium Polish) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 45px;
    /* GENEROUS PADDING */
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Improved readability */
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(160, 46, 42, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(160, 46, 42, 0.4);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #171d21;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    border-color: var(--color-white);
}

.btn-text {
    color: var(--color-secondary);
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    /* Clickable area */
}

.btn-text:hover {
    gap: 15px;
    /* Slide effect */
}

.btn-center {
    display: flex;
    width: fit-content;
    min-width: 200px;
    margin: 30px auto 0;
    justify-content: center;
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* Removed text styles, now handling image */
}

.logo img {
    height: 50px;
    /* Fixed height for header */
    width: auto;
    transition: var(--transition);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    /* User uploaded image: Hero.png */
    background-color: var(--color-primary);
    /* Fallback color */
    background-image: url('Hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cinematic Dark Overlay - Perfect balance for text/image */
    background: rgba(15, 20, 25, 0.75);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 20px;
    /* Clean, open layout */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    animation: fadeInUp 1s ease-out;
    /* Optically center slightly lower to account for navbar */
    margin-top: 60px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Reduced from 4.5rem */
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff !important;
    /* Force Pure White */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
    font-weight: 700;
    /* Slightly less heavy */
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    /* Reduced from 1.4rem */
    margin-bottom: 40px;
    color: #f0f0f0 !important;
    /* Slightly off-white for hierarchy but readable */
    opacity: 1;
    /* Full opacity */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    /* More space between buttons */
    justify-content: center;
    flex-wrap: wrap;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.about-list i {
    color: var(--color-secondary);
}

/* --- About Image --- */
.about-image img {
    max-width: 100%;
    height: auto;
    /* Clean display for transparent PNGs */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --- Services Section --- */
#servicos {
    padding: 60px 0;
    /* Reduced to fix excessive white space */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    margin-top: 30px;
    /* Reduced from 50px */
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    /* Slightly more compact */
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    top: 0;
    border: 1px solid #eee;
    /* Subtle border for definition on white */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-secondary);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    color: var(--color-text-light);
}

.service-card ul li::before {
    content: '•';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* --- Differentiators --- */
.diferenciais-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.diferencial-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
    flex: 1 1 300px;
    max-width: 350px;
}

.diferencial-item:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

.diferencial-item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.diferencial-item:hover i {
    color: var(--color-secondary);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #15191d 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.cta-content p {
    margin-bottom: 50px;
    /* Increased from implicit default */
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-large {
    padding: 20px 60px;
    /* Even larger for CTA */
    font-size: 1.1rem;
    margin-top: 10px;
    /* Extra safety margin */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 40px;
    /* Increased separation from cards */
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--color-secondary);
    align-items: center;
    /* Center content vertically */
}

.info-item h3 {
    margin-bottom: 5px;
    /* Tighten title */
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0;
    /* Remove bottom margin */
    font-size: 1rem;
    line-height: 1.4;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    /* margin-top: 5px; Removed for vertical centering */
}

/* Premium Form Styling */
.contact-form-wrapper form {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #eef0f2;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
    box-shadow: 0 5px 15px rgba(160, 46, 42, 0.1);
    /* Subtle red glow matching brand */
}

.full-width {
    width: 100%;
}

/* --- Footer (Brand Aligned) --- */
#footer {
    background: #1a2026;
    /* Dark Blue-Grey (Brand aligned) */
    color: #b0b8c0;
    padding-top: 100px;
    /* Increased padding */
    border-top: 4px solid var(--color-secondary);
    /* Red accent top */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    /* Diagrammed layout */
    gap: 60px;
    /* Increased gap */
    padding-bottom: 80px;
    /* Increased bottom padding */
    align-items: start;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    /* More space before icons */
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
}

.footer-col ul li {
    margin-bottom: 15px;
    /* More vertical space between links */
}

.footer-col ul li a {
    color: #b0b8c0;
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-col ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Updated Social Icons */
.social-links.left {
    display: flex;
    gap: 20px;
    /* Wider spacing */
}

.social-links.left a {
    width: 55px;
    /* Larger targets */
    height: 55px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links.left a i {
    font-size: 1.5rem;
    /* Larger icons */
    color: white;
}

.social-links.left a:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(160, 46, 42, 0.3);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Floating Button --- */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.float-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.tooltip-24h {
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip-24h::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.float-whatsapp:hover .tooltip-24h {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero {
        background-attachment: scroll;
        background-position: center;
        /* Ensure centered */
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    #header {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 40px;
        transition: 0.4s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .header-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links.left {
        justify-content: center;
    }

    .about-text {
        text-align: center;
    }

    .service-card,
    .diferencial-item {
        text-align: center;
        max-width: 100%;
    }

    .contact-info {
        text-align: center;
    }

    .contact-form-wrapper form {
        padding: 30px 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legal-links a {
        margin: 0 10px;
    }
}