@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&display=swap');

/* ==========================================
   1. DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
    /* Color Palette - Hybrid Light & Dark Theme */
    --color-bg-primary: #f7f6f2;       /* Warm light off-white background */
    --color-bg-deep: #ffffff;          /* Pure white for containers */
    --color-bg-card: #ffffff;          /* Pure white for cards */
    --color-primary-brown: #7d542b;    /* Warm Brown logo primary */
    --color-accent-brown: #a0702f;     /* Light Brown accent */
    --color-accent-glow: rgba(160, 112, 47, 0.08);
    
    /* Dark Theme Elements (for Header, Hero, CTA, Footer, and Stats) */
    --color-bg-dark: #302e2f;          /* Dark Gray */
    --color-bg-dark-deep: #1e1d1d;     /* Deep black-gray */
    
    /* Light/Dark Text Colors */
    --color-text-dark: #2b2928;        /* Main dark text on light background */
    --color-text-dark-muted: #5e5b59;  /* Muted dark text on light background */
    
    --color-text-white: #ffffff;       /* Main light text on dark background */
    --color-text-light: #f4f3f2;
    --color-text-muted: #bcbab9;

    /* Fonts */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(125, 84, 43, 0.1);

    /* Layout values */
    --header-height: 90px;
    --max-width: 1280px;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-brown);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-brown);
}

/* ==========================================
   3. TYPOGRAPHY & HYBRID CONTRAST OVERRIDES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--color-text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); position: relative; margin-bottom: 2.5rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    color: var(--color-text-dark-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Dark Layout Theme Overrides (For Hero, Page-Hero, Header, Footer, Stats, and CTA Banner) */
.hero,
.page-hero,
header,
footer,
.stats-section,
.cta-banner,
.mobile-nav-panel,
.bg-dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5,
header h1, header h2, header h3, header h4, header h5,
footer h1, footer h2, footer h3, footer h4, footer h5,
.stats-section h1, .stats-section h2, .stats-section h3, .stats-section h4, .stats-section h5,
.cta-banner h1, .cta-banner h2, .cta-banner h3, .cta-banner h4, .cta-banner h5,
.mobile-nav-panel h1, .mobile-nav-panel h2, .mobile-nav-panel h3, .mobile-nav-panel h4, .mobile-nav-panel h5,
.bg-dark-theme h1, .bg-dark-theme h2, .bg-dark-theme h3, .bg-dark-theme h4, .bg-dark-theme h5 {
    color: var(--color-text-white);
}

.hero p,
.page-hero p,
header p,
footer p,
.stats-section p,
.cta-banner p,
.mobile-nav-panel p,
.bg-dark-theme p {
    color: var(--color-text-muted);
}

/* Underline decorative headings */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary-brown);
    transition: width var(--transition-normal);
}
.section-title:hover h2::after {
    width: 120px;
    background-color: var(--color-accent-brown);
}

/* ==========================================
   4. LAYOUT COMPONENTS
   ========================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

.bg-deep {
    background-color: var(--color-bg-deep);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background-color: rgba(30, 29, 29, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(125, 84, 43, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper img {
    height: 50px;
    width: auto;
}

/* Nav Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu > ul {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-brown);
    transition: var(--transition-fast);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--color-accent-brown);
}

.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    background-color: var(--color-bg-dark-deep);
    border-top: 2px solid var(--color-primary-brown);
    width: 250px;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-normal);
    z-index: 1001;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
}

.dropdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    display: block;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: rgba(125, 84, 43, 0.15);
    color: var(--color-text-white);
    padding-left: 25px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language toggle button */
.lang-toggle {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    border: 1px solid rgba(125, 84, 43, 0.4);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn.active {
    background-color: var(--color-primary-brown);
    color: var(--color-text-white);
}

.lang-btn:hover:not(.active) {
    color: var(--color-accent-brown);
}

/* Mobile Nav Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-light);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* Mobile Sidebar Menu */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg-dark-deep);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
    transition: var(--transition-slow);
}

.mobile-nav-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-header img {
    height: 38px;
    width: auto;
}

