/* =============================================
   HISTORIC PORTAL - Main Stylesheet
   Editorial museum aesthetic
   ============================================= */

:root {
    --hp-ink: #0b1929;
    --hp-ink-soft: #1e3a5f;
    --hp-cream: #f8f3e7;
    --hp-cream-dark: #ede4cf;
    --hp-paper: #fefcf7;
    --hp-gold: #c8a050;
    --hp-gold-dark: #a07d2e;
    --hp-gold-soft: #e8d4a8;
    --hp-rust: #b85c38;
    --hp-sage: #4a6741;
    --hp-text: #2c2418;
    --hp-text-soft: #5e544a;
    --hp-text-muted: #8a8278;
    --hp-border: #d4c8b0;
    --hp-shadow: 0 4px 20px rgba(11, 25, 41, 0.08);
    --hp-shadow-lg: 0 20px 60px rgba(11, 25, 41, 0.15);
    --hp-font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --hp-font-serif: 'Cormorant Garamond', Georgia, serif;
    --hp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --hp-radius: 4px;
    --hp-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--hp-paper);
    color: var(--hp-text);
    font-family: var(--hp-font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--hp-ink-soft);
    text-decoration: none;
    transition: color 0.3s var(--hp-transition);
}

a:hover {
    color: var(--hp-gold-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hp-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hp-ink);
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.2em;
}

.hp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .hp-container {
        padding: 0 40px;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background: var(--hp-ink);
    color: var(--hp-paper);
    padding: 8px 16px;
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 8px;
}

/* ============= TOP BAR ============= */
.hp-topbar {
    background: var(--hp-ink);
    color: var(--hp-cream);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    padding: 8px 0;
    position: relative;
}

.hp-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hp-gold) 50%, transparent);
}

.hp-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hp-topbar-date {
    font-family: var(--hp-font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--hp-gold-soft);
}

.hp-topbar-socials {
    display: flex;
    gap: 18px;
}

.hp-social-link {
    color: var(--hp-cream);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.hp-social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--hp-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--hp-transition);
}

.hp-social-link:hover {
    color: var(--hp-gold);
}

.hp-social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============= HEADER ============= */
.hp-header {
    background: var(--hp-paper);
    border-bottom: 1px solid var(--hp-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(254, 252, 247, 0.95);
}

.hp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 24px;
}

.hp-branding {
    flex-shrink: 0;
}

.hp-site-title {
    margin: 0;
    font-family: var(--hp-font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hp-site-title a {
    color: var(--hp-ink);
    text-decoration: none;
    background: linear-gradient(120deg, var(--hp-ink) 0%, var(--hp-ink-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-site-description {
    font-family: var(--hp-font-serif);
    font-style: italic;
    font-size: 13px;
    color: var(--hp-text-muted);
    margin: 4px 0 0;
    letter-spacing: 0.02em;
}

/* ============= NAVIGATION ============= */
.hp-main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hp-main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.hp-main-nav a {
    color: var(--hp-ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    display: inline-block;
}

.hp-main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--hp-gold);
    transform: translateX(-50%);
    transition: width 0.4s var(--hp-transition);
}

.hp-main-nav a:hover::after,
.hp-main-nav .current-menu-item > a::after {
    width: 24px;
}

.hp-main-nav a:hover {
    color: var(--hp-gold-dark);
}

.hp-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--hp-border);
    padding: 12px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-between;
}

.hp-menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--hp-ink);
    transition: all 0.3s var(--hp-transition);
}

.hp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-search-toggle {
    background: transparent;
    border: 1px solid var(--hp-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--hp-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--hp-transition);
}

.hp-search-toggle:hover {
    background: var(--hp-ink);
    color: var(--hp-paper);
    transform: rotate(90deg);
}

/* SEARCH OVERLAY */
.hp-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 25, 41, 0.97);
    z-index: 999;
    display: none;
    align-items: center;
    backdrop-filter: blur(20px);
}

.hp-search-overlay.active {
    display: flex;
    animation: hp-fade-in 0.4s ease;
}

