/* ============================================
   Property Rights Defense — Ghost Theme CSS
   ============================================ */

:root {
    --color-navy: #0d1b2a;
    --color-dark-blue: #1b2838;
    --color-blue: #1a3a5c;
    --color-accent: #c9302c;
    --color-accent-hover: #a82824;
    --color-gold: #d4a843;
    --color-text: #1a1a2e;
    --color-text-light: #4a4a6a;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f7;
    --color-border: #e0e0e8;
    --max-width: 1200px;
    --content-width: 720px;
}

/* ---- RESET & BASE ---- */
a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }

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

.section__title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn--outline:hover {
    background: var(--color-navy);
    color: #fff;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--color-navy);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-header__logo {
    text-decoration: none;
}

.site-header__logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header__links {
    display: flex;
    gap: 1.5rem;
}

.site-header__link {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.site-header__link:hover {
    color: #fff;
}

.site-header__actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.site-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}
.site-header__menu-toggle .icon-close { display: none; }

/* Mobile nav */
@media (max-width: 768px) {
    .site-header__menu-toggle { display: block; }
    .site-header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-navy);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .site-header__nav.is-open { display: flex; }
    .site-header__links { flex-direction: column; gap: 0.75rem; }
    .site-header__link { font-size: 1rem; }
    .site-header__menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
    .site-header__menu-toggle[aria-expanded="true"] .icon-close { display: block; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark-blue) 50%, #2a1a1a 100%);
    color: #fff;
    padding: 6rem 1.5rem;
    text-align: center;
}

.hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Countdown timer */
.hero__countdown {
    margin-bottom: 2rem;
}

.hero__countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.hero__countdown-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.countdown__unit {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 70px;
    text-align: center;
}

.countdown__unit span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.countdown__unit small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .hero { padding: 4rem 1.5rem; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1.1rem; }
    .countdown__unit { min-width: 56px; padding: 0.5rem 0.75rem; }
    .countdown__unit span { font-size: 1.5rem; }
}

/* ============================================
   FACTS SECTION
   ============================================ */
.facts-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.fact-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.fact-card__icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.fact-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fact-card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SCOPE SECTION
   ============================================ */
.scope-section {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.scope-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.scope-tag {
    background: var(--color-navy);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   CONSTITUTION SECTION
   ============================================ */
.constitution-section {
    padding: 5rem 0;
    background: var(--color-navy);
    color: #fff;
}

.constitution-quote {
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0;
    border: none;
    text-align: center;
}

.constitution-quote p {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1rem;
}

.constitution-quote cite {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--color-gold);
    font-weight: 500;
}

.constitution-section .section__text {
    color: rgba(255,255,255,0.75);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--color-bg);
    text-align: center;
}

.cta-section__title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   POSTS
   ============================================ */
.posts-section {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

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

.post-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-accent); }

.post-card__excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.post-card__date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Post listing page */
.posts-listing {
    padding: 4rem 0;
}

.posts-listing__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.post-card--list {
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: 2rem 0;
}

/* ============================================
   SINGLE POST
   ============================================ */
.post, .page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.post__header, .page__header {
    margin-bottom: 2.5rem;
}

.post__title, .page__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post__meta {
    margin-top: 0.75rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.post__feature-image {
    margin: 0 0 2.5rem;
}
.post__feature-image img {
    border-radius: 8px;
}

/* Content styling */
.post__content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.post__content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.post__content p {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post__content ul, .post__content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.post__content li {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.post__content blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-bg-light);
    border-radius: 0 8px 8px 0;
}

.post__content blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 0;
}

.post__content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post__content strong {
    font-weight: 700;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-buttons {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-bg-light);
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    border-color: transparent;
}

.share-btn--whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.share-btn--twitter:hover {
    background: #000;
    color: #fff;
}

.share-btn--facebook:hover {
    background: #1877F2;
    color: #fff;
}

.share-btn--copy:hover {
    background: var(--color-navy);
    color: #fff;
}

@media (max-width: 768px) {
    .share-buttons { justify-content: center; }
    .share-buttons__label { width: 100%; text-align: center; }
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
    text-align: center;
    padding: 8rem 1.5rem;
}

.error-page__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.error-page__message {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.error-page__help {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-page__links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

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

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.site-footer__heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer__text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__list li {
    margin-bottom: 0.5rem;
}

.site-footer__list a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.site-footer__list a:hover {
    color: #fff;
}

.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.site-footer__copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.75rem;
}

.site-footer__disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    margin: 0;
    max-width: 700px;
}

/* ============================================
   GAZETTE DOWNLOAD
   ============================================ */
.gazette-section {
    padding: 4rem 0;
    background: var(--color-bg-light);
    text-align: center;
}

.gazette-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================
   ENDORSEMENTS
   ============================================ */
.endorsements-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

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

.endorsement-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-gold);
    margin: 0;
}

.endorsement-card__text {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.endorsement-card__author {
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.signup-section {
    padding: 5rem 0;
    background: var(--color-navy);
    color: #fff;
    text-align: center;
}

.signup-section .section__title {
    color: #fff;
}

.signup-section .section__text {
    color: rgba(255,255,255,0.75);
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.signup-form__row {
    display: flex;
    gap: 0.75rem;
}

.signup-form__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.signup-form__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.signup-form__input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.signup-form__btn {
    white-space: nowrap;
}

.signup-form__message {
    margin-top: 1rem;
}

.signup-form__success {
    color: #4ade80;
    font-size: 0.9rem;
}

.signup-form__error {
    color: var(--color-accent);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .signup-form__row { flex-direction: column; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

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

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero__cta-group,
    .hero__countdown,
    .cta-section,
    .share-buttons,
    .site-header__menu-toggle,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
    }

    .hero__title {
        color: #000 !important;
        font-size: 24pt !important;
    }

    .hero__subtitle {
        color: #333 !important;
    }

    .post, .page {
        max-width: 100%;
        padding: 0;
    }

    .post__title, .page__title {
        font-size: 20pt;
    }

    .post__content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .fact-card, .endorsement-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .scope-tag {
        background: #eee !important;
        color: #000 !important;
    }

    .constitution-section {
        background: none !important;
        color: #000 !important;
    }

    .constitution-quote p {
        color: #000 !important;
    }

    .constitution-quote cite {
        color: #666 !important;
    }
}
