/*
Theme Name: CTC Theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    background-color: #0B1F3A;

    /* GLOBAL WATERMARK */
    background-image: url('./assets/images/watermark.svg');

    background-repeat: no-repeat;

    /*
      Large enough to feel architectural,
      but still understated
    */
    background-size: cover;
    background-position: center center;

    /*
      Keeps watermark fixed while scrolling
    */

    background-attachment: fixed; 

    position: relative;
    z-index: 0;
}

/* SUBTLE WATERMARK FOCUS */
/* ====================================
   OPTIONAL WATERMARK FOCUS GLOW
   Removable via body class
==================================== */

body.watermark-focus::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    /*
      Soft localized illumination
      beneath top-right navigation area
    */
    background:
        radial-gradient(
            circle at 88% 14%,
            rgba(255,255,255,0.045) 0%,
            rgba(255,255,255,0.02) 10%,
            rgba(11,31,58,0) 24%
        );

    z-index: -1;
}

@media (max-width: 768px) {

    body.watermark-focus::before {

        background:
            radial-gradient(
                circle at 78% 18%,
                rgba(255,255,255,0.08) 0%,
                rgba(255,255,255,0.035) 14%,
                rgba(11,31,58,0) 34%
            );
    }
}



/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

/* PAGE TITLE OFFSET (prevents header overlap) */
/* INTERNAL PAGE TITLES */
.archives-container h1,
.research-container h1 {
    margin-top: 30px;

    font-size: 40px;
    line-height: 1.15;
}

p {
    color: #9CA3AF;
}

h1, h2, h3 {
    color: #EAEAEA; /* fixes black headings */
}

/* HEADER */
/* HEADER */
header {
    position: relative;
    z-index: 10;
    padding: 20px 0;   /* controls top breathing room */

    background: rgba(11, 31, 58, 0.6);
    backdrop-filter: blur(6px);
}

/* NAV BAR (intentionally slim) */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 140px; /* increase to fit logo comfortably */
}

/* LOGO (controlled overflow DOWNWARD only) */
.logo {
    height: 160px;
    display: block;

    position: relative;
    top: 0; /* REMOVE the downward push */
}

.logo-link {
    display: inline-block;
}

/* PRIMARY NAV RESET */
.primary-menu,
.primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* MENU CONTAINER */
.primary-menu {
    display: flex;
    gap: 42px; /* slightly more institutional spacing */
    align-items: center;
}

/* MENU ITEMS */
.primary-menu li {
    list-style: none;
}

/* LINKS */
.primary-menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Inter', serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 6px 0;
}

/* UNDERLINE (institutional hover) */
.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background-color: #C9A24A;
    transition: width 0.25s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* ACTIVE PAGE */
.primary-menu .current-menu-item a::after {
    width: 100%;
}

.primary-menu a::selection {
    background: #C9A24A; /* your gold */
    color: #0B1F3A;      /* your navy */
}

/* =========================
   STANDARD PAGE SYSTEM
   ========================= */

.page-hero {
    padding-top: 30px;
    padding-bottom: 24px;

    max-width: 760px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 0;
}

.page-content {
    padding-bottom: 60px;

    max-width: 760px;
    margin: 0 auto;
}

.page-content p {
    font-family: 'Inter', sans-serif;

    font-size: 17px;
    line-height: 1.95;

    color: #B8C0CC;

    margin-bottom: 1.8rem;
}

