@import './fonts/fonts.css';

/* ─────────────────────────────────────────────────────────
   CSS Custom Properties
───────────────────────────────────────────────────────── */
:root {
    --red:        #ff0000;
    --red-dark:   #cc0000;
    --red-bg:     #fff3f3;
    --black:      #0d0d0d;
    --gray-dk:    #2a2a2a;
    --gray:       #555;
    --gray-md:    #888;
    --gray-lt:    #c0c0c0;
    --border:     #e4e4e4;
    --white:      #fff;
    --off:        #f7f7f7;
    --footer-bg:  #111;

    --ff-disp:  'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --ff-body:  'Outfit', system-ui, -apple-system, sans-serif;

    --nav-h:    70px;
    --max-w:    1240px;
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --t:        0.22s;
}

/* ─────────────────────────────────────────────────────────
   Base
───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-w);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

a { color: var(--black); text-decoration: none; }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-body);
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    margin-top: 0;
}

/* ─────────────────────────────────────────────────────────
   Navigation
───────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    transition: box-shadow var(--t) var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    text-decoration: none;
}

.nav-brand .logo {
    height: 44px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--ff-disp);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: var(--red);
}

/* Desktop nav list */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-list li a {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    padding: 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gray-dk);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color var(--t), border-color var(--t);
    white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

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

.nav-dropdown-menu {
    position: absolute;
    top: calc(var(--nav-h) + 3px);
    left: 0;
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    height: auto;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    display: block;
    align-items: unset;
}

/* Hamburger toggle button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform var(--t) var(--ease), opacity var(--t);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile collapse */
.nav-collapse {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid var(--border);
    transition: max-height 0.35s var(--ease);
}

.nav-collapse.open { max-height: 500px; }

.nav-collapse .nav-list {
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--red);
}

.nav-collapse .nav-list li a {
    height: auto;
    padding: 0.75rem 1.5rem;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   Breadcrumb
───────────────────────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--off);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 400;
    --bs-breadcrumb-divider: '›';
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-lt);
}

.breadcrumb-item a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb-item a:hover { color: var(--red); }

.breadcrumb-item.active {
    color: var(--gray-md);
}

/* ─────────────────────────────────────────────────────────
   Page shell
───────────────────────────────────────────────────────── */
main { min-height: 60vh; }

.inner-wrapper {
    padding: 3rem 0 4.5rem;
}

/* ─────────────────────────────────────────────────────────
   Home hero
───────────────────────────────────────────────────────── */
.home-hero {
    background: var(--black);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.home-hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.home-hero__label {
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.75rem;
}

.home-hero__title {
    font-family: var(--ff-disp);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--white);
    margin: 0 0 1.25rem;
}

.home-hero__body {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    line-height: 1.65;
    margin: 0;
}

.home-hero__body p { margin: 0; }

/* ─────────────────────────────────────────────────────────
   Article section header
───────────────────────────────────────────────────────── */
.section-hd {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.section-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--red);
}

.section-hd__title {
    font-family: var(--ff-disp);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--black);
    margin: 0;
}

.section-hd__more {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--t);
}

.section-hd__more:hover { color: var(--red); opacity: 0.65; }

/* ─────────────────────────────────────────────────────────
   Article list section wrapper
───────────────────────────────────────────────────────── */
.article-section { margin-bottom: 3.5rem; }

/* ─────────────────────────────────────────────────────────
   Post card
───────────────────────────────────────────────────────── */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
    border-color: var(--red);
}

.post-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--off);
    flex-shrink: 0;
    text-decoration: none;
}

.post-card__img-wrap--empty { aspect-ratio: 3 / 2; background: var(--off); }

.post-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}


.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.15rem 1.25rem;
}

.post-card__date {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gray-md);
    text-transform: uppercase;
    margin: 0 0 0.45rem;
    display: none;
}

.post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.6rem;
    flex: 1;
}

.post-card__title a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--t);
}

.post-card__title a:hover { color: var(--red); }

.post-card__excerpt {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gray);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────
   Article single page
───────────────────────────────────────────────────────── */
.article-header { margin-bottom: 1.5rem; }

.article-cat-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.9rem;
    text-decoration: none;
    transition: background var(--t);
}

.article-cat-label:hover { background: var(--red-dark); color: var(--white); }

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-md);
    font-weight: 400;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    display: none;
}

.article-meta .modified { color: var(--gray-lt); }

