/* ==========================================================================
   DESIGN SYSTEM - TRILHAS DO PAMPA (VANILLA CSS)
   ========================================================================== */

/* Custom properties for color palette & styling tokens */
:root {
    --primary: #538135;            /* Grass Green */
    --primary-dark: #2d4a1d;       /* Forest Green Deep */
    --primary-light: #e9f3e4;      /* Soft Sage Green tint */
    --secondary: #d4a373;          /* Warm Earthy Ochre */
    --secondary-dark: #a97746;     /* Terracotta brown */
    --secondary-light: #f5ebe0;    /* Sandy Dune beige */
    --dark: #141f0f;               /* Dark Olive/Charcoal */
    --light: #faf8f5;              /* Cream / Off-white background */
    --white: #ffffff;
    --text-dark: #242d1f;          /* Deep moss text color */
    --text-muted: #5e6b56;         /* Muted moss text */
    --border-color: #e2ebd9;
    --danger: #b03a2e;
    --danger-light: #fceceb;
    --warning: #f5b041;
    --warning-light: #fef9e7;
    --whatsapp: #25D366;
    
    /* Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Animations & Shadows */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(36, 45, 31, 0.05);
    --shadow-md: 0 8px 20px rgba(36, 45, 31, 0.08);
    --shadow-lg: 0 16px 36px rgba(36, 45, 31, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ==========================================================================
   LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}

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

.flex { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: 64px; }

/* Spacers */
.py-sm { padding-top: 24px; padding-bottom: 24px; }
.py-md { padding-top: 48px; padding-bottom: 48px; }
.py-lg { padding-top: 80px; padding-bottom: 80px; }
.p-sm { padding: 16px; }
.p-md { padding: 24px; }
.p-lg { padding: 32px; }
.px-sm { padding-left: 16px; padding-right: 16px; }
.px-md { padding-left: 24px; padding-right: 24px; }
.px-lg { padding-left: 32px; padding-right: 32px; }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mb-xl { margin-bottom: 64px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 64px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.width-full { width: 100%; }
.max-width-md { max-width: 600px; }
.max-width-lg { max-width: 800px; }

.text-center { text-align: center; }
.text-justify { text-align: justify; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--white); }
.text-light-muted { color: rgba(255, 255, 255, 0.7); }
.text-dark { color: var(--dark); }

.bg-dark { background-color: var(--dark); }
.bg-light { background-color: var(--white); }
.bg-primary-light { background-color: var(--primary-light); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.rounded { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    border-radius: 2px;
    margin: 16px 0;
}

.divider.border-light-muted {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 129, 53, 0.25);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
}

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

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

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

.btn-whatsapp:hover {
    background-color: #1ebd5b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 235, 217, 0.5);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-link:hover .nav-logo {
    transform: scale(1.05);
}

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

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

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

/* ==========================================================================
   SPA TAB PANELS (Transitions)
   ========================================================================== */
.main-content {
    margin-top: 85px; /* Offset fixed header */
    min-height: calc(100vh - 85px - 300px);
}

.tab-panel {
    display: none;
    animation: fadeSlideIn 0.5s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
    position: relative;
    padding: 120px 24px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid var(--secondary);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 5;
    animation: fadeInUp 0.8s ease;
}

.hero-tag {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SECTION & ELEMENT COMPONENTS
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-tag {
    font-family: var(--font-title);
    text-transform: uppercase;
    color: var(--secondary-dark);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    display: block;
}

.sub-section-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    border-left: 5px solid var(--primary);
    padding-left: 16px;
    margin-bottom: 24px;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.3;
}

.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-image-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(83, 129, 53, 0.15);
    pointer-events: none;
    border-radius: var(--radius-md);
}

.border-grass {
    border: 3px solid var(--primary-light);
}

/* Modalities cards in home */
.modalities-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.modal-mini-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.modal-mini-card i {
    color: var(--primary);
    transition: var(--transition-smooth);
}

.modal-mini-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-mini-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.modal-mini-card:hover i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Video Player Box */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.play-btn-circle:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.video-duration {
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Stats list beside map */
.stats-list {
    display: grid;
    gap: 16px;
}

.stat-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-family: var(--font-title);
    color: var(--primary-dark);
}

.stat-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   METRICS & LOGOS (ABOUT TAB)
   ========================================================================== */
.info-metric-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.metric-val {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-weight: 800;
}

.metric-val-text {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 8px 0;
}

