/**
 * HOME-PREMIUM.CSS — Phase 4: Front Website UI Overhaul
 * Premium layer on top of home.css, inspired by NEW GUI reference.
 * Adds: scroll animations, enhanced cards, gold accents,
 * glassmorphism polish, improved typography and micro-interactions.
 */

/* ===========================================
   GLOBAL ANIMATIONS — Scroll Reveal
   =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.15);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Scroll-triggered reveal class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===========================================
   HERO SECTION — Premium Enhancement
   =========================================== */

/* Richer overlay gradient — more cinematic */
.hero-bg-overlay {
    background: linear-gradient(135deg,
            rgba(6, 13, 30, 0.94) 0%,
            rgba(12, 30, 58, 0.82) 40%,
            rgba(12, 30, 58, 0.68) 70%,
            rgba(6, 13, 30, 0.88) 100%);
}

/* Hero title — gradient text like NEW GUI */
.hero-content h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-300, #f5d280) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero eyebrow badge — gold pill like NEW GUI */
.hero-content .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: var(--color-accent-400, #f5d280);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out both;
}

/* Hero subtitle entrance animation */
.hero-content .hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero CTA buttons entrance */
.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-meta {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Hero CTA button — premium gold style */
.hero-buttons .btn-primary-public {
    background: linear-gradient(135deg, var(--color-accent-500, #F2C21A) 0%, #b8935f 100%);
    color: var(--color-primary-900, #0c1e3a);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: none;
}

.hero-buttons .btn-primary-public:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Hero CTA secondary — glass button */
.hero-buttons .btn-secondary-public {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.hero-buttons .btn-secondary-public:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-accent-400, #f5d280);
    color: var(--color-accent-400, #f5d280);
}

/* ===========================================
   HOMEPAGE HERO — CLASSIC LIGHT CONTRACT
   =========================================== */

body.homepage--classic .hero-section {
    background: linear-gradient(180deg, #fbf6eb 0%, #f4f7fb 44%, #ffffff 100%);
    color: #0f2033;
}

body.homepage--classic .hero-section::before {
    width: 56%;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 194, 26, 0.18), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(30, 58, 95, 0.12), transparent 38%);
}

body.homepage--classic .hero-bg-overlay {
    background: linear-gradient(135deg,
            rgba(255, 251, 244, 0.94) 0%,
            rgba(247, 242, 231, 0.8) 36%,
            rgba(238, 243, 249, 0.62) 72%,
            rgba(255, 255, 255, 0.72) 100%);
}

body.homepage--classic .hero-content h1 {
    background: linear-gradient(135deg, #0c1e3a 0%, #1b3152 52%, #b08008 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.homepage--classic .hero-content .hero-eyebrow {
    background: rgba(242, 194, 26, 0.14);
    border-color: rgba(185, 142, 24, 0.32);
    color: #8f6905;
}

body.homepage--classic .hero-content .hero-subtitle {
    color: #42556d;
}

body.homepage--classic .hero-meta {
    color: #5b6b82;
}

body.homepage--classic .hero-meta i {
    color: #c49112;
}

body.homepage--classic .hero-buttons .btn-secondary-public {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 30, 58, 0.14);
    color: #0c1e3a;
    box-shadow: 0 12px 30px rgba(12, 30, 58, 0.08);
}

body.homepage--classic .hero-buttons .btn-secondary-public:hover {
    background: #ffffff;
    border-color: rgba(191, 147, 10, 0.42);
    color: #0c1e3a;
}

body.homepage--classic .hero-briefing__panel {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 233, 0.96) 50%, rgba(238, 243, 249, 0.94) 100%);
    border: 1px solid rgba(12, 30, 58, 0.1);
    box-shadow: 0 24px 54px rgba(12, 30, 58, 0.12);
}

body.homepage--classic .hero-briefing__kicker {
    background: rgba(242, 194, 26, 0.14);
    border-color: rgba(185, 142, 24, 0.28);
    color: #8f6905;
}

body.homepage--classic .hero-briefing__panel h2 {
    color: #0c1e3a;
}

body.homepage--classic .hero-briefing__panel>p {
    color: #51627d;
}

body.homepage--classic .hero-briefing__spotlight {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(12, 30, 58, 0.08);
}

body.homepage--classic .hero-briefing__label {
    color: #9a6b00;
}

body.homepage--classic .hero-briefing__spotlight strong {
    color: #0c1e3a;
}

body.homepage--classic .hero-briefing__spotlight p {
    color: #52637a;
}

body.homepage--classic .hero-briefing__note,
body.homepage--classic .hero-briefing__meta span,
body.homepage--classic .hero-briefing__metric {
    background: rgba(15, 44, 70, 0.05);
    border: 1px solid rgba(12, 30, 58, 0.08);
    color: #52637a;
}

body.homepage--classic .hero-briefing__note i {
    color: #c49112;
}

body.homepage--classic .hero-briefing__note strong,
body.homepage--classic .hero-briefing__metric strong {
    color: #0c1e3a;
}

body.homepage--classic .hero-briefing__metric span {
    color: #64748b;
}

body.homepage--classic .hero-visual {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 252, 0.94) 100%);
    border: 1px solid rgba(12, 30, 58, 0.08);
    box-shadow: 0 24px 54px rgba(12, 30, 58, 0.12);
}

