/* Commercial Site Specific Styles */

/* Problem Section - Heat Index vs WBGT */
.problem-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.problem-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.comparison-card.heat-index {
    border-top: 4px solid var(--risk-moderate);
}

.comparison-card.wbgt {
    border-top: 4px solid var(--risk-low);
}

.comparison-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.comparison-card .temp-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.comparison-card.heat-index .temp-display {
    color: var(--risk-low);
}

.comparison-card.wbgt .temp-display {
    color: var(--risk-low);
}

.comparison-card.wbgt.danger {
    border-top: 4px solid var(--risk-very-high);
}

.comparison-card.wbgt.danger .temp-display {
    color: var(--risk-very-high);
}

.status-ok {
    color: var(--risk-low);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.status-danger {
    color: var(--risk-very-high);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.comparison-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-style: italic;
}

/* Industries Grid */
.industries-section {
    padding: 4rem 0;
}

.industries-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.industries-section .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* Athletics Section */
.athletics-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.athletics-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.athletics-text h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.athletics-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.athletics-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.athletics-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.athletics-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--risk-low);
    font-weight: bold;
}

.athletics-icon {
    font-size: 6rem;
    opacity: 0.8;
}

.athletics-photo img {
    width: 260px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.industry-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.industry-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Why Sigma Section */
.why-sigma {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.why-sigma h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-prop {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.value-prop .prop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.value-prop h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.value-prop p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Compliance Timeline Section */
.compliance-timeline {
    padding: 4rem 0;
}

.compliance-timeline h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.compliance-timeline .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.timeline-visual {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-blue);
    min-width: 80px;
}

.timeline-content h4 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin: 0;
}

.timeline-item.upcoming {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px dashed var(--accent-orange);
    margin: 1rem 0;
}

.timeline-item.upcoming .timeline-year {
    color: var(--accent-orange);
}

/* Social Proof Section */
.social-proof {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.social-proof h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.trust-badge .badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.trust-badge p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quote Form Section */
.quote-section {
    padding: 4rem 0;
}

.quote-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

/* Products Page Styles */
.products-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.products-showcase {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.products-showcase img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.products-showcase .products-intro {
    margin: 1.25rem auto 0;
    font-size: 1.05rem;
}

.product-kits {
    padding: 4rem 0;
}

.product-kits h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.kit-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.kit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.kit-card.featured {
    border: 2px solid var(--accent-orange);
    position: relative;
}

.kit-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.kit-image {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.kit-image .placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.kit-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kit-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.kit-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0;
}

.kit-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.kit-content {
    padding: 1.5rem;
}

.kit-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.kit-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.kit-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.kit-features li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
}

.kit-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--risk-low);
}

