/*
Theme Name: Mentoring for Purpose
Theme URI: https://mentoringforpurpose.org
Author: Mentoring for Purpose
Description: Custom theme for Mentoring for Purpose nonprofit organization
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mentoring-for-purpose
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #1bdbdb;
    --color-secondary: #1976d2;
    --color-dark: #111111;
    --color-text: #333333;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Muli', 'Mulish', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* === LAYOUT === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section-pad { padding: 5rem 0; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--color-dark); color: var(--color-white); text-decoration: none; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-dark); }
.btn-primary:hover { background: #14c4c4; border-color: #14c4c4; }
.btn-secondary { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-white); }
.btn-secondary:hover { background: #1565c0; border-color: #1565c0; }

/* === SITE HEADER / NAV === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    max-width: 200px;
    line-height: 1.2;
}
.site-logo:hover { text-decoration: none; color: var(--color-secondary); }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.site-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.site-nav a:hover { color: var(--color-secondary); text-decoration: none; }
.site-nav .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hero-content h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.hero-content .btn {
    border-color: var(--color-white);
    color: var(--color-white);
}
.hero-content .btn:hover { background: var(--color-white); color: var(--color-dark); }

/* === ABOUT SECTION === */
.about { background: var(--color-white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.about-card h2 { color: var(--color-secondary); }
.about-card p { color: var(--color-text); }

.why-succeed {
    background: var(--color-light);
    padding: 3rem;
    border-radius: 4px;
    margin-top: 3rem;
}
.why-succeed h2 { margin-bottom: 1rem; }

/* === INTERNS / TESTIMONIALS === */
.interns { background: var(--color-light); }
.interns h2 { text-align: center; margin-bottom: 3rem; }
.interns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.intern-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.intern-info { padding: 1.25rem; }
.intern-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.intern-info .role {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}
.intern-info p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--color-text); }

/* === INVEST / DONATE CTA === */
.invest {
    background-image: url('images/invest-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    padding: 8rem 0;
}
.invest::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.invest .container { position: relative; z-index: 1; }
.invest h2, .invest p { color: var(--color-white); }
.invest h2 { margin-bottom: 1rem; }
.invest p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.invest .btn {
    border-color: var(--color-white);
    color: var(--color-white);
}
.invest .btn:hover { background: var(--color-white); color: var(--color-dark); }

/* === DONATE SECTION === */
.donate { background: var(--color-white); }
.donate-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.donate-text h2 { color: var(--color-secondary); }
.donate-text p { margin-bottom: 1.5rem; }
.donate-form { background: var(--color-light); padding: 2rem; border-radius: 4px; }
.donate-form h3 { margin-bottom: 1.5rem; text-align: center; }
.form-row { margin-bottom: 1rem; }
.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: 2px solid var(--color-primary); border-color: transparent; }
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.amount-btn {
    padding: 0.65rem;
    border: 2px solid #ddd;
    background: var(--color-white);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 3px;
    transition: 0.2s;
}
.amount-btn:hover, .amount-btn.selected { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-dark); }
.donate-form .btn { width: 100%; text-align: center; }

/* === CONTACT SECTION === */
.contact { background: var(--color-light); }
.contact h2 { text-align: center; margin-bottom: 0.5rem; }
.contact-sub { text-align: center; color: #777; margin-bottom: 3rem; font-style: italic; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 { color: var(--color-secondary); margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.5rem; }
.contact-hours { margin: 1.5rem 0; }
.contact-hours h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin-bottom: 0.5rem; }
.contact-form { background: var(--color-white); padding: 2rem; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.contact-form h3 { margin-bottom: 1.5rem; }
.contact-form .form-row textarea { min-height: 120px; resize: vertical; }

/* === SUBSCRIBE SECTION === */
.subscribe {
    background: var(--color-dark);
    padding: 4rem 0;
    text-align: center;
}
.subscribe h2 { color: var(--color-white); margin-bottom: 0.5rem; }
.subscribe p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}
.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* === FOOTER === */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.6); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .about-grid,
    .donate-inner,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .site-nav { display: none; }
    .site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); padding: 1rem 1.5rem; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .site-nav.open ul { flex-direction: column; gap: 1rem; }
    .nav-toggle { display: block; }

    .interns-grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .why-succeed { padding: 2rem 1.5rem; }
}
