/* TwoFish Technology Brand CSS Tokens */
:root {
    /* Brand Colors */
    --green-brand: #a2b72f;
    --green-field: #a2b72f;
    --yellow: #FFC709;
    --orange: #F7941D;
    --blue-dark: #008AA0;
    --blue-light: #00B0CC;
    --magenta: #E20C7C;
    --red: #E22F22;
    
    /* Neutrals */
    --ink-900: #121212;
    --ink-700: #2A2A2A;
    --ink-500: #4A4A4A;
    --ink-300: #8A8A8A;
    --paper: #FFFFFF;
    --paper-tint: #F7F8F6;
    
    /* Design Tokens */
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
    --shadow-hover: 0 12px 32px rgba(0,0,0,.12);
}

/* Global text color overrides */
.text-primary {
    color: var(--green-field) !important;
}

/* Typography */
body {
    font-family: 'Inter', 'Proxima Nova', sans-serif;
    line-height: 1.6;
    color: var(--ink-700);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
}

.display-4 {
    font-weight: 700;
    line-height: 1.15;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--ink-700);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--green-field);
}

.navbar .btn-primary {
    padding: 0.5rem 1.5rem;
}

/* Hero Typography */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title .title-break {
    display: block;
    margin-bottom: 0.2em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.4;
    opacity: 0.9;
}

