html {
    scroll-behavior: smooth;
}

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

:root {
    /* Colors */
    --primary-blue: #2563EB;
    --light-blue: #3B82F6;
    --dark-text: #1F2937;
    --text-gray: #4B5563;
    --border-gray: #D1D5DB;
    --light-gray: #666666;
    --green-success: #059669;
    --green-dot: #10b981;
    --bg-light: #F9FAFB;
    --bg-light-blue: #EFF6FF;
    --orange: #e73e16;

    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
}

/* Header */
.header {
    background: white;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-gray);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-info {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
}

.google-reviews-section {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.google-reviews-section a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.google-reviews-section a:hover {
    opacity: 0.8;
}

.google-reviews-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.reviews-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--dark-text);
    font-weight: 500;
}

.rating-line {
    font-size: 15px;
    color: var(--light-gray);
}

.reviews-line {
    font-size: 16px;
    font-weight: 600;
}

.availability-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: var(--spacing-2xl);
    border-left: 1px solid var(--border-gray);
}

.availability-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--green-success);
    font-weight: 500;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    }
}

/* Note: Using hex values in keyframes for better browser compatibility */

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-dot);
    border-radius: 50%;
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: calc(var(--spacing-sm) * -1);
}

.phone-number a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.phone-number a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: url('../img/webtim-icon.png') no-repeat 48px bottom,
                 linear-gradient(90deg, #1447E6 0%, #51A2FF 100%);
    padding: var(--spacing-3xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-left {
    color: white;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.trust-badge:hover {
    opacity: 0.8;
}

.google-logo-circle {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-logo {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.rating-info {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
}

.stars {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.rating-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    line-height: 1;
}

.rating-text strong {
    margin-left: var(--spacing-sm);
}

.hero-left h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-left p {
    font-size: 21px;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
}

.hero-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-checklist li {
    display: block;
    font-size: 20px;
    font-weight: 500;
    padding-left: var(--spacing-xl);
    position: relative;
}

.checkmark {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
    backdrop-filter: blur(10px);
    max-width: 540px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.testimonial:hover {
    opacity: 0.8;
}

.testimonial-content {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}

.hero-left .testimonial-text {
    font-size: 16px;
    margin-bottom: 0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 64px;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author {
    font-weight: 600;
    font-size: 15px;
}

.testimonial-stars {
    height: 16px;
    width: auto;
    object-fit: contain;
}

/* Form Box */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sway 2s ease-in-out infinite;
    position: absolute;
    left: -80px;
    bottom: 90px;
}

.hero-arrow .arrow-image {
    width: 80px;
    height: 80px;
}

.form-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: var(--spacing-sm);
    text-align: left;
    line-height: 1.3;
}

.hero-right iframe {
    border: none;
    border-radius: 8px;
    background: white;
}

/* Logos Section */
.logos-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light-blue);
}

.carousel-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.carousel-track {
    display: flex;
    gap: var(--spacing-3xl);
    will-change: transform;
    animation: scroll-carousel 50s linear 1;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    flex-shrink: 0;
    width: calc(16.667% - 50px);
    min-width: calc(16.667% - 50px);
    overflow: visible;
}

.logo-item img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    max-width: 70%;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.cta-subhead {
    max-width: 70%;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    max-width: 70%;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    height: 70%;
    width: 1px;
    background: var(--border-gray);
    top: 0;
}

.feature-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
}

/* Two Column Section */
.two-column-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light-blue);
}

.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.two-column-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.section-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    width: fit-content;
}

.two-column-left h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.3;
}

.two-column-left p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.two-column-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.two-column-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.cta-button {
    display: block;
    width: 100%;
    background: var(--orange);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    width: 100%;
}

.contact-section span {
    font-size: 16px;
    color: var(--dark-text);
}

