/*
Theme Name: MCHS Custom Theme
Theme URI: https://www.mchs.edu.pk
Author: Maranatha Christian High School
Author URI: https://www.mchs.edu.pk
Description: A modern, minimal custom theme for Maranatha Christian High School, Lahore, Pakistan. Green & Gold brand colors with elegant design.
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: mchs-custom
*/

/* ===== CSS VARIABLES ===== */
:root {
    --green-dark: #1a3c2a;
    --green-mid: #2d6a4f;
    --green-light: #52b788;
    --gold: #d4a843;
    --gold-light: #e8c876;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --text-dark: #2b2b2b;
    --text-body: #555555;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.3;
}

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

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

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

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--green-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a {
    color: rgba(255,255,255,0.8);
}

.top-bar-left a:hover {
    color: var(--gold);
}

.top-bar-right {
    display: flex;
    gap: 12px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.top-bar-right a:hover {
    color: var(--gold);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 55px;
    width: auto;
}

.site-logo .logo-text h1 {
    font-size: 1.15rem;
    color: var(--green-dark);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.site-logo .logo-text span {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 6px;
    display: block;
    font-family: 'Inter', sans-serif;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a {
    color: var(--green-mid);
    background: rgba(45,106,79,0.06);
}

/* Dropdown */
.main-nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    flex-direction: column;
}

.main-nav ul li:hover > ul.sub-menu {
    display: flex;
}

.main-nav ul li ul.sub-menu li a {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 0;
}

.main-nav ul li ul.sub-menu li a:hover {
    background: rgba(45,106,79,0.06);
}

.btn-donate-nav {
    display: inline-block;
    background: var(--gold);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.btn-donate-nav:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212,168,67,0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--green-dark);
    cursor: pointer;
    padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    overflow: hidden;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,168,67,0.2);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h2 span {
    color: var(--gold);
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
    color: var(--white);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.hero-image {
    flex: 0 0 420px;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-image .hero-placeholder {
    width: 100%;
    height: 320px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.floating-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-mid);
    font-family: 'Inter', sans-serif;
}

.floating-card .label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 3;
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

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

.stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-mid);
    font-family: 'Inter', sans-serif;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* ===== WELCOME / ABOUT SECTION ===== */
.welcome-section {
    padding: 80px 0;
    background: var(--off-white);
}

.welcome-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.welcome-image {
    flex: 0 0 45%;
    position: relative;
}

.welcome-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.welcome-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 3rem;
}

.welcome-image .accent-bar {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 120px;
    height: 120px;
    border-left: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    border-radius: 0 0 0 var(--radius);
}

.welcome-content {
    flex: 1;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.welcome-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--green-dark);
}

.welcome-content p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-list .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-list .feature-item i {
    color: var(--green-light);
    font-size: 0.85rem;
}

.btn-green {
    display: inline-block;
    background: var(--green-mid);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,106,79,0.3);
    color: var(--white);
}

/* ===== FEATURES GRID ===== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-section .section-header h2 {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.features-section .section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--off-white);
    padding: 35px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green-light);
}

.feature-card .icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray);
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    text-align: center;
}

.quote-section blockquote {
    max-width: 700px;
    margin: 0 auto;
}

.quote-section blockquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--white);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-section blockquote cite {
    color: var(--gold);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* ===== DONATE CTA SECTION ===== */
.donate-section {
    padding: 80px 0;
    background: var(--off-white);
    text-align: center;
}

.donate-section h2 {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.donate-section > .container > p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--gray);
}

.donate-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.donate-tier {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.donate-tier:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.donate-tier .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-mid);
    font-family: 'Inter', sans-serif;
    margin-bottom: 5px;
}

.donate-tier .tier-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.donate-tier .tier-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,67,0.4);
    color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ===== PAGE CONTENT (for inner pages) ===== */
.page-header-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header-banner h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header-banner .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.page-header-banner .breadcrumb a {
    color: var(--gold);
}

.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 900px;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--green-dark);
}

.page-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--green-dark);
}

.page-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.page-content .wp-block-image {
    margin: 25px 0;
}

.page-content .wp-block-image img {
    border-radius: var(--radius);
}

/* ===== CONTACT FORM STYLES ===== */
.wpforms-container .wpforms-form .wpforms-field input,
.wpforms-container .wpforms-form .wpforms-field textarea,
.wpforms-container .wpforms-form .wpforms-field select {
    border: 1px solid var(--gray-light) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
}

.wpforms-container .wpforms-form .wpforms-field input:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
    border-color: var(--green-mid) !important;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1) !important;
}

.wpforms-container .wpforms-form button[type="submit"] {
    background: var(--green-mid) !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover {
    background: var(--green-dark) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .welcome-section .container {
        flex-direction: column;
    }

    .welcome-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .donate-tiers {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-hover);
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .main-nav ul li:hover > ul.sub-menu {
        display: flex;
    }

    .btn-donate-nav {
        text-align: center;
        margin-top: 10px;
    }

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

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

    .donate-tiers {
        grid-template-columns: 1fr 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

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

    .page-header-banner h1 {
        font-size: 1.8rem;
    }

    .quote-section blockquote p {
        font-size: 1.2rem;
    }
}

/* ===== WORDPRESS SPECIFIC ===== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    padding: 8px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Elementor compatibility */
.elementor-page .page-content {
    padding: 0;
}

.elementor-page .page-content .container {
    max-width: 100%;
    padding: 0;
}

.elementor-page .page-header-banner {
    display: none;
}
