/* General Body and Container Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-navy);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensure box-sizing is applied to body */
}

/* Universal box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container takes full width up to max-width */
}

/* Color Variables */
:root {
    --solar-orange: #F76C24;
    --solar-orange-light: #FFECD9;
    --dark-navy: #1A2E35;
    --light-gray: #F4F7F6;
    --gray-400: #9AA3A6;
    --white: #FFFFFF;
    --green-accent: #28a745;
    /* For checkmarks */
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section --- */
.commercial-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(247, 108, 36, 0.16), transparent 28%),
        linear-gradient(135deg, #122b32 0%, var(--dark-navy) 54%, #0f252b 100%);
    padding: clamp(70px, 8vw, 108px) 0;
    color: var(--white);
    overflow: hidden;
    position: relative;
    width: 100%; /* Ensure hero section does not cause horizontal scroll */
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    justify-content: space-between;
    gap: clamp(36px, 6vw, 72px);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 1;
    min-width: 0; /* Allow flex item to shrink below its content size */
}

.hero-badge {
    background: linear-gradient(135deg, var(--solar-orange), #ff9a3d);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(247, 108, 36, 0.25);
}

.hero-title {
    font-size: clamp(3rem, 5.2vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 22px;
    word-break: break-word; /* Allow long words to break */
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 34px;
    max-width: 590px;
    word-break: break-word; /* Allow long words to break */
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 34px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary-lg,
.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 190px; /* Ensure buttons don't get too small */
    min-height: 58px;
}

.btn-primary-lg {
    background-color: var(--solar-orange);
    color: var(--white);
    border: 2px solid var(--solar-orange);
}

.btn-primary-lg:hover {
    background-color: #ff7a2b;
    border-color: #ff7a2b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(247, 108, 36, 0.28);
}

.btn-secondary-lg {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

.hero-visual {
    width: 100%;
    position: relative;
    min-width: 0; /* Allow flex item to shrink */
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    isolation: isolate;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 25, 30, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-visual-badge {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--white);
}

.hero-visual-badge span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.hero-visual-badge strong {
    font-size: 1.05rem;
    color: #ffd39b;
    white-space: nowrap;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 610px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 82px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.stat-value {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--solar-orange);
    line-height: 1;
}

.stat-label {
    min-width: 0;
    max-width: 130px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 0;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px; /* Add padding to prevent text touching edges on very small screens */
}

.section-header h2 {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 20px;
    word-break: break-word;
}

.section-header p {
    font-size: 1.1em;
    color: var(--gray-400);
    word-break: break-word;
}


/* --- Business Case Section --- */
.business-case-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for better fit */
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-container {
    color: var(--solar-orange);
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.8em;
    color: var(--dark-navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--solar-orange);
    text-decoration: none;
    font-size: 0.9em;
}

.learn-more-link i {
    font-size: 0.8em;
}


/* --- Industries Section --- */
.industries-section {
    padding: 100px 0;
    background-color: var(--white);
}

.industry-filters {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--dark-navy);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--solar-orange-light);
    color: var(--solar-orange);
}

.filter-btn.active {
    background-color: var(--solar-orange);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(247, 108, 36, 0.3);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted minmax for better fit on smaller screens */
    gap: 25px;
}

.industry-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    min-width: 0; /* Allow card to shrink */
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

.industry-icon-container {
    font-size: 2.5em;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.industry-card h3 {
    font-size: 1.4em;
    color: var(--dark-navy);
    margin-bottom: 10px;
    font-weight: 700;
}


/* --- Success Story Section --- */
.success-story-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
    align-items: stretch;
    gap: 0;
    background-color: var(--white);
    border: 1px solid rgba(26, 46, 53, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(26, 46, 53, 0.09);
    overflow: hidden;
    isolation: isolate;
}

.story-image-container {
    position: relative;
    min-width: 0; /* Allow flex item to shrink */
    overflow: hidden;
}

.case-study-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #10272f;
}

.case-study-video,
.case-study-video img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    border: 0;
}

.case-study-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 39, 47, 0.02) 38%, rgba(16, 39, 47, 0.48) 100%);
    pointer-events: none;
    z-index: 1;
}

.case-study-media-badge {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 48px);
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-navy);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.case-study-media-badge i {
    color: var(--solar-orange);
}

.story-content-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 3.6vw, 48px);
    min-width: 0; /* Allow flex item to shrink */
}

.story-content-card h2 {
    font-size: clamp(2rem, 3.1vw, 2.65rem);
    color: var(--dark-navy);
    margin: 0 0 18px;
    font-weight: 800;
    line-height: 1.08;
    word-break: break-word;
}

.story-content-card p {
    color: var(--gray-400);
    margin: 0 0 28px;
    max-width: 360px;
    word-break: break-word;
}

.metrics-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(26, 46, 53, 0.08);
    border-bottom: 1px solid rgba(26, 46, 53, 0.08);
}

