/*
Theme Name: SaveWild
Theme URI: https://savewild.gr
Author: Merman Conservation Expeditions Ltd
Author URI: https://mermanconservation.co.uk
Description: A professional, clean theme for SaveWild — Δίκτυο Προστασίας Άγριας Ζωής. Features customizable brand colours, hero section, mission grid, news cards, donation band, and footer. White background with burnt-orange accent matching the SaveWild hoopoe logo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savewild
Tags: wildlife, conservation, greek, custom-colors, custom-logo, custom-menu, responsive-layout, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — edit via Appearance > Customize
   ============================================================ */
:root {
    --sw-accent:       #C84A1E;
    --sw-accent-dark:  #9e3714;
    --sw-accent-light: rgba(200, 74, 30, 0.10);
    --sw-accent-border:rgba(200, 74, 30, 0.20);
    --sw-bg:           #ffffff;
    --sw-bg-alt:       #f7f5f2;
    --sw-bg-card:      #faf9f7;
    --sw-text:         #1a1a18;
    --sw-muted:        #5e5e58;
    --sw-faint:        #d4d3ce;
    --sw-border:       #e8e6e1;
    --sw-radius:       8px;
    --sw-radius-lg:    12px;
    --sw-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --sw-max-width:    1180px;
    --sw-shadow:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sw-shadow-md:    0 4px 12px rgba(0,0,0,0.08);
}

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

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

body {
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: var(--sw-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sw-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sw-accent-dark); }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 500; color: var(--sw-text); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--sw-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
    border-radius: 0 0 4px 0;
    font-size: 13px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
    background: var(--sw-bg);
    border-bottom: 1px solid var(--sw-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sw-shadow);
}
.site-header .sw-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.custom-logo { height: 36px; width: auto; }
.site-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sw-text);
    line-height: 1;
    letter-spacing: -0.01em;
}
.site-title span { color: var(--sw-accent); }

/* Primary nav */
.main-navigation { flex: 1; }
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 14px;
    color: var(--sw-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--sw-text);
    background: var(--sw-bg-alt);
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow-md);
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { font-size: 13px; padding: 0.5rem 1rem; border-radius: 0; }
.main-navigation ul ul li:first-child a { border-radius: var(--sw-radius) var(--sw-radius) 0 0; }
.main-navigation ul ul li:last-child a { border-radius: 0 0 var(--sw-radius) var(--sw-radius); }

/* Header CTA button */
.header-cta a {
    background: var(--sw-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    white-space: nowrap;
}
.header-cta a:hover { background: var(--sw-accent-dark) !important; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--sw-border);
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--sw-text);
    border-radius: 1px;
    transition: all 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.sw-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    border: 1.5px solid transparent;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.sw-btn:active { transform: scale(0.98); }

.sw-btn-primary {
    background: var(--sw-accent);
    color: #fff;
    border-color: var(--sw-accent);
}
.sw-btn-primary:hover { background: var(--sw-accent-dark); border-color: var(--sw-accent-dark); color: #fff; }

.sw-btn-outline {
    background: transparent;
    color: var(--sw-text);
    border-color: var(--sw-faint);
}
.sw-btn-outline:hover { border-color: var(--sw-text); color: var(--sw-text); }

.sw-btn-ghost {
    background: transparent;
    color: var(--sw-accent);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.sw-btn-ghost:hover { color: var(--sw-accent-dark); }
.sw-btn-ghost::after { content: ' →'; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.sw-hero {
    background: var(--sw-bg);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--sw-border);
    position: relative;
    overflow: hidden;
}
.sw-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: var(--sw-bg-alt);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}
.sw-hero .sw-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.sw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sw-accent);
    border: 1px solid var(--sw-accent-border);
    background: var(--sw-accent-light);
    padding: 4px 12px 4px 10px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.sw-hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--sw-accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.sw-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--sw-text);
    margin-bottom: 1.125rem;
    letter-spacing: -0.02em;
}
.sw-hero h1 em {
    font-style: normal;
    color: var(--sw-accent);
}
.sw-hero-desc {
    font-size: 16px;
    color: var(--sw-muted);
    margin-bottom: 2rem;
    max-width: 460px;
    line-height: 1.7;
}
.sw-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.sw-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.sw-hero-img {
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    box-shadow: var(--sw-shadow-md);
    aspect-ratio: 4/3;
    width: 100%;
    background: var(--sw-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sw-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sw-hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sw-bg-alt) 0%, #ede8e2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--sw-muted);
    font-size: 13px;
    min-height: 280px;
}
.sw-hero-img-placeholder svg { opacity: 0.3; }

/* Floating stat cards on hero image */
.sw-hero-stat-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--sw-shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sw-hero-stat-badge .num { font-size: 20px; font-weight: 600; color: var(--sw-accent); line-height: 1; }
.sw-hero-stat-badge .lbl { font-size: 11px; color: var(--sw-muted); }

/* ============================================================
   STATS BAR
   ============================================================ */
