/*
Theme Name: ManlyHugs
Description: A brotherhood where real men connect, share, and support each other through life's journey
Version: 1.0
Author: ManlyHugs Team
*/

/* ManlyHugs Minimal Gray & Black CSS */

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

:root {
    /* Minimal Gray Palette */
    --primary-black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #8a8a8a;
    --border-gray: #e5e5e5;
    --bg-gray: #fafafa;
    --white: #ffffff;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --border-radius: 4px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo,
.custom-logo-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-black);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: -0.01em;
    cursor: pointer;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-black);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: var(--white);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-black);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    color: var(--medium-gray);
    font-weight: 400;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: var(--primary-black);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: var(--dark-gray);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    background: var(--white);
    padding: 5rem 0;
}

.section {
    margin-bottom: 5rem;
}

.section h2 {
    color: var(--primary-black);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.025em;
}

/* About Section */
.about {
    background: var(--dark-gray);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.about h2 {
    color: var(--white);
    margin-bottom: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.community-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.rule-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.rule-item h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rule-item p {
    opacity: 0.8;
    line-height: 1.7;
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-gray);
    padding: 5rem 0;
    border-top: 1px solid var(--border-gray);
}

.faq-section h2 {
    color: var(--primary-black);
    margin-bottom: 4rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    flex: 1;
    margin-right: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a4a4a;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.faq-answer {
    display: none;
    padding: 1.5rem;
    background: white;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
    color: #4a4a4a;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resources Section */
.resources {
    padding: 4rem 0;
    background: #fafafa;
}

.resources h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #1a1a1a;
}

.resources-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.resources-intro p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.emergency-notice {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 8px;
    padding: 1rem 2rem;
    margin: 0 auto;
    max-width: 600px;
    color: #991b1b;
    font-size: 1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-category {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.resource-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    padding: 1rem;
    background: #fafafa;
    border-radius: 6px;
    border-left: 4px solid #4a4a4a;
}

.resource-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.resource-contact {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.resource-contact strong {
    color: #000;
    font-weight: 700;
    background: #e5e5e5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.resource-item p:last-child {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 0;
}

.resources-footer {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.resources-footer p {
    margin-bottom: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.resources-footer p:last-child {
    margin-bottom: 0;
}

.resources-footer strong {
    color: #1a1a1a;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem;
}

footer a {
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
}

footer a:hover {
    opacity: 1;
}

/* WordPress Admin Bar Fix */
.admin-bar header {
    top: 32px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .main-content {
        padding: 3rem 0;
    }

    .section {
        margin-bottom: 3rem;
    }

    .section h2 {
        margin-bottom: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        text-align: center;
    }

    .community-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .rules {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rule-item {
        padding: 2rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .resources {
        padding: 2rem 0;
    }

    .resources h2 {
        font-size: 2rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-category {
        padding: 1.5rem;
    }

    .resources-intro,
    .resources-footer {
        padding: 1.5rem;
    }

    .emergency-notice {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .section h2 {
        font-size: 2rem;
    }

    .community-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-category {
        padding: 1rem;
    }

    .resource-item {
        padding: 0.75rem;
    }

    .emergency-notice {
        font-size: 0.85rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--medium-gray);
    outline-offset: 2px;
}