.hp-search-overlay form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hp-search-overlay .hp-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--hp-gold);
    color: var(--hp-cream);
    font-size: 32px;
    font-family: var(--hp-font-display);
    padding: 16px 0;
    outline: none;
}

.hp-search-overlay .hp-search-input::placeholder {
    color: rgba(248, 243, 231, 0.4);
    font-style: italic;
}

.hp-search-overlay .hp-search-submit {
    margin-top: 24px;
    background: var(--hp-gold);
    color: var(--hp-ink);
    border: none;
    padding: 12px 32px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--hp-radius);
    transition: all 0.3s var(--hp-transition);
}

.hp-search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: transparent;
    border: 1px solid var(--hp-gold);
    color: var(--hp-cream);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s var(--hp-transition);
}

.hp-search-close:hover {
    background: var(--hp-gold);
    color: var(--hp-ink);
    transform: rotate(90deg);
}

/* ============= BUTTONS ============= */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    font-family: var(--hp-font-body);
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: var(--hp-radius);
    cursor: pointer;
    transition: all 0.4s var(--hp-transition);
    position: relative;
    overflow: hidden;
}

.hp-btn-primary {
    background: var(--hp-ink);
    color: var(--hp-paper);
    border-color: var(--hp-ink);
}

.hp-btn-primary:hover {
    background: var(--hp-gold-dark);
    border-color: var(--hp-gold-dark);
    color: var(--hp-paper);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 125, 46, 0.25);
}

.hp-btn-accent {
    background: var(--hp-gold);
    color: var(--hp-ink);
    border-color: var(--hp-gold);
}

.hp-btn-accent:hover {
    background: var(--hp-gold-dark);
    border-color: var(--hp-gold-dark);
    color: var(--hp-paper);
    transform: translateY(-2px);
}

.hp-btn-ghost {
    background: transparent;
    color: var(--hp-ink);
    border-color: var(--hp-ink);
}

.hp-btn-ghost:hover {
    background: var(--hp-ink);
    color: var(--hp-paper);
}

/* ============= HERO SECTION ============= */
.hp-hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--hp-paper) 0%, var(--hp-cream) 100%);
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hp-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 160, 80, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
    background-size: 100% 100%;
}

.hp-hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 160, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 160, 80, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hp-hero-label {
    display: inline-block;
    font-family: var(--hp-font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--hp-gold-dark);
    margin-bottom: 32px;
    padding: 6px 20px;
    border: 1px solid var(--hp-gold);
    border-radius: 40px;
    font-weight: 500;
}

.hp-hero-title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 32px;
    color: var(--hp-ink);
}

.hp-hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: hp-hero-rise 1s var(--hp-transition) forwards;
}

.hp-hero-line:nth-child(1) { animation-delay: 0.1s; }
.hp-hero-line:nth-child(2) { animation-delay: 0.3s; }
.hp-hero-line:nth-child(3) { animation-delay: 0.5s; }

.hp-hero-line-accent {
    font-family: var(--hp-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--hp-gold-dark);
}

.hp-hero-desc {
    font-family: var(--hp-font-serif);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--hp-text-soft);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-style: italic;
    opacity: 0;
    animation: hp-fade-up 1s 0.7s var(--hp-transition) forwards;
}

.hp-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hp-fade-up 1s 0.9s var(--hp-transition) forwards;
}

.hp-hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--hp-text-muted);
    opacity: 0;
    animation: hp-fade-in 1s 1.5s forwards;
}

.hp-scroll-line {
    width: 1px;
    height: 40px;
    background: var(--hp-gold);
    animation: hp-scroll-bounce 2s ease-in-out infinite;
}

/* ============= SECTION HEAD ============= */
.hp-section-head {
    text-align: center;
    margin-bottom: 60px;
}

.hp-section-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--hp-gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding: 0 32px;
}

.hp-section-label::before,
.hp-section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--hp-gold);
}

.hp-section-label::before { left: 0; }
.hp-section-label::after { right: 0; }

.hp-section-label-light {
    color: var(--hp-gold-soft);
}

.hp-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    color: var(--hp-ink);
}

/* ============= CATEGORIES ============= */
.hp-categories {
    padding: 100px 0;
    background: var(--hp-cream);
}

