/* 
   UPSIDE Contabilidade - Style
   Author: Senior Front-end Developer
*/

:root {
    --primary-color: #001540; /* Navy Blue from Logo */
    --secondary-color: #c5a059; /* Gold/Bronze from Logo */
    --accent-color: #e63946;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #fdfdfd;
    --bg-white: #ffffff;
    --bg-dark: #001540;
    
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

img { max-width: 100%; height: auto; display: block; }
.img-responsive { width: 100%; height: auto; }
.rounded { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #b08d4a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

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

.btn-secondary:hover {
    background-color: #002a7a;
    transform: translateY(-5px);
}

.btn-full { width: 100%; }

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 2px solid #f1f1f1;
    padding: 15px;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #041443;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 80px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: var(--transition);
}

.nav-menu ul li a:hover {
    color: var(--secondary-color);
}

.nav-social .instagram-link {
    color: #fff;
    transition: var(--transition);
}

.nav-social .instagram-link:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: var(--transition);
}

/* Banner Principal */
.banner {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-top: 110px;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 21, 64, 0.88) 45%, rgba(0, 21, 64, 0.1) 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 60px 70px 60px;
}

.banner-inner {
    max-width: 500px;
}

.banner-content h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    color: #fff;
    line-height: 1.05;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

/* Contact links */
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 70px;
    align-items: center;
}

.split-layout > div {
    flex: 1;
}

/* Sobre */
.sobre-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sobre-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.highlight-gold {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.benefit-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.brand-signature {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 40px;
}

.brand-signature span {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
}

/* Contabilidade Avançada Parallax */
.avancada-parallax {
    padding: 120px 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 21, 64, 0.85);
    z-index: 2;
}

.relative-content {
    position: relative;
    z-index: 3;
}

.avancada-content-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list-modern {
    list-style: none;
}

.feature-list-modern li {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
}

.feature-list-modern li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.highlight-text-white {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 30px;
}

/* Forms */
.modern-form {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.form-group input, .form-group select {
    border: 2px solid #f1f1f1;
    padding: 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Contrate */
.contrate-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

/* Contato */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.info-item svg {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 30px;
}

.footer-nav h4, .footer-contact h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-nav ul li a {
    color: rgba(255,255,255,0.6);
}

/* Instagram Section */
.instagram-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.instagram-section-header .insta-icon-header {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
}

.instagram-handle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.instagram-handle:hover {
    color: var(--secondary-color);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 780px;
    margin: 0 auto;
}

.insta-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 21, 64, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.insta-overlay svg {
    color: #fff;
    width: 22px;
    height: 22px;
}

.insta-item:hover img {
    transform: scale(1.08);
}

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

.mt-50 { margin-top: 50px; }
.mt-30 { margin-top: 30px; }

/* Instagram section specific overrides */
.instagram.section {
    padding: 70px 0;
}

.instagram .section-title {
    margin-bottom: 10px;
}

.instagram .instagram-section-header {
    margin-bottom: 32px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout, .avancada-content-box, .contrate-wrapper, .contato-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .banner-content h1 { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .instagram-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; max-width: 600px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contrate-wrapper { gap: 40px; }
    .sobre-images { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #041443;
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        height: auto;
        padding: 20px 0 30px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu ul li {
        margin: 12px 0;
        margin-left: 0;
    }

    .nav-menu ul li a {
        font-size: 0.95rem;
    }

    .nav-social {
        display: none;
    }
    
    .banner {
        height: 88vh;
        margin-top: 95px;
        align-items: flex-end;
    }

    .banner img {
        object-position: 70% center;
    }

    .banner-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 21, 64, 0.35) 0%,
            rgba(0, 21, 64, 0.55) 55%,
            rgba(0, 21, 64, 0.92) 100%
        );
    }

    .banner-content {
        padding: 0 20px 44px 20px;
    }

    .banner-inner {
        max-width: 100%;
    }

    .banner-content h1 { font-size: 2.4rem; }

    .modern-form { padding: 25px 20px; }

    .avancada-content-box {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .sobre-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .split-layout {
        gap: 30px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .container {
        padding: 0 15px;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer {
        padding: 50px 0 20px;
    }

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

    .logo img {
        height: 55px;
    }

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

    .info-item {
        gap: 12px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .btn { padding: 14px 24px; font-size: 0.82rem; }
    .modern-form { padding: 20px 15px; }
}