.article-img-wrap {
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.article-img-wrap img { width: 100%; height: auto; }

.article-body {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--gray-dk);
}

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--black);
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.5rem;
    color: var(--black);
}

.article-body p { margin-bottom: 1.3rem; }

.article-body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.3rem;
}

.article-body li { margin-bottom: 0.35rem; }

.article-body strong { font-weight: 700; color: var(--black); }

.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--red-bg);
    font-style: italic;
    color: var(--gray);
}

/* Related articles row */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

/* ─────────────────────────────────────────────────────────
   Category page intro
───────────────────────────────────────────────────────── */
.cat-intro {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.cat-intro h1 {
    font-family: var(--ff-disp);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.cat-intro__body {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray);
}

/* ─────────────────────────────────────────────────────────
   Generic page
───────────────────────────────────────────────────────── */
.page-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    font-weight: 300;
    color: var(--gray-dk);
}

.page-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.page-content p { margin-bottom: 1.25rem; }

.page-content a { color: var(--red); text-decoration: underline; }

/* ─────────────────────────────────────────────────────────
   Sidebar
───────────────────────────────────────────────────────── */
.sidebar {
    padding-left: 0.75rem;
}

/* Newsletter CTA */
.sidebar-newsletter {
    background: var(--red);
    color: var(--white);
    padding: 1.75rem 1.5rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sidebar-newsletter::before {
    content: '%';
    font-family: var(--ff-disp);
    font-size: 9rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    position: absolute;
    top: -0.5rem;
    right: -0.75rem;
    pointer-events: none;
    user-select: none;
}

.sidebar-newsletter__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.35rem;
}

.sidebar-newsletter__title {
    font-family: var(--ff-disp);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--white);
    margin: 0 0 0.6rem;
}

.sidebar-newsletter__text {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.25rem;
}

.sidebar-newsletter__btn {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 1.35rem;
    text-decoration: none;
    transition: background var(--t), color var(--t);
}

.sidebar-newsletter__btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Category list */
.sidebar-cats { margin-bottom: 2rem; }

.sidebar-cats__title {
    font-family: var(--ff-disp);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--black);
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--black);
}

.sidebar-cats__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cats__list li { border-bottom: 1px solid var(--border); }
.sidebar-cats__list li:last-child { border-bottom: none; }

.sidebar-cats__list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dk);
    text-decoration: none;
    transition: color var(--t), padding-left var(--t);
}

.sidebar-cats__list a::before {
    content: '→';
    color: var(--red);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sidebar-cats__list a:hover {
    color: var(--red);
    padding-left: 0.3rem;
}

/* ─────────────────────────────────────────────────────────
   Pagination
───────────────────────────────────────────────────────── */
.pagination { gap: 0.2rem; }

.page-link {
    border: 1px solid var(--border) !important;
    color: var(--gray-dk) !important;
    border-radius: 0 !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--t), border-color var(--t), color var(--t);
    min-width: 38px;
    text-align: center;
}

.page-link:hover {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
}

.page-item.active .page-link {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
    z-index: 1;
}

.page-item.disabled .page-link {
    color: var(--gray-lt) !important;
}

/* ─────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.55);
    padding: 3.5rem 0 2rem;
    margin-top: 0;
    font-size: 0.875rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem 3rem;
    padding-bottom: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__logo-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 12px;
    margin-bottom: 0.9rem;
}

.site-footer__logo {
    height: 34px;
    width: auto;
}

.site-footer__tagline {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    max-width: 240px;
}

.site-footer__col-title {
    font-family: var(--ff-disp);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--white);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color var(--t);
}

.site-footer__nav a:hover { color: var(--white); }

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.site-footer__copy strong {
    color: var(--red);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────
   Reveal animation
───────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .nav-list    { display: none; }
    .nav-toggle  { display: flex; }
    .nav-collapse .nav-list { display: flex; }

    .sidebar { padding-left: 0; margin-top: 2.5rem; }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .home-hero { padding: 3rem 0 2.5rem; }
    .inner-wrapper { padding: 2rem 0 3rem; }

    .site-footer__grid { grid-template-columns: 1fr; }

    .breadcrumb-bar { display: none; }
}

@media (max-width: 480px) {
    .home-hero__title { font-size: clamp(2.75rem, 12vw, 4rem); }
    .nav-brand .logo  { height: 36px; }
}
