/*
Theme Name: Alexa's Hope
Theme URI: https://alexashope.org
Author: Onsharp
Description: Modern theme for Alexa's Hope — Inspiring Organ Donation, Saving Lives
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: alexashope
*/

/* ==========================================================================
   Custom Properties
   ========================================================================== */

:root {
    --purple: #452d72;
    --purple-dark: #2e1d4e;
    --purple-light: #5a3d8f;
    --pink: #ff7474;
    --pink-dark: #e85c5c;
    --pink-light: #ff9a9a;
    --pink-bg: #fef5f9;
    --text: #424242;
    --text-light: #6b6b6b;
    --text-muted: #939393;
    --bg: #ffffff;
    --bg-light: #f8f7fa;
    --bg-warm: #faf9fc;
    --border: #e8e5ed;
    --border-light: #f0edf4;
    --shadow-sm: 0 1px 3px rgba(69, 45, 114, 0.06);
    --shadow-md: 0 4px 16px rgba(69, 45, 114, 0.08);
    --shadow-lg: 0 8px 32px rgba(69, 45, 114, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
    --max-width: 1200px;
    --header-height: 80px;
    --font-body: "Trebuchet MS", Helvetica, Arial, sans-serif;
    --font-heading: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    background: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--pink);
}

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

ul, ol {
    list-style: none;
}

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--purple);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

blockquote {
    border-left: 4px solid var(--pink);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--pink-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--purple);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #fff;
}

table th, table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--purple);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

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

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

/* Desktop Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.desktop-nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: block;
}

.desktop-nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* Dropdown */
.desktop-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    flex-direction: column;
}

.desktop-nav ul li:hover > ul {
    display: flex;
}

.desktop-nav ul li ul li a {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    padding: 0.5rem 1.25rem;
    letter-spacing: 0;
}

.desktop-nav ul li ul li a:hover {
    color: var(--purple);
    background: var(--bg-light);
    border-radius: 0;
}

/* Donate button in header */
.header-donate {
    margin-left: 1rem;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--pink);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-donate:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 116, 116, 0.4);
}

.btn-donate svg {
    width: 16px;
    height: 16px;
}

/* Social icons in header */
.header-social {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.header-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.header-social a:hover {
    color: var(--pink-light);
}

.header-social svg {
    width: 18px;
    height: 18px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--purple);
    overflow-y: auto;
    z-index: 99;
    padding: 1.5rem;
}

.mobile-menu.active { display: block; }

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    display: block;
    padding: 0.875rem 0;
}

.mobile-menu .sub-menu {
    padding-left: 1.25rem;
}

.mobile-menu .sub-menu li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
}

.mobile-menu .mobile-donate {
    margin-top: 1.5rem;
}

.mobile-menu .mobile-donate .btn-donate {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
    font-size: 1rem;
}

/* ==========================================================================
   Page Header (inside pages)
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-header .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.site-content {
    padding: 2.5rem 0;
}

.content-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.content-wrap.full-width {
    grid-template-columns: 1fr;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pink);
}

/* Alexa memorial sidebar */
.alexa-memorial {
    text-align: center;
}

.alexa-memorial img {
    width: 180px;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-sm);
}

.alexa-memorial p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--purple);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.btn-register:hover {
    background: var(--purple-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 45, 114, 0.3);
}

/* Latest news sidebar */
.latest-news-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-news-widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.latest-news-widget li:last-child {
    border-bottom: none;
}

.latest-news-widget li a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--purple);
    line-height: 1.4;
}

.latest-news-widget li a:hover {
    color: var(--pink);
}

/* ==========================================================================
   News / Blog
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body .date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.news-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.news-card-body h3 a {
    color: var(--purple);
}

.news-card-body h3 a:hover {
    color: var(--pink);
}

.news-card-body .excerpt {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--pink);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.75rem;
}

.read-more:hover {
    color: var(--pink-dark);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color var(--transition);
    margin-bottom: 1.25rem;
    background: var(--bg-warm);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: #fff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--pink);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form button:hover {
    background: var(--pink-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 116, 116, 0.4);
}

/* ==========================================================================
   Icon Boxes (How You Can Help)
   ========================================================================== */

.icon-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.icon-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.icon-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.icon-box img {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.icon-box h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.icon-box p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--purple-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--pink-light);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-copy {
    font-size: 0.8125rem;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   WordPress Block Styling
   ========================================================================== */

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

.wp-block-image figcaption,
.wp-element-caption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.375rem;
    font-style: italic;
}

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* Content list styles */
.main-content ul,
.content-card ul {
    list-style: disc;
    margin: 0 0 1rem 1.5rem;
}

.main-content li,
.content-card li {
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

.main-content ol,
.content-card ol {
    list-style: decimal;
    margin: 0 0 1rem 1.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 960px) {
    .desktop-nav,
    .header-donate,
    .header-social {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .icon-boxes {
        grid-template-columns: 1fr;
    }

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

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

@media only screen and (max-width: 600px) {
    :root {
        --header-height: 64px;
    }

    .site-logo img {
        height: 40px;
    }

    .content-card {
        padding: 1.5rem;
    }

    .page-header {
        padding: 2rem 0;
    }

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

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
}
