/*
Theme Name: Collective Sudan
Theme URI: https://collectivesudan.org
Author: Collective Sudan
Author URI: https://collectivesudan.org
Description: A WordPress theme for Collective Sudan - Reshaping Assistance
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collective-sudan
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #1b1b1b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #000000;
    color: #e2e2e2;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    pointer-events: none;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
}

.hero-container {
    max-width: 56rem;
    width: 100%;
    text-align: center;
}

.logo-img {
    width: 12rem;
    margin: 0 auto 2rem;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #000000;
    margin-bottom: 3rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #474747;
    max-width: 36rem;
    margin: 0 auto 4rem;
    line-height: 1.625;
}

.newsletter-container {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.newsletter-input {
    width: 100%;
    background-color: #f3f3f3;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    color: #1b1b1b;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #737373;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c6c6c6;
    transform-origin: center;
    transform: scaleX(0.9);
    transition: all 0.5s ease;
}

.newsletter-input:focus + .input-line,
.group:focus-within .input-line {
    background-color: #000000;
    transform: scaleX(1);
}

.newsletter-btn {
    background-color: #000000;
    color: #e2e2e2;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #3b3b3b;
}

.newsletter-message {
    font-size: 0.625rem;
    color: #737373;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-message.success {
    color: #16a34a;
}

.newsletter-message.error {
    color: #dc2626;
}

footer {
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    border-top: 1px solid #f5f5f5;
}

@media (min-width: 768px) {
    footer {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #737373;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-copyright {
        margin-bottom: 0;
    }
}

.social-links {
    display: flex;
    gap: 2rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.social-links a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.6;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #ffffff;
    padding: 2rem 3rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.popup-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.popup-content p {
    color: #474747;
    margin-bottom: 1.5rem;
}

.popup-close {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #3b3b3b;
}