/* ============================================
   MERIDIAN COLLECTIVE - Custom Template Styles
   A Heritage Artisan Goods Brand Experience
   ============================================ */

/* ----------------------------------------
   Design System Variables
   ---------------------------------------- */
:root {
    /* Brand Colors */
    --mc-primary: #C65D3B;           /* Terracotta */
    --mc-primary-dark: #A04A2F;
    --mc-primary-light: #D97B5A;
    --mc-secondary: #2D4739;         /* Forest Green */
    --mc-secondary-dark: #1E3328;
    --mc-secondary-light: #3D5F4D;
    --mc-gold: #B8956C;              /* Aged Gold */
    --mc-gold-light: #D4B896;

    /* Neutrals */
    --mc-charcoal: #1A1A1A;
    --mc-charcoal-light: #2D2D2D;
    --mc-cream: #F5F0E8;
    --mc-cream-dark: #EDE5D8;
    --mc-white: #FFFFFF;
    --mc-text: #333333;
    --mc-text-light: #666666;
    --mc-text-muted: #999999;

    /* Typography */
    --mc-font-heading: 'Playfair Display', Georgia, serif;
    --mc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mc-font-accent: 'Space Grotesk', sans-serif;

    /* Spacing */
    --mc-section-padding: 6rem;
    --mc-container-max: 1200px;

    /* Transitions */
    --mc-transition: 0.3s ease;
    --mc-transition-slow: 0.6s ease;

    /* Accessibility Widget Theming */
    --rsl-a11y-primary: var(--mc-primary);
    --rsl-a11y-primary-dark: var(--mc-primary-dark);
    --rsl-a11y-primary-light: var(--mc-primary-light);
    --rsl-a11y-secondary: var(--mc-secondary);
    --rsl-a11y-button-gradient: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    --rsl-a11y-button-shadow: 0 4px 16px rgba(198, 93, 59, 0.4);
    --rsl-a11y-button-shadow-hover: 0 6px 24px rgba(198, 93, 59, 0.5);
    --rsl-a11y-header-gradient: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    --rsl-a11y-toggle-gradient: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    --rsl-a11y-success: var(--mc-secondary);
}

/* ----------------------------------------
   Dark Mode Variables
   ---------------------------------------- */
[data-theme="dark"] {
    --mc-cream: #1A1A1A;
    --mc-cream-dark: #252525;
    --mc-white: #1E1E1E;
    --mc-text: #E5E5E5;
    --mc-text-light: #B0B0B0;
    --mc-text-muted: #808080;
    --mc-charcoal: #F5F0E8;
}

/* ----------------------------------------
   Base Styles
   ---------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mc-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--mc-text);
    background-color: var(--mc-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
    background-color: var(--mc-charcoal-light);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mc-primary);
    color: var(--mc-white);
    padding: 1rem 2rem;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top var(--mc-transition);
}

.skip-link:focus {
    top: 0;
}

/* Visually Hidden (for screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mc-font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--mc-charcoal);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--mc-cream-dark);
}

p {
    margin: 0 0 1rem 0;
}

/* ----------------------------------------
   Container
   ---------------------------------------- */
.container {
    width: 90%;
    max-width: var(--mc-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.mc-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--mc-transition);
}

[data-theme="dark"] .mc-navbar {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.mc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.mc-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-primary), var(--mc-secondary));
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
}

.mc-logo-text {
    font-family: var(--mc-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mc-charcoal);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .mc-logo-text {
    color: var(--mc-cream-dark);
}

.mc-navbar .rsl-navbar-link {
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--mc-text);
    transition: color var(--mc-transition);
}

.mc-navbar .rsl-navbar-link:hover {
    color: var(--mc-primary);
}

[data-theme="dark"] .mc-navbar .rsl-navbar-link {
    color: var(--mc-text);
}

[data-theme="dark"] .mc-navbar .rsl-navbar-link:hover {
    color: var(--mc-primary-light);
}

.mc-nav-cta {
    background: var(--mc-primary) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 4px !important;
    transition: background var(--mc-transition) !important;
}

