/* 
   IBSE - Instituto Brasileiro de Saberes e Expressões
   Core Stylesheet - Versão v1.0 (Design 2030)
   Desenvolvido com foco em Desempenho, Acessibilidade (WCAG AA) e Usabilidade.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

/* --- Design Tokens / Variables --- */
:root {
    /* Cores Primárias */
    --color-green-deep: #0B3D2E;
    --color-graphite: #1F2328;
    --color-off-white: #F4F1EA;
    --color-white: #FFFFFF;
    
    /* Cores Secundárias */
    --color-blue-petrol: #0E4A6B;
    --color-terracotta: #B24A2F;
    --color-yellow-cerrado: #D6A400;
    --color-plum: #4B2E5A;
    
    /* Cores de Acessibilidade / Feedback */
    --color-error: #D32F2F;
    --color-success: #2E7D32;
    --color-info: #0288D1;
    
    /* Variáveis do Tema Ativo (Light por padrão) */
    --bg-main: var(--color-off-white);
    --bg-card: var(--color-white);
    --text-main: var(--color-graphite);
    --text-muted: #57606A;
    --text-light: var(--color-white);
    --primary: var(--color-green-deep);
    --primary-hover: #07291F;
    --border-color: rgba(31, 35, 40, 0.1);
    --shadow-sm: 0 2px 4px rgba(31, 35, 40, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 35, 40, 0.08);
    --shadow-lg: 0 16px 40px rgba(31, 35, 40, 0.12);
    
    /* Fontes */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Fraunces', serif;
    
    /* Outros */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-scale: 1;
}

/* --- Tema de Alto Contraste (Acessibilidade) --- */
body.high-contrast {
    --bg-main: #000000;
    --bg-card: #121212;
    --text-main: #FFFFFF;
    --text-muted: #CCCCCC;
    --text-light: #000000;
    --primary: #FFFF00; /* Amarelo de alto contraste */
    --primary-hover: #FFFF80;
    --border-color: #FFFFFF;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --color-blue-petrol: #00FFFF;
    --color-terracotta: #FF8080;
    --color-yellow-cerrado: #FFFF00;
    --color-plum: #FF00FF;
}

body.high-contrast * {
    background-image: none !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: calc(16px * var(--font-scale));
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    transition: color 0.3s ease;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-terracotta);
    border-radius: 2px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--color-terracotta);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Accessibility Panel (Floating) --- */
.accessibility-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    transition: var(--transition);
}

.accessibility-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.accessibility-btn:hover, .accessibility-btn:focus {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    outline: none;
}

/* --- Header / Navigation --- */
.header-wrapper {
    position: sticky;
    top: 0;
    background-color: rgba(244, 241, 234, 0.85); /* Fundo off-white translúcido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

body.high-contrast .header-wrapper {
    background-color: #000000;
    border-bottom: 1px solid #FFFFFF;
}

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

.logo-link {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Faz o fundo branco do logo mesclar com o off-white */
    transition: var(--transition);
}

body.high-contrast .logo-img {
    filter: invert(1) hue-rotate(180deg); /* Inverte cores para fundo preto no alto contraste */
    mix-blend-mode: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    position: relative;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 16px);
}

.nav-link:hover {
    color: var(--color-terracotta);
}

.nav-link.active {
    color: var(--primary);
}

.nav-btn {
    background-color: var(--primary);
    color: var(--text-light) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.nav-btn::after {
    display: none;
}

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero-section {
    padding: 6rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-green-deep);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(11, 61, 46, 0.05);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-display-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    transform: rotate(1deg);
    transition: var(--transition);
}

.logo-display-card:hover {
    transform: rotate(0) scale(1.02);
}

.logo-display-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.high-contrast .logo-display-card img {
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: normal;
}

/* --- Section Layouts --- */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

body.high-contrast .section-bg-white {
    background-color: #121212;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Cards Grid & Styles --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--color-blue-petrol);
}

.card:nth-child(2)::before {
    background-color: var(--color-terracotta);
}

.card:nth-child(3)::before {
    background-color: var(--color-yellow-cerrado);
}

.card:nth-child(4)::before {
    background-color: var(--color-plum);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(31, 35, 40, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--text-main);
    font-weight: 700;
}

/* --- Manifesto Feature --- */
.manifesto-box {
    background-color: var(--color-green-deep);
    color: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

body.high-contrast .manifesto-box {
    background-color: #121212;
    border: 2px solid #FFFFFF;
}

.manifesto-box h2 {
    color: var(--color-off-white);
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

body.high-contrast .manifesto-box h2 {
    color: #FFFF00;
}

.manifesto-box h2::after {
    background-color: var(--color-yellow-cerrado);
}

.manifesto-text {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    font-family: var(--font-serif);
}

/* --- History Timeline & Visuals --- */
.history-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.history-text {
    font-size: 1.05rem;
}

.history-text p {
    margin-bottom: 1.5rem;
}

.history-visual {
    background-color: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

body.high-contrast .history-visual {
    background-color: #121212;
    border: 1px solid #FFFFFF;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid var(--color-green-deep);
}

body.high-contrast .timeline {
    border-left-color: #FFFF00;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 9px);
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-sm);
}

body.high-contrast .timeline-item::before {
    background-color: #FFFF00;
    border-color: #000000;
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-terracotta);
    margin-bottom: 0.25rem;
}

body.high-contrast .timeline-year {
    color: #FFFF00;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* --- Team Layout --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--color-green-deep);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

.team-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Interactive Diagram (Logo 8 Boxes) --- */
.diagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.diagram-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.diagram-item:hover, .diagram-item.active {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.diagram-icon-container {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.75rem;
    color: var(--color-white);
    font-weight: bold;
}

/* Cores específicas para cada caixa baseada no logo */
.bg-tucano { background-color: var(--color-terracotta); }
.bg-chapeu { background-color: var(--color-yellow-cerrado); }
.bg-sanfona { background-color: var(--color-green-deep); }
.bg-livros { background-color: var(--color-blue-petrol); }
.bg-periferia { background-color: #E65100; /* Laranja cerrado */ }
.bg-capoeira { background-color: #C62828; /* Vermelho escuro */ }
.bg-atomo { background-color: #FBC02D; /* Amarelo escuro */ }
.bg-radio { background-color: #558B2F; /* Verde claro */ }

.diagram-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.diagram-details-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Accordion (Áreas de Atuação) --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.accordion-header:hover, .accordion-header:focus {
    background-color: rgba(11, 61, 46, 0.03);
    outline: none;
}

.accordion-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Grande o suficiente para o texto */
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.accordion-content ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.accordion-content li {
    margin-bottom: 0.75rem;
}

/* --- Forms & Inputs --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.1);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check input {
    margin-top: 0.25rem;
}

.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form-feedback.error {
    display: block;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* --- Document Library & Tables --- */
.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.document-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.doc-icon {
    font-size: 2.25rem;
    color: var(--color-terracotta);
}

.doc-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: rgba(11, 61, 46, 0.04);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

body.high-contrast th {
    background-color: #222;
    border-bottom: 2px solid #FFF;
}

/* --- Contact & Footer --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--color-terracotta);
    margin-top: 0.15rem;
}

.footer-wrapper {
    background-color: var(--color-graphite);
    color: #8B949E;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.high-contrast .footer-wrapper {
    background-color: #000000;
    border-top: 2px solid #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--color-white);
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

body.high-contrast .footer-brand h3 {
    color: #FFFF00;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.high-contrast .footer-links h4 {
    color: #FFFF00;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #8B949E;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

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

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .history-block {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .diagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 75px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .manifesto-box {
        padding: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .diagram-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}
