/* ===== CSS Variables ===== */
:root {
    --primary: #0d7377;
    --primary-dark: #095456;
    --primary-light: #14a3a8;
    --accent: #d4930d;
    --accent-dark: #b07a0a;
    --accent-light: #f0b429;
    --secondary: #3d5a80;
    --secondary-dark: #2c4460;
    --secondary-light: #5a7faa;
    --alert: #c44536;
    --text-dark: #1a1a2e;
    --text-medium: #444;
    --text-light: #717171;
    --bg-light: #f7f8fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #2e7d32;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    :root { --transition: none; }
}

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

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 0.5rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Header & Nav ===== */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
}
.logo a:hover { color: inherit; }

.logo h1 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.logo .tagline {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: rgba(13, 115, 119, 0.06);
}
.nav-menu a.active {
    color: var(--primary);
    background-color: rgba(13, 115, 119, 0.1);
    font-weight: 600;
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
    border-radius: var(--radius);
    transition: var(--transition);
}
.hamburger:hover { background: var(--bg-light); }

.nav-overlay {
    display: none;
}

/* ===== Main ===== */
main {
    min-height: calc(100vh - 400px);
}

/* ===== Hero (Home) ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #064e52 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.hero h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.92;
}
.hero-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Page Headers (per-page gradients) ===== */
.page-header {
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}
.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.0625rem;
    opacity: 0.92;
}
.page-header--manifest {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.page-header--boycotts {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 70%, #1e2d3d 100%);
}
.page-header--allies {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, #c08a0c 100%);
}
.page-header--about {
    background: linear-gradient(135deg, var(--secondary) 0%, #4a6d94 100%);
}
.page-header--404 {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
}

/* ===== Buttons ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9375rem;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}
.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-large {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: white;
}
.btn-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 0;
}
.btn-text:hover { color: var(--primary-dark); }

/* ===== Feature Grid ===== */
.features {
    padding: 4rem 2rem;
    background-color: var(--bg-light);
}

.feature-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.feature-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}
.feature-link:hover { color: var(--primary-dark); }

/* ===== Content Sections ===== */
.why-section,
.call-to-action {
    padding: 4rem 2rem;
}
.why-section { background-color: var(--bg-white); }

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.content-wrapper--wide {
    max-width: 1100px;
}

.content-wrapper > h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.column h3 { color: var(--primary); margin-bottom: 0.75rem; }

.problem-list,
.impact-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.problem-list li,
.impact-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    line-height: 1.6;
}
.problem-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.impact-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ===== Call to Action ===== */
.call-to-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}
.call-to-action h2 { color: white; }
.call-to-action p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    opacity: 0.92;
}

/* ===== Page Content ===== */
.content-section {
    padding: 3rem 2rem;
}
main > section.content-section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.content-box {
    background-color: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

/* ===== Info Card (formerly .boycott-card) ===== */
.info-card {
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}
.info-card h3 {
    color: var(--primary);
    margin-bottom: 0.375rem;
    font-size: 1.1875rem;
}
.info-card--alert {
    border-left-color: var(--alert);
}
.info-card--alert h3 {
    color: var(--alert);
}
.info-card--accent {
    border-left-color: var(--accent);
}
.info-card--accent h3 {
    color: var(--accent-dark);
}

.info-card .status {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.status.active {
    background-color: #e8f5e9;
    color: var(--success);
}
.status.successful {
    background-color: #e3f2fd;
    color: var(--secondary);
}

/* ===== Details/Summary (manifesto) ===== */
details {
    margin-bottom: 0.75rem;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    color: var(--text-dark);
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
details[open] summary::before {
    transform: rotate(90deg);
}
details summary:hover {
    background: rgba(13, 115, 119, 0.08);
}
details .details-body {
    padding: 1rem 1rem 0.5rem 1.75rem;
    line-height: 1.7;
}

/* ===== Boycotts Sidebar ===== */
.boycotts-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.boycotts-sidebar {
    position: sticky;
    top: 85px;
    background-color: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.boycotts-sidebar h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}
.sidebar-nav ul {
    list-style: none;
}
.sidebar-nav a {
    display: block;
    padding: 0.375rem 0.625rem;
    color: var(--text-medium);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.875rem;
}
.sidebar-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

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

/* ===== Resource Grid ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.resource-card {
    background-color: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.resource-card h4 {
    color: var(--primary);
    margin-bottom: 0.375rem;
}
.resource-card a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Lists ===== */
.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0;
}
.step-list li {
    counter-increment: step-counter;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.25rem;
}
.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ===== Footer ===== */
footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 3rem 2rem 1rem;
    min-height: 180px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.375rem; }
.footer-section a {
    color: var(--bg-light);
    font-size: 0.9375rem;
}
.footer-section a:hover { color: var(--primary-light); }
.footer-section > p {
    font-size: 0.9375rem;
    opacity: 0.85;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Manifesto Attribution ===== */
.attribution {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(13, 115, 119, 0.05);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 4rem 2rem 6rem;
}
.not-found h2 {
    font-size: 5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.not-found h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.not-found p {
    max-width: 480px;
    margin: 0 auto 2rem;
    color: var(--text-medium);
}
.not-found-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 0.25rem;
    }
    .nav-menu.open { right: 0; }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.0625rem;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .hero { padding: 3rem 1.5rem 2.5rem; }
    .hero h2 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.0625rem; }

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

    .boycotts-container { grid-template-columns: 1fr; }
    .boycotts-sidebar {
        position: static;
        max-height: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.75rem; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .feature-grid { gap: 1rem; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
strong { font-weight: 600; }