.metric-lbl {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.redetrilhas-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.redetrilhas-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Mission Vision Values */
.mvv-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border-top: 5px solid var(--primary);
    transition: var(--transition-smooth);
}

.mvv-card.vision {
    border-top-color: var(--secondary);
}

.mvv-card.values {
    border-top-color: var(--primary-dark);
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.mvv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mvv-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mvv-card.vision .mvv-header i { color: var(--secondary); }
.mvv-card.values .mvv-header i { color: var(--primary-dark); }

.mvv-header h3 {
    font-size: 1.35rem;
    margin: 0;
}

.mvv-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: justify;
}

.values-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: grid;
    gap: 8px;
}

.values-list li {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   VERTICAL TIMELINE
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-block {
    position: relative;
    margin: 40px 0;
}

.timeline-block::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-img {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.timeline-block:nth-child(even) .timeline-img {
    background-color: var(--secondary);
}

.timeline-content {
    position: relative;
    width: 45%;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    float: left;
}

.timeline-block:nth-child(even) .timeline-content {
    float: right;
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-block:nth-child(even) .timeline-year {
    color: var(--secondary-dark);
}

.timeline-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.timeline-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.bullet-list {
    list-style: none;
    font-size: 0.9rem;
    display: grid;
    gap: 8px;
}

.bullet-list li {
    position: relative;
    padding-left: 16px;
    text-align: justify;
}

.bullet-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

/* ==========================================================================
   MODALITIES SELECTOR GRID & TABS (ABA 3)
   ========================================================================== */
.modal-list-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.modal-list-card:hover {
    transform: translateX(6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.modalities-main-list {
    display: grid;
    gap: 16px;
}

.modal-list-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.modal-list-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.modal-list-card .card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modal-list-card .card-details h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.modal-list-card .card-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-list-card .card-arrow {
    color: var(--border-color);
    transition: var(--transition-smooth);
}

.modal-list-card:hover .card-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* Right-column photos stacked vertically */
#modals-selection-grid .grid-2col {
    grid-template-columns: 3fr 2fr;
}

@media (max-width: 768px) {
    #modals-selection-grid .grid-2col {
        grid-template-columns: 1fr;
    }
    .modalities-photos-stack {
        order: 2;
    }
}

.modalities-photos-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Modalities stacked vertically */
.modalities-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.modality-stack-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.modality-stack-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.modality-stack-img-wrap {
    position: relative;
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    overflow: hidden;
}

.modality-stack-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.modality-stack-card:hover .modality-stack-img-wrap img {
    transform: scale(1.05);
}

.modality-stack-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.9;
}

.modality-stack-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    gap: 16px;
}

.modality-stack-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.modality-stack-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modality-stack-card .card-arrow {
    color: var(--border-color);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.modality-stack-card:hover .card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .modality-stack-card {
        flex-direction: column;
    }
    .modality-stack-img-wrap {
        width: 100%;
        min-width: unset;
        height: 180px;
    }
}

/* Sub views inside Trechos tab */
.modal-detail-panel {
    animation: fadeSlideIn 0.5s ease forwards;
}

.info-pill {
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
    padding: 6px 16px;
    border-radius: 20px;
}

.inline-block {
    display: inline-block;
}

/* GPS Alert styling */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 5px solid transparent;
}

.alert-warning {
    background-color: var(--warning-light);
    border-left-color: var(--warning);
    color: #7d5a1c;
}

.alert-warning .alert-icon {
    color: var(--warning);
    font-size: 1.5rem;
}

.alert-danger {
    background-color: var(--danger-light);
    border-left-color: var(--danger);
    color: #78261f;
}

.alert-danger .alert-icon {
    color: var(--danger);
    font-size: 1.5rem;
}

/* Pictograms row */
.pictograms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.picto-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.picto-badge i {
    color: var(--primary);
}

/* Accordion details */
.accordion-group {
    display: grid;
    gap: 12px;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-dark);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background-color: var(--primary-light);
}

