/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    /* Colors */
    --color-primary: #6366f1;
    --color-secondary: #a855f7;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --color-bg-dark: #0f172a;
    --color-bg-medium: #1e293b;
    --color-bg-light: #334155;

    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================
   Light Mode Theme
   ================================ */
body.light-mode {
    --color-bg-dark: #f8fafc;
    --color-bg-medium: #e2e8f0;
    --color-bg-light: #cbd5e1;

    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;

    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    z-index: -2;
}



/* ================================
   Top Navigation Bar
   ================================ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-mode .top-nav {
    background: rgba(248, 250, 252, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-logo {
    flex-shrink: 0;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.08);
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

body.light-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.06);
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: rotate(15deg);
}

/* Default: dark mode — show sun icon (to switch to light), hide moon */
.theme-icon-dark { display: block; }
.theme-icon-light { display: none; }

/* Light mode: show moon icon (to switch to dark), hide sun */
body.light-mode .theme-icon-dark { display: none; }
body.light-mode .theme-icon-light { display: block; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

body.light-mode .nav-link {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ================================
   Container & Layout
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* ================================
   Header
   ================================ */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(30deg);
    }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.header-desc {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Progress Bar
   ================================ */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .progress-container {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.progress-step.active .step-label {
    color: var(--color-text-primary);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* ================================
   Step Sections
   ================================ */
.step-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
}

/* ================================
   Catalogs Grid
   ================================ */
.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.catalog-card {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.light-mode .catalog-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.catalog-card:hover::before {
    opacity: 0.1;
}

.catalog-card.selected {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.catalog-card.selected::before {
    opacity: 0.15;
}

.catalog-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.catalog-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.catalog-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.selection-summary {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

body.light-mode .selection-summary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.selection-summary span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ================================
   Services Container
   ================================ */
.services-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.catalog-services {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .catalog-services {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.catalog-services-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.catalog-services-title::before {
    content: attr(data-icon);
    font-size: 1.75rem;
}

.service-grid {
    display: grid;
    gap: var(--spacing-md);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.service-header {
    margin-bottom: var(--spacing-md);
}

.service-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.service-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input-group select,
.input-group input {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Theme-aware dropdown styling */
.input-group select {
    background: var(--color-bg-medium);
    color: var(--color-text-primary);
}

.input-group select option {
    background: var(--color-bg-medium);
    color: var(--color-text-primary);
}

body.light-mode .input-group input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--color-text-primary);
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.time-unit-toggle {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.time-unit-toggle button {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-mode .time-unit-toggle button {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.time-unit-toggle button.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ================================
   Quote Result
   ================================ */
.quote-result {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.quote-summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

body.light-mode .quote-summary-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.quote-summary-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.quote-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.total-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .total-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.total-item.recommended {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.total-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.total-item.recommended .total-label {
    color: var(--color-primary);
    font-weight: 600;
}

.total-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.catalog-quote-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .catalog-quote-section {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.catalog-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-quote-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.catalog-quote-total {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.service-quote-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.service-quote-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .service-quote-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.service-quote-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.service-quote-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.service-quote-details {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.service-quote-range {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.service-quote-justification {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
}

body.light-mode .service-quote-justification {
    background: rgba(99, 102, 241, 0.06);
}

.service-quote-source {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
}

.service-quote-source a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-quote-source a:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

/* ================================
   Buttons
   ================================ */
.step-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-export {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.btn-export:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}

.export-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .catalogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .quote-totals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .nav-inner {
        padding: 0.6rem var(--spacing-sm);
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .nav-link span,
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .catalogs-grid {
        grid-template-columns: 1fr;
    }

    .service-inputs {
        grid-template-columns: 1fr;
    }

    .progress-container {
        flex-wrap: wrap;
    }

    .progress-line {
        display: none;
    }

    .step-actions {
        flex-direction: column;
    }

    .export-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .catalog-quote-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
}
/* Extracted from index.html */

.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85); /* Slightly darker for better readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger border */
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * {
    box-sizing: border-box;
}
.grimont-global-header .ggh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ggh-logo-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.ggh-logo-group:hover {
    transform: scale(1.02);
}
.ggh-logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.05em;
    display: none;
}
.ggh-logo-text span {
    color: #00f2ff;
}
@media (min-width: 640px) {
    .ggh-logo-text { display: block; }
}
.ggh-separator {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
}
@media (min-width: 768px) {
    .ggh-separator { display: block; }
}
.ggh-app-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ggh-app-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ggh-app-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #a3e635;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.ggh-app-name {
    font-weight: 700;
    color: white;
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    letter-spacing: 0.02em;
}
.ggh-app-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    max-width: 600px;
    display: none;
    margin: 4px 0 0 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 300;
}
@media (min-width: 1024px) {
    .ggh-app-desc { display: block; }
}
.ggh-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* ================================
   Strategic Analysis
   ================================ */
.strategic-analysis {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

body.light-mode .strategic-analysis {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.analysis-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.analysis-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    border-left: 3px solid transparent;
}

body.light-mode .analysis-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left-width: 3px;
    border-left-style: solid;
}

.analysis-card strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-text-primary);
}

.analysis-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.analysis-card p + p {
    margin-top: 0.5rem;
}

.analysis-card.scope {
    border-left-color: var(--color-primary);
    grid-column: 1 / -1;
}

.analysis-card.methodology {
    border-left-color: var(--color-secondary);
}

.analysis-card.profiling {
    border-left-color: var(--color-success);
}

.analysis-card.warning {
    border-left-color: var(--color-danger);
}

.analysis-card.kpis {
    border-left-color: var(--color-accent);
    grid-column: 1 / -1;
}

/* Strategic Analysis Badge & Tag styles */
.analysis-header-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-header-badge.short {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.analysis-header-badge.medium {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.analysis-header-badge.long {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

body.light-mode .analysis-header-badge.short {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

body.light-mode .analysis-header-badge.medium {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-secondary);
}

body.light-mode .analysis-header-badge.long {
    background: rgba(236, 72, 153, 0.1);
    color: var(--color-accent);
}

.analysis-tools-list, .analysis-kpis-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.analysis-tool-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

body.light-mode .analysis-tool-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.analysis-tool-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

.analysis-kpi-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 4px;
    color: #34d399;
    font-weight: 600;
}

body.light-mode .analysis-kpi-tag {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.18);
}

.analysis-deliverables-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.4rem;
}

.analysis-deliverables-list li {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.analysis-deliverables-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.strategic-analysis .meta-desc {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ================================
   Print Media Styles
   ================================ */
@media print {
    /* Hide all non-printable UI elements */
    .grimont-global-header,
    .progress-container,
    .header,
    .step-actions,
    .section-title,
    .section-desc,
    .theme-toggle,
    iframe,
    noscript {
        display: none !important;
    }

    /* Reset background and text colors for paper/print */
    body, html {
        background: #ffffff !important;
        color: #0f172a !important;
    }

    body::before {
        display: none !important;
    }

    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Ensure steps except the active result are hidden */
    .step-section {
        display: none !important;
    }
    
    .step-section.active {
        display: block !important;
    }

    /* Style the quote result for printing */
    .quote-result {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: #ffffff !important;
        width: 100% !important;
    }

    .quote-summary-card {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        margin-bottom: 25px !important;
        page-break-inside: avoid;
        padding: 20px !important;
    }

    .quote-totals {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .total-item {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        padding: 15px !important;
    }

    .total-item.recommended {
        background: #f1f5f9 !important;
        border: 2px solid #6366f1 !important;
        box-shadow: none !important;
    }

    .total-value {
        font-size: 1.5rem !important;
        color: #0f172a !important;
    }

    .total-item.recommended .total-value {
        color: #6366f1 !important;
    }

    .catalog-quote-section {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        margin-bottom: 25px !important;
        page-break-inside: avoid;
        padding: 20px !important;
    }

    .catalog-quote-header {
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .catalog-quote-title {
        color: #0f172a !important;
    }

    .catalog-quote-total {
        color: #6366f1 !important;
    }

    .service-quote-item {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
        padding: 15px !important;
    }

    .service-quote-name {
        color: #0f172a !important;
    }

    .service-quote-price {
        color: #6366f1 !important;
    }

    .service-quote-justification {
        background: #f1f5f9 !important;
        border-left: 3px solid #6366f1 !important;
        color: #334155 !important;
        padding: 10px !important;
    }

    .strategic-analysis {
        border-top: 1px dashed #cbd5e1 !important;
    }

    .analysis-card {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-left-width: 3px !important;
        border-left-style: solid !important;
        page-break-inside: avoid;
        margin-bottom: 10px !important;
    }

    .analysis-card.scope {
        border-left-color: #6366f1 !important;
    }

    .analysis-card.methodology {
        border-left-color: #a855f7 !important;
    }

    .analysis-card.profiling {
        border-left-color: #10b981 !important;
    }

    .analysis-card.warning {
        border-left-color: #ef4444 !important;
    }

    .analysis-card.kpis {
        border-left-color: #ec4899 !important;
    }

    .analysis-tool-tag {
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
    }

    .analysis-kpi-tag {
        background: #d1fae5 !important;
        color: #065f46 !important;
        border: 1px solid #a7f3d0 !important;
    }

    .service-quote-source a {
        color: #6366f1 !important;
        text-decoration: underline !important;
    }
}
