/*
 * ISAR Global Custom Styles
 * Version: 2.0
 * 
 * This stylesheet contains all custom styling for:
 * - Homepage design (fonts, colors, service boxes, hover effects)
 * - Article templates (LSE-style parallax hero design)
 * - Intelligence page grid layout
 * - Strategic Intelligence Brief (Davos dark formal variant)
 * - Typography and brand colors
 */

/* ========================================================================
   1. FONTS & COLORS - DUAL SCHEME SUPPORT
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Generic Intelligence Style - Light/Traditional */
  --navy: #1a3a52;
  --burgundy: #6B1F3D;
  --racing-green: #184d3b;
  --cream: #FAF8F3;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --accent-amber: #b45309;
  --accent-amber-dark: #92400e;
  
  /* Strategic Intelligence Brief Style - Dark/Formal (Davos) */
  --slate-darkest: #0a0e1a;
  --slate-dark: #0f1419;
  --slate-medium: #1a2332;
  --slate-border: #2a3544;
  --copper: #c9a961;
  --text-light: #e8e8e8;
  --text-medium: #c8d1dc;
  --text-muted: #a8b2c1;
  --text-subtle: #6b7785;
  --text-faded: #8a96a3;
}

/* ========================================================================
   2. BODY & GLOBAL TYPOGRAPHY
   ======================================================================== */

body {
  background-color: var(--cream);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 1em;
}

h2 {
  font-size: 2em;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.5em;
  margin-top: 1.25em;
}

p {
  margin-bottom: 1.5em;
}

/* ========================================================================
   3. CONTENT AREAS & LINKS
   ======================================================================== */

.entry-content,
article,
.wp-block-post-content {
  background-color: var(--white);
  padding: 60px 40px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.entry-content a,
article a {
  color: var(--racing-green);
  text-decoration: underline;
}

.entry-content a:hover,
article a:hover {
  color: var(--burgundy);
}

/* ========================================================================
   4. BUTTONS
   ======================================================================== */

.wp-block-button__link,
.button,
button {
  background-color: var(--burgundy);
  color: var(--white);
  padding: 12px 32px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}

.wp-block-button__link:hover,
.button:hover,
button:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ========================================================================
   5. FOOTER
   ======================================================================== */

.wp-block-template-part footer,
footer {
  padding: 40px 20px;
  margin-top: 80px;
}

/* ========================================================================
   6. SERVICE BOXES - NUMBERED & HOVER EFFECTS
   ======================================================================== */

.service-box-01,
.service-box-02,
.service-box-03,
.service-box-04 {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.service-box-01::before {
  content: "01";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6em;
  font-weight: 700;
  color: #1a3a52;
  opacity: 0.15;
  font-family: 'Crimson Text', serif;
  line-height: 1;
}

.service-box-02::before {
  content: "02";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6em;
  font-weight: 700;
  color: #1a3a52;
  opacity: 0.15;
  font-family: 'Crimson Text', serif;
  line-height: 1;
}

.service-box-03::before {
  content: "03";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6em;
  font-weight: 700;
  color: #1a3a52;
  opacity: 0.15;
  font-family: 'Crimson Text', serif;
  line-height: 1;
}

.service-box-04::before {
  content: "04";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6em;
  font-weight: 700;
  color: #1a3a52;
  opacity: 0.15;
  font-family: 'Crimson Text', serif;
  line-height: 1;
}

/* Default state: Large heading, hidden description */
.service-box-01 h3,
.service-box-02 h3,
.service-box-03 h3,
.service-box-04 h3 {
  font-size: 2em;
  margin-bottom: 0;
  transition: all 0.3s ease;
  font-weight: 700;
}

.service-box-01 p,
.service-box-02 p,
.service-box-03 p,
.service-box-04 p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0;
}

/* Hover state: Smaller heading, visible description */
.service-box-01:hover h3,
.service-box-02:hover h3,
.service-box-03:hover h3,
.service-box-04:hover h3 {
  font-size: 1.3em;
  margin-bottom: 0.8em;
}

.service-box-01:hover p,
.service-box-02:hover p,
.service-box-03:hover p,
.service-box-04:hover p {
  opacity: 1;
  max-height: 500px;
  margin-top: 0;
}

/* ========================================================================
   7. HOMEPAGE - LATEST INTELLIGENCE SECTION
   ======================================================================== */

.wp-block-post-title a {
  text-decoration: none;
}

.wp-block-post-title a:hover {
  color: #6B1F3D;
}

.wp-block-post {
  transition: all 0.3s ease;
  border-radius: 4px;
}

.wp-block-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================================================
   8. ARTICLE TEMPLATE - WORDPRESS OVERRIDES
   ======================================================================== */

.single-post .entry-content,
.single-post article,
.post-content,
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: none !important;
}

.single-post .entry-title,
.single-post h1.entry-title,
article .entry-title,
.post-title,
header.entry-header,
article > header,
.entry-header,
.post-header {
    display: none !important;
}

.single-post .site-content,
.single-post main,
.single-post .content-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ========================================================================
   9. ARTICLE TEMPLATE - HERO SECTION (Generic Intelligence Style)
   ======================================================================== */

.hero-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-category {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff !important;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: #ffffff !important;
}

.hero-meta {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    opacity: 0.95;
    color: #ffffff !important;
}