/* Trust Logos Section - Removed absolute positioning as it's now inline */

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.trust-logo {
    height: 120px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Risk Meter Gauge Styles */
.gauge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-wrapper {
    position: relative;
    width: 300px;
    height: 150px;
}

.gauge {
    width: 300px;
    height: 150px;
    background: conic-gradient(
        from 180deg at 50% 50%, 
        #22c55e 0deg, 
        #eab308 120deg, 
        #ef4444 180deg
    );
    border-radius: 150px 150px 0 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.gauge-fill {
    position: absolute;
    width: 280px;
    height: 140px;
    background: white;
    border-radius: 140px 140px 0 0;
    top: 10px;
    left: 10px;
    transform-origin: 50% 100%;
    transition: transform 0.5s ease;
}

.gauge-cover {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.gauge-score {
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #eab308;
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Risk Meter Animation */
@keyframes gaugeLoading {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
    100% { transform: rotate(120deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(234, 179, 8, 0.3); }
    50% { box-shadow: 0 0 20px rgba(234, 179, 8, 0.6); }
}

@keyframes numberCountUp {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 1; }
}

.gauge-fill {
    position: absolute;
    width: 280px;
    height: 140px;
    background: white;
    border-radius: 140px 140px 0 0;
    top: 10px;
    left: 10px;
    transform-origin: 50% 100%;
    transition: transform 0.5s ease;
    animation: gaugeLoading 3s ease-in-out;
}

.gauge-cover {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 3;
}

.score-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #eab308;
    line-height: 1;
    animation: numberCountUp 3s ease-out;
}

.risk-testing {
    position: relative;
    z-index: 1;
}

.risk-testing::before {
    content: "Testing connectivity...";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--green-brand);
    font-weight: 600;
    animation: fadeInOut 3.5s ease-in-out;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 10px;
    border-radius: 15px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

/* Additional live testing animations */
.risk-testing .gauge {
    position: relative;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Hero Trust Logos Carousel */
.hero-trust-logos {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.trust-carousel {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.trust-logos-scroll {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: scrollLogos 15s linear infinite;
    width: fit-content;
}

.hero-trust-logo {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.hero-trust-logo:hover {
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); }
}

@media (max-width: 768px) {
    .trust-logos-scroll {
        gap: 2rem;
    }
    
    .hero-trust-logo {
        height: 40px;
    }
}

/* Hero Logo */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stayopen-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .stayopen-logo {
        height: 65px;
    }
}

/* Powered By Section */
#credibility {
    background: #f8f9fa;
}

.powered-by-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.powered-by-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.powered-by-logo {
    height: 45px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.powered-by-logo:hover {
    opacity: 1;
}

.plus-sign {
    font-size: 1.2rem;
    color: var(--ink-500);
    font-weight: 600;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .powered-by-logos {
        gap: 1rem;
    }
    
    .powered-by-logo {
        height: 35px;
    }
    
    .plus-sign {
        font-size: 1rem;
        margin: 0 0.25rem;
    }
}

/* Trust Logos Section */
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.trust-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .trust-logos {
        gap: 1rem;
    }
    
    .trust-logo {
        height: 32px;
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-body {
    padding: 0;
}

.modal-body .roi-calculator {
    border: none;
    box-shadow: none;
    margin: 0;
}

/* Form View in Modal */
#calculator-view {
    opacity: 1;
}

#form-view {
    background: white;
    display: none;
}

#form-view .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#form-view .form-control:focus {
    border-color: var(--green-field);
    box-shadow: 0 0 0 3px rgba(162, 183, 47, 0.1);
}

#form-view .form-label {
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.5rem;
}

/* Hero Button - Dark with White Hover */
.btn-dark-hero {
    font-size: 1.25rem;
    background: var(--ink-900);
    border: 2px solid var(--ink-900);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-dark-hero:hover {
    background: white;
    border-color: white;
    color: var(--ink-900);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Small Laptop Screens (13" MacBook, etc.) */
@media (max-width: 1440px) and (min-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 2.5vw, 1.4rem);
        line-height: 1.5;
    }
    
    .btn-dark-hero {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-image-wrapper {
        max-width: 400px;
    }
    
    .hero-3d-image {
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    }
    
    .trust-logo-inline {
        height: 45px;
        max-width: 120px;
    }
    
    .trust-logos-row {
        gap: 1.5rem;
    }
    
    .trust-section-inline p {
        font-size: 0.9rem;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3, .h4 {
        font-size: 1.25rem !important;
    }
    
    h4, .h5 {
        font-size: 1.1rem !important;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon-img img {
        height: 180px;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem !important;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.95rem;
    }
    
    .audit-form-card {
        padding: 2rem !important;
    }
    
    .form-control, .form-label {
        font-size: 0.95rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .roi-calculator {
        padding: 1.5rem !important;
    }
    
    .result-value {
        font-size: 1.25rem;
    }
    
    .result-label {
        font-size: 0.7rem;
    }
    
    .input-group-styled input,
    .input-group-styled select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-label-styled {
        font-size: 0.85rem;
    }
    
    /* Reduce overall padding and margins */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    /* Timeline adjustments for 13" screens */
    .timeline-card {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .timeline-time {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .timeline-badge {
        width: 40px;
        height: 40px;
    }
    
    .timeline-badge i {
        font-size: 16px;
    }
    
    .timeline-item.left .timeline-badge {
        right: calc(50% - 20px);
    }
    
    .timeline-item.right .timeline-badge {
        left: calc(50% - 20px);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
        padding: 0 0.5rem;
        margin: 0 auto;
        max-width: 95vw;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.3;
        text-align: center;
        padding: 0 0.5rem;
        margin: 0 auto;
        max-width: 95vw;
    }
    
    .hero-content {
        padding: 0.5rem;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .btn-dark-hero {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        margin: 1rem auto 0 auto !important;
        width: auto !important;
        max-width: 90vw;
        display: block;
        text-align: center;
    }
    
    .trust-logo {
        height: 80px;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
        max-width: 350px;
    }
    
    .trust-section-inline {
        margin-top: 2rem;
        text-align: center;
    }
    
    .trust-logo-inline {
        height: 40px;
    }
    
    /* Ensure proper mobile container constraints */
    .hero-section .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100vw !important;
        overflow: hidden;
    }
    
    .hero-section .row {
        margin: 0 !important;
        width: 100%;
    }
    
    .hero-section .col-lg-10 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
    }
    
    /* Additional mobile button adjustments for other sections */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .trust-logos-row {
        gap: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 0.25rem;
    }
    
    .btn-dark-hero {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
        max-width: 85vw;
    }
    
    .hero-section .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* ROI Calculator Styles */
.roi-calculator {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 10 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--green-field);
}

.roi-calculator:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

/* Calculator Input Styles */
.calculator-inputs {
    margin-bottom: 1.5rem;
}

.input-group-styled {
    flex: 1;
}

.input-row {
    display: flex;
    gap: 0.75rem;
}

.form-label-styled {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-styled {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--paper-tint);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--ink-900);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control-styled::placeholder {
    color: var(--ink-300);
}

.form-control-styled:focus {
    outline: none;
    background: white;
    border-color: var(--green-field);
    box-shadow: 0 0 0 3px rgba(162, 183, 47, 0.2);
}

select.form-control-styled {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Slider Styles */
.slider-group {
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
    padding: 1rem 0;
}

.slider-styled {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--green-field);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider-styled::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-styled::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--green-field);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
}

.slider-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-field);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Results Styles */
.calculator-results {
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-card {
    background: var(--paper-tint);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.result-card-primary {
    grid-column: span 2;
    background: var(--green-field);
    border-color: var(--green-field);
}

.result-card-primary .result-label,
.result-card-primary .result-value {
    color: white;
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-500);
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
}

.btn-calculator {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--green-field);
    color: white;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-calculator:hover {
    background: var(--green-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .roi-calculator {
        margin-top: 2rem;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card-primary {
        grid-column: span 1;
    }
    
    .dashboard-image-wrapper {
        margin-bottom: 2rem;
    }
}

.calculator-results .result-item {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.calculator-results .result-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Calculator result styling */
.calculator-results #out-hour-cost span {
    color: var(--blue-dark) !important;
}

.calculator-results #out-incident-cost span {
    color: #dc3545 !important;
}

.calculator-results #out-monthly-cost span {
    color: #dc3545 !important;
}

.calculator-results #out-annual-cost span {
    color: white !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(162, 183, 47, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 2rem;
}

/* Hero 3D Image */
.hero-image-wrapper {
    position: relative;
    z-index: 3;
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
}

.hero-3d-image {
    width: 100%;
    height: auto;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Trust Section Inline */
.trust-section-inline {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 500px;
}

.trust-logos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.trust-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.trust-logo-inline {
    height: 60px;
    width: auto;
    max-width: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.trust-logo-inline:hover {
    opacity: 1;
    transform: scale(1.05);
}

.hero-section .col-lg-6 {
    position: relative;
    z-index: 3;
}

/* Fallback for video not supported */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .hero-section {
        background: var(--green-field);
    }
}

/* Buttons */
.btn-primary {
    background: var(--green-field);
    border: 2px solid var(--green-field);
    color: white !important;
    border-radius: var(--radius);
    font-weight: 500;
    padding: 12px 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: white;
    border-color: var(--green-field);
    color: var(--green-field) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--green-brand);
    border-color: var(--green-brand);
    color: white !important;
}

.btn-success:hover {
    background: white;
    border-color: var(--green-brand);
    color: var(--green-brand) !important;
}

/* Warning button - uses green brand colors */
.btn-warning {
    background: var(--green-brand);
    border-color: var(--green-brand);
    color: white !important;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 12px 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--green-field);
}

.feature-icon-img {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-img img {
    width: auto;
    max-width: 100%;
    height: 240px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Benefits List */
.benefit-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.benefit-item:last-child {
    border-bottom: none;
}

/* ROI Calculator */
.roi-calculator {
    background: var(--paper-tint) !important;
    border: 2px solid var(--green-field);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calculator-inputs .form-control {
    border: 1px solid var(--ink-300);
    border-radius: 8px;
    padding: 12px 16px;
}

.calculator-inputs .form-control:focus {
    border-color: var(--green-field);
    box-shadow: 0 0 0 0.2rem rgba(162, 183, 47, 0.25);
}

.result-item {
    padding: 8px 0;
    font-size: 1.1rem;
}

/* Audit Form Section */
.audit-form-section {
    background: linear-gradient(135deg, #a2b72f 0%, #a2b72f 100%);
}

/* Audit Report Preview */
.audit-report-preview {
    perspective: 1000px;
}

.audit-report-preview img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.audit-report-preview:hover img {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
}

.audit-form-card {
    background: white;
    color: #333;
}

.audit-form-card .form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.audit-form-card .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.audit-form-card .form-control:focus {
    background: white;
    border-color: #a2b72f;
    box-shadow: 0 0 0 0.25rem rgba(162, 183, 47, 0.25);
}

/* Form Styling */
.audit-form {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid var(--ink-300);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--green-field);
    box-shadow: 0 0 0 0.2rem rgba(162, 183, 47, 0.25);
}

.form-control.is-invalid {
    border-color: var(--red);
}

.invalid-feedback {
    color: var(--red);
    font-size: 0.875rem;
}

/* Success State */
.success-state {
    border: 2px solid var(--green-brand);
    box-shadow: var(--shadow);
}

/* Bootstrap Color Overrides for Consistency */
.text-success {
    color: var(--green-brand) !important;
}

.alert-success {
    background-color: rgba(162, 183, 47, 0.1);
    border-color: var(--green-brand);
    color: var(--ink-700);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.125);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-button {
    background: var(--paper-tint);
    color: var(--ink-700);
    font-weight: 500;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--green-field);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(162, 183, 47, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background: var(--paper-tint) !important;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer a {
    color: var(--ink-500);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--green-field);
}

/* Local Proof */
.local-proof {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Privacy Note */
.privacy-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Map Wrapper */
.map-wrapper {
    position: relative;
    background: #1a1a1a;
    border: 2px solid rgba(162, 183, 47, 0.3);
}

.map-wrapper iframe {
    display: block;
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1) !important;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green-field) 0%, var(--green-brand) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item.left .timeline-content {
    padding-right: calc(50% + 40px);
}

.timeline-item.right .timeline-content {
    padding-left: calc(50% + 40px);
}

.timeline-content {
    position: relative;
}

.timeline-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border: 4px solid var(--green-field);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-badge i {
    color: var(--green-field);
    font-size: 20px;
}

.timeline-item.left .timeline-badge {
    right: calc(50% - 25px);
}

.timeline-item.right .timeline-badge {
    left: calc(50% - 25px);
}

.timeline-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.timeline-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    top: 25px;
}

.timeline-item.left .timeline-card::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-card::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-time {
    display: inline-block;
    padding: 5px 15px;
    background: var(--green-field);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-title {
    color: var(--ink-900);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--ink-500);
    margin: 0;
    line-height: 1.6;
}

/* Timeline Mobile Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item.left .timeline-badge,
    .timeline-item.right .timeline-badge {
        left: 5px;
        right: auto;
    }
    
    .timeline-item.left .timeline-card::before,
    .timeline-item.right .timeline-card::before {
        left: -15px;
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .timeline-card {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .roi-calculator {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Trust Logos */
.trust-logos {
    gap: 2rem;
}

.trust-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.trust-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--green-field);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators {
    margin-bottom: -50px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--green-field);
}

/* Footer */
.footer {
    background: var(--ink-900) !important;
}

.footer .text-primary {
    color: var(--green-brand) !important;
}

.footer a:hover {
    color: var(--green-brand) !important;
}

/* Hide Enterprise Technology Partners section */
#partners-heading,
.powered-by-image {
    display: none !important;
}

/* Brand green semi-transparent highlight for mark tags */
mark {
    background-color: rgba(162, 183, 47, 0.2) !important;
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Hide breadcrumb navigation */
nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Footer Expandable Resources Section */
.footer-resources summary {
    list-style: none;
    outline: none;
    transition: color 0.3s ease;
}

.footer-resources summary::-webkit-details-marker {
    display: none;
}

.footer-resources summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-resources[open] summary::before {
    transform: rotate(90deg);
}

.footer-resources summary:hover {
    color: var(--yellow-brand) !important;
}

.footer-resources[open] > div {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Source Dropdown Styles */
.data-source-dropdown {
    display: inline-block;
}

.data-source-dropdown summary {
    list-style: none;
    outline: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.data-source-dropdown summary::-webkit-details-marker {
    display: none;
}

.data-source-dropdown summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.data-source-dropdown[open] summary::before {
    transform: rotate(90deg);
}

.data-source-dropdown summary:hover {
    color: var(--green-brand) !important;
}

.data-source-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    animation: fadeIn 0.3s ease-in-out;
}

.data-card {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.gauge-container-modal {
    display: inline-block;
}

.gauge-wrapper-modal {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.gauge-wrapper-modal .gauge {
    width: 100%;
    height: 100%;
}

.score-breakdown-modal {
    max-width: 500px;
    margin: 0 auto;
}

#riskResultsModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#riskResultsModal .modal-header {
    background: linear-gradient(135deg, var(--green-brand), var(--green-field));
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

#riskResultsModal .modal-title {
    font-weight: 600;
    color: white;
}

#riskResultsModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#riskResultsModal .btn-close:hover {
    opacity: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.form-control:focus {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 8px 24px rgba(0,0,0,.3);
    }
    
    .btn-primary {
        border-width: 3px;
    }
}

/* Estimate Tool Styles */
.estimate-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: 2rem auto;
    max-width: 900px;
}

.btn-group-custom {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.headcount-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--green-field);
    background: transparent;
    color: var(--green-field);
    transition: all 0.3s ease;
}

.headcount-btn:hover,
.headcount-btn.active {
    background: var(--green-field);
    color: white;
    transform: translateY(-2px);
}

.btn-group-toggle {
    display: flex;
    gap: 0.5rem;
}

.work-style-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid var(--green-field);
    background: transparent;
    color: var(--green-field);
    transition: all 0.3s ease;
}

.work-style-btn:hover,
.work-style-btn.active {
    background: var(--green-field);
    color: white;
    border-color: var(--green-field);
}

.result-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card-primary {
    background: linear-gradient(135deg, #a2b72f 0%, #8ba024 100%);
    color: white;
}

.result-card-warning {
    background: #fff5e6;
    border: 2px solid #ffb347;
    color: var(--ink-700);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.result-value-secondary {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    margin: 0.5rem 0;
}

.result-range {
    font-size: 0.95rem;
    opacity: 0.85;
}

.result-hint {
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-top: 0.5rem;
}

.estimate-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(162, 183, 47, 0.1);
    border-radius: 8px;
    color: var(--ink-700);
    font-size: 0.9rem;
}

.estimate-card input[type="number"] {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: border-color 0.3s ease;
}

.estimate-card input[type="number"]:focus {
    outline: none;
    border-color: var(--green-field);
}

.estimate-card label {
    color: var(--ink-700);
}

/* Risk Meter Transparency Panel Styles */
#data-transparency {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

#data-transparency .data-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

#data-transparency .data-card h6 {
    color: var(--green-field);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.25rem;
}

#data-transparency .data-card .small {
    line-height: 1.6;
}

#data-transparency .data-card strong {
    color: var(--ink-700);
    font-weight: 600;
}

.risk-controls {
    text-align: center;
    padding: 1rem 0;
}

.manual-location-input {
    max-width: 500px;
    margin: 0 auto;
}

#calculation-details {
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

#calculation-details pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Update risk meter key for new scoring */
.risk-key .key-item {
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* KAMR Modal Video Styles */
#kamrNewsModal .modal-content {
    background: white;
}

#kamrNewsModal .ratio {
    background: #000;
}

#kamrNewsModal iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Ensure video is visible and properly sized on all devices */
@media (max-width: 768px) {
    #kamrNewsModal .modal-body {
        padding: 2rem 1.5rem !important;
    }
    
    #kamrNewsModal img[alt="KAMR Studio 4"] {
        max-width: 250px !important;
    }
}

/* Print styles */
@media print {
    .utility-bar,
    .sticky-mobile-cta,
    .btn,
    .footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}
