﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Minimal black & white theme using Consolas */
html, body {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  color: #000;
  background: #fff;
  height: 100%;
}

/* Page layout to keep footer at the bottom on all pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content {
  flex: 1 0 auto;
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Header / Nav */
.nav-minimal { border-bottom: 1px solid #000; }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.brand { text-decoration: none; color: #000; font-weight: 700; }
.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-links a { color: #000; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

/* Footer */
.footer-minimal { border-top: 1px solid #000; }
.footer-container { max-width: 920px; margin: 0 auto; padding: 1rem; }

/* Home - Hero */
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.hero .tagline { font-size: 1.25rem; margin-bottom: 0.25rem; }
.hero .subtitle { color: #555; margin-bottom: 1.5rem; }
.cta-group { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn { border: 1px solid #000; color: #000; background: #fff; padding: 0.6rem 1.2rem; text-decoration: none; transition: all 0.2s; }
.btn:hover { background: #000; color: #fff; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline { background: #fff; }
.btn-link { border: none; padding: 0.5rem 0; }

/* Product Snapshot */
.product-snapshot { text-align: center; padding: 1rem 0 2rem; }

/* Features Grid */
.features { padding: 2rem 0; }
.features h2 { text-align: center; margin-bottom: 1.5rem; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    border: 1px solid #ddd;
    padding: 1.25rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: #000; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: #444; margin: 0; }

/* Feature Card Icons */
.feature-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.4rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-purge { background-image: url('/images/home/icon-purge.png'); }
.icon-views { background-image: url('/images/home/icon-views.png'); }
.icon-visualize { background-image: url('/images/home/icon-visualize.png'); }
.icon-annotate { background-image: url('/images/home/icon-annotate.png'); }
.icon-manage { background-image: url('/images/home/icon-manage.png'); }
.icon-coordinate { background-image: url('/images/home/icon-coordinate.png'); }

/* Audience - Expandable Accordion Layout */
.audience { 
    text-align: center; 
    padding: 2rem 0; 
    border-top: 1px solid #eee; 
}
.audience h2 { 
    margin-bottom: 1.5rem; 
    font-size: 1.5rem;
}

.audience-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.audience-card {
    text-align: center;
    padding: 0;
}

.audience-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    margin-bottom: 0;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.audience-toggle:hover {
    color: #333;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.audience-card.expanded .toggle-icon {
    transform: rotate(45deg);
}

.audience-description {
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.audience-card.expanded .audience-description {
    max-height: 200px;
    margin-top: 0.5rem;
}

/* Bottom CTA */
.cta-bottom { text-align: center; padding: 2rem 0 3rem; }

/* Learn Page Layout */
.learn-container {
    display: flex;
    gap: 2rem;
}

.learn-sidebar {
    flex: 0 0 280px; /* Sidebar width, doesn't grow or shrink */
}

.learn-content {
    flex: 1 1 auto; /* Content area takes remaining space */
    padding-left: 1.5rem;
    border-left: 1px solid #ddd;
}

/* Sidebar Navigation - Button Theme */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul.nested {
    display: none; /* Sub-menus are hidden by default */
    padding-left: 1.2rem; /* Indent nested items */
    border-left: 2px solid #eee;
    margin-left: 0.5rem;
}

.sidebar-nav ul.expanded {
    display: block; /* Show expanded sub-menus */
}

.sidebar-nav li {
    margin-bottom: 0.5rem; /* Space between buttons */
}

.sidebar-nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #222;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #333; /* Dark highlight on hover */
    color: #fff;
    border-color: #333;
}

.sidebar-nav a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Toggle indicators */
.sidebar-nav a.nav-toggle::before {
    /* Heavy plus sign (➕) + non-breaking space */
    content: "\2795\00a0";
    font-size: 0.8em; /* slightly larger */
    font-weight: 100;
    margin-right: 0.35rem;
    display: inline-block;
    line-height: 1;
    /* Use a symbol-capable font so the heavy glyph renders reliably */
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Noto Color Emoji", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    transition: transform 0.15s ease;
}

.sidebar-nav a.nav-toggle.expanded::before {
    /* Heavy minus sign (➖) + non-breaking space */
    content: "\2796\00a0";
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .learn-container {
        flex-direction: column;
    }

    .learn-sidebar {
        flex-basis: auto;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1rem;
    }

    .learn-content {
        border-left: none;
        padding-left: 0;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Image Lightbox Styles */
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-overlay.active {
    display: flex;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* About Page */
.about-hero { text-align: center; padding: 2rem 0; }
.about-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.about-hero .lead { font-size: 1.1rem; color: #444; max-width: 600px; margin: 0 auto; }

.about-story { padding: 1.5rem 0; }
.about-story h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.about-story p { color: #333; margin-bottom: 1.5rem; }

.about-benefits { padding: 1.5rem 0; border-top: 1px solid #eee; }
.about-benefits h2 { text-align: center; margin-bottom: 1.5rem; }
.benefit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.benefit-item { border: 1px solid #ddd; padding: 1rem; border-radius: 4px; }
.benefit-item:hover { border-color: #000; }
.benefit-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.benefit-item p { font-size: 0.9rem; color: #444; margin: 0; }

.about-audience { padding: 1.5rem 0; border-top: 1px solid #eee; }
.about-audience h2 { margin-bottom: 1rem; }
.about-audience ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.about-audience li { 
    margin-bottom: 0.75rem; 
    color: #333; 
    text-align: center;
}
.about-audience li strong { color: #000; }

.about-compatibility { padding: 1.5rem 0; border-top: 1px solid #eee; text-align: center; }
.about-compatibility h2 { margin-bottom: 0.5rem; }
.about-compatibility p { color: #444; }

.cta-bottom { 
    text-align: center; 
    padding: 2rem 0; 
    display: flex; 
    justify-content: center; 
    gap: 0.75rem; 
    flex-wrap: wrap; 
}

/* Contact Page */
.contact-hero { text-align: center; padding: 2rem 0 1.5rem; }
.contact-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-hero .lead { color: #444; max-width: 500px; margin: 0 auto; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 1.5rem 0;
}

/* Contact Form */
.contact-form-section h2 { margin-bottom: 1rem; font-size: 1.25rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.25rem; }

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.validation-error {
    color: #c00;
    font-size: 0.85rem;
}

.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9f0;
    border: 1px solid #4a4;
    border-radius: 4px;
    color: #262;
}

/* Contact Info Sidebar */
.contact-info-section h2 { margin-bottom: 1rem; font-size: 1.25rem; }

.contact-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.contact-card:hover { border-color: #000; }

.contact-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.contact-card p {
    margin: 0;
    color: #444;
    font-size: 0.9rem;
}

.contact-card a { color: #000; }

/* Learn Page - Welcome Content */
.learn-welcome { margin-bottom: 2rem; }
.learn-welcome h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.learn-lead { color: #444; font-size: 1.05rem; }

/* Learn Overview Grid */
.learn-overview { margin-bottom: 2rem; }
.learn-overview h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.overview-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.overview-card:hover { border-color: #000; }
.overview-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.overview-card p { font-size: 0.85rem; color: #444; margin-bottom: 0.5rem; }
.overview-card .tool-count { font-size: 0.8rem; color: #666; font-style: italic; }

/* Learn Quick Start */
.learn-quickstart { margin-bottom: 2rem; }
.learn-quickstart h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.learn-quickstart > p { color: #444; margin-bottom: 0.75rem; }

.quickstart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quickstart-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.quickstart-list li:last-child { border-bottom: none; }
.quickstart-list strong { color: #000; }

/* Learn Hero Image */
.learn-hero-image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Content Section (for Learn subpages) */
.content-section {
    padding: 1rem 0;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-section ol,
.content-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-section img {
    display: block;
    margin: 1rem 0;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Error text */
.text-danger {
    color: #c00;
}
