/* SINTRAMPONTAL - Union Modernism Design System */

:root {
    /* Palette - Professional & High Contrast */
    --color-brand-dark: #0F4C3A;
    /* Deep Forest Green */
    --color-brand-primary: #006837;
    /* Legacy Green (Maintained for familiarity) */
    --color-brand-light: #2D8A56;
    /* Lighter Green */

    --color-brand-deep: #014421;
    /* [NEW] Deep Forest Green */
    --font-header-rounded: 'Nunito', sans-serif;
    /* [NEW] Rounded Extra Bold */

    --color-accent: #D4FF00;
    /* Neon Lime - Energy/Action */

    --color-surface-100: #FFFFFF;
    --color-surface-200: #F3F4F6;
    /* Light Gray */
    --color-surface-300: #E5E7EB;
    /* Border Gray */

    --color-text-main: #111827;
    /* Almost Black */
    --color-text-muted: #4B5563;
    /* Dark Gray */
    --color-text-inverse: #FFFFFF;

    /* Geometry - Sharp Professionalism */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    /* Used sparingly */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-container: 1200px;
    --header-height: auto;
    /* Changed to auto */

    /* Shadows */
    --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);
}

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

body {
    background-color: var(--color-surface-200);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-brand-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.grid {
    display: grid;
}

main {
    flex: 1;
    padding: 0;
}

/* Header - Modern Sticky */
header {
    background-color: var(--color-brand-deep);
    background-image: url('images/header-diagonal.svg');
    background-size: cover;
    background-position: center;
    color: var(--color-text-inverse);
    height: var(--header-height);
    padding: 0.5rem 0;
    /* Custom padding to balance layout */
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--color-accent);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

header .brand {
    width: 100%;
}

.brand-link {
    display: flex;
    align-items: flex-start;
    /* Align to top so we can push logo down */
    justify-content: center;
    /* Center logo and text together */
    gap: 1.5rem;
    width: 100%;
}

header .brand h1 {
    color: var(--color-text-inverse);
    font-family: var(--font-header-rounded);
    font-size: 1.1rem;
    /* Slightly larger for Nunito */
    /* Slightly larger */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
    /* Full width */
    max-width: none;
    /* Remove limit */
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    /* Center alignment */
    flex: 1;
}


.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.brand-cnpj {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

/* Legal Bar */
.legal-bar {
    background-color: var(--color-brand-primary);
    color: var(--color-text-inverse);
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Ensure it stacks correctly */
    z-index: 999;
}

/* Territory Bar */
.territory-bar {
    background-color: var(--color-brand-deep);
    /* Darker shade for hierarchy */
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 0.4rem 2rem;
    /* Side padding for long text */
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    border-bottom: 3px solid var(--color-accent);
    /* Move accent border here */
    position: relative;
    z-index: 998;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    /* Zoom to fill */
    border: 3px solid var(--color-accent);
    /* Active accent border */
    background-color: white;
    padding: 0;
    margin-top: 5px;
    margin-bottom: -60px;
    /* Allow overflow */
    position: relative;
    z-index: 1001;
    transform: scale(1);
    /* Remove zoom to prevent blur */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    image-rendering: -webkit-optimize-contrast;
    /* Try to sharpen */
}


header nav {
    width: 100%;
}

header nav ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    /* Centers the menu items */
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
    width: 100%;
}

header nav a {
    color: var(--color-surface-300);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

header nav a:hover,
header nav a.active {
    color: var(--color-accent);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.active::after {
    width: 100%;
}

/* Hero / Content Sections */
.hero-section {
    background-color: var(--color-surface-100);
    padding: 6rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border-left: 5px solid var(--color-brand-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--color-brand-primary);
    color: var(--color-text-inverse);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    /* Rounded Edges */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-accent);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-brand-dark);
}

.btn-accent:hover {
    background-color: var(--color-surface-100);
}

/* Cards */
.card {
    background: var(--color-surface-100);
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-surface-300);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-surface-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

/* Footer */
footer {
    background-color: #111;
    color: var(--color-surface-300);
    padding: 4rem 0 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

footer h3 {
    color: var(--color-surface-100);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    header {
        height: auto;
        padding: 1rem 0;
    }

    header nav {
        margin-top: 1rem;
    }

    header nav ul {
        gap: 1rem;
    }

    header nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {

    /* Header Restructuring for Mobile */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    header .brand {
        width: auto;
        flex: 1;
    }

    .brand-link {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .brand-logo {
        height: 60px;
        width: 60px;
        margin: 0;
        border-width: 2px;
    }

    .brand-text {
        align-items: flex-start;
        text-align: left;
    }

    header .brand h1 {
        font-size: 0.8rem;
        /* Smaller font for mobile */
        text-align: left;
        line-height: 1.1;
    }

    .brand-cnpj {
        font-size: 0.7rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--color-text-inverse);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    /* Hide Navigation by Default */
    .nav-menu {
        display: none;
        /* Hidden by default */
        width: 100%;
        margin-top: 1rem;
        background-color: var(--color-brand-deep);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: block;
        /* Show when active */
        animation: fadeUp 0.3s ease-out;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    header nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    header nav li:last-child {
        border-bottom: none;
    }

    header nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    header nav a::after {
        display: none;
        /* No hover underline on mobile */
    }

    .portal-btn {
        margin: 1rem !important;
        display: inline-block !important;
        width: auto !important;
    }

    /* Layout Adjustments */
    .hero-section {
        padding: 4rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Default state for desktop */
.mobile-menu-btn {
    display: none;
}