/* HERO */
.hero {
    padding: 120px 0 60px;
    text-align: center;
        font-size: 18px;
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* CTA */
.cta-btn {
    display: inline-block;
    border: 1px solid #C9A24A;
    padding: 12px 32px;
    color: #C9A24A;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.cta-btn:hover {
    background: #C9A24A;
    color: #0B1F3A;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: rgba(201,162,74,0.15);
    margin: 80px auto;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* PREMIUM CARDS */
.card {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.01);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,162,74,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* IMAGE AREA */
.thumb {
    height: 160px;
    background-size: 110%;
    background-position: top left; /* or top center if you prefer */
    position: relative;
    filter: brightness(0.85);
    transition: 0.3s;
}

/* subtle overlay */
.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* CONTENT */
.card-content {
    padding: 20px;
}

.card h3 {
    margin-bottom: 8px;
}

.card small {
    color: #9CA3AF;
    display: block;
    margin-bottom: 10px;
}

/* FEATURED */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.youtube-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.featured-grid a:hover .youtube-thumb {
    transform: scale(1.03);
}

/* ABOUT */
.about {
    max-width: 700px;
        font-size: 20px;
    line-height: 1.7;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(201,162,74,0.15);
}

footer a {
    color: #C9A24A;
    text-decoration: none;
}

.divider {
    margin: 20px auto;
}

body {
    position: relative;
    z-index: 0;
}

/* MOBILE TOGGLE BUTTON */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {

    body {

        background-attachment: scroll;

        background-size: 125%;

        background-position: center top;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        right: 40px;
        background: #0B1F3A;
        padding: 20px;
        display: none;
        flex-direction: column;
        z-index: 20;
    }

    .main-nav.active {
        display: flex;
    }

    .primary-menu {
        flex-direction: column;
        gap: 16px;
    }
}



/* =========================
   ARTICLE SYSTEM (CTC)
   ========================= */

.research-post {
    padding: 40px 0 60px;
}

/* ARTICLE FRAME */
.article-wrap {
    max-width: 1000px;  /* increased from 760 */
    margin: 0 auto;

    padding: 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

/* HEADER */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #EAEAEA;
}

.article-date {
    font-size: 14px;
    color: #9CA3AF;
}

/* CONTENT TYPOGRAPHY */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #D1D5DB;
}

/* PARAGRAPHS */
.article-content p {
    margin-bottom: 20px;
}

/* IMAGES / CHARTS */
/* FORCE ALL MEDIA TO STAY INSIDE ARTICLE */
.article-content img,
.article-content figure,
.article-content div,
.article-content a {
    max-width: 100% !important;
}

/* IMAGES */
.article-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 30px 0;
}


/* FIGURES (WP often wraps images in these) */
.article-content figure {
    margin: 30px 0;
}

/* PREVENT ANY HARD OVERFLOW */
.article-wrap {
    overflow: hidden;
}

/* FEATURED IMAGE */
.featured-image {
    margin: 30px 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* SUBHEADINGS INSIDE POSTS */
.article-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 22px;
}

/* LISTS */
.article-content ul,
.article-content ol {
    margin: 20px 0 20px 20px;
}

/* =========================
   STICKY HEADER
   ========================= */

/* HEADER BASE (always fixed) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    padding: 10px 0;

    background: rgba(11, 31, 58, 0.75);
    backdrop-filter: blur(6px);

    transition: all 0.3s ease;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11,31,58,0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

/* HEADER ON SCROLL */
.site-header.scrolled {
    background: rgba(11,31,58,0.95);
    backdrop-filter: blur(10px);
}

/* CREATE SPACE BELOW HEADER (CRITICAL FIX) */
body {
    padding-top: 140px; /* matches header + logo space */
}


.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 10px;
    color: #9CA3AF;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    color: #C9A24A;
    border-color: #C9A24A;
}

.pagination .current {
    color: #0B1F3A;
    background: #C9A24A;
    border-color: #C9A24A;
}

/* =========================
   DISCLOSURES (INSTITUTIONAL)
   ========================= */

/* NARROW READING WIDTH */
.container.narrow {
    max-width: 780px;
}

/* HERO */
.disclosures-hero {
    padding: 40px 0 10px;
}

.disclosures-hero h1 {
    font-size: 48px;
    line-height: 1.2;
}

/* SUBTLE GOLD DIVIDER */
.hero-divider {
    height: 1px;
    background: rgba(201,162,74,0.4);
    margin-top: 20px;
}

/* CONTENT BLOCK */
.disclosures-content {
    padding: 20px 0 60px;
}

/* MAIN WRAP */
.legal-wrap {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #D1D5DB;
}

/* PARAGRAPHS */
.legal-wrap p {
    margin-bottom: 18px;
    color: #D1D5DB;
}