.hp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--hp-border);
    border-left: 1px solid var(--hp-border);
}

.hp-category-card {
    padding: 48px 32px;
    background: var(--hp-paper);
    border-right: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--hp-ink);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--hp-transition);
}

.hp-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hp-ink) 0%, var(--hp-ink-soft) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--hp-transition);
    z-index: 0;
}

.hp-category-card:hover::before {
    opacity: 1;
}

.hp-category-card > * {
    position: relative;
    z-index: 1;
    transition: color 0.4s var(--hp-transition);
}

.hp-category-card:hover > * {
    color: var(--hp-paper);
}

.hp-category-num {
    font-family: var(--hp-font-display);
    font-size: 64px;
    font-weight: 300;
    color: var(--hp-gold);
    line-height: 1;
    margin-bottom: 32px;
    font-style: italic;
}

.hp-category-card:hover .hp-category-num {
    color: var(--hp-gold-soft);
}

.hp-category-name {
    font-size: 26px;
    margin: 0 0 12px;
}

.hp-category-desc {
    color: var(--hp-text-muted);
    font-family: var(--hp-font-serif);
    font-style: italic;
    font-size: 16px;
    margin-bottom: 24px;
}

.hp-category-count {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--hp-text-muted);
    margin-bottom: 24px;
}

.hp-category-arrow {
    font-size: 28px;
    color: var(--hp-gold);
    margin-top: auto;
    transition: transform 0.4s var(--hp-transition);
}

.hp-category-card:hover .hp-category-arrow {
    transform: translateX(8px);
    color: var(--hp-gold);
}

/* ============= LATEST POSTS ============= */
.hp-latest {
    padding: 100px 0;
    background: var(--hp-paper);
}

.hp-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

.hp-post-card {
    background: var(--hp-paper);
    transition: transform 0.5s var(--hp-transition);
}

.hp-post-card-featured {
    grid-column: 1 / -1;
}

.hp-post-card-featured .hp-post-card-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--hp-cream);
    overflow: hidden;
}

.hp-post-card-featured .hp-post-card-image {
    aspect-ratio: 16 / 11;
}

.hp-post-card-featured .hp-post-card-body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-post-card-featured .hp-post-card-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.hp-post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hp-post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--hp-cream-dark);
}

.hp-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--hp-transition);
}

.hp-post-card:hover .hp-post-card-image img {
    transform: scale(1.06);
}

.hp-post-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hp-ink) 0%, var(--hp-ink-soft) 100%);
    color: var(--hp-gold);
    font-family: var(--hp-font-display);
    font-style: italic;
    font-size: 24px;
}

.hp-post-card-body {
    padding: 28px 0 0;
}

.hp-post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hp-post-card-cat {
    color: var(--hp-gold-dark);
    font-weight: 700;
}

.hp-post-card-date {
    color: var(--hp-text-muted);
    font-weight: 500;
}

.hp-post-card-title {
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.2;
    transition: color 0.3s var(--hp-transition);
}

.hp-post-card:hover .hp-post-card-title {
    color: var(--hp-gold-dark);
}

.hp-post-card-excerpt {
    color: var(--hp-text-soft);
    font-family: var(--hp-font-serif);
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.hp-post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--hp-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hp-post-card-read {
    color: var(--hp-text-muted);
}

.hp-post-card-more {
    color: var(--hp-ink);
    font-weight: 700;
    transition: color 0.3s, transform 0.3s var(--hp-transition);
    display: inline-block;
}

.hp-post-card:hover .hp-post-card-more {
    color: var(--hp-gold-dark);
    transform: translateX(4px);
}

/* ============= NEWSLETTER ============= */
.hp-newsletter-section {
    padding: 100px 0;
    background: var(--hp-ink);
    color: var(--hp-cream);
    position: relative;
    overflow: hidden;
}

.hp-newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(200, 160, 80, 0.15) 0%, transparent 60%);
}

.hp-newsletter-box {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hp-newsletter-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--hp-cream);
    margin: 12px 0 16px;
}