/* Replacement Parts */
.replacement-parts {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.replacement-parts h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.parts-notice {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.parts-notice p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.parts-notice p:last-child {
    margin-bottom: 0;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.part-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.part-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.part-number {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.part-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.part-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.qty-input {
    width: 60px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    transition: all 0.3s;
}

/* Comparison Table */
.comparison-section {
    padding: 4rem 0;
}

.comparison-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.feature-comparison {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-comparison th,
.feature-comparison td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.feature-comparison th {
    background: var(--primary-dark);
    color: white;
}

.feature-comparison th:first-child {
    text-align: left;
}

.feature-comparison td:first-child {
    text-align: left;
    font-weight: 500;
}

.feature-comparison .sigma-col {
    background: rgba(0, 86, 179, 0.05);
}

.feature-comparison th.sigma-col {
    background: var(--primary-blue);
    color: white;
}

.feature-comparison .check {
    color: var(--risk-low);
    font-weight: bold;
    font-size: 1.25rem;
}

.feature-comparison .x {
    color: var(--risk-very-high);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Industry Page Styles */
.industry-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0;
    color: white;
}

.industry-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(0, 86, 179, 0.8));
}

.industry-hero .container {
    position: relative;
    z-index: 1;
}

.industry-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

.heat-risks {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.heat-risks h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.risks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.risk-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.risk-card .risk-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.risk-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.risk-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.regulations-section {
    padding: 4rem 0;
}

.regulations-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.regulations-content {
    max-width: 800px;
    margin: 0 auto;
}

.regulation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.regulation-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.regulation-item p {
    color: var(--text-secondary);
    margin: 0;
}

.case-study {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.case-study h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.case-study-placeholder {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--border-light);
}

.case-study-placeholder p {
    color: var(--text-secondary);
    font-style: italic;
}

/* Flag Table Styling */
.flag-table {
    width: 100%;
    border-collapse: collapse;
}

.flag-table th,
.flag-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.flag-table th {
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
}

.flag-table tbody tr:hover {
    background: var(--bg-light);
}

.flag-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.flag-indicator.flag-white {
    background-color: #f8f9fa;
    border: 1px solid #6c757d;
}

.flag-indicator.flag-green {
    background-color: #28a745;
}

.flag-indicator.flag-yellow {
    background-color: #ffc107;
}

.flag-indicator.flag-orange {
    background-color: #fd7e14;
}

.flag-indicator.flag-red {
    background-color: #dc3545;
}

.flag-indicator.flag-black {
    background-color: #212529;
}

/* Compliance Page Styles */
.regulations-map {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.regulations-map h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.state-regulations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.state-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.state-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.state-status.active {
    background: var(--risk-low);
}

.state-status.pending {
    background: var(--risk-moderate);
}

.state-info h4 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.state-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.federal-timeline {
    padding: 4rem 0;
}

.federal-timeline h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.wbgt-vs-heat-index {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.wbgt-vs-heat-index h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.resources-downloads {
    padding: 4rem 0;
}

.resources-downloads h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-card .download-icon {
    font-size: 2rem;
}

.download-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.download-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* About Page Styles */
.about-intro {
    padding: 4rem 0;
}

.about-intro .container {
    max-width: 800px;
}

.about-intro h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.philosophy-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.philosophy-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.philosophy-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.philosophy-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.philosophy-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.philosophy-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-info {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.contact-method .contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-method h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-method a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.trust-signal {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Kit Actions (quantity + button) */
.kit-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.kit-actions .quantity-selector {
    flex-shrink: 0;
}

.kit-actions .add-to-cart-btn {
    flex: 1;
}

/* Header Cart Icon */
.nav-cart {
    display: flex;
    align-items: center;
}

.cart-icon-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cart-icon-btn:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.cart-icon-btn svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Cart Slide-out Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cart-panel-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.cart-panel-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
}

.cart-panel-close:hover {
    color: var(--primary-dark);
}

.cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    display: block;
    word-wrap: break-word;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-dark);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--border-light);
}

.cart-qty-input {
    width: 45px;
    padding: 0.25rem;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--risk-very-high);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    transition: opacity 0.2s;
}

.cart-remove-btn:hover {
    opacity: 0.7;
}

.cart-panel-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    display: flex;
    gap: 1rem;
}

.cart-panel-footer .button {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-props {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .athletics-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .athletics-benefits li {
        text-align: left;
    }

    .athletics-icon {
        order: -1;
        font-size: 4rem;
    }

    .athletics-photo {
        order: -1;
    }

    .athletics-photo img {
        width: 220px;
        margin: 0 auto;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .value-props {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .kits-grid {
        grid-template-columns: 1fr;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }

    .risks-grid {
        grid-template-columns: 1fr;
    }

    .state-regulations {
        grid-template-columns: 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .industry-hero h1 {
        font-size: 2rem;
    }

    .order-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .part-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        justify-content: center;
    }

    .kit-actions {
        flex-direction: column;
    }

    .kit-actions .add-to-cart-btn {
        width: 100%;
    }

    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .cart-panel-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Image Lightbox Modal */
.expandable-image {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.expandable-image:hover {
    opacity: 0.9;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ccc;
}

/* ============================================
   Reading Logbook
   ============================================ */

.logbook-save {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.logbook-save h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.logbook-intro {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 1rem;
}

.logbook-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logbook-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.logbook-field .optional {
    font-weight: 400;
    color: var(--text-secondary, #6c757d);
}

.logbook-field input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
}

.logbook-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logbook-gps-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.logbook-pending {
    font-size: 0.85rem;
    background: #ffc107;
    color: #212529;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.logbook-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.logbook-existing {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.logbook-code-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--primary-dark);
    border-radius: 8px;
    text-align: center;
}

.logbook-code-value {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin: 0.5rem 0;
    word-break: break-all;
}

.logbook-code-warning {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    max-width: 480px;
    margin: 0 auto 1rem;
}

.logbook-code-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Log page --- */

.log-section {
    padding: 3rem 0;
}

.log-code-section {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.log-code-error {
    color: #dc3545;
    font-size: 0.9rem;
}

.log-code-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.log-code-form input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: "Consolas", "Menlo", monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.log-code-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #6c757d);
    margin: 0;
}

.log-code-display {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0.15rem 0;
}

.log-meta {
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    margin: 0;
}

.log-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.log-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
}

.log-table th {
    background: var(--primary-dark);
    color: white;
    text-align: left;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
}

.log-table td {
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--border-light);
    white-space: nowrap;
}

.log-table td:nth-child(6) {
    white-space: normal;
}

.log-note-row td {
    background: #fffbea;
    white-space: normal;
    font-style: italic;
}

.flag-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    vertical-align: middle;
}

.log-more-btn {
    margin-top: 1rem;
}

.log-note-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.log-note-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.log-note-form .optional {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
}

.log-note-row-input {
    display: flex;
    gap: 0.75rem;
}

.log-note-row-input input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.log-terms {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-secondary, #6c757d);
    max-width: 800px;
}

.log-terms h3 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.log-terms p {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .logbook-fields {
        grid-template-columns: 1fr;
    }
    .log-code-form {
        flex-direction: column;
    }
    .log-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .log-page-body header,
    .log-page-body footer,
    .log-page-body .log-hero,
    .log-page-body .log-actions,
    .log-page-body .log-more-btn,
    .log-page-body .log-note-form,
    .log-page-body .skip-to-content {
        display: none !important;
    }
    .log-page-body .log-table-wrapper {
        border: none;
        overflow: visible;
    }
    .log-page-body .log-table th {
        background: none;
        color: black;
        border-bottom: 2px solid black;
    }
    .log-page-body .flag-chip {
        border: 1px solid black !important;
        background: none !important;
        color: black !important;
    }
    .log-page-body .log-terms {
        page-break-inside: avoid;
    }
}

.log-place {
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
}

/* Guideline source toggle (ACSM / NATA) — CSS-only via :checked */
.guide-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.guideline-toggle {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.guideline-toggle label {
    padding: 0.45rem 1.6rem;
    border: 2px solid var(--primary-blue);
    border-radius: 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-blue);
    transition: background 0.2s, color 0.2s;
}

.guideline-toggle label:hover {
    background: rgba(0, 86, 179, 0.08);
}

#src-acsm:checked ~ .guideline-toggle label[for="src-acsm"],
#src-nata:checked ~ .guideline-toggle label[for="src-nata"] {
    background: var(--primary-blue);
    color: white;
}

#src-acsm:focus-visible ~ .guideline-toggle label[for="src-acsm"],
#src-nata:focus-visible ~ .guideline-toggle label[for="src-nata"] {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.guide-panel {
    display: none;
}

#src-acsm:checked ~ .guide-acsm,
#src-nata:checked ~ .guide-nata {
    display: block;
}

.guide-source {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guide-source a {
    color: var(--primary-blue);
}

.guide-panel .comparison-table {
    min-width: 720px;
}

#src-acsm:checked ~ .guide-acsm,
#src-nata:checked ~ .guide-nata {
    display: block;
    overflow-x: auto;
}

.guide-region-note {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}