.sw-stats-bar {
    background: var(--sw-bg-alt);
    border-bottom: 1px solid var(--sw-border);
}
.sw-stats-bar .sw-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.sw-stat-item {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--sw-border);
    text-align: center;
}
.sw-stat-item:last-child { border-right: none; }
.sw-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: var(--sw-accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}
.sw-stat-label {
    display: block;
    font-size: 13px;
    color: var(--sw-muted);
    letter-spacing: 0.01em;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.sw-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--sw-border);
}
.sw-section-alt { background: var(--sw-bg-alt); }

.sw-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}
.sw-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sw-accent);
    margin-bottom: 6px;
}
.sw-section-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: var(--sw-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.sw-section-desc {
    font-size: 15px;
    color: var(--sw-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-top: 8px;
}
.sw-section-link {
    font-size: 13px;
    color: var(--sw-accent);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--sw-accent-border);
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.sw-section-link:hover { border-color: var(--sw-accent); color: var(--sw-accent-dark); }

/* ============================================================
   MISSION GRID
   ============================================================ */
.sw-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--sw-border);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
}
.sw-mission-item {
    background: var(--sw-bg);
    padding: 2rem;
    transition: background 0.2s;
}
.sw-mission-item:hover { background: var(--sw-bg-alt); }
.sw-mission-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--sw-radius);
    background: var(--sw-accent-light);
    border: 1px solid var(--sw-accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 20px;
    color: var(--sw-accent);
    flex-shrink: 0;
}
.sw-mission-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--sw-text);
    margin-bottom: 8px;
}
.sw-mission-item p {
    font-size: 14px;
    color: var(--sw-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ============================================================
   NEWS / POST CARDS
   ============================================================ */
.sw-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sw-post-card {
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.sw-post-card:hover {
    box-shadow: var(--sw-shadow-md);
    transform: translateY(-2px);
}
.sw-post-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--sw-bg-alt);
    position: relative;
}
.sw-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sw-post-card:hover .sw-post-thumb img { transform: scale(1.03); }
.sw-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: var(--sw-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-faint);
    font-size: 32px;
}
.sw-post-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.sw-post-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sw-accent);
    background: var(--sw-accent-light);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 0.625rem;
    text-decoration: none;
}
.sw-post-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--sw-text);
    line-height: 1.4;
    margin-bottom: 0.625rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.sw-post-title:hover { color: var(--sw-accent); }
.sw-post-excerpt {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.6;
    margin-bottom: 0.875rem;
    flex: 1;
}
.sw-post-meta {
    font-size: 11px;
    color: var(--sw-faint);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sw-post-meta .sep { color: var(--sw-faint); }

/* ============================================================
   FEATURED / INTRO SPLIT
   ============================================================ */
.sw-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sw-split-img {
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    box-shadow: var(--sw-shadow-md);
    background: var(--sw-bg-alt);
    aspect-ratio: 4/3;
}
.sw-split-img img { width: 100%; height: 100%; object-fit: cover; }
.sw-split-img-placeholder {
    width: 100%; height: 100%;
    min-height: 280px;
    background: var(--sw-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-faint);
    font-size: 48px;
}

/* ============================================================
   DONATION BAND
   ============================================================ */
.sw-donate-band {
    background: var(--sw-accent);
    color: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--sw-border);
}
.sw-donate-band .sw-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}
.sw-donate-band h2 {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}
.sw-donate-band p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 0;
}
.sw-donate-band .sw-btn-donate {
    background: #fff;
    color: var(--sw-accent);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
    border: none;
}
.sw-donate-band .sw-btn-donate:hover { background: #f5f5f5; transform: scale(1.02); }

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */
.sw-content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.sw-content-area.no-sidebar { grid-template-columns: 1fr; }

.sw-sidebar { position: sticky; top: 80px; }
.widget {
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.widget-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sw-muted);
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--sw-border);
}
.widget ul { list-style: none; }
.widget ul li { padding: 5px 0; border-bottom: 1px solid var(--sw-border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--sw-text); text-decoration: none; }
.widget ul li a:hover { color: var(--sw-accent); }

/* Subscription widget */
.sw-widget-subscribe { text-align: center; }
.sw-widget-subscribe p { font-size: 13px; color: var(--sw-muted); margin-bottom: 1rem; }
.sw-widget-subscribe input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--sw-border);
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
    color: var(--sw-text);
    background: var(--sw-bg);
}
.sw-widget-subscribe input:focus { border-color: var(--sw-accent); }
.sw-widget-subscribe button {
    width: 100%;
    background: var(--sw-accent);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.sw-post-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--sw-border); }