.hp-newsletter-desc {
    color: rgba(248, 243, 231, 0.7);
    font-family: var(--hp-font-serif);
    font-size: 17px;
    margin: 0;
}

.hp-newsletter-form {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.hp-newsletter-form input {
    background: rgba(248, 243, 231, 0.05);
    border: 1px solid rgba(200, 160, 80, 0.3);
    color: var(--hp-cream);
    padding: 16px 20px;
    font-size: 15px;
    font-family: var(--hp-font-body);
    border-radius: var(--hp-radius);
    outline: none;
    transition: all 0.3s var(--hp-transition);
}

.hp-newsletter-form input::placeholder {
    color: rgba(248, 243, 231, 0.4);
}

.hp-newsletter-form input:focus {
    border-color: var(--hp-gold);
    background: rgba(248, 243, 231, 0.08);
}

.hp-newsletter-form button {
    align-self: flex-start;
}

/* ============= FOOTER ============= */
.hp-footer {
    background: var(--hp-ink);
    color: var(--hp-cream);
    padding: 80px 0 0;
    position: relative;
}

.hp-footer-ornament {
    height: 4px;
    background: linear-gradient(90deg, var(--hp-ink) 0%, var(--hp-gold) 50%, var(--hp-ink) 100%);
}

.hp-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
}

.hp-footer-logo {
    font-size: 32px;
    color: var(--hp-cream);
    margin: 0 0 12px;
}

.hp-footer-desc {
    color: rgba(248, 243, 231, 0.6);
    font-family: var(--hp-font-serif);
    font-style: italic;
    font-size: 16px;
    margin-bottom: 28px;
}

.hp-footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-footer-social {
    color: var(--hp-cream);
    border: 1px solid rgba(200, 160, 80, 0.4);
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.3s var(--hp-transition);
}

.hp-footer-social:hover {
    background: var(--hp-gold);
    color: var(--hp-ink);
    border-color: var(--hp-gold);
}

.hp-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.hp-footer-col .widget-title,
.hp-footer-col h4 {
    color: var(--hp-gold-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-family: var(--hp-font-body);
    font-weight: 600;
}

.hp-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-footer-links li {
    margin-bottom: 12px;
}

.hp-footer-links a {
    color: rgba(248, 243, 231, 0.7);
    font-size: 15px;
    transition: all 0.3s var(--hp-transition);
}

.hp-footer-links a:hover {
    color: var(--hp-gold);
    padding-left: 8px;
}

.hp-newsletter input {
    width: 100%;
    background: rgba(248, 243, 231, 0.05);
    border: 1px solid rgba(200, 160, 80, 0.3);
    color: var(--hp-cream);
    padding: 12px 16px;
    margin-bottom: 8px;
    font-family: var(--hp-font-body);
    border-radius: var(--hp-radius);
}

.hp-newsletter button {
    background: var(--hp-gold);
    color: var(--hp-ink);
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--hp-radius);
    transition: all 0.3s var(--hp-transition);
}

.hp-newsletter button:hover {
    background: var(--hp-gold-dark);
    color: var(--hp-paper);
}

.hp-footer-divider {
    height: 1px;
    background: rgba(200, 160, 80, 0.2);
    margin: 0;
}

.hp-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(248, 243, 231, 0.5);
    font-size: 13px;
}

.hp-legal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.hp-legal-menu a {
    color: rgba(248, 243, 231, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s var(--hp-transition);
}

.hp-legal-menu a:hover {
    color: var(--hp-gold);
}

/* ============= BACK TO TOP ============= */
.hp-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--hp-ink);
    color: var(--hp-cream);
    border: 1px solid var(--hp-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--hp-transition);
}

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

.hp-back-to-top:hover {
    background: var(--hp-gold);
    color: var(--hp-ink);
    transform: translateY(-4px);
}

/* ============= COOKIE BANNER ============= */
.hp-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 580px;
    background: var(--hp-ink);
    color: var(--hp-cream);
    border: 1px solid var(--hp-gold);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    transform: translateY(120%);
    transition: transform 0.6s var(--hp-transition);
}

.hp-cookie-banner.visible {
    transform: translateY(0);
}