/* SECTION HEADINGS */
.legal-wrap h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #EAEAEA;

    position: relative;
    padding-left: 14px;
}

/* GOLD LEFT ACCENT */
.legal-wrap h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 70%;
    background: #C9A24A;
}

/* SUBSECTIONS */
.legal-wrap h3 {
    font-size: 17px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #E5E7EB;
}

/* DIVIDERS */
.legal-wrap hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 30px 0;
}

/* LINKS (if any) */
.legal-wrap a {
    color: #C9A24A;
    text-decoration: none;
}

.legal-wrap a:hover {
    text-decoration: underline;
}

/* =========================
   DISCLOSURES LAYOUT (PRO)
   ========================= */

.disclosures-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}


/* TOC */
.toc {
    position: sticky;
    top: 160px;
    font-family: 'Inter', sans-serif;
}

.toc h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #C9A24A;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.4;
    transition: 0.2s;
}

.toc a:hover {
    color: #C9A24A;
}

/* ACTIVE LINK (optional enhancement ready) */
/* ACTIVE LINK */
.toc a.active {
    color: #C9A24A;
    font-weight: 500;
}

/* MAIN CONTENT */
.disclosures-content {
    max-width: 780px;
}

/* INDENTED SUB-SECTIONS */
.toc li {
    margin-bottom: 10px;
}

/* H3 visual distinction */
.toc li[style] a {
    opacity: 0.85;
}


/* OFFSET ANCHOR SCROLL (FIX HEADER OVERLAP) */
.legal-wrap h2,
.legal-wrap h3 {
    scroll-margin-top: 180px;
}

/* MOBILE: STACK */
@media (max-width: 900px) {
    .disclosures-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

html {
    scroll-behavior: smooth;
}

/* =========================
   FOOTER (2-COLUMN SYSTEM)
   ========================= */

.site-footer {
    margin-top: 100px;
    padding: 50px 0 40px;
    border-top: 1px solid rgba(201,162,74,0.15);
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* LEFT SIDE */
.footer-left {

    max-width: 900px;

    text-align: left;
}

/* DISCLAIMER */
.footer-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 18px;
}

/* META */
.footer-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #9CA3AF;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-sep {
    opacity: 0.5;
}

.footer-meta a {
    color: #C9A24A;
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

/* RIGHT SIDE */
.footer-right {
    font-family: 'Inter', sans-serif;

    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* 🔑 THIS is the fix */
    text-align: right;       /* aligns text */
}

/* BLOCKS */
.footer-block {
    margin-bottom: 25px;
}

/* HEADINGS */
.footer-heading {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C9A24A;
    margin-bottom: 10px;
}

/* LINKS */
.footer-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* 🔑 keeps icon + text aligned right */

    gap: 8px;

    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 8px;

    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #C9A24A;
}

/* ICON STYLE (SUBTLE) */
.footer-icon {
    font-size: 12px;
    opacity: 0.7;
}

/* MOBILE */
@media (max-width: 900px) {

    .site-footer,
    .site-footer * {

        text-align: left;
    }

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .footer-left {

        width: 100%;

        max-width: 100%;

        margin: 0;

        text-align: left !important;
    }


    .footer-disclaimer {

        font-size: 14px;

        line-height: 1.9;

        max-width: 100%;

        text-align: left !important;
    }

    .footer-meta {

        text-align: left !important;

        justify-content: flex-start;

        line-height: 1.8;
    }


    .footer-right {

        align-items: flex-start !important;

        text-align: left !important;
    }


    .footer-link {

        justify-content: flex-start !important;
    }

    /*
    |------------------------------------------------------------------
    | Mobile Research Cards
    |------------------------------------------------------------------
    */

    .grid {

        grid-template-columns: 1fr;

        gap: 28px;
    }


    .card {

        background: rgba(255,255,255,0.018);
    }


    .thumb {

        height: 220px;

        background-size: cover;

        background-position: top left;
    }


    .card-content {

        padding: 26px 24px 28px;
    }


    .card h3 {

        font-size: 2rem;

        line-height: 1.2;

        margin-bottom: 14px;
    }


    .card p {

        font-size: 1rem;

        line-height: 1.8;
    }

}