.contact-phone {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-phone:hover {
    opacity: 0.8;
}

/* Steps Section */
.steps-section {
    padding: var(--spacing-3xl) 0;
    background: url('../img/webtim-icon.png') no-repeat 48px bottom,
                 linear-gradient(90deg, #1447E6 0%, #51A2FF 100%);
}

.steps-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps-heading {
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    line-height: 1.3;
    max-width: 900px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    width: 100%;
    max-width: 1000px;
    margin-bottom: var(--spacing-3xl);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

.step-icon svg {
    width: 50px;
    height: 50px;
}

.step-number {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.step-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.step-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.steps-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.steps-cta-button {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.steps-cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.steps-phone-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
}

.steps-phone-section span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
}

.steps-phone {
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.steps-phone:hover {
    opacity: 0.8;
}

.steps-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sway 2s ease-in-out infinite;
    margin-top: -55px;
}

.arrow-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.8;
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* Responsive Design */
/* Note: CSS custom properties cannot be used in media query conditions, so breakpoints are hard-coded here */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .header-info {
        flex-direction: column;
        gap: var(--spacing-lg);
        width: 100%;
    }

    .google-reviews-section {
        justify-content: center;
    }

    .availability-section {
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-arrow {
        display: none;
    }

    .hero-left h1 {
        font-size: 38px;
    }

    .trust-badge {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .google-logo-circle {
        width: 27px;
        height: 27px;
    }

    .google-logo {
        width: 16px;
        height: 16px;
    }

    .stars {
        height: 18px;
    }

    .rating-text {
        font-size: 15px;
    }

    .carousel-track {
        gap: var(--spacing-2xl);
    }

    .logo-item {
        width: calc(25% - 30px);
        min-width: calc(25% - 30px);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .two-column-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .steps-heading {
        font-size: 32px;
        margin-bottom: var(--spacing-2xl);
    }

    .steps-grid {
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-2xl);
    }

    .step-title {
        font-size: 18px;
    }

    .step-description {
        font-size: 15px;
    }

}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--orange);
        padding: var(--spacing-sm) var(--spacing-md);
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-bottom-bar a {
        display: block;
        text-align: center;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 21px;
        padding: var(--spacing-md);
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    body {
        padding-bottom: 70px;
    }

    .header-content {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    .logo-image {
        height: 35px;
    }

    .header-info {
        gap: 0;
        margin-left: auto;
        width: auto;
        flex-direction: row;
    }

    .google-reviews-section {
        display: none;
    }

    .availability-section {
        padding-left: 0;
        border-left: none;
        align-items: flex-end;
    }

    .availability-badge {
        justify-content: flex-end;
    }

    .badge-prefix {
        display: none;
    }

    .phone-number {
        font-size: 20px;
        margin-top: calc(var(--spacing-sm) * -1);
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-left h1 {
        font-size: 30px;
        margin-bottom: var(--spacing-sm);
    }

    .hero-left p {
        font-size: 16px;
        margin-bottom: var(--spacing-md);
    }

    .hero-checklist {
        gap: var(--spacing-md);
    }

    .hero-checklist li {
        font-size: 16px;
    }

    .trust-badge {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: 0;
    }

    .hero-right {
        padding: var(--spacing-md);
    }

    .testimonial {
        padding: var(--spacing-md);
    }

    .google-logo-circle {
        width: 26px;
        height: 26px;
    }

    .google-logo {
        width: 16px;
        height: 16px;
    }

    .stars {
        height: 20px;
    }

    .rating-text {
        font-size: 16px;
    }

    .carousel-wrapper {
        padding: 0 var(--spacing-md);
    }

    .carousel-track {
        gap: var(--spacing-lg);
        animation-duration: 30s;
    }

    .logo-item {
        width: calc(33.333% - 17px);
        min-width: calc(33.333% - 17px);
        min-height: 60px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .feature-item h3 {
        font-size: 16px;
    }

    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-section h2 {
        max-width: 100%;
        font-size: 24px;
    }

    .cta-subhead {
        max-width: 100%;
        font-size: 16px;
        margin-bottom: var(--spacing-xl);
    }

    .features-grid {
        max-width: 100%;
        gap: var(--spacing-md);
    }

    .feature-item:not(:last-child)::after {
        display: none;
    }

    .feature-item h3 {
        font-size: 14px;
    }

    .two-column-section {
        padding: var(--spacing-2xl) 0;
    }

    .two-column-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .two-column-left h2 {
        font-size: 24px;
    }

    .two-column-left p {
        font-size: 15px;
    }

    .cta-button {
        font-size: 16px;
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .steps-section {
        padding: var(--spacing-2xl) 0;
    }

    .steps-heading {
        font-size: 24px;
        margin-bottom: var(--spacing-2xl);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-2xl);
    }

    .step-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-lg);
    }

    .step-icon svg {
        width: 45px;
        height: 45px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-description {
        font-size: 14px;
    }

    .steps-cta-button {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 16px;
    }

    .steps-phone {
        font-size: 24px;
    }

    .steps-cta {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .steps-phone-section {
        flex-direction: column;
        gap: var(--spacing-xs);
        justify-content: center;
    }

    .steps-arrow {
        display: none;
    }
}
