/* Studio Praxis - Visual Identity System */
:root {
    --base-charcoal: #333333; /* Not black. Charcoal. [cite: 252, 253, 254] */
    --warm-off-white: #F9F7F2; /* Gallery paper feel [cite: 255, 259] */
    --accent-slate: #4A5D6A; /* Restrained and mature [cite: 261, 263] */
    --border-light: rgba(51, 51, 51, 0.1);
}

body {
    background-color: var(--warm-off-white);
    color: var(--base-charcoal);
    font-family: "EB Garamond", serif; /* Elegant modern serif [cite: 218, 227, 228] */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none; /* Titles are title case, no icons [cite: 219, 221] */
}

.interface-text {
    font-family: "Inter", sans-serif; /* Clean sans for data [cite: 239, 240] */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Update your container to handle bottom padding better */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px; /* Reduced bottom padding */
}

/* Create a consistent module spacing */
.section-module {
    padding: 40px 0; /* Balanced vertical space */
}

/* Tighten the divider spacing */
.divider {
    height: 1px;
    background-color: var(--base-charcoal);
    width: 100%;
    margin: 20px 0 40px 0; /* Less top margin, more bottom for the next heading */
    opacity: 0.2;
}

/* Radar Chart Container */
#critiqueChart {
    width: 100%; /* Allow it to fill the column width */
    height: 100%;
    margin: 0 auto;
}

/* Buttons - Quiet and Minimal [cite: 351, 438, 440] */
.cta-button {
    display: inline-block;
    font-family: "Inter";
    padding: 12px 32px;
    border: 1px solid var(--base-charcoal);
    color: var(--base-charcoal);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-button:hover {
    background: var(--base-charcoal);
    color: var(--warm-off-white);
}

.nav-link--cta {
    border: 1px solid var(--base-charcoal);
    padding: 5px 14px;
    transition: all 0.3s ease;
}

.nav-link--cta:hover {
    background: var(--base-charcoal);
    color: var(--warm-off-white);
}

/* Expandable (details/summary) – Studio Praxis style */
.expandable {
  margin-top: 14px;
  border: 1px solid var(--base-charcoal);
  background: transparent;
}

.expandable-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--base-charcoal);
  transition: background 0.25s ease, color 0.25s ease;
}

/* Hide the default marker */
.expandable-summary::-webkit-details-marker {
  display: none;
}

/* CTA-style rollover */
.expandable:hover .expandable-summary,
.expandable[open] .expandable-summary {
  background: var(--base-charcoal);
  color: var(--warm-off-white);
}

.expandable-arrow {
  margin-left: 18px;
  transition: transform 0.2s ease;
}

/* Rotate arrow when open (optional) */
.expandable[open] .expandable-arrow {
  transform: rotate(90deg);
}

.expandable-content {
  padding: 18px 16px 8px 16px;
  border-top: 1px solid var(--border-light);
}

.expandable-item {
  margin-bottom: 14px;
}

.expandable-heading {
  margin: 0 0 6px 0;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.expandable-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
}

