/* ============================================
   THE SQUEAKY CLEAN COMPANY
   Commercial & Janitorial Cleaning Services
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #37ca37;
    --green-dark: #2ba82b;
    --dark: #1a1a2e;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Shared Styles --- */
.section__label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 12px;
    text-align: center;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 640px;
    line-height: 1.7;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 202, 55, 0.3);
}

.btn--outline {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn__icon {
    width: 18px;
    height: 18px;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.header--scrolled {
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.nav__logo-img {
    height: 100px;
    width: auto;
}

.header--scrolled .nav__logo-img {
    height: 75px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav__link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.nav__link--cta {
    background: var(--green);
    color: var(--white);
    margin-left: 8px;
    font-weight: 600;
}

.nav__link--cta:hover {
    background: var(--green-dark);
    color: var(--white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero.webp') center center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.4) 50%, rgba(44, 44, 68, 0.5) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 0 80px;
}

.hero__label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--green);
    padding: 32px 0;
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.trust-bar__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.trust-bar__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-bar__divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    color: var(--green);
    margin: 0 auto 20px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: left;
}

.service-card__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
}

.service-card__list li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

/* --- Why Choose Us --- */
.why-us {
    padding: 100px 0;
    background: var(--gray-50);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.why-us__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.why-us__card:nth-child(2) { transition-delay: 0.1s; }
.why-us__card:nth-child(3) { transition-delay: 0.2s; }
.why-us__card:nth-child(4) { transition-delay: 0.1s; }
.why-us__card:nth-child(5) { transition-delay: 0.2s; }
.why-us__card:nth-child(6) { transition-delay: 0.3s; }

.why-us__card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.why-us__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.why-us__number {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 16px;
}

.why-us__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.why-us__card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* --- Process --- */
.process {
    padding: 100px 0;
    background: var(--white);
}

.process__steps {
    max-width: 640px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.process__step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
}

.process__step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process__step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.process__step-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    padding-top: 2px;
}

.process__step-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    text-align: left;
}

.process__connector {
    width: 2px;
    height: 32px;
    background: var(--gray-200);
    margin-left: 23px;
}

/* --- Testimonial --- */
.testimonial {
    padding: 80px 0;
    background: var(--dark);
}

.testimonial__quote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.testimonial__quote p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 24px;
}

.testimonial__quote cite {
    font-style: normal;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--green);
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}

.about__content {
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.about__content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about__content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: left;
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    justify-content: center;
}

.about__stat strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.about__stat span {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.contact__info {
    text-align: left;
}

.contact__info .section__label,
.contact__info .section__title {
    text-align: left;
}

.contact__info .section__subtitle {
    margin-bottom: 0;
}

.contact__info p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 16px;
    line-height: 1.8;
}

.contact__details {
    margin-top: 32px;
}

.contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
}

.contact__phone svg {
    width: 22px;
    height: 22px;
}

.contact__phone:hover {
    color: var(--green-dark);
}

.contact__hours {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 8px !important;
}

/* --- Form --- */
.contact__form-wrapper {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form__group input,
.form__group select,
.form__group textarea {
    font-family: var(--font-main);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition);
}

.form__group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(55, 202, 55, 0.1);
}

.form__group textarea {
    resize: vertical;
    min-height: 100px;
}

.form__success {
    text-align: center;
    padding: 48px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.form__success svg {
    width: 56px;
    height: 56px;
    color: var(--green);
    margin: 0 auto 20px;
}

.form__success h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.form__success p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form__success-phone {
    margin-top: 16px !important;
    font-weight: 600;
}

.form__success-phone a {
    color: var(--green);
}

.form__error {
    padding: 12px 16px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.form__error--visible {
    display: block;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li,
.footer ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

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

.footer__bottom {
    padding: 20px 0;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* --- No-JS Fallback --- */
.service-card,
.why-us__card,
.process__step,
.about__content {
    /* JS adds animate-in class; if JS fails, show content anyway */
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .why-us__card,
    .process__step,
    .about__content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- Animations --- */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Mobile Menu Overlay --- */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav__overlay--visible {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #232340;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 12px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 1001;
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1.0625rem;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 24px;
        padding-top: 10px;
        padding-bottom: 10px;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: 100px 0 60px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .trust-bar__inner {
        flex-direction: column;
        gap: 20px;
    }

    .trust-bar__divider {
        width: 40px;
        height: 1px;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__stats {
        flex-direction: column;
        gap: 24px;
    }

    .contact__info {
        text-align: center;
    }

    .contact__info .section__label,
    .contact__info .section__title {
        text-align: center;
    }

    .contact__form-wrapper {
        padding: 20px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