.sw-post-header .sw-post-cat { font-size: 11px; margin-bottom: 0.875rem; }
.sw-post-header h1 {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.sw-post-header .sw-post-meta { font-size: 13px; gap: 12px; color: var(--sw-muted); }

.sw-post-feat-img {
    width: 100%;
    aspect-ratio: 16/6;
    object-fit: cover;
    border-radius: var(--sw-radius-lg);
    margin: 2rem 0;
}

.sw-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sw-text);
}
.sw-entry-content h2 { font-size: 22px; margin: 2rem 0 0.875rem; }
.sw-entry-content h3 { font-size: 18px; margin: 1.5rem 0 0.75rem; }
.sw-entry-content p { margin-bottom: 1.25rem; }
.sw-entry-content ul, .sw-entry-content ol { margin: 0 0 1.25rem 1.5rem; }
.sw-entry-content li { margin-bottom: 4px; }
.sw-entry-content a { color: var(--sw-accent); text-decoration: underline; text-underline-offset: 2px; }
.sw-entry-content blockquote {
    border-left: 3px solid var(--sw-accent);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--sw-muted);
    font-size: 17px;
    font-style: italic;
}
.sw-entry-content img {
    border-radius: var(--sw-radius);
    margin: 1rem 0;
}
.sw-entry-content figure { margin: 1.5rem 0; }
.sw-entry-content figcaption { font-size: 12px; color: var(--sw-muted); text-align: center; margin-top: 6px; }
.sw-entry-content table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.sw-entry-content th, .sw-entry-content td { padding: 10px 14px; border: 1px solid var(--sw-border); font-size: 14px; }
.sw-entry-content th { background: var(--sw-bg-alt); font-weight: 500; }

/* ============================================================
   PAGINATION
   ============================================================ */
.sw-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}
.sw-pagination a,
.sw-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--sw-border);
    border-radius: 5px;
    font-size: 13px;
    color: var(--sw-text);
    text-decoration: none;
    transition: all 0.2s;
}
.sw-pagination a:hover { border-color: var(--sw-accent); color: var(--sw-accent); }
.sw-pagination .current { background: var(--sw-accent); color: #fff; border-color: var(--sw-accent); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.sw-page-hero {
    background: var(--sw-bg-alt);
    border-bottom: 1px solid var(--sw-border);
    padding: 3rem 0 2.5rem;
}
.sw-page-hero .sw-section-label { margin-bottom: 8px; }
.sw-page-hero h1 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.sw-page-hero p { font-size: 16px; color: var(--sw-muted); margin-top: 10px; max-width: 600px; }

/* ============================================================
   MEMBERSHIP FORM
   ============================================================ */
.sw-form-card {
    background: var(--sw-bg);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    padding: 2rem;
    max-width: 620px;
}
.sw-form-group { margin-bottom: 1.25rem; }
.sw-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sw-text);
    margin-bottom: 5px;
}
.sw-form-group input,
.sw-form-group select,
.sw-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--sw-border);
    border-radius: 5px;
    font-size: 14px;
    color: var(--sw-text);
    background: var(--sw-bg);
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--sw-font);
}
.sw-form-group input:focus,
.sw-form-group select:focus,
.sw-form-group textarea:focus { border-color: var(--sw-accent); }
.sw-form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--sw-text);
    color: rgba(255,255,255,0.7);
}
.sw-footer-main {
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.sw-footer-brand .footer-logo { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.sw-footer-brand .footer-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}
.sw-footer-brand .footer-name span { color: var(--sw-accent); }
.sw-footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); }

.sw-footer-col h5 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.875rem;
}
.sw-footer-col ul { list-style: none; }
.sw-footer-col ul li { margin-bottom: 7px; }
.sw-footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.sw-footer-col ul li a:hover { color: #fff; }

.sw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.sw-footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.35); }
.sw-footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 12px; }
.sw-footer-bottom a:hover { color: #fff; }

/* ============================================================
   UTILITY
   ============================================================ */
.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; }
.text-accent { color: var(--sw-accent); }
.text-muted { color: var(--sw-muted); }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .sw-hero .sw-container { grid-template-columns: 1fr; gap: 2rem; }
    .sw-hero::before { display: none; }
    .sw-hero-visual { display: none; }
    .sw-stats-bar .sw-container { grid-template-columns: repeat(2, 1fr); }
    .sw-stat-item:nth-child(2) { border-right: none; }
    .sw-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-mission-grid { grid-template-columns: 1fr; }
    .sw-split { grid-template-columns: 1fr; gap: 2rem; }
    .sw-footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .sw-donate-band .sw-container { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .sw-content-area { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .main-navigation { display: none; }
    .main-navigation.is-open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--sw-bg); border-bottom: 1px solid var(--sw-border); box-shadow: var(--sw-shadow-md); padding: 1rem; z-index: 200; }
    .main-navigation.is-open ul { flex-direction: column; gap: 0; }
    .main-navigation.is-open li { border-bottom: 1px solid var(--sw-border); }
    .main-navigation.is-open a { padding: 10px 0; }
    .main-navigation.is-open ul ul { position: static; border: none; box-shadow: none; padding-left: 1rem; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .sw-stats-bar .sw-container { grid-template-columns: 1fr 1fr; }
    .sw-posts-grid { grid-template-columns: 1fr; }
    .sw-footer-main { grid-template-columns: 1fr; }
    .sw-footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
    .sw-hero h1 { font-size: 28px; }
    .sw-section { padding: 2.5rem 0; }
}

/* ============================================================
   WORDPRESS CORE ALIGNMENT CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide { margin-left: -2rem; margin-right: -2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--sw-muted); text-align: center; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 1.5rem 0; }
.gallery-item img { border-radius: var(--sw-radius); width: 100%; height: 100%; object-fit: cover; }