/* --- Navigation Base --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--base-charcoal);
    transition: all 0.3s ease;
}

/* ==========================================================================
   STUDIO PRAXIS - MOBILE RESPONSIVENESS (MAX-WIDTH: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Global Spacing & Typography */
    .container { padding: 30px 20px !important; }
    h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    .cta-button { width: 100%; text-align: center; box-sizing: border-box; }

    /* 2. Dashboard Layouts */
    .dashboard-header { flex-direction: column; align-items: flex-start !important; gap: 20px; }
    
    /* Target the right-side credit block on the dashboard */
    .dashboard-header > div:last-child { flex-direction: column; width: 100%; align-items: stretch !important; gap: 15px; }
    .dashboard-header > div:last-child > div { text-align: left !important; border-right: none !important; border-bottom: 1px solid var(--border-light); padding-right: 0 !important; padding-bottom: 15px; }
    
    /* Stack the 4-column snapshot bar */
    .snapshot-strip { flex-direction: column; }
    .snap-item { border-right: none !important; border-bottom: 1px solid var(--border-light); padding: 15px !important; }
    .snap-item:last-child { border-bottom: none !important; }
    
    /* Stack the insights and timeline */
    .insights-row { flex-direction: column; gap: 15px !important; }
    .timeline-container { padding: 15px !important; overflow-x: auto; }
    
    /* Fix the Action Bar for fat thumbs */
    #portfolioActionBar { flex-direction: column; gap: 15px; padding: 20px !important; bottom: -160px !important; text-align: center; }
    #portfolioActionBar.visible { bottom: 0 !important; }
    #portfolioActionBar > div { width: 100%; justify-content: center; }
    #portfolioActionBar .action-bar-btn { width: 100%; }

    /* 3. Portfolio Report Layouts */
    .hero-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .score-display { padding: 30px 20px !important; }
    
    /* Make the 5-column diagnostic grid a 2-column wrapping grid */
    .diagnostic-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
    
    /* Stack the Primary/Secondary Diagnosis boxes */
    .diagnosis-block { flex-direction: column; gap: 20px !important; padding: 20px !important; }
    .diagnosis-item { border-left: none !important; padding-left: 0 !important; }
    .diagnosis-item:last-child { border-top: 1px solid var(--border-light); padding-top: 20px; }
    
    /* Stack the 2-column pillar grid */
    .pillar-grid { grid-template-columns: 1fr !important; }
    .pillar-card { padding: 25px !important; }
    
    /* 4. Submit Form Layouts */
    /* Targets the inline styling you used for Medium/Style side-by-side dropdowns */
    .form-section[style*="grid"] { grid-template-columns: 1fr !important; gap: 20px !important; }
    
    /* Stack the historical thumbnail under the dropdown */
    .revision-container { flex-direction: column; }
    .revision-inputs { width: 100%; }
    .historical-thumbnail { width: 100% !important; height: 180px !important; margin-top: 15px; }
    
    /* Make the file upload box a better touch target */
    .file-upload-wrapper { padding: 30px 15px !important; min-height: 120px !important; }

    /* 5. Pricing & Marketing Pages */
    .pricing-grid, .contrast-block, .feature-row, .audience-grid, .deliverables-grid { grid-template-columns: 1fr !important; }
    .contrast-col:first-child { border-right: none !important; border-bottom: 1px solid var(--border-light); }
    .pricing-tier { padding: 30px 20px !important; }
    .stat-block { text-align: center; }
    /* 6. Auth Pages (Login / Signup) */
    .auth-container { 
        margin: 30px 15px !important; 
        padding: 30px 20px !important; 
        border: none !important; 
        box-shadow: none !important; 
        width: auto !important;
    }

    /* 7. Homepage Hero Buttons */
    .hero-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 15px !important;
    }
    .hero-actions > div, 
    .hero-actions > a {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* 8. Homepage IP Guarantee Box */
    .guarantee-box {
        flex-direction: column !important;
        text-align: center;
        padding: 25px 20px !important;
    }
    .guarantee-box > div:first-child {
        margin-bottom: 5px;
    }

    /* 9. Navigation Menu (Mobile) */
    .site-header { padding: 20px 20px 0 20px !important; }
    .hamburger { display: flex !important; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: -20px; 
        width: calc(100% + 40px);
        background: var(--warm-off-white);
        padding: 25px 0;
        gap: 20px !important;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 10px 15px -10px rgba(0,0,0,0.05);
        z-index: 99;
        text-align: center;
    }
    
    .nav-links.active { display: flex !important; }
    
    /* Hamburger to 'X' Animation */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 10. Disable Sticky Overlaps on Mobile */
    .framework-intro > div:first-child { 
        position: relative !important; 
        top: 0 !important; 
    }

    
}