/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    --color-primary: #1e293b;
    --color-secondary: #0f172a;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1100px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
    display: block;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list > li > a {
    color: var(--color-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.nav-list > li > a:hover {
    color: var(--color-accent);
}

.icon-dropdown {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 0.5rem 0;
    border: 1px solid var(--color-border);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .icon-dropdown {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.dropdown li a:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    min-height: calc(100vh - 80px - 100px);
    padding: 4rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.content-body {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-body h1, .content-body h2, .content-body h3 {
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-body h2 { font-size: 1.8rem; }
.content-body h3 { font-size: 1.4rem; }

.content-body p {
    margin-bottom: 1.5rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background-color: var(--color-bg);
}

.category-card h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.15rem;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* ==========================================================================
   Home Page Specifics
   ========================================================================== */
.home-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-intro h1 {
    font-size: 3rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.home-intro h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Signpost Grid */
.signpost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.signpost-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.signpost-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #60a5fa);
    opacity: 0;
    transition: var(--transition);
}

.signpost-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: transparent;
}

.signpost-card:hover::before {
    opacity: 1;
}

.signpost-icon {
    width: 64px;
    height: 64px;
    background-color: #eff6ff;
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.signpost-icon svg {
    width: 32px;
    height: 32px;
}

.signpost-card:hover .signpost-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

.signpost-content h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.signpost-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.heart-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.is-open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list > li > a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: var(--color-bg);
        display: none;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }
    
    .content-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Photo Gallery & Lightbox
   ========================================================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}

.gallery-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 150px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: 0;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Supporters Grid Styles */
.supporters-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.supporters-intro h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.supporter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.supporter-icon {
    width: 60px;
    height: 60px;
    background: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.supporter-icon svg {
    width: 30px;
    height: 30px;
}

.supporter-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.supporter-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.supporter-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.supporter-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}
