/* Base Resets */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Tomorrow', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container limits the maximum width on large screens */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* relative z-index for positioning content over overlays */
.relative-z {
    position: relative;
    z-index: 2;
}

/* Header Settings */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    /* Extremely subtle shadow to separate from white hero background */
    position: relative;
    z-index: 10;
}

.header .logo {
    display: inline-block;
}

.header .logo img {
    height: 70px;
    /* Adjust height based on actual logo proportion */
    max-width: 100%;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center right;
    /* Keeps fabric mainly on right */
    background-repeat: no-repeat;
    padding: 40px 0 100px 0;
    /* Increased bottom padding to accommodate overlap */
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Invisible overlay by default, used for mobile readability */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

/* Typography styles matching design */
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    /* Fixed from 0.3 to prevent severe text overlap */
    color: #000;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin-bottom: 35px;
    text-transform: uppercase;
}

/* Pain points list items */
.pain-points {
    list-style: none;
    margin-bottom: 40px;
}

.pain-points li {
    background-color: #fff;
    padding: 10px 18px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #222;
    display: block;
    /* Block display set to explicitly 100% to ensure identical width background bars */
    width: 70%;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* slight soft shadow */
    font-weight: 500;
}

.pain-points li strong {
    font-weight: 700;
    color: #000;
}

/* Call to action button */
.cta-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 40px;
    /* pill shape */
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 2px solid #000;
}

.cta-button:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Hero description text under button */
.hero-description {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    max-width: 500px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .header .logo img {
        height: 35px;
    }

    .hero {
        padding: 30px 0 80px 0;
        /* Huge bottom padding specifically to prevent the overlapping form from colliding with text */
        background-position: 70% center;
        /* Adjust to capture more background texture safely */
    }

    /* White fade background for mobile to ensure text is readable over the fabric image */
    .hero-bg-overlay {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.4) 100%);
    }

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

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .pain-points li {
        font-size: 0.85rem;
        /* Smaller items */
        padding: 8px 12px;
        margin-bottom: 10px;
        width: 100%;
        /* Stretch on small screens if desired */
        white-space: normal;
        /* Make sure multi-line gets handled properly */
    }

    .cta-button {
        font-size: 1rem;
        padding: 14px 28px;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .pain-points li {
        font-size: 0.9rem;
    }
}

/* Form Section Overlap CSS */
.sample-form-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Negative margin pulls it up over the hero */
    padding-bottom: 60px;
}

.form-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft drop shadow */
    padding: 50px 60px;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 800;
    /* Bold font weight */
    text-transform: uppercase;
    color: #000;
    margin-bottom: 35px;
}

.sample-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* consistent spacing */
}

.form-group {
    width: 100%;
}

.sample-form input,
.sample-form select {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    transition: border-color 0.3s ease;
}

.sample-form input::placeholder,
.sample-form select::placeholder {
    color: #777;
}

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

.sample-form select.select-placeholder {
    color: #777;
    /* Default color identical to placeholder */
}

/* Custom select dropdown arrow */
.sample-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%3E%3Cpath%20stroke%3D%22%23777%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20d%3D%22M1%201l4%204%204-4%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right center;
}

.sample-form select option {
    color: #333;
}

.block-btn {
    width: 100%;
    margin-top: 15px;
    padding: 18px;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0;
    border-radius: 30px;
}

@media screen and (max-width: 768px) {
    .sample-form-section {
        margin-top: -40px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 30px;
    }

    .form-card {
        padding: 25px 15px;
    }

    .form-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

/* Custom Content Sections */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 50px;
}

/* Cost Section */
.cost-section {
    background-color: #EFF1F3;
    padding: 80px 0;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.cost-item {
    padding: 0 15px;
}

.cost-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
}

.cost-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* Familiar Section */
.familiar-section {
    background-color: #fff;
    padding: 80px 0;
}

.familiar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.familiar-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft drop shadow similar to screenshot */
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.familiar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    /* Subtle float effect */
}

.familiar-card .icon-wrap {
    flex-shrink: 0;
    margin-top: 2px;
}

.familiar-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* Mobile Responsiveness for Content Sections */
@media screen and (max-width: 992px) {

    .cost-grid,
    .familiar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .cost-section,
    .familiar-section {
        padding: 40px 0;
    }

    .cost-grid,
    .familiar-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 25px;
    }

    .cost-item h3 {
        font-size: 1.8rem;
    }
}