.metric {
    text-align: left;
    min-width: 0;
    flex: 0 1 auto;
}

.metric-label {
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.metric .metric-value {
    font-size: clamp(1.22rem, 1.55vw, 1.45rem);
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.05;
    white-space: nowrap;
}

.case-study-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--solar-orange);
    color: var(--white);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(247, 108, 36, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.case-study-link:hover,
.case-study-link:focus-visible {
    color: var(--white);
    background: #ff7a2b;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(247, 108, 36, 0.3);
}

.case-study-link i {
    font-size: 0.82rem;
}

/* --- CTA Footer Section --- */
.cta-footer-section {
    background-color: var(--dark-navy);
    padding: 100px 0;
    color: var(--white);
    width: 100%;
}

.cta-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow items to wrap */
}

.cta-content {
    flex: 1;
    max-width: 600px;
    min-width: 0; /* Allow flex item to shrink */
}

.cta-content h2 {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    word-break: break-word;
}

.cta-content p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    word-break: break-word;
}

.trust-signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item i {
    color: var(--green-accent);
    font-size: 1.2em;
}

.cta-form-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    /* min-width: 380px; Removed or adjusted to prevent horizontal scroll */
    min-width: auto; /* Allow the card to shrink */
    width: 100%; /* Take full width on smaller screens */
    max-width: 380px; /* Retain max-width for larger screens */
}

.inline-capture-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.inline-capture-form input[type="email"] {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.inline-capture-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-submit {
    background-color: var(--solar-orange);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #e06020;
}

.btn-multi-step-modal {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.btn-multi-step-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* --- Responsive Adjustments --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: 34px;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .stat-value {
        font-size: 2em;
    }

    .stat-label {
        font-size: 0.8em;
    }

    /* Section Header */
    .section-header h2 {
        font-size: 2.2em;
    }

    /* Business Case Section */
    .feature-card {
        padding: 30px;
    }

    .feature-card h3 {
        font-size: 1.5em;
    }

    /* Success Story Section */
    .story-grid {
        grid-template-columns: 1fr;
        margin: 0; /* Remove horizontal margin that might cause issues */
    }

    .story-image-container,
    .story-content-card {
        width: 100%;
    }

    .case-study-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .story-content-card {
        padding: 30px;
    }

    .story-content-card h2 {
        font-size: 2em;
    }

    /* CTA Footer Section */
    .cta-grid {
        flex-direction: column;
        gap: 40px;
    }

    .cta-content {
        text-align: center;
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 2.5em;
    }

    .trust-signals {
        justify-content: center;
        text-align: left;
    }

    .cta-form-card {
        min-width: unset;
        width: 100%;
        max-width: 450px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* General */
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .commercial-hero {
        padding: 60px 0;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn-primary-lg,
    .btn-secondary-lg {
        width: 100%;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .stat-item {
        justify-content: center;
    }

    .stat-value {
        font-size: 2.2em;
    }

    .stat-label {
        text-align: left;
    }

    .hero-visual {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .hero-visual-badge {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8em;
    }

    .section-header p {
        font-size: 1em;
    }

    /* Business Case Section */
    .business-case-section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-card h3 {
        font-size: 1.3em;
    }

    /* Industries Section */
    .industries-section {
        padding: 60px 0;
    }

    .industry-filters {
        margin-bottom: 30px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .filter-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .industries-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 20px;
    }

    /* Success Story Section */
    .success-story-section {
        padding: 60px 0;
    }

    .story-content-card {
        padding: 25px;
    }

    .case-study-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .story-content-card h2 {
        font-size: 1.8em;
    }

    .metrics-grid {
        justify-content: space-between;
        gap: 12px;
    }

    .metric {
        min-width: 0;
    }

    .metric .metric-value {
        font-size: 1.25em;
    }

    .case-study-link {
        width: calc(100% - 62px);
        max-width: 290px;
    }

    /* CTA Footer Section */
    .cta-footer-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2em;
    }

    .cta-content p {
        font-size: 1em;
    }

    .cta-form-card {
        padding: 30px;
        max-width: 100%; /* Ensure it takes full width on mobile */
    }

    .inline-capture-form input[type="email"],
    .btn-submit,
    .btn-multi-step-modal {
        font-size: 1em;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8em;
    }
    .hero-badge {
        font-size: 0.75em;
    }
    .btn-primary-lg,
    .btn-secondary-lg {
        padding: 12px 20px;
        font-size: 1em;
    }
    .stat-value {
        font-size: 1.8em;
    }
    .section-header h2 {
        font-size: 1.6em;
    }
    .feature-card h3 {
        font-size: 1.2em;
    }
    .industry-card h3 {
        font-size: 1.2em;
    }
    .story-content-card h2 {
        font-size: 1.6em;
    }
    .metric .metric-value {
        font-size: 1.08em;
    }
    .metrics-grid {
        gap: 12px;
    }
    .cta-content h2 {
        font-size: 1.8em;
    }
}
