.hero-section {
    position: relative;
    min-height: 60vh;
    /* Ensure the section takes the full viewport height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--section-padding) var(--page-content-padding);
    overflow: visible;
    padding-bottom: var(--section-padding);
}

/* Handle smaller screen heights */
@media (max-height: 700px) {
    .hero-section {
        min-height: auto;
        max-height: none;
        padding-top: 40px;
        padding-bottom: 40px;
        overflow-y: visible;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.hero-logo {
    display: none;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 80%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    z-index: 1;
    pointer-events: none;
}

.hero-section picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 2%,
        rgba(0, 0, 0, 0.7) 4%,
        black 8%,
        black 100%
    );
    mask: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 2%,
        rgba(0, 0, 0, 0.7) 4%,
        black 8%,
        black 100%
    );
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
    -webkit-mask-position: right;
    mask-position: right;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: revealFromRight 1.5s ease-out forwards;
}

/* Mountain reveal animation - soft feathered edge reveals from right to left */
@keyframes revealFromRight {
    0% {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
    100% {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

.hero-section picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/*yellow light at the top left corner of the h1 behind the first letter*/
.hero-content h1::before {
    content: '';
    position: absolute;
    width: 7vw;
    height: 7vw;
    z-index: -1;
    top: 2vw;
    left: -2vw;
    border-radius: 50%;

    background: var(--yellow);
    filter: blur(1.75vw);
}


.hero-content h1 {
    font-size: 3vw;
    /* Responsive font size */
    margin-bottom: 20px;
    z-index: 2;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3vw;
    margin-bottom: 30px;
    z-index: 2;
    line-height: 1.5;
}

.hero-section-cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2vw;
    font-weight: 400;
    color: var(--dark-text-for-light-bg);
    background-color: var(--button-primary);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.hero-section-cta-button:hover {
    background-color: var(--hover-light);
    color: var(--light-text-for-dark-bg);
    text-decoration: none;
}

/* Hero CTA Group - Stack primary form and secondary button */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.hero-consultation-form-wrapper {
    width: 100%;
}

/* Secondary CTA Button */
.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--light-blue);
    color: var(--dark-blue);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-secondary-cta:hover {
    background: var(--light-blue);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.hero-secondary-cta i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.hero-secondary-cta:hover i {
    transform: scale(1.1);
}

/* Highlight text styling - Pill Shaped Background */
.highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--yellow) 0%, #f4f5a8 100%);
    color: var(--dark-blue);
    padding: 0.25rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(237, 231, 66, 0.3);
}

/* Hero Consultation Wrapper */
/* Container for the email form and ratings section */
.hero-consultation-wrapper {
    position: relative;
    z-index: 10;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hero Consultation Table - ensures form and ratings have same width */
.hero-consultation-table {
    display: table;
    width: auto;
    table-layout: auto;
}

.hero-consultation-row {
    display: table-row;
}

.hero-consultation-form-row {
    display: table-row;
}

.hero-consultation-ratings-row {
    display: table-row;
}

/* Hero Consultation Form */
/* Email capture form with input and submit button */
.hero-consultation-form {
    position: relative;
    display: table-cell;
    padding-bottom: 20px;
    vertical-align: top;
}

/* Form input wrapper for better visual grouping */
.form-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 4px 4px 4px 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.form-input-wrapper:focus-within {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Name Input Field */
.hero-consultation-name-input {
    flex: 0 0 200px;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1.1vw;
    min-width: 0;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--dark-text-for-light-bg);
    height: auto;
    min-height: 52px;
    line-height: 1.5;
    box-sizing: border-box;
}

.hero-consultation-name-input:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255, 255, 255, 0.95);
}

.hero-consultation-name-input::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Email Input Field */
.hero-consultation-email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1.1vw;
    min-width: 0;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--dark-text-for-light-bg);
    height: auto;
    min-height: 52px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Focus state for better UX */
.hero-consultation-email-input:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255, 255, 255, 0.95);
}

.hero-consultation-email-input::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Submit Button */
.hero-consultation-submit-button {
    background: linear-gradient(135deg, var(--yellow) 0%, #f4f5a8 100%);
    color: var(--dark-blue) !important;
    padding: 16px 28px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 1.1vw;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(237, 231, 66, 0.2);
}

.hero-consultation-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 231, 66, 0.4);
    color: var(--dark-blue) !important;
    font-weight: 700 !important;
}

.hero-consultation-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(237, 231, 66, 0.3);
}

.hero-consultation-submit-button .button-text {
    display: inline-block;
}

.hero-consultation-submit-button i {
    font-size: 1vw;
    transition: transform 0.3s ease;
}

.hero-consultation-submit-button:hover i {
    transform: translateX(3px);
}

