/**
 * Open Drug Policy EU - Home Page Modern Styles
 * Refined, contemporary, institutional
 */

/* Hero Section - Dark, impactful */
.hero#hero {
    padding: 120px 1.5rem 100px;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.hero#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 100% 70% at 70% -10%, rgba(255,255,255,0.04), transparent),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255,255,255,0.02), transparent);
    pointer-events: none;
}

.hero#hero .container {
    position: relative;
    z-index: 1;
}

.hero#hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero#hero .lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.2rem;
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* Topline styling */
.hero#hero p[style*="text-transform: uppercase"] {
    font-size: 0.7rem !important;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 1.25rem !important;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.75rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Cards */
.card {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.card h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card ul {
    padding-left: 1.25rem;
    color: #525252;
}

.card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Counter Box - Refined */
.counter-box {
    background: #fafafa;
    border-left: 3px solid #000;
    padding: 2rem;
    margin: 1.75rem 0;
    border-radius: 0 12px 12px 0;
}

.counter-box-title {
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 0.875rem;
    font-size: 1rem;
    color: #171717;
}

.counter-box p {
    margin-bottom: 0;
    color: #525252;
    line-height: 1.75;
}

/* Section Dark */
.section-dark {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    color: #fff;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
    text-align: center;
    padding: 2.5rem 0;
}

.section-dark .stat-value {
    color: #fff;
}

.section-dark .stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: #171717;
    color: #fff;
    border-color: #171717;
}

.btn-primary:hover {
    background: #fff;
    color: #171717;
    border-color: #171717;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: #171717;
    border-color: #e5e5e5;
}

.btn-secondary:hover {
    background: #171717;
    color: #fff;
    border-color: #171717;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: #171717;
    border-color: #fff;
}

.btn-light:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #171717;
    border-color: #fff;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-q {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #171717;
    transition: color 0.15s ease;
}

.faq-q:hover {
    color: #525252;
}

.faq-q::after {
    content: '+';
    font-size: 1.375rem;
    font-weight: 400;
    color: #a3a3a3;
    transition: transform 0.25s ease;
}

.faq-q.open::after {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a-inner {
    padding: 0 0 2rem;
    color: #525252;
    line-height: 1.8;
}

/* Case Study */
.case {
    border: 1px solid #e5e5e5;
    margin-bottom: 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.case:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.case-header {
    padding: 1.25rem 2rem;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.case-country {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
}

.case-year {
    font-size: 0.85rem;
    color: #737373;
}

.case-body {
    padding: 2rem;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
}

.case-stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: #171717;
}

.case-stat-label {
    font-size: 0.7rem;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .case-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.comparison-table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #525252;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 4rem 1.5rem 3rem;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.footer-visitor-counter {
    margin: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1.25rem; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e5e5 20%, #e5e5e5 80%, transparent);
    margin: 3.5rem 0;
}

/* Smooth anchor links */
[id] {
    scroll-margin-top: 90px;
}

/* Letter Box */
.letter-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.75rem;
    font-family: var(--font-sans);
    white-space: pre-wrap;
    line-height: 1.75;
    font-size: 0.98rem;
    color: #171717;
}

.stacked-counters .counter-box + .counter-box {
    margin-top: 1.5rem;
}

/* Poster Downloads */
.poster-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 1.75rem 0 1.5rem;
}

.poster-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 240px;
    transition: all 0.25s ease;
}

.poster-card:hover {
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.poster-headline {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    flex-grow: 1;
}

.poster-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.poster-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
    background: transparent;
    align-self: flex-start;
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.poster-btn:hover {
    border-color: #fff;
    background: #fff;
    color: #0a0a0a !important;
}

.poster-tip {
    text-align: center;
    font-size: 0.85rem;
    color: #737373;
    margin-top: 0.75rem;
}

/* Forum Enhancements */
.forum-filters select,
.forum-filters input {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.forum-meta-chip {
    background: #f5f5f5;
    color: #525252;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.like-button {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #171717;
    border-radius: 999px;
    padding: 0.35rem 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.like-button:hover:enabled {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.like-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-link-btn {
    margin-top: 0.5rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    color: #171717;
}

.forum-posts .forum-post header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.25rem;
    }

    .hero#hero {
        padding: 4rem 1.25rem 3rem;
    }

    .hero#hero .lead {
        font-size: 1.05rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .poster-card {
        min-height: auto;
        padding: 1.5rem 1.25rem;
    }

    .nav-inner {
        padding: 0 1rem;
    }

    .nav-links a,
    .nav-links select {
        width: 100%;
        text-align: left;
    }
    
    .case-header {
        padding: 1rem 1.5rem;
    }
    
    .case-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .nav-inner {
        height: auto;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-logo {
        flex: 1 0 100%;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .stats {
        gap: 1.5rem;
    }
    
    .letter-box {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 1.25rem;
        bottom: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

/* Email Modal */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.email-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.email-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.email-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #525252;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 1;
}

.email-modal-close:hover {
    background: #e5e5e5;
    color: #171717;
}

.email-preview {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.email-preview-header {
    padding: 2rem 2.5rem;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.email-preview-field {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
}

.email-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.email-preview-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
}

.email-preview-body {
    padding: 2.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: #171717;
}

.email-preview-body h3 {
    font-family: var(--font-sans);
}

.email-preview-body a {
    color: #171717;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.email-modal-actions {
    display: flex;
    gap: 0.875rem;
    padding: 1.5rem 2.5rem;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.email-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.email-modal-actions .btn-primary {
    background: #171717;
    color: #fff;
    border: 1.5px solid #171717;
}

.email-modal-actions .btn-primary:hover {
    background: #fff;
    color: #171717;
    border-color: #171717;
}

.email-modal-actions .btn-secondary {
    background: #fff;
    color: #171717;
    border: 1.5px solid #e5e5e5;
}

.email-modal-actions .btn-secondary:hover {
    background: #171717;
    color: #fff;
    border-color: #171717;
}

@media (max-width: 600px) {
    .email-modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .email-preview-header,
    .email-preview-body,
    .email-modal-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .email-modal-actions {
        flex-direction: column;
    }
    
    .email-modal-actions .btn {
        width: 100%;
    }
}

/* Truth Section - Enhanced */
.truth-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    position: relative;
}

.truth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}

.truth-section .container {
    position: relative;
    z-index: 1;
}

/* Blockquote Styling */
blockquote {
    position: relative;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    border-left: 3px solid #171717;
    background: #fafafa;
    border-radius: 0 12px 12px 0;
}

blockquote p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: #171717;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

blockquote footer {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-style: normal;
    color: #737373;
}

/* Section Container Narrow
   NOTE: width is standardized globally in main.css; don't override here */

/* Overline in Sections */
.overline {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #737373;
    margin-bottom: 0.875rem;
    display: block;
}

/* H2 Styling in Content */
h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #171717;
}

/* H3 Styling in Content */
h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #171717;
}

/* Lead Text */
.lead {
    font-size: 1.125rem;
    color: #525252;
    line-height: 1.85;
}

/* Section Padding */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-of-type {
    border-bottom: none;
}

/* Print Pro CTA */
.poster-print-cta {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.poster-print-cta h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.poster-print-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.poster-print-links .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}