.accordion-indicator {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.accordion-item.active .accordion-indicator {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 2500px; /* high limit to fit large content but keep animation transition */
    padding: 16px 24px 28px 24px;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
}

.accordion-content h3 {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.tech-metric {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-metric:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.tech-metric-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
    background: var(--primary-light);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tech-metric:hover .tech-metric-icon {
    transform: scale(1.1);
}

.tech-metric strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tech-metric span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

/* Difficulty dynamic colors */
.tech-metric.difficulty-moderada {
    border-color: #a5d6a7;
    background: #f1f8f5;
}
.tech-metric.difficulty-moderada .tech-metric-icon {
    color: #2e7d32;
    background: #e8f5e9;
}
.tech-metric.difficulty-moderada span {
    color: #2e7d32;
}

.tech-metric.difficulty-intermediaria {
    border-color: #ffcc80;
    background: #fffbf5;
}
.tech-metric.difficulty-intermediaria .tech-metric-icon {
    color: #e65100;
    background: #fff3e0;
}
.tech-metric.difficulty-intermediaria span {
    color: #e65100;
}

.tech-metric.difficulty-elevada {
    border-color: #ef9a9a;
    background: #fff5f5;
}
.tech-metric.difficulty-elevada .tech-metric-icon {
    color: #c62828;
    background: #ffebee;
}
.tech-metric.difficulty-elevada span {
    color: #c62828;
}


/* Map frame & wrappers */
.map-iframe-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.download-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    color: inherit;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.dload-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.download-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.download-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   TOWNS & MUNICÍPIOS (ABA 4)
   ========================================================================== */
.town-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.town-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.town-card .town-body {
    flex: 1;
}

.town-header {
    padding: 80px 24px 24px 24px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.town-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.town-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.65));
    z-index: 1;
}

.town-header h2,
.town-header span {
    position: relative;
    z-index: 2;
}

.town-header h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.town-header span {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.town-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.town-body > p {
    flex-shrink: 0;
}

.town-accordion {
    margin-top: auto;
    padding-top: 12px;
}

/* Town Accordion */

.town-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--primary-light, #f0f7f0);
    border: 1px solid var(--grass, #4a7c3f);
    color: var(--grass-dark, #2d5a1b);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.town-accordion-btn:hover {
    background: var(--grass-light, #d6edcc);
}

.town-accordion-btn i {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.town-accordion-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.town-accordion-body {
    padding: 16px 4px 4px;
}

/* ==========================================================================
   SERVICES MATRIX (ABA 5)
   ========================================================================== */
.services-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-matrix-item {
    background-color: var(--light);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.s-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-matrix-item h4 {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   ACORDION TABLE (ABA 6)
   ========================================================================== */
.properties-accordion {
    display: grid;
    gap: 12px;
}

.prop-acc-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.prop-acc-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prop-acc-header:hover {
    background-color: var(--primary-light);
}

.prop-acc-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.prop-acc-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.prop-acc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.prop-acc-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.prop-service-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background-color: #f1f6ed;
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(83, 129, 53, 0.1);
}

.prop-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
    background-color: #fafbfc;
}

.prop-acc-item.active .prop-acc-content {
    max-height: 400px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* New inline accordion styles */
.prop-accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.prop-accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.prop-accordion-header:hover {
    background-color: var(--primary-light);
}

.prop-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
    min-width: 220px;
}

.prop-services-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-grow: 1;
}

.prop-tag {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: #f1f6ed;
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(83,129,53,0.15);
    white-space: nowrap;
}

.prop-chevron {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.prop-accordion-item.open .prop-chevron {
    transform: rotate(180deg);
}

.prop-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 0px solid var(--border-color);
    background-color: #fafbfc;
}

.prop-accordion-item.open .prop-accordion-body {
    max-height: 600px;
    border-top: 1px solid var(--border-color);
}

.prop-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 22px;
}

.prop-detail-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prop-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-detail-block > span:not(.prop-detail-label),
.prop-detail-block > a {
    font-size: 0.92rem;
    color: var(--text-dark);
}

.prop-map-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
}

.prop-map-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .prop-services-preview { display: none; }
    .prop-name { min-width: unset; }
}

/* Service Detail Fields */
.prop-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prop-detail-field {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.prop-detail-field i {
    color: var(--secondary-dark);
    font-size: 1.1rem;
    margin-top: 4px;
    width: 20px;
}

.prop-field-val strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}

.prop-field-val span, .prop-field-val a {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.prop-field-val a {
    text-decoration: underline;
}

/* Register form styles */
.agency-form-wrap {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease;
}

.responsive-form {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--light);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(83, 129, 53, 0.12);
}

/* ==========================================================================
   FOOTSTEPS SCROLL WOW EFFECT
   ========================================================================== */
#footsteps-tracker {
    position: fixed;
    right: 24px;
    top: 90px;
    bottom: 40px;
    width: 60px;
    z-index: 90;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scrolling-footprint {
    width: 20px;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    margin: 20px 0;
}

.scrolling-footprint.step-left {
    align-self: flex-start;
    transform: rotate(185deg) scale(0.9);
}

.scrolling-footprint.step-right {
    align-self: flex-end;
    transform: rotate(175deg) scale(0.9);
}

/* When the step lights up */
.scrolling-footprint.active {
    opacity: 0.75;
    transform: scale(1.1) rotate(180deg);
}

/* FOOTER LOGOS BAND */
.global-footer {
    padding-top: 80px;
    padding-bottom: 48px;
    margin-top: 80px;
}

.footer-large-logo {
    height: 70px;
    width: auto;
}

.footer-logos-band {
    padding: 6px 0 12px;
}

.footer-logos-band .container {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 32px 12px;
}

.footer-logos-sections {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.footer-logos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
}

.footer-logos-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
}