.mc-nav-cta:hover {
    background: var(--mc-primary-dark) !important;
    color: white !important;
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.mc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-charcoal) 0%, #2a2a2a 100%);
    overflow: hidden;
}

.mc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1452860606245-08befc0ff44b?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.mc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.6) 100%
    );
}

.mc-hero .rsl-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.mc-hero .rsl-hero-eyebrow {
    font-family: var(--mc-font-accent);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mc-gold-light);
    margin-bottom: 1.5rem;
}

.mc-hero-heading {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 500;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.mc-hero-description {
    font-family: var(--mc-font-body);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.mc-hero .rsl-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Scroll Indicator */
.mc-hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.mc-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--mc-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.mc-hero-scroll-indicator span {
    font-family: var(--mc-font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.mc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #C65D3B !important; /* mc-primary - hardcoded to prevent override */
    color: white !important;
    padding: 1rem 2rem;
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--mc-transition);
}

.mc-btn-primary:hover {
    background: #A04A2F !important; /* mc-primary-dark */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 93, 59, 0.3);
}

/* Dark mode button overrides */
[data-theme="dark"] .mc-btn-primary {
    background: #C65D3B !important;
    color: white !important;
}

[data-theme="dark"] .mc-btn-primary:hover {
    background: #A04A2F !important;
    color: white !important;
}

.mc-btn-primary i {
    transition: transform var(--mc-transition);
}

.mc-btn-primary:hover i {
    transform: translateY(2px);
}

.mc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
    color: white !important;
    padding: 1rem 2rem;
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--mc-transition);
}

.mc-btn-outline:hover {
    background: white !important;
    color: #1A1A1A !important; /* mc-charcoal hardcoded */
    border-color: white !important;
}

/* Dark mode outline button */
[data-theme="dark"] .mc-btn-outline {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .mc-btn-outline:hover {
    background: white !important;
    color: #1A1A1A !important;
    border-color: white !important;
}

/* ----------------------------------------
   Section Styles
   ---------------------------------------- */
.mc-section {
    padding: var(--mc-section-padding) 0;
}

.mc-section-cream {
    background: var(--mc-cream);
}

.mc-section-white {
    background: var(--mc-white);
}

.mc-section-dark {
    background: var(--mc-charcoal);
    color: white;
}

[data-theme="dark"] .mc-section-cream {
    background: #1E1E1E;
}

[data-theme="dark"] .mc-section-white {
    background: #252525;
}

[data-theme="dark"] .mc-section-dark {
    background: #0f0f0f;
}

.mc-section-gradient {
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-secondary) 100%);
    color: white;
}

/* Chapter Marker */
.mc-chapter-marker {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mc-chapter-number {
    font-family: var(--mc-font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--mc-primary);
    line-height: 1;
}

.mc-section-dark .mc-chapter-number {
    color: var(--mc-gold-light);
}

.mc-chapter-light .mc-chapter-number {
    color: rgba(255, 255, 255, 0.9);
}

.mc-chapter-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--mc-primary), transparent);
}

.mc-section-dark .mc-chapter-line,
.mc-chapter-light .mc-chapter-line {
    background: linear-gradient(to right, var(--mc-gold-light), transparent);
}

/* Section Header */
.mc-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.mc-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.mc-section-dark .mc-section-title,
.mc-header-light .mc-section-title {
    color: white;
}

.mc-section-subtitle {
    font-family: var(--mc-font-body);
    font-size: 1.1rem;
    color: var(--mc-text-light);
    font-weight: 400;
}

.mc-section-dark .mc-section-subtitle,
.mc-header-light .mc-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ----------------------------------------
   KPI / Stat Cards
   ---------------------------------------- */
.mc-stats-grid {
    margin-bottom: 4rem;
}