.mobile-nav-panel.open {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding: 30px 40px 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-white);
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu-toggle::after {
    content: '+';
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--color-primary-brown);
    transition: transform var(--transition-normal);
}

.mobile-nav-item.open-sub .mobile-submenu-toggle::after {
    content: '-';
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid rgba(125, 84, 43, 0.3);
}

.mobile-nav-item.open-sub .mobile-dropdown {
    max-height: 400px;
}

.mobile-dropdown-link {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.mobile-nav-panel .lang-toggle {
    margin-left: 40px;
    margin-top: 30px;
    align-self: flex-start;
}

/* Background overlay when mobile nav is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Active Hamburger class */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================
   5. BUTTONS AND COMMON ELEMENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px 35px;
    border-radius: 4px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-primary-brown);
    color: var(--color-text-white);
    border: 1px solid var(--color-primary-brown);
}

.btn-primary:hover {
    background-color: var(--color-accent-brown);
    border-color: var(--color-accent-brown);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent-brown);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-bg-dark);
    padding-left: 5px;
}

/* ==========================================
   6. HERO SECTION
   ========================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 29, 29, 0.95) 0%, rgba(30, 29, 29, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 80px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--color-accent-brown);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 0 auto 2.5rem;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(-1%, -1%);
    }
}

/* ==========================================
   7. PAGE HERO / INNER BANNERS
   ========================================== */
.page-hero {
    height: 40vh;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 29, 29, 0.95), rgba(30, 29, 29, 0.7));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-family: var(--font-heading);
    color: var(--color-accent-brown);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumbs span {
    color: var(--color-text-muted);
    margin: 0 8px;
}

/* ==========================================
   8. SPECIFIC PAGE TEMPLATES & LAYOUTS
   ========================================== */

/* Split Sections (Text & Image) */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.split-layout.reverse .split-text {
    order: 2;
}

.split-text h2 {
    margin-bottom: 1.5rem;
}

.split-text h2::after {
    left: 0;
    transform: none;
}

.split-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.split-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary-brown);
    border-radius: 8px;
    transform: translate(15px, 15px);
    z-index: -1;
    pointer-events: none;
}

.split-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform var(--transition-slow);
}

.split-image-container:hover .split-image {
    transform: scale(1.05);
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sector-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(125, 84, 43, 0.12);
    padding: 40px 30px;
    border-radius: 6px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary-brown);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.sector-card-icon {
    width: 50px;
    height: 50px;
    stroke: var(--color-primary-brown);
    margin-bottom: 25px;
    transition: transform var(--transition-normal), stroke var(--transition-normal);
}

.sector-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.sector-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sector-card:hover {
    transform: translateY(-8px);
    border-color: rgba(125, 84, 43, 0.2);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    background-color: var(--color-bg-deep);
}

.sector-card:hover::before {
    transform: scaleX(1);
}

.sector-card:hover .sector-card-icon {
    transform: scale(1.15);
    stroke: var(--color-accent-brown);
}

/* Services Grid (Main Overview) */
.services-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-overview-box {
    background-color: var(--color-bg-deep);
    border: 1px solid rgba(125, 84, 43, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
}

.service-overview-img {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-overview-img-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(30, 29, 29, 0.9) 100%);
}

.service-overview-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-overview-content h3 {
    margin-bottom: 15px;
}

.service-overview-content p {
    flex-grow: 1;
}

/* Sub-service Cards (Listing in page 3 / 4) */
.subservices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.subservice-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(125, 84, 43, 0.12);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subservice-card-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.subservice-card:hover .subservice-card-img {
    transform: scale(1.05);
}

.subservice-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.subservice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.subservice-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.subservice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    border-color: rgba(125, 84, 43, 0.3);
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(rgba(30, 29, 29, 0.9), rgba(30, 29, 29, 0.9)), url('assets/images/training-guards.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

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

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-accent-brown);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-white);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 200px;
    margin: 0 auto;
}