.footer-logos-section-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-logos-copyright {
    text-align: center;
    font-size: 0.72rem;
    color: #888;
    margin-top: 14px;
}

.footer-logos-divider {
    width: 1px;
    background: #ddd;
    align-self: stretch;
    margin: 0 8px;
}

.footer-logo-item {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.footer-logo-item:hover {
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px;
}

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

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* ==========================================================================
   OPERATOR CARDS
   ========================================================================== */
.operator-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    min-height: 280px;
    border-left: 5px solid var(--primary);
    text-align: left;
}

.operator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.operator-header {
    margin-bottom: 16px;
    text-align: left;
}

.operator-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.operator-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
}

.operator-body {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.operator-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.operator-contact-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.operator-contact-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.operator-contact-item a {
    color: var(--primary-dark);
    font-weight: 600;
}

.operator-contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 992px) {
    .grid-4col { grid-template-columns: repeat(2, 1fr); }
    .grid-3col { grid-template-columns: repeat(2, 1fr); }
    .timeline-container::before { left: 40px; }
    .timeline-img { left: 40px; }
    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.15rem; }
    #footsteps-tracker { right: 8px; width: 40px; }
    .scrolling-footprint { width: 14px; margin: 12px 0; }
    .town-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-2col, .grid-3col, .grid-4col { grid-template-columns: 1fr; }
    
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        display: block;
        padding: 10px 16px;
    }

    .services-matrix-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .prop-details-grid { grid-template-columns: 1fr; }
    
    .modalities-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #footsteps-tracker {
        display: none; /* Hide footsteps scroll tracker on mobile screens to preserve reading space */
    }
}

/* Custom card style for Rede Trilheiros do Pampa */
.trilheiros-card {
    border-left: 4px solid var(--primary) !important;
}

@media (max-width: 480px) {
    .trilheiros-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 16px 12px !important;
    }
    .trilheiros-card img {
        margin: 0 auto;
    }
    .trilheiros-card h4, 
    .trilheiros-card p {
        text-align: center !important;
    }

    /* Ajustes responsivos para o card RedeTrilhas */
    .redetrilhas-card {
        padding: 16px !important;
    }
    .redetrilhas-card .flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .redetrilhas-logo {
        margin: 0 auto;
        height: 60px !important;
    }

    /* Ajustes responsivos para a Linha do Tempo (Nossa História) */
    .timeline-container::before {
        display: none !important;
    }
    .timeline-img {
        display: none !important;
    }
    .timeline-content {
        width: 100% !important;
        float: none !important;
        padding: 16px !important;
    }

    /* Ajustes responsivos para evitar esmagamento de cards em Sobre a Trilha */
    .info-metric-card {
        padding: 16px 12px !important;
    }
    .info-metric-card .metric-val {
        font-size: 1.75rem !important;
    }
    .info-metric-card .metric-val-text {
        font-size: 1.1rem !important;
    }
    .mvv-card {
        padding: 20px 16px !important;
    }

    /* Regra geral de quebras de palavra em telas muito estreitas (320px) */
    .info-metric-card, 
    .mvv-card, 
    .timeline-content, 
    .card,
    .trilheiros-card,
    .redetrilhas-card {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Ajuste de espaçamento interno para os blocos com fundo em Planeje e Prestadores */
.visitor-guide-box {
    padding: 40px !important;
}
.condutores-card {
    padding: 40px !important;
}
.operadoras-card {
    padding: 40px !important;
}

@media (max-width: 768px) {
    .visitor-guide-box {
        padding: 24px 16px !important;
    }
    .condutores-card {
        padding: 24px 16px !important;
    }
    .operadoras-card {
        padding: 24px 16px !important;
    }
}