.mc-stat-card {
    background: var(--mc-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mc-stat-card {
    background: var(--mc-charcoal-light);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   Origin Section
   ---------------------------------------- */
.mc-origin-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mc-origin-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mc-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-family: var(--mc-font-accent);
    font-size: 0.875rem;
}

.mc-origin-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mc-founder-quote {
    margin: 0 0 2rem 0;
    padding: 2rem;
    background: var(--mc-white);
    border-left: 4px solid var(--mc-primary);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mc-founder-quote {
    background: var(--mc-charcoal-light);
}

.mc-founder-quote p {
    font-family: var(--mc-font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--mc-text);
}

[data-theme="dark"] .mc-founder-quote p {
    color: var(--mc-text);
}

.mc-founder-quote cite {
    display: block;
    font-style: normal;
}

.mc-founder-quote cite strong {
    display: block;
    font-family: var(--mc-font-accent);
    font-weight: 600;
    color: var(--mc-primary);
}

.mc-founder-quote cite span {
    font-size: 0.875rem;
    color: var(--mc-text-light);
}

.mc-origin-description {
    font-size: 1.05rem;
    color: var(--mc-text-light);
    line-height: 1.8;
}

[data-theme="dark"] .mc-origin-description {
    color: var(--mc-text-light);
}

/* ----------------------------------------
   Artisan Cards
   ---------------------------------------- */
.mc-artisan-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--mc-transition), box-shadow var(--mc-transition);
}

.mc-artisan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mc-artisan-image {
    height: 280px;
    overflow: hidden;
}

.mc-artisan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter var(--mc-transition), transform var(--mc-transition-slow);
}

.mc-artisan-card:hover .mc-artisan-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.mc-artisan-info {
    padding: 1.5rem;
}

.mc-artisan-info h3 {
    font-family: var(--mc-font-heading);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.25rem;
}

.mc-artisan-title {
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    color: var(--mc-gold-light);
    margin-bottom: 0.75rem;
}

.mc-artisan-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.mc-artisan-location i {
    margin-right: 0.5rem;
    color: var(--mc-primary-light);
}

.mc-artisan-experience {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Featured Testimonial */
.mc-testimonial-featured {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-testimonial-featured .rsl-testimonial {
    background: transparent;
    box-shadow: none;
}

.mc-testimonial-featured blockquote {
    color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------
   Tabs / Collections
   ---------------------------------------- */
.mc-tabs {
    margin-top: 2rem;
}

.mc-tab-nav {
    justify-content: center;
    margin-bottom: 2rem;
}

.mc-tabs .tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: var(--mc-white);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mc-text);
    cursor: pointer;
    transition: all var(--mc-transition);
}

.mc-tabs .tab-link i {
    font-size: 1.5rem;
    color: var(--mc-text-muted);
    transition: color var(--mc-transition);
}

.mc-tabs .tab-link:hover {
    border-color: var(--mc-primary-light);
}

.mc-tabs .tab-link:hover i {
    color: var(--mc-primary);
}

.mc-tabs .tab-link.active {
    background: var(--mc-primary);
    color: white;
    border-color: var(--mc-primary);
}

.mc-tabs .tab-link.active i {
    color: white;
}

[data-theme="dark"] .mc-tabs .tab-link {
    background: var(--mc-charcoal-light);
    color: var(--mc-text);
}

[data-theme="dark"] .mc-tabs .tab-link.active {
    background: var(--mc-primary);
    color: white;
}

/* Product Cards */
.mc-product-card {
    background: var(--mc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--mc-transition), box-shadow var(--mc-transition);
}

.mc-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mc-product-card {
    background: var(--mc-charcoal-light);
}

.mc-product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.mc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mc-transition-slow);
}

.mc-product-card:hover .mc-product-image img {
    transform: scale(1.08);
}

.mc-product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--mc-charcoal);
    color: white;
    font-family: var(--mc-font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
}

.mc-badge-new {
    background: var(--mc-secondary);
}

.mc-product-info {
    padding: 1.25rem;
}