/* reCAPTCHA wrapper in hero form */
.hero-recaptcha-wrapper {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.hero-recaptcha-wrapper .g-recaptcha {
    display: inline-block;
}

/* Hide reCAPTCHA badge in hero form (v3 runs invisibly) */
.hero-recaptcha-wrapper .grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* Error Message */
.hero-consultation-form {
    position: relative;
}

.hero-consultation-form .error-message {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #dc3545;
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Consultation Ratings */
/* Social proof section displaying customer ratings from Clutch and Google */
.hero-consultation-ratings {
    display: table;
    width: 100%;
    border-spacing: 12px;
    table-layout: auto;
    margin: 0;
    padding: 0;
}

.rating-item {
    display: table-cell;
    vertical-align: middle;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: auto;
}

.rating-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.rating-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Star Rating Display */
.rating-stars {
    display: flex;
    gap: 3px;
    color: #FFB800;
    font-size: 1vw;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.rating-stars i {
    display: inline-block;
    transition: transform 0.2s ease;
}

.rating-item:hover .rating-stars i {
    transform: scale(1.1);
}

/* Rating Text Styling */
.rating-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9vw;
    line-height: 1.3;
}

.rating-value {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--dark-blue);
}

.rating-platform {
    font-weight: 500;
    font-size: 0.95em;
    color: var(--dark-text-for-light-bg);
    opacity: 0.75;
}

/* Rating Logos */
.rating-logo {
    height: auto;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.rating-item:hover .rating-logo {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Clutch logo specific styling */
/* Desktop specific logo sizing - both logos same width for consistency */
.clutch-logo,
.google-logo {
    width: 100px;
    height: auto;
    max-height: none;
}

/* Add enter animation */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: heroFadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta-group {
    animation: heroFadeInUp 0.8s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: auto;
        max-height: none;
        padding-top: var(--section-padding);
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero-cta-group {
        width: 100%;
    }

    .hero-secondary-cta {
        width: 100%;
        justify-content: center;
    }

    .hero-logo {
        display: block;
        max-width: 15vw;
        margin-bottom: 10vw;
    }


    .hero-section picture img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-image {
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        height: 100%;
        object-fit: cover;
    }

    .hero-content h1::before {
        content: '';
        position: absolute;
        width: 12vw;
        height: 12vw;
        z-index: -1;
        top: 17vw;
        left: -4vw;

        background: var(--yellow);
        filter: blur(2.5vw);
    }

    .hero-content h1 {
        font-size: 6vw;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-section-cta-button {
        padding: 2vw 4vw;
        font-size: 3.5vw;
    }

    /* Mobile: Switch table to block layout */
    .hero-consultation-table {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .hero-consultation-row {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .hero-consultation-form {
        display: block;
        width: 100%;
        max-width: 100%;
        padding-bottom: 20px;
    }

    /* Mobile: Stack form elements vertically for better touch targets */
    .form-input-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .form-input-wrapper:focus-within {
        box-shadow: none;
    }

    .hero-consultation-name-input,
    .hero-consultation-email-input {
        width: 100% !important;
        flex: none !important;
        font-size: 1rem;
        padding: 14px 18px;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 48px !important;
        height: 48px !important;
        line-height: 1.5;
        box-sizing: border-box;
        background: white;
        border: 2px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .hero-consultation-name-input:focus,
    .hero-consultation-email-input:focus {
        border-color: var(--light-blue);
        box-shadow: 0 4px 12px rgba(129, 164, 205, 0.15);
    }

    .hero-consultation-submit-button {
        width: 100%;
        height: auto;
        padding: 14px 20px;
        border-radius: 6px;
        font-size: 1rem;
    }

    .hero-consultation-submit-button i {
        font-size: 0.9rem;
    }

    /* reCAPTCHA wrapper mobile styles */
    .hero-recaptcha-wrapper {
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .hero-consultation-form .error-message {
        position: static;
        margin-top: 10px;
        text-align: left;
        width: 100%;
    }

    /* Mobile: Stack ratings vertically for better readability */
    .hero-consultation-ratings {
        display: block;
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
        border-spacing: 0;
    }

    .rating-item {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 14px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
        overflow: hidden;
    }

    .rating-item:last-child {
        margin-bottom: 0;
    }

    .rating-content {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .rating-stars {
        font-size: 1.2rem;
        flex-shrink: 0;
        gap: 4px;
    }

    .rating-text {
        font-size: 1rem;
        flex-direction: row;
        gap: 6px;
        align-items: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .rating-value {
        font-size: 1.2em;
        font-weight: 700;
    }

    .rating-platform {
        font-size: 1em;
        font-weight: 500;
    }

    .rating-logo {
        height: auto;
        max-height: 20px;
        max-width: 80px;
        object-fit: contain;
    }

    /* Mobile: Both logos same max-width - reduced for mobile */
    .clutch-logo,
    .google-logo {
        width: auto;
        max-width: 70px;
        height: auto;
        max-height: 60px;
    }
}

@media (max-width: 420px) {
    .rating-stars {
        font-size: 0.95rem;
    }

    .rating-text {
        font-size: 0.95rem;
    }

    .rating-value {
        font-size: 1em;
    }

    .clutch-logo,
    .google-logo {
        max-width: 64px;
    }
}
