/*
Theme Name: ADS - Accção para Desenvolvimento Social v2
Theme URI: https://adsbeira.com
Author: Manus
Author URI: https://manus.im
Description: Tema WordPress profissional para a ADS. Inclui suporte a blog, landing page completa e customização avançada. Sem plugins externos.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ads-theme
Domain Path: /languages
*/

:root {
    --primary-color: #007a33;
    --secondary-color: #005a26;
    --accent-color: #00a84f;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 15px;
}

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

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

ul, ol {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.1rem;
    margin: 0;
    margin-left: 12px;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo a:hover h1 {
    color: var(--accent-color);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 35px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 122, 51, 0.7) 0%, rgba(0, 90, 38, 0.7) 100%), url('assets/images/mission-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Sections */
section {
    padding: 60px 0;
}

section.alt-bg {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 12px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Mission, Vision, Values */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mvv-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.mvv-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.mvv-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Areas of Action */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.area-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon img {
    width: 45px;
    height: 45px;
}

.area-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.area-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    height: 250px;
    background: var(--light-bg);
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 25px;
}

.project-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Impact Section */
.impact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.impact-item h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.impact-item p {
    font-size: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card p {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.partner-item:hover {
    box-shadow: var(--shadow-lg);
}

.partner-item img {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.1);
}

.contact-form button {
    border: none;
}

/* Footer */
footer {
    background: #222;
    color: var(--white);
    padding: 40px 0 15px;
}

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

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Blog Styles */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 70px;
}

.blog-post {
    background: var(--white);
}

.post-thumbnail {
    width: 100%;
    height: 350px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.post-content {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 25px 0 12px 0;
    font-weight: 700;
}

.post-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.sidebar {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: 700;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    height: 180px;
    background: var(--light-bg);
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.post-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.post-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 15px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .mvv-grid,
    .areas-grid,
    .projects-grid,
    .testimonials-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 45px 0;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header .container {
        height: 65px;
    }

    .hero {
        margin-top: 65px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    section {
        padding: 35px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 22px;
    }
}