.mc-product-info h4 {
    font-family: var(--mc-font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.mc-product-info p {
    font-size: 0.875rem;
    color: var(--mc-text-light);
    margin-bottom: 0.75rem;
}

.mc-product-price {
    font-family: var(--mc-font-accent);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mc-primary);
}

/* ----------------------------------------
   Philosophy / Accordion
   ---------------------------------------- */
.mc-accordion {
    border: none;
}

.mc-accordion .accordion-item {
    background: var(--mc-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow var(--mc-transition);
}

.mc-accordion .accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mc-accordion .accordion-item {
    background: var(--mc-charcoal-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.mc-accordion .accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--mc-font-accent);
    font-size: 1rem;
    font-weight: 500;
    color: var(--mc-text);
    cursor: pointer;
    transition: background var(--mc-transition);
}

.mc-accordion .accordion-title:hover {
    background: rgba(198, 93, 59, 0.05);
}

[data-theme="dark"] .mc-accordion .accordion-title {
    color: var(--mc-text);
}

.mc-accordion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-primary), var(--mc-primary-dark));
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.mc-accordion .accordion-title span {
    flex: 1;
}

.mc-accordion .accordion-arrow {
    transition: transform var(--mc-transition);
    color: var(--mc-text-muted);
}

.mc-accordion .accordion-title[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.mc-accordion .accordion-content {
    padding: 0 1.5rem 0 4.5rem;
    color: var(--mc-text-light);
    line-height: 1.8;
}

.mc-accordion .accordion-content.open {
    padding-bottom: 1.5rem;
}

[data-theme="dark"] .mc-accordion .accordion-content {
    color: var(--mc-text-light);
}

/* Commitments / Progress Bars */
.mc-commitments {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mc-commitments-title {
    font-family: var(--mc-font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--mc-text);
}

[data-theme="dark"] .mc-commitments-title {
    color: var(--mc-text);
}

.mc-commitment-item {
    margin-bottom: 2rem;
}

.mc-commitment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: var(--mc-font-accent);
    font-size: 0.95rem;
    color: var(--mc-text);
}

[data-theme="dark"] .mc-commitment-header {
    color: var(--mc-text);
}

.mc-commitment-value {
    font-weight: 600;
    color: var(--mc-primary);
}

/* Progress bars - brand colors (override RSL CSS variable) */
.mc-commitment-item:nth-child(1) .rsl-progress {
    --rsl-progress-fill: var(--mc-secondary);
}

.mc-commitment-item:nth-child(2) .rsl-progress {
    --rsl-progress-fill: var(--mc-primary);
}

.mc-commitment-item:nth-child(3) .rsl-progress {
    --rsl-progress-fill: var(--mc-gold);
}

.mc-commitment-item:nth-child(4) .rsl-progress {
    --rsl-progress-fill: var(--mc-secondary);
}

/* ----------------------------------------
   Newsletter / Join Section
   ---------------------------------------- */
.mc-newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.mc-newsletter-form {
    margin-bottom: 3rem;
}

.mc-form-group {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.mc-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-family: var(--mc-font-body);
    font-size: 1rem;
    border: none;
    outline: none;
    color: var(--mc-charcoal);
}

.mc-input::placeholder {
    color: var(--mc-text-muted);
}

.mc-btn-submit {
    border-radius: 0;
    padding: 1.25rem 2rem;
    white-space: nowrap;
}

.mc-privacy-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mc-social-links p {
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.mc-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mc-social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    color: white !important;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all var(--mc-transition);
}

.mc-social-icon:hover {
    background: white !important;
    color: #C65D3B !important; /* mc-primary */
    transform: translateY(-4px);
}

/* Dark mode - keep social icons styled correctly */
[data-theme="dark"] .mc-social-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

[data-theme="dark"] .mc-social-icon:hover {
    background: white !important;
    color: #C65D3B !important;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.mc-footer {
    background: #1A1A1A !important; /* Always dark - don't use variable that swaps */
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

/* Footer stays dark in both themes */
[data-theme="dark"] .mc-footer {
    background: #0D0D0D !important; /* Even darker in dark mode */
}

.mc-footer-brand {
    margin-bottom: 2rem;
}

.mc-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mc-footer-logo i {
    font-size: 1.5rem;
    color: var(--mc-primary) !important;
}

.mc-footer-logo span {
    font-family: var(--mc-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
}

.mc-footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6) !important;
}

.mc-footer h4 {
    font-family: var(--mc-font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white !important;
    margin-bottom: 1.25rem;
}

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

.mc-footer-links li {
    margin-bottom: 0.75rem;
}

.mc-footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--mc-transition);
}

