/* 
    ITAMARAJU REMOÇÕES - Official Design System 
    Color Palette:
    --primary: #0033a0 (Deep Blue)
    --secondary: #e4002b (Emergency Red)
    --bg-light: #f8fafc (Clean Background)
    --text-dark: #1e293b (Main Text)
    --accent: #0088cc (Action Blue)
*/

:root {
    --primary: #002d72; /* Navy Blue - More Professional */
    --primary-dark: #001f52;
    --secondary: #d9000d; /* Strong Red */
    --secondary-hover: #b3000a;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 45, 114, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* --- Typographical Utilities --- */
.text-primary { color: var(--primary); }
.text-gradient {
    color: #38bdf8; /* Brighter solid color for maximum compatibility */
    background: none;
    -webkit-text-fill-color: initial;
}

.highlight { color: var(--secondary); }

.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 20px 0;
}

.section-header.center .divider {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 51, 160, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 160, 0.4);
}

.btn-secondary {
    background-color: #e0e7ff;
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #c7d2fe;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background: #f1f5f9;
}

.btn.large { padding: 18px 40px; font-size: 1.1rem; }
.btn.small { padding: 10px 20px; font-size: 0.9rem; }
.btn.full-width { width: 100%; }

/* --- Header & Navbar --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: var(--primary); /* Start with solid color for maximum safety */
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.top-bar {
    background: rgba(0,0,0,0.2);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.header.scrolled .top-bar {
    height: 0;
    padding: 0;
    opacity: 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled .navbar {
    padding: 10px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Ensure logo is white on navy */
}

.header.scrolled .logo-img {
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.header.scrolled .logo-text {
    color: var(--primary);
}

.logo-text span {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.logo-text small {
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

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

.nav-links li a {
    color: var(--white) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header.scrolled .nav-links li a {
    color: var(--primary) !important;
}

.nav-links li a:hover {
    color: var(--secondary) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 220px 0 120px; /* More top padding for the fixed header */
    background: #001f52; /* Matching the navy precisely */
    border-radius: 0 0 80px 80px;
    overflow: hidden;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

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

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem); /* Responsive sizing */
    font-weight: 800;
    line-height: 1.1; /* Tighter line height for the big text */
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.hero-text p {
    font-size: 1.3rem; /* Slightly larger */
    color: #e2e8f0;
    margin-bottom: 45px;
    max-width: 550px;
    line-height: 1.7; /* More readable breathable text */
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-trust {
    display: flex;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.trust-item i { color: #38bdf8; }

.hero-visual { 
    position: relative; 
    padding: 20px; /* Space for floating cards */
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    /* Removed overflow: hidden to prevent cutting floating cards */
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.hero-main-img {
    width: 100%;
    display: block;
    border-radius: 20px; /* Apply radius to image since container overflow is gone */
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: floating 3s ease-in-out infinite;
}

.floating-card.urgent {
    bottom: 10%;
    left: -20px; /* Better anchoring outside container */
    background: var(--white);
    border-left: 5px solid var(--secondary);
    min-width: 200px;
    z-index: 10;
}

.floating-card i {
    font-size: 1.5rem;
    background: var(--secondary);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* --- Services Grid --- */
.services { padding: 100px 0; }

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--white) 0%, #f0f4ff 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 24px;
}

.service-card.featured .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.service-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- About & Stats --- */
.about { padding: 100px 0; background: var(--white); }

.about-visual {
    position: relative;
    flex: 1;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.stats-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 51, 160, 0.3);
}

.stats-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    line-height: 1;
}

.stats-badge .small-text {
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

.about-content { flex: 1; }

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.check-list i {
    color: #10b981;
    font-size: 1.1rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    padding: 60px 0;
    color: var(--white);
}

.cta-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-info h2 { font-size: 2.2rem; margin-bottom: 10px; }
.cta-info p { font-size: 1.1rem; opacity: 0.9; }

/* --- Differentials --- */
.differentials { padding: 100px 0; }

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

.diff-card {
    text-align: center;
    padding: 30px;
}

.diff-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.diff-card h4 { margin-bottom: 10px; font-size: 1.2rem; }
.diff-card p { color: var(--text-light); }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; background: #f0f4ff; }

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

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.quote-icon {
    color: #cbd5e1;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.client-info strong { display: block; color: var(--primary); }
.client-info span { font-size: 0.9rem; color: var(--text-light); }

/* --- Contact & Form --- */
.contact { padding: 100px 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-item div strong { display: block; margin-bottom: 4px; }
.contact-item div a, .contact-item div span {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form-block {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about h3 { margin-bottom: 20px; }
.footer-about p { color: #94a3b8; margin-bottom: 20px; max-width: 400px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover { background: var(--primary); }

.footer h4 { margin-bottom: 25px; font-size: 1.2rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer ul li a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Floating Actions --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    background: #25d366;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.call-float {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3rem; }
    .container-flex, .hero-content, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-visual { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    
    .cta-content-wrapper { flex-direction: column; text-align: center; gap: 30px; }
    
    .stats-badge { right: 0; bottom: -20px; padding: 15px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .call-float { display: flex; }
    .whatsapp-float { bottom: 120px; right: 20px; }
    .call-float { bottom: 120px; left: 20px; }
}