body.homepage--classic .hero-board-body {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(12, 30, 58, 0.08);
}

body.homepage--classic .hero-board-body h3 {
    color: #0c1e3a;
}

body.homepage--classic .hero-board-body p {
    color: #52637a;
}

/* ===========================================
   NAVBAR — Glassmorphism Polish
   =========================================== */

/* On-scroll solid state: add gold accent line */
.main-navbar.is-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12),
        inset 0 -2px 0 0 rgba(212, 175, 55, 0.25);
}

/* Active nav link: gold underline */
.navbar-menu .menu-link.active::after {
    height: 3px;
    border-radius: 1.5px;
    background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent-300, #f5d280));
}

/* ===========================================
   PILLAR CARDS — Premium Redesign
   =========================================== */

.pillar-card {
    background: var(--color-surface, white);
    border: 1px solid var(--color-border-light, rgba(0, 0, 0, 0.06));
    border-top: none;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Gold gradient top border */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600) 0%, var(--color-accent-500) 100%);
    transition: height 0.3s ease;
}

.pillar-card:hover::before {
    height: 5px;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Icon container — gradient bg like NEW GUI */
.pillar-card i {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    border-radius: 14px;
    font-size: 1.8rem;
    color: var(--color-accent-600, #d4af37);
    margin-bottom: var(--space-5, 1.25rem);
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar-card:hover i {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
}

/* Editorial visual variants for CMS-managed cards */
.pillar-card--v1::before {
    background: linear-gradient(90deg, #1e3a5f 0%, #f2c21a 100%);
}

.pillar-card--v2::before {
    background: linear-gradient(90deg, #0f766e 0%, #f59e0b 100%);
}

.pillar-card--v3::before {
    background: linear-gradient(90deg, #6b21a8 0%, #d4af37 100%);
}

/* ===========================================
   SERVICE CARDS — Premium Enhancement
   =========================================== */

.service-card {
    background: var(--color-surface, white);
    border: 1px solid var(--color-border-light, rgba(0, 0, 0, 0.06));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Gold shimmer on hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 30%,
            rgba(212, 175, 55, 0.06) 50%,
            transparent 70%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    animation: goldShimmer 1.5s ease forwards;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-500, #F2C21A);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card--v1 {
    border-color: rgba(30, 58, 95, 0.2);
}

.service-card--v2 {
    border-color: rgba(15, 118, 110, 0.22);
}

.service-card--v3 {
    border-color: rgba(107, 33, 168, 0.2);
}

/* Service card icon — bg container */
.service-card>i:first-child,
.service-card i.fas:first-child,
.service-card i.far:first-child {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    font-size: 1.8rem;
    color: var(--color-accent-500, #F2C21A);
    transition: transform 0.3s ease;
}

.service-card:hover>i:first-child,
.service-card:hover i.fas:first-child,
.service-card:hover i.far:first-child {
    transform: scale(1.1) rotate(-5deg);
}

/* Service link arrow — gold */
.service-card .link-arrow {
    color: var(--color-accent-600, #d4af37);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.service-card .link-arrow:hover {
    gap: 0.85rem;
    color: var(--color-primary-700);
}

/* ===========================================
   FEATURED & ARTICLE CARDS — Polish
   =========================================== */

.featured-card,
.article-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover,
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.15);
}

/* Image zoom on hover */
.featured-card:hover .featured-media img,
.article-card:hover .article-image img {
    transform: scale(1.08);
}

.featured-media img,
.article-image img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Category badge — premium pill */
.featured-media .category-badge {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   QUOTE SECTION — Atmospheric Enhancement
   =========================================== */

.quote-section {
    background: linear-gradient(180deg, #fef9ef 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative orb */
.quote-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.quote-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

/* Quote mark — gold glow */
.quote-mark {
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

/* ===========================================
   PUBLIC CONVERGENCE — Hero / Section Grammar
   =========================================== */

@media (min-width: 1080px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: center;
    }

    .hero-content {
        max-width: 720px;
    }
}

.hero-briefing {
    display: flex;
    align-items: center;
    align-self: center;
}

.hero-briefing__panel {
    width: 100%;
    height: auto;
    padding: clamp(1.45rem, 2.45vw, 2rem);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
        linear-gradient(145deg, rgba(7, 18, 37, 0.72) 0%, rgba(18, 40, 74, 0.54) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 54px rgba(3, 10, 26, 0.28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 0.95rem;
}

.hero-briefing__kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(245, 210, 128, 0.32);
    color: var(--color-accent-300, #f5d280);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-briefing__panel h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.35vw, 2rem);
    color: #ffffff;
    line-height: 1.18;
}

.hero-briefing__panel>p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.62;
    max-width: 32ch;
}

.hero-briefing__spotlight {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 248, 235, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-briefing__spotlight-head,
.hero-briefing__spotlight-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.hero-briefing__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-300, #f5d280);
}

.hero-briefing__refresh-date {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.76rem;
    font-weight: 600;
}

.hero-briefing__spotlight strong {
    font-size: 1.15rem;
    line-height: 1.45;
    color: #ffffff;
}

.hero-briefing__spotlight p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.62;
}

.hero-briefing__meta,
.hero-briefing__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-briefing__note {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.77rem;
    line-height: 1.35;
}

.hero-briefing__note i {
    color: var(--color-accent-300, #f5d280);
}

.hero-briefing__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.76rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(241, 245, 249, 0.86);
    font-size: 0.8rem;
}

.hero-briefing__metric {
    min-width: 126px;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.15rem;
}

.hero-briefing__metric span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.74);
}

.hero-briefing__metric strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.22rem;
    color: #ffffff;
}

.section-header--split {
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 760px;
}

.section-header--split h2 {
    margin: 0;
}

.section-header--split p {
    margin: 0;
    max-width: 62ch;
}

/* ===========================================
   HOMEPAGE COMPOSITION — Compact Rhythm
   =========================================== */

body[class*="homepage--"] .pillars-section--premium,
body[class*="homepage--"] .services-section--premium,
body[class*="homepage--"] .quote-section,
body[class*="homepage--"] .latest-section,
body[class*="homepage--"] .newsletter-section {
    padding-top: clamp(2.4rem, 4.2vw, 3.35rem);
    padding-bottom: clamp(2.4rem, 4.2vw, 3.35rem);
}

body[class*="homepage--"] .document-ecosystem--homepage {
    padding-top: clamp(2.7rem, 4.3vw, 3.75rem);
    padding-bottom: clamp(2.7rem, 4.3vw, 3.75rem);
}

body[class*="homepage--"] .quote-section {
    padding-bottom: clamp(1.35rem, 2.5vw, 1.9rem);
}

body[class*="homepage--"] .latest-section {
    padding-top: clamp(1.45rem, 2.4vw, 1.95rem);
}

body[class*="homepage--"] .pillars-section--premium .content-container,
body[class*="homepage--"] .services-section--premium .content-container,
body[class*="homepage--"] .latest-section .content-container,
body[class*="homepage--"] .quote-section .content-container,
body[class*="homepage--"] .newsletter-section .content-container {
    display: grid;
    gap: clamp(1.5rem, 2.8vw, 2.2rem);
}

body[class*="homepage--"] .section-header,
body[class*="homepage--"] .section-header--split,
body[class*="homepage--"] .document-ecosystem--homepage .document-ecosystem__intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
    text-align: center;
}

body[class*="homepage--"] .section-header--split {
    justify-items: center;
}

body[class*="homepage--"] .section-header--split .section-kicker {
    justify-self: center;
}

body[class*="homepage--"] .section-header,
body[class*="homepage--"] .section-header--split {
    margin-bottom: clamp(1.65rem, 2.6vw, 2.25rem);
}

body[class*="homepage--"] .section-header p,
body[class*="homepage--"] .section-header--split p,
body[class*="homepage--"] .document-ecosystem--homepage .document-ecosystem__intro p {
    margin-left: auto;
    margin-right: auto;
}

body[class*="homepage--"] .pillars-grid,
body[class*="homepage--"] .services-grid,
body[class*="homepage--"] .home-latest-layout,
body[class*="homepage--"] .home-latest-grid,
body[class*="homepage--"] .document-ecosystem__lane-grid,
body[class*="homepage--"] .document-ecosystem__hero-actions {
    align-items: start;
    gap: clamp(1.15rem, 1.8vw, 1.6rem);
}

body[class*="homepage--"] .services-grid {
    margin-top: 0;
}

body[class*="homepage--"] .pillar-card,
body[class*="homepage--"] .service-card,
body[class*="homepage--"] .document-ecosystem-lane,
body[class*="homepage--"] .document-ecosystem-action,
body[class*="homepage--"] .home-latest-lead,
body[class*="homepage--"] .article-card {
    align-self: start;
}

body[class*="homepage--"] .pillar-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 2vw, 1.9rem);
    height: auto;
}

body[class*="homepage--"] .pillar-card i,
body[class*="homepage--"] .pillar-card h3,
body[class*="homepage--"] .pillar-card p {
    margin-bottom: 0;
}

body[class*="homepage--"] .service-card {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    align-content: start;
    padding: clamp(1.5rem, 2vw, 1.9rem);
    height: auto;
}

body[class*="homepage--"] .service-card>i:first-child,
body[class*="homepage--"] .service-card i.fas:first-child,
body[class*="homepage--"] .service-card i.far:first-child,
body[class*="homepage--"] .service-card h3,
body[class*="homepage--"] .service-card p {
    margin-bottom: 0;
}

body[class*="homepage--"] .service-card .link-arrow,
body[class*="homepage--"] .pillar-card .link-arrow {
    margin-top: 0.15rem;
}

body[class*="homepage--"] .quote-section-title,
body[class*="homepage--"] .quote-link {
    margin-bottom: 0;
}

body[class*="homepage--"] .home-latest-lead__media,
body[class*="homepage--"] .article-card .article-image,
body[class*="homepage--"] .article-card .card-image,
body[class*="homepage--"] .featured-card .card-image {
    min-height: 200px;
}

@media (min-width: 1080px) {
    body[class*="homepage--"] .hero-briefing__panel {
        max-width: 500px;
        margin-left: auto;
    }
}

.section-kicker {
    background: rgba(15, 44, 70, 0.08);
    border-color: rgba(15, 44, 70, 0.12);
    color: var(--color-primary-700, #14356b);
}

.section-kicker--light {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 248, 235, 0.94);
}

.home-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.05rem, 1.85vw, 1.45rem);
    align-items: start;
}

.home-latest-lead {
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.2rem, 2vw, 1.5rem);
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(15, 44, 70, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(15, 44, 70, 0.08);
}

.home-latest-lead__media {
    border-radius: 22px;
    overflow: hidden;
    min-height: 280px;
}

.home-latest-lead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-latest-lead__body {
    display: grid;
    gap: 0.9rem;
}

.home-latest-lead__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-700, #9a6b00);
}