.mc-footer-links a:hover {
    color: #D97B5A !important; /* mc-primary-light */
}

.mc-footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mc-footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5) !important;
}

.mc-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.mc-footer-legal a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--mc-transition);
}

.mc-footer-legal a:hover {
    color: #D97B5A !important; /* mc-primary-light */
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 1024px) {
    .mc-section {
        padding: 4rem 0;
    }

    .mc-philosophy-layout {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mc-hero-heading {
        font-size: 2.5rem;
    }

    .mc-section-header {
        margin-bottom: 2.5rem;
    }

    .mc-chapter-number {
        font-size: 2rem;
    }

    .mc-form-group {
        flex-direction: column;
    }

    .mc-btn-submit {
        border-radius: 0 0 8px 8px;
    }

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

    .mc-footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mc-hero .rsl-hero-actions {
        flex-direction: column;
    }

    .mc-btn-primary,
    .mc-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .mc-tabs .tab-link {
        padding: 1rem;
    }

    .mc-tabs .tab-link span {
        display: none;
    }

    .mc-tabs .tab-link i {
        font-size: 1.25rem;
    }
}

/* ----------------------------------------
   Fixed Theme Toggle - Bottom Right
   Override RSL modern-theme.css styles
   ---------------------------------------- */
.mc-theme-toggle-fixed.rsl-theme-toggle {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 1000 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    border: 2px solid #C65D3B !important; /* mc-primary */
    background: #FFFFFF !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(198, 93, 59, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

.mc-theme-toggle-fixed.rsl-theme-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 28px rgba(198, 93, 59, 0.4) !important;
}

.mc-theme-toggle-fixed.rsl-theme-toggle:focus {
    outline: 3px solid #C65D3B !important;
    outline-offset: 3px !important;
}

.mc-theme-toggle-fixed.rsl-theme-toggle .icon-sun {
    color: #C65D3B !important; /* mc-primary */
    font-size: 1.35rem !important;
    display: block !important;
}

.mc-theme-toggle-fixed.rsl-theme-toggle .icon-moon {
    color: #B8956C !important; /* mc-gold */
    font-size: 1.35rem !important;
    display: none !important;
}

[data-theme="dark"] .mc-theme-toggle-fixed.rsl-theme-toggle {
    background: #2D2D2D !important;
    border-color: #B8956C !important; /* mc-gold */
    box-shadow: 0 4px 20px rgba(184, 149, 108, 0.3) !important;
}

[data-theme="dark"] .mc-theme-toggle-fixed.rsl-theme-toggle:hover {
    box-shadow: 0 6px 28px rgba(184, 149, 108, 0.4) !important;
}

[data-theme="dark"] .mc-theme-toggle-fixed.rsl-theme-toggle:focus {
    outline-color: #B8956C !important;
}

[data-theme="dark"] .mc-theme-toggle-fixed.rsl-theme-toggle .icon-sun {
    display: none !important;
}

[data-theme="dark"] .mc-theme-toggle-fixed.rsl-theme-toggle .icon-moon {
    display: block !important;
}

/* Position adjustment to not overlap accessibility widget */
@media (max-width: 767px) {
    .mc-theme-toggle-fixed.rsl-theme-toggle {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 48px !important;
        height: 48px !important;
    }

    .mc-theme-toggle-fixed.rsl-theme-toggle .icon-sun,
    .mc-theme-toggle-fixed.rsl-theme-toggle .icon-moon {
        font-size: 1.15rem !important;
    }
}

/* ----------------------------------------
   Reduced Motion Support
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .mc-scroll-line {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    .mc-navbar,
    .mc-hero-scroll-indicator,
    .skip-link,
    .rsl-theme-toggle {
        display: none !important;
    }

    .mc-hero {
        min-height: auto;
        padding: 2rem;
    }

    .mc-section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
