/* ============================================
   Truth Will Out - Component Styles
   Styles for all block components and page elements
   ============================================ */

/* ============================================
   Site Header / Navigation
   ============================================ */

.site-header {
    transition: all var(--transition-normal);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-black);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-header .navbar {
    padding: 1.75rem 0;
}

.site-header.is-sticky {
    box-shadow: var(--shadow-lg);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

/* Logo and Brand */
.navbar-brand {
    margin-right: 3rem;
    padding-left: 1rem;
}

.site-logo {
    max-height: 65px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1;
}

/* Navigation Items */
.navbar-nav {
    gap: 1rem;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-orange);
}

.navbar-nav .nav-link.active {
    color: var(--brand-orange);
    font-weight: 600;
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-toggle {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
}

.navbar-nav .dropdown-toggle:hover {
    color: var(--brand-orange);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

.navbar-nav .dropdown-menu {
    background-color: var(--bg-dark-grey);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(255, 111, 0, 0.1);
    color: var(--brand-orange);
}

.navbar-nav .dropdown-item.active {
    background-color: rgba(255, 111, 0, 0.15);
    color: var(--brand-orange);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: 1px solid var(--border-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 0, 0.25);
}

.navbar-toggler-icon {
    filter: brightness(2);
}

/* Mobile Menu */
@media (max-width: 991px) {
    .site-header .navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: var(--bg-dark-grey);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-dark);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-link,
    .navbar-nav .dropdown-toggle {
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }

    .navbar-brand {
        padding-left: 0;
        margin-right: 0;
    }

    .site-logo {
        max-height: 50px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.75rem;
    }

    .dropdown-menu {
        border: none;
        background-color: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* ============================================
   Site Footer
   ============================================ */

.site-footer {
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dark);
    color: var(--text-secondary);
}

.footer-brand {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav-item {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--brand-orange);
}

.footer-divider {
    border-color: var(--border-dark);
    opacity: 1;
}

.footer-copyright,
.footer-credit {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark-grey);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--brand-orange);
    color: var(--bg-black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-orange);
}

/* ============================================
   Page Templates
   ============================================ */

/* Home Hero */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Page Hero */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .hero-content {
    padding: 3rem 0;
}

/* Article Hero */
.article-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-hero .hero-content {
    padding: 3rem 0;
}

.article-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.article-summary {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.article-meta {
    background-color: var(--bg-dark-grey);
}

.meta-info span {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-content.rte-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* RTE Content Styling */
.rte-content {
    color: var(--text-primary);
}

.rte-content p {
    margin-bottom: 1.5rem;
}

.rte-content h2,
.rte-content h3,
.rte-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.rte-content ul,
.rte-content ol {
    margin-bottom: 1.5rem;
}

.rte-content li {
    margin-bottom: 0.75rem;
}

.rte-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.rte-content a {
    color: var(--brand-orange);
    text-decoration: underline;
}

.rte-content a:hover {
    color: var(--brand-orange-hover);
}

/* ============================================
   Text Block
   ============================================ */

.text-block {
    background-color: transparent;
}

.text-block-heading {
    color: var(--text-primary);
    font-weight: 700;
}

.text-block-content {
    color: var(--text-primary);
}

/* ============================================
   Image Block
   ============================================ */

.image-block {
    background-color: transparent;
}

.image-block-img {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.image-block-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.img-large {
    max-width: 900px;
}

.img-medium {
    max-width: 600px;
}

.img-small {
    max-width: 400px;
}

.image-block-caption {
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================
   CTA Block
   ============================================ */

.cta-block {
    background: linear-gradient(135deg, var(--bg-dark-grey) 0%, var(--bg-charcoal) 100%);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.cta-heading {
    color: var(--text-primary);
}

.cta-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    min-width: 200px;
}

/* ============================================
   Testimonial Block
   ============================================ */

.testimonial-block {
    background-color: transparent;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-dark-grey);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-minimal {
    padding: 2rem 0;
}

.testimonial-featured {
    background-color: var(--bg-dark-grey);
    padding: 4rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--brand-orange);
    box-shadow: var(--shadow-lg);
}

.quotation-mark {
    line-height: 1;
}

.testimonial-quote {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
    background: transparent;
    font-style: normal;
}

.testimonial-quote p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-author-photo {
    object-fit: cover;
}

.testimonial-author-name {
    color: var(--text-primary);
}

.testimonial-author-title {
    font-size: 0.9rem;
}

.testimonial-company-logo {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
}

/* ============================================
   Hero Block
   ============================================ */

.hero-block {
    position: relative;
    overflow: hidden;
}

.hero-block .container {
    position: relative;
    z-index: 2;
}

.hero-headline {
    color: var(--text-primary);
}

.hero-subheadline {
    color: var(--text-secondary);
    max-width: 800px;
}

.hero-cta {
    min-width: 220px;
}

/* ============================================
   Image Split Block
   ============================================ */

.image-split-block {
    background-color: transparent;
}

.image-split-image img {
    box-shadow: var(--shadow-md);
}

.image-split-heading {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.image-split-body {
    color: var(--text-primary);
}

@media (max-width: 991px) {
    .image-split-image {
        margin-bottom: 2rem;
    }
}

/* ============================================
   Animated Content Block
   ============================================ */

.animated-content-block {
    background-color: transparent;
}

.animated-content-heading {
    color: var(--text-primary);
}

.animated-content-body {
    color: var(--text-primary);
}

.animated-content-image img {
    box-shadow: var(--shadow-md);
}

/* ============================================
   Code Snippet Block
   ============================================ */

.code-snippet-block {
    background-color: transparent;
}

.code-snippet-heading {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.code-snippet-wrapper {
    background-color: var(--bg-black);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-snippet-dark {
    background-color: var(--bg-black);
}

.code-snippet-light {
    background-color: var(--bg-dark-grey-light);
}

.code-snippet-wrapper pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    border: none;
}

.code-snippet-wrapper code {
    font-family: var(--font-family-mono);
    font-size: 0.9rem;
    background: transparent;
}

.copy-code-btn {
    z-index: 10;
}

.code-snippet-caption {
    font-style: italic;
}

/* ============================================
   Card Grid Block
   ============================================ */

.card-grid-block {
    background-color: transparent;
}

.card-grid-heading {
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.card-standard {
    background-color: var(--bg-dark-grey);
    border: 1px solid var(--border-dark);
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-border-only {
    background-color: transparent;
    border: 2px solid var(--border-dark);
}

.card-border-only:hover {
    border-color: var(--brand-orange);
}

.card-icon {
    background-color: var(--bg-black);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 991px) {
    .home-hero {
        min-height: 70vh;
    }

    .page-hero,
    .article-hero {
        min-height: 40vh;
    }

    .testimonial-card,
    .testimonial-featured {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 60vh;
    }

    .page-hero,
    .article-hero {
        min-height: 30vh;
    }

    .cta-block {
        padding: 3rem 0;
    }

    .testimonial-card,
    .testimonial-featured {
        padding: 1.5rem;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
}