/* ========================================================================
   10. ARTICLE TEMPLATE - CONTENT AREA (Generic Intelligence Style)
   ======================================================================== */

.content-wrapper {
    position: relative;
    background: #ffffff;
    z-index: 1;
    margin-top: -50px;
    border-radius: 8px 8px 0 0;
}

.content {
    max-width: 750px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    background: #ffffff;
}

.content p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #2d3748;
}

.content h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 40px 0;
}

/* ========================================================================
   11. ARTICLE TEMPLATE - SPECIAL ELEMENTS (Generic Intelligence Style)
   ======================================================================== */

.pullquote {
    font-size: 1.6rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--accent-amber);
    margin: 45px 0;
    padding: 0 40px;
    text-align: center;
}

.callout-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbf5 100%);
    border-left: 4px solid var(--accent-amber);
    padding: 30px;
    margin: 40px 0;
}

.callout-title {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 15px;
}

.callout-box p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.callout-box p:last-child {
    margin-bottom: 0;
}

.newsletter-cta {
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 35px 0;
}

.newsletter-cta p {
    margin: 0;
    font-size: 1.05rem;
}

.newsletter-cta a {
    color: var(--accent-amber);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.newsletter-cta a:hover {
    color: var(--accent-amber-dark);
}

/* ========================================================================
   12. ARTICLE TEMPLATE - LISTS AND TEXT FORMATTING
   ======================================================================== */

.content ul {
    margin: 25px 0;
    padding-left: 30px;
}

.content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #2d3748;
}

.content em {
    font-style: italic;
}

.content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.content a {
    color: var(--accent-amber);
    text-decoration: none;
    transition: color 0.2s;
}

.content a:hover {
    color: var(--accent-amber-dark);
}

.author-byline {
    font-style: italic;
    color: #6b7280;
}

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.article-footer strong {
    color: #1e293b;
    font-style: normal;
}

/* ========================================================================
   13. STRATEGIC INTELLIGENCE BRIEF - DAVOS DARK FORMAL VARIANT
   ======================================================================== */

/* Override body styles for strategic intelligence briefs */
body.strategic-intel {
    background: var(--slate-darkest);
    color: var(--text-light);
}

/* Hero Section - Strategic Brief */
.intel-hero {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    border-bottom: 3px solid var(--copper);
    padding: 80px 40px 60px;
}

.intel-classification {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--copper);
    margin-bottom: 30px;
    font-weight: 600;
}

.intel-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--white);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intel-subtitle {
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intel-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    border-top: 1px solid var(--slate-border);
}

/* Content Area - Strategic Brief */
.intel-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--slate-dark);
}

/* Executive Summary Box */
.exec-summary {
    background: linear-gradient(135deg, var(--slate-medium) 0%, var(--slate-dark) 100%);
    border-left: 4px solid var(--copper);
    padding: 40px;
    margin-bottom: 60px;
}

.exec-summary-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--copper);
    margin-bottom: 20px;
    font-weight: 600;
}

.exec-summary p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.exec-summary p:last-child {
    margin-bottom: 0;
}

/* Section Headers - Strategic Brief */
.section-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--copper);
    margin-top: 60px;
    margin-bottom: 10px;
    font-weight: 600;
}

.intel-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 400;
}

.intel-content h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Body Text - Strategic Brief */
.intel-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* Leader Quotes - Strategic Brief */
.leader-quote {
    background: var(--slate-darkest);
    border-left: 4px solid var(--copper);
    padding: 30px 40px;
    margin: 40px 0;
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-light);
}

.leader-quote .attribution {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-faded);
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intelligence Assessment Box */
.intel-assessment {
    background: linear-gradient(135deg, var(--slate-medium) 0%, var(--slate-dark) 100%);
    border: 1px solid var(--slate-border);
    padding: 30px;
    margin: 40px 0;
}

.intel-assessment-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--copper);
    margin-bottom: 15px;
    font-weight: 600;
}

.intel-assessment p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Links - Strategic Brief */
.intel-content a {
    color: var(--copper);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.intel-content a:hover {
    border-bottom-color: var(--copper);
}

/* Divider - Strategic Brief */
.section-divider {
    border: none;
    border-top: 1px solid var(--slate-border);
    margin: 60px 0;
}

/* Footer - Strategic Brief */
.intel-footer {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--slate-border);
}

/* ========================================================================
   14. INTELLIGENCE PAGE - GRID LAYOUT
   ======================================================================== */

.wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    align-items: start !important;
}

.wp-block-query .wp-block-post {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: none !important;
    align-self: start !important;
}

.wp-block-query .wp-block-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

.wp-block-query .wp-block-post-title {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.wp-block-query .wp-block-post-title a {
    color: #5b21b6 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.wp-block-query .wp-block-post-title a:hover {
    color: #7c3aed !important;
}

.wp-block-query .wp-block-post-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin-bottom: 15px !important;
}

.wp-block-query .wp-block-post-excerpt p {
    margin: 0 !important;
}

.wp-block-query .wp-block-post-date {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    font-family: Arial, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wp-block-query .wp-block-post-featured-image {
    display: none !important;
}

/* ========================================================================
   15. RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 992px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 640px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .content {
        padding: 40px 20px !important;
    }
    
    .intel-title {
        font-size: 2rem !important;
    }
    
    .intel-content {
        padding: 40px 20px !important;
    }
}
