/* ============================================
   Landing Page ONG — Design Profissional
   ============================================ */

:root {
    /* Paleta institucional Boa Esperança */
    --color-primary: #152e28;
    --color-primary-soft: #1f453c;
    --color-accent: #c45d25;
    --color-accent-hover: #d96b2b;
    --color-accent-muted: rgba(196, 93, 37, 0.08);
    --color-mint: #9bb8a9;
    
    /* Neutros sofisticados */
    --color-bg: #fafbfc;
    --color-bg-alt: #f4f6f8;
    --color-surface: #ffffff;
    --color-text: #1c2127;
    --color-text-muted: #4d5963;
    --color-text-subtle: #6b7885;
    
    /* Tipografia institucional */
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sistema de espaçamento */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Layout */
    --container-max: 1120px;
    --section-padding: 6rem 0;
    
    /* Bordas e sombras discretas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(21, 46, 40, 0.04);
    --shadow-md: 0 4px 20px rgba(21, 46, 40, 0.06);
    --shadow-lg: 0 12px 40px rgba(21, 46, 40, 0.08);
    
    /* Transições */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s var(--ease);
}

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

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

html {
    scroll-behavior: smooth;
}

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(var(--space-md), 5vw, var(--space-xl));
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(21, 46, 40, 0.08);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 0 rgba(21, 46, 40, 0.06);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.logo-icon {
    width: 36px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-footer.logo-icon {
    opacity: 0.95;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.btn-nav {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-nav:hover {
    background: var(--color-primary-soft);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem var(--space-xl) 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2D4C44 0%, #3d6157 50%, #2D4C44 100%);
    background-size: cover;
    background-position: center;
}

.hero-photo {
    background-color: rgba(21, 46, 40, 0.4);
    background-blend-mode: multiply;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(21, 46, 40, 0.25) 0%, rgba(21, 46, 40, 0.6) 50%, rgba(21, 46, 40, 0.88) 100%);
    pointer-events: none;
}

.hero-shapes {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
}

.hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: white;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    display: block;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.25em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.hero-scroll:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
    background: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-body);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.stat-label {
    font-size: 0.8125rem;
    opacity: 0.88;
    margin-top: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ============================================
   Sections
   ============================================ */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ============================================
   Mission
   ============================================ */

.mission {
    padding: var(--section-padding);
}

.mission-statement {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================
   Plano de Acção
   ============================================ */

.action-plan {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.action-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.action-images img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.action-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(21, 46, 40, 0.06);
    border-left: 3px solid var(--color-primary);
    transition: border-color var(--transition);
}

.action-card:hover {
    border-left-color: var(--color-accent);
}

.action-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 2px;
    margin-bottom: var(--space-sm);
}

.action-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.action-card > p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.action-card ul {
    list-style: none;
}

.action-card ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.action-card ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-text-subtle);
}

/* ============================================
   Portfolio
   ============================================ */

.portfolio {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.portfolio-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(21, 46, 40, 0.06);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
    border-color: rgba(21, 46, 40, 0.1);
    box-shadow: var(--shadow-sm);
}

.portfolio-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.portfolio-icon svg {
    width: 22px;
    height: 22px;
}

.portfolio-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.portfolio-list {
    list-style: none;
}

.portfolio-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.portfolio-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-text-subtle);
}

/* ============================================
   Featured Project
   ============================================ */

.featured-project {
    padding: var(--section-padding);
}

.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(21, 46, 40, 0.06);
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-alt);
    border-bottom: 1px solid rgba(21, 46, 40, 0.06);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.project-content {
    padding: var(--space-xl);
}

.project-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--space-md) 0 0.5rem;
}

.project-content h4:first-child {
    margin-top: 0;
}

.project-content p,
.project-content ul {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.project-content ul {
    list-style: none;
    margin-top: 0.5rem;
}

.project-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* ============================================
   Needs
   ============================================ */

.needs {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.needs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.needs-column .section-tag,
.needs-column .section-title {
    text-align: left;
}

.needs-column > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.needs-list {
    list-style: none;
}

.needs-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
}

.needs-list .check {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.needs-column.results h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.needs-column.results ul {
    list-style: none;
}

.needs-column.results ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.needs-column.results ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   Impact (legacy - keep for compatibility)
   ============================================ */

.impact {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.impact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.impact-content .section-tag,
.impact-content .section-title {
    text-align: left;
}

.impact-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.impact-list {
    list-style: none;
}

.impact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
}

.impact-list .check {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.impact-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.impact-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.impact-card.accent {
    background: var(--color-primary);
    color: white;
    border-left-color: var(--color-accent);
}

.impact-card.accent .impact-number {
    color: white;
}

.impact-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.impact-card p {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* ============================================
   How to Help
   ============================================ */

.how-to-help {
    padding: var(--section-padding);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.help-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

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

.help-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-muted);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.help-icon svg {
    width: 22px;
    height: 22px;
}

.help-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.help-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.help-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
}

.help-link:hover {
    color: var(--color-accent);
}

/* ============================================
   Testimonial
   ============================================ */

.testimonial {
    padding: var(--section-padding);
    background: var(--color-surface);
    border-top: 1px solid rgba(21, 46, 40, 0.06);
}

.testimonial-quote {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.testimonial-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.testimonial-quote footer {
    display: flex;
    flex-direction: column;
}

.testimonial-quote strong {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.testimonial-quote span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info > p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: color var(--transition);
    word-break: break-word;
}

.contact-item:hover {
    color: var(--color-primary);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

a.contact-item:hover .contact-icon {
    color: var(--color-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid rgba(26, 54, 48, 0.12);
    border-radius: var(--radius-md);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-accent-muted);
}

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

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-icon {
    opacity: 0.9;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    max-width: 260px;
}

.footer-address {
    margin-top: 0.25rem !important;
    font-size: 0.8125rem !important;
    opacity: 0.75 !important;
    word-break: break-word;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    opacity: 0.85;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: var(--space-lg);
}

.footer-bottom p {
    font-size: 0.8125rem;
    opacity: 0.65;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .action-images {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .needs-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .impact-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .project-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Tablet portrait / Mobile landscape */
@media (max-width: 900px) {
    .nav-links:not(.active) {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile menu */
.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: white;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -8px 0 32px rgba(26, 54, 48, 0.12);
    z-index: 999;
    gap: 0;
}

.nav-links.active li {
    padding: 0;
}

.nav-links.active a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(26, 54, 48, 0.06);
}

.nav-links.active .btn-nav {
    margin-top: var(--space-md);
    text-align: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle span {
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .hero {
        min-height: 100dvh;
        min-height: 100vh;
        padding: 6rem var(--space-md) 5rem;
    }
    
    .hero-eyebrow {
        font-size: 0.6875rem;
        letter-spacing: 0.15em;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-cta .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .stats-bar {
        padding: var(--space-xl) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stat-item {
        padding: var(--space-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    
    .action-images {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .action-images img {
        min-height: 200px;
        width: 100%;
    }
    
    .action-card,
    .portfolio-card {
        padding: var(--space-lg);
    }
    
    .project-meta,
    .project-content {
        padding: var(--space-md) var(--space-lg);
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 36px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title em {
        font-size: 0.9em;
    }
    
    .mission-statement {
        font-size: 1.0625rem;
    }
    
    .portfolio-grid {
        max-width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Safe area para dispositivos com notch */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(var(--space-md), env(safe-area-inset-top));
    }
    
    @media (max-width: 768px) {
        .hero {
            padding-top: max(6rem, calc(4rem + env(safe-area-inset-top)));
        }
    }
}

/* Reduzir animações para quem prefere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