/* Callout values - Sobre Nos */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary-brown);
    border-top: 1px solid rgba(125, 84, 43, 0.12);
    border-right: 1px solid rgba(125, 84, 43, 0.12);
    border-bottom: 1px solid rgba(125, 84, 43, 0.12);
    box-shadow: var(--shadow-premium);
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Callout / Obter Cotação Section */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary-brown) 0%, #4a3018 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    margin-bottom: 15px;
}

.cta-banner h2::after {
    display: none;
}

.cta-banner p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 1.15rem;
}

/* Notícias / Blog Section */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--color-primary-brown);
    border-color: var(--color-primary-brown);
    color: var(--color-text-white);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 45px;
    background-color: var(--color-bg-deep);
    border: 1px solid rgba(125, 84, 43, 0.2);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.search-input:focus {
    border-color: var(--color-primary-brown);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--color-text-muted);
}

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

.news-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(125, 84, 43, 0.12);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-accent-brown);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.news-card-meta span {
    color: var(--color-text-muted);
    margin: 0 5px;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

/* Contact Details & Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-block h3 {
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(125, 84, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary-brown);
}

.contact-detail-text h4 {
    font-size: 1rem;
    color: var(--color-accent-brown);
    margin-bottom: 5px;
}

.contact-detail-text p {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--color-text-dark);
}

.contact-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.branch-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary-brown);
}

.branch-box p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Form inputs & structure */
.contact-form-block {
    background-color: var(--color-bg-card);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(125, 84, 43, 0.15);
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--color-accent-brown);
}

.form-control {
    width: 100%;
    background-color: #faf9f7;
    border: 1px solid rgba(125, 84, 43, 0.2);
    padding: 12px 18px;
    border-radius: 4px;
    color: var(--color-text-dark);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary-brown);
    box-shadow: 0 0 10px rgba(125, 84, 43, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    display: none;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-feedback.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Map Section */
.map-section {
    padding: 0;
    height: 450px;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-card);
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow-premium);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
    stroke: var(--color-primary-brown);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background-color: rgba(0, 0, 0, 0.1);
}

.faq-answer-content {
    padding: 25px 30px;
}

.faq-answer p {
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* arbitrary height to slide down */
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    stroke: var(--color-accent-brown);
}

/* ==========================================
   9. INTERACTIVE DASHBOARD: PORTAL DE INTELIGÊNCIA
   ========================================== */
.intelligence-portal-container {
    background-color: #151414;
    border: 1px solid #7d542b50;
    border-radius: 8px;
    padding: 30px;
    font-family: monospace;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.portal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #7d542b40;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.portal-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-status-light {
    width: 12px;
    height: 12px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff66;
    animation: pulse 1.5s infinite alternate;
}

.portal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.portal-metric-card {
    background-color: #1e1d1d;
    padding: 20px;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary-brown);
}

.portal-metric-card .label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.portal-metric-card .value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-text-white);
    margin-top: 5px;
}

.portal-activity-log {
    background-color: #0a0a0a;
    padding: 20px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry {
    font-size: 0.85rem;
    color: #00ff66;
    margin-bottom: 8px;
    line-height: 1.4;
}

.log-entry span.time {
    color: var(--color-accent-brown);
    margin-right: 10px;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 4px #00ff66;
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #00ff66;
    }
}

/* ==========================================
   10. FOOTER
   ========================================== */
footer {
    background-color: var(--color-bg-dark-deep);
    color: var(--color-text-light);
    padding: 80px 0 30px;
    border-top: 2px solid var(--color-primary-brown);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 55px;
    width: auto;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--color-primary-brown);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.social-link:hover svg {
    fill: var(--color-accent-brown);
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary-brown);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary-brown);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
    color: var(--color-accent-brown);
}

/* ==========================================
   11. SCROLL ENTRANCE ANIMATIONS (IntersectionObserver)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ==========================================
   12. RESPONSIVENESS MEDIA QUERIES
   ========================================== */

/* Desktop / Tablet break */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }
    
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px;
    }

    .stat-item:nth-child(even) {
        border-left: none;
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablet / Mobile break */
@media (max-width: 768px) {
    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-layout.reverse .split-text {
        order: 0;
    }

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