.hp-cookie-banner.hidden {
    transform: translateY(120%);
}

.hp-cookie-content {
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hp-cookie-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 160, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-gold);
    flex-shrink: 0;
}

.hp-cookie-text {
    flex: 1;
    min-width: 240px;
}

.hp-cookie-text strong {
    display: block;
    font-family: var(--hp-font-display);
    font-size: 18px;
    color: var(--hp-cream);
    margin-bottom: 4px;
}

.hp-cookie-text p {
    font-size: 13.5px;
    color: rgba(248, 243, 231, 0.75);
    line-height: 1.55;
    margin: 0;
}

.hp-cookie-text a {
    color: var(--hp-gold);
    text-decoration: underline;
}

.hp-cookie-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.hp-cookie-actions .hp-btn {
    padding: 10px 20px;
    font-size: 11px;
}

.hp-cookie-actions .hp-btn-ghost {
    background: transparent;
    color: var(--hp-cream);
    border-color: rgba(200, 160, 80, 0.4);
}

.hp-cookie-actions .hp-btn-ghost:hover {
    background: rgba(200, 160, 80, 0.1);
    color: var(--hp-gold);
    border-color: var(--hp-gold);
}

.hp-cookie-actions .hp-btn-primary {
    background: var(--hp-gold);
    color: var(--hp-ink);
    border-color: var(--hp-gold);
}

.hp-cookie-actions .hp-btn-primary:hover {
    background: var(--hp-gold-dark);
    border-color: var(--hp-gold-dark);
    color: var(--hp-paper);
}

.hp-cookie-customize-panel {
    border-top: 1px solid rgba(200, 160, 80, 0.2);
    padding: 24px 28px;
    display: none;
}

.hp-cookie-customize-panel.visible {
    display: block;
}

.hp-cookie-customize-panel h3 {
    color: var(--hp-cream);
    margin: 0 0 16px;
    font-size: 18px;
}

.hp-cookie-option {
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 160, 80, 0.1);
}

.hp-cookie-option:last-child {
    border-bottom: none;
}

.hp-cookie-option label {
    display: block;
    cursor: pointer;
}

.hp-cookie-option strong {
    display: inline-block;
    font-size: 14px;
    color: var(--hp-cream);
    margin-left: 8px;
}

.hp-cookie-option span {
    display: block;
    font-size: 12px;
    color: rgba(248, 243, 231, 0.6);
    margin-top: 4px;
    margin-left: 24px;
}

.hp-cookie-customize-actions {
    margin-top: 16px;
}

/* ============= MOBILE ============= */
@media (max-width: 968px) {
    .hp-menu-toggle {
        display: flex;
    }

    .hp-main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 80vw;
        height: 100vh;
        background: var(--hp-ink);
        padding: 80px 32px 32px;
        flex-direction: column;
        transition: right 0.5s var(--hp-transition);
        z-index: 999;
        overflow-y: auto;
    }

    .hp-main-nav.active {
        right: 0;
    }

    .hp-main-nav ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .hp-main-nav a {
        color: var(--hp-cream);
        padding: 16px 0;
        border-bottom: 1px solid rgba(200, 160, 80, 0.15);
        width: 100%;
    }

    .hp-main-nav a:hover {
        color: var(--hp-gold);
    }

    .hp-menu-toggle.active .hp-menu-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hp-menu-toggle.active .hp-menu-bar:nth-child(2) {
        opacity: 0;
    }

    .hp-menu-toggle.active .hp-menu-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hp-post-card-featured .hp-post-card-link {
        grid-template-columns: 1fr;
    }

    .hp-post-card-featured .hp-post-card-body {
        padding: 28px;
    }

    .hp-newsletter-box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hp-footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hp-topbar-inner {
        flex-direction: column;
        text-align: center;
    }

    .hp-footer-columns {
        grid-template-columns: 1fr;
    }

    .hp-legal-wrapper {
        grid-template-columns: 1fr !important;
    }

    .hp-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .hp-cookie-actions {
        margin-left: 0;
        width: 100%;
    }

    .hp-cookie-actions .hp-btn {
        flex: 1;
    }
}