/* Why Section */
.why-section {
    background-image: url('images/why-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background-color: #EFF1F3;
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
    padding-top: 50px;
    /* space for overlapping icon */
    margin-top: 30px;
    /* space for icon overlapping top edge */
}

/* absolute positioning for the badge */
.why-card .card-icon {
    position: absolute;
    top: -30px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-list {
    list-style: none;
    padding-left: 0;
}

.card-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

/* Custom bullet for .card-list */
.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
}

/* Zero Risk Section */
.zero-risk-section {
    background-color: #fff;
    padding: 100px 0;
}

.zero-risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.zero-risk-content .section-title {
    margin-bottom: 50px;
}

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

.zero-risk-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.zero-risk-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
}

.zero-risk-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
}

.zero-risk-image img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive updates for new grids */
@media screen and (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

@media screen and (max-width: 768px) {

    .why-section,
    .zero-risk-section,
    .stats-section,
    .testimonials-section {
        padding: 40px 0;
        /* Add global compact spacing */
    }

    .zero-risk-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-card {
        padding-top: 45px;
    }

    .zero-risk-content .section-title {
        text-align: center;
    }
}

/* -------------------------------------------
   FINAL SECTIONS
------------------------------------------- */

/* Stats Section */
.stats-section {
    background-image: url('images/trusted-bg.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    background-color: #111;
    background-blend-mode: overlay;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

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

.text-white {
    color: #fff !important;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 0;
}

.stat-item {
    text-align: center;
    color: #fff;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.95rem;
    line-height: 1.3;
    opacity: 0.9;
    font-weight: 500;
}

/* Shared Background Wrapper */
.shared-bg-wrapper {
    padding-bottom: 100px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0 60px 0;
}

.testimonials-section .section-title {
    text-transform: none;
    /* specific from design */
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
    flex: 1;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    margin-bottom: 25px;
}

.testimonial-card .author {
    font-size: 1rem;
    color: #000;
}

/* Process Section */
.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.underline-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.underline-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0a66c2;
    /* Solid blue underline matching image */
}

.process-header p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.process-steps-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* Cards have small gap, arrows in between */
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
}

.process-step:last-child {
    flex: 0 1 160px;
    /* Disable growing for the last card so it doesn't span out */
}

.step-card {
    background-color: #F8F9FA;
    /* light grey matches previous cards */
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    flex-grow: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.step-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
    display: block;
}

.step-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step-card p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background-color: #111;
    /* standard dark background for this */
    padding-top: 0;
    /* Changed to 0 so image overlaps nicely above */
    overflow: visible;
    /* allow image to overlap outside */
}

.cta-grid {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.cta-content {
    flex: 1 1 55%;
    /* Give it more room horizontally */
    padding: 80px 0;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    max-width: 800px;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
    /* Force buttons into a single row */
}

.btn-solid-white {
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    font-weight: 800;
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    /* Prevent button text from breaking into two lines */
}

.btn-solid-white:hover {
    background-color: #ddd;
}

.cta-contact {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cta-image {
    flex: 1 1 45%;
    align-self: flex-end;
    /* Locks it to the bottom of the section */
    margin-bottom: -5px;
    margin-top: -70px;
    /* Forces overlap with section above */
    position: relative;
    z-index: 5;
}

.cta-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    display: block;
    margin: 0 auto;
}

/* Footer Section */
.footer {
    background-color: #0a0a0a;
    color: #999;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #222;
}

.footer p {
    font-size: 0.95rem;
}

/* Final Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .stat-item h3 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 1024px) {
    .stats-grid {
        gap: 20px 0;
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 30%;
        border-right: none;
        margin-bottom: 20px;
    }

    .process-steps-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .process-step {
        display: flex;
        flex-direction: column;
        margin-bottom: 0px;
    }

    .process-step:last-child {
        flex: unset;
    }

    .step-arrow {
        display: none;
        /* Hide arrows when stacking in grid */
    }

    .step-card {
        min-height: auto;
        padding: 20px 10px;
    }

    .cta-grid {
        flex-direction: column-reverse;
        /* Renders Image First */
        gap: 15px;
        /* Compact gap */
    }

    .cta-content {
        padding: 0 0 40px 0;
        /* Compacted height */
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-contact {
        justify-content: center;
    }

    .cta-image {
        align-self: center;
        margin-top: -30px;
        /* Kept slight overlap */
    }
}

@media screen and (max-width: 768px) {
    .stat-item {
        flex: 1 1 45%;
    }

    .testimonials-grid {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 1.2rem;
        /* Perfectly matched to hero mobile font */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .cta-subtitle {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .btn-solid-white {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        white-space: normal;
        /* allow wrap if phone is insanely thin */
    }

    .cta-contact {
        flex-direction: row;
        /* Force them into one line */
        justify-content: center;
        flex-wrap: wrap;
        /* Keep responsive */
        gap: 15px;
    }

    .contact-item {
        font-size: 0.9rem;
        /* Tiny size to ensure they fit side-by-side */
        white-space: nowrap;
    }
}