.home-latest-lead__body h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.home-latest-lead__body h3 a {
    color: var(--color-primary-900, #0f2033);
    text-decoration: none;
}

.home-latest-lead__body h3 a:hover {
    color: var(--color-accent-700, #9a6b00);
}

.home-latest-lead__body p {
    margin: 0;
    color: var(--color-text-secondary, #475569);
    line-height: 1.75;
}

.home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.home-latest-grid .article-card {
    height: 100%;
}

.home-latest-grid:empty {
    display: none;
}

/* Keep the quote section recognisable and only tune the palette. */
.quote-section {
    background: linear-gradient(180deg, #fef8eb 0%, #fffdf7 52%, #ffffff 100%);
}

.quote-section::before {
    background: radial-gradient(circle, rgba(226, 190, 118, 0.12) 0%, rgba(255, 244, 220, 0.06) 38%, transparent 72%);
}

.quote-card-hero {
    background:
        linear-gradient(135deg, rgba(255, 251, 242, 0.98) 0%, rgba(250, 242, 221, 0.92) 42%, rgba(228, 237, 248, 0.9) 100%);
    border: 1px solid rgba(173, 133, 58, 0.14);
    box-shadow: 0 22px 42px rgba(15, 44, 70, 0.12);
}

.quote-icon {
    background: linear-gradient(135deg, #fff9ef 0%, #f0e7d4 100%);
    border-color: rgba(255, 255, 255, 0.92);
}

.quote-mark {
    color: #d39b18;
}

.quote-body {
    color: #17325e;
}

.quote-card-hero .quote-body {
    padding: 0;
}

.quote-card-hero .quote-body::before,
.quote-card-hero .quote-body::after {
    display: none;
}

.quote-author {
    color: #31507d;
}

.quote-source {
    color: #60799c;
}

.quote-link a {
    color: #8f6410;
}

.quote-link a:hover {
    color: #17325e;
}

.theme-dark .quote-section,
[data-theme="dark"] .quote-section {
    background: linear-gradient(180deg, #0f1727 0%, #131f35 52%, #0b1322 100%);
}

.theme-dark .quote-card-hero,
[data-theme="dark"] .quote-card-hero {
    background:
        linear-gradient(135deg, rgba(27, 36, 55, 0.96) 0%, rgba(43, 33, 18, 0.78) 45%, rgba(22, 36, 58, 0.92) 100%);
    border-color: rgba(245, 210, 128, 0.16);
    box-shadow: 0 28px 54px rgba(2, 6, 23, 0.42);
}

.theme-dark .quote-icon,
[data-theme="dark"] .quote-icon {
    background: linear-gradient(135deg, rgba(255, 247, 232, 0.18) 0%, rgba(214, 179, 96, 0.22) 100%);
    border-color: rgba(255, 248, 235, 0.24);
}

.theme-dark .quote-section-title,
.theme-dark .quote-body,
[data-theme="dark"] .quote-section-title,
[data-theme="dark"] .quote-body {
    color: #f8ead0;
}

.theme-dark .quote-author,
[data-theme="dark"] .quote-author {
    color: #f1d08c;
}

.theme-dark .quote-source,
[data-theme="dark"] .quote-source {
    color: rgba(241, 245, 249, 0.72);
}

.theme-dark .quote-link a,
[data-theme="dark"] .quote-link a {
    color: #f5d280;
}

@media (max-width: 1360px) {
    .home-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .home-latest-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .hero-briefing__spotlight-head,
    .hero-briefing__spotlight-footer {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .hero-briefing__metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-latest-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   NEWSLETTER SECTION — Premium Polish
   =========================================== */

.newsletter-section {
    position: relative;
}

/* Animated background orbs */
.newsletter-section::before {
    animation: floatUp 8s ease-in-out infinite;
}

.newsletter-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(2, 6, 23, 0.45);
}

/* Newsletter form — enhanced focus */
.newsletter-form input:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Newsletter button — gold gradient with hover lift */
.newsletter-form button {
    background: linear-gradient(135deg, var(--color-accent-500, #F2C21A) 0%, #b8935f 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* ===========================================
   FOOTER — Premium Dark Enhancement
   =========================================== */

.main-footer {
    background: linear-gradient(180deg, var(--color-primary-900, #0c1e3a) 0%, #060d1b 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle gold accent line at top */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-500, #F2C21A) 50%, transparent 100%);
    opacity: 0.6;
}

/* Footer heading — gold accent */
.footer-heading {
    position: relative;
    padding-bottom: var(--space-3, 0.75rem);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent-500, #F2C21A);
    border-radius: 1px;
}

/* Footer links — smooth hover with gold */
.footer-links a {
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
    color: var(--color-accent-400, #f5d280);
    padding-left: 0.4rem;
}

/* Social links — premium hover */
.footer-socials a {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--color-accent-500, #F2C21A);
    color: var(--color-primary-900, #0c1e3a);
    border-color: var(--color-accent-500, #F2C21A);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* Footer bottom — subtle style */
.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ===========================================
   SECTION HEADERS — Premium Typography
   =========================================== */

.section-header h2 {
    position: relative;
}

/* Gold star icon glow */
.section-header h2 i {
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.section-header h2:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Section subtitle — refined line-height */
.section-header p {
    line-height: 1.75;
}

/* ===========================================
   SERVICES SECTION — Background Enhancement
   =========================================== */

.services-section {
    background: linear-gradient(180deg,
            var(--color-surface, #ffffff) 0%,
            var(--color-surface-secondary, #f8fafc) 50%,
            var(--color-surface, #ffffff) 100%);
}

.pillars-section--premium {
    position: relative;
}

.pillars-section--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 12%, rgba(245, 182, 0, 0.12), transparent 45%),
        radial-gradient(circle at 88% 8%, rgba(30, 58, 95, 0.1), transparent 40%);
    pointer-events: none;
}

.services-section--premium {
    position: relative;
}

.services-section--premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 182, 0, 0.04) 0%, transparent 30%, rgba(12, 30, 58, 0.05) 100%);
    pointer-events: none;
}

/* ===========================================
   BUTTON GLOBAL MICRO-INTERACTIONS
   =========================================== */

/* Press feedback on all buttons */
.btn:active,
.btn-primary-public:active,
.btn-secondary-public:active,
button:active {
    transform: scale(0.97) !important;
}

/* Focus ring — gold */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent-500, #F2C21A);
    outline-offset: 3px;
}

/* ===========================================
   BANNER SLIDER — Enhanced Styling
   =========================================== */

.home-banner-section .slide-image {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.home-banner-section .slide-image:hover {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
}

/* Overlay text — better readability */
.home-banner-overlay h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-banner-overlay p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===========================================
   RESPONSIVE — Mobile Polish
   =========================================== */

@media (max-width: 768px) {

    .pillar-card:hover,
    .service-card:hover,
    .featured-card:hover,
    .article-card:hover {
        transform: translateY(-4px);
    }

    .newsletter-content:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content .hero-eyebrow {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* ===========================================
   SMOOTH SCROLL
   =========================================== */
html {
    scroll-behavior: smooth;
}
