/* ========================================
   IPI'S Mecânica - Full Stylesheet
   ======================================== */

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

:root {
    --color-black: #111111;
    --color-dark-gray: #1F1F1F;
    --color-red: #E31B23;
    --color-gold: #FFD700;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --max-width: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    overflow-x: hidden;
}

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

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ========================================
   Mobile Menu Toggle (Hidden by Default)
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s;
    border-radius: 2px;
}

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

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

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

/* ========================================
   Hero Decoration (Dynamic Background)
   ======================================== */
.hero-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background: linear-gradient(45deg, transparent 30%, rgba(227, 27, 35, 0.05) 100%);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 6rem 0;
    background: var(--color-light-gray);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 27, 35, 0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 6rem 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background: var(--color-dark-gray);
    color: var(--color-white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 27, 35, 0.3);
}

.service-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(17, 17, 17, 0.8) 100%);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: #ccc;
}

.services-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* ========================================
   CTA Banner Section
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-red) 0%, #c91419 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-banner p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    color: var(--color-red);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    font-size: 2rem;
}

/* ========================================
   Location Section
   ======================================== */
.location {
    padding: 6rem 0;
    background: var(--color-light-gray);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #444;
    line-height: 1.7;
}

.info-item a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-red);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #888;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .header-container {
        padding: 0.5rem 0;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

@media (max-width: 640px) {
    .hero {
        padding: 6rem 5% 4rem;
        min-height: 90vh;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-btn-large {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   Animations & Transitions
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Feature icons animation */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s;
}

/* Service cards enhanced animation */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
}

/* CTA button pulse on hover */
.cta-btn-large {
    transition: all 0.3s ease;
}

.cta-btn-large:hover {
    animation: pulse 0.8s infinite;
}

/* WhatsApp float bounce */
.whatsapp-float {
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .header,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none;
    }
}