/* =========================================
   Servly Website — Styles
   ========================================= */

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

:root {
    --green: #800020;
    --green-dark: #5c0017;
    --green-light: #f9e6eb;
    --dark: #1a1a2e;
    --text: #2d2d3a;
    --text-light: #6b6b7b;
    --bg: #ffffff;
    --bg-grey: #f7f8fa;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--green);
}

.nav-logo {
    text-decoration: none;
    margin: 0 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

/* =========================================
   SECTION BADGE (shared)
   ========================================= */
.section-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--bg-grey);
    color: var(--text);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    width: fit-content;
    margin: 0 auto 24px;
    border: 1px solid #eee;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fdf2f4 0%, #ffffff 40%, #faf0f2 80%, #ffffff 100%);
    padding-top: 120px;
}

.hero-gradient-left {
    position: absolute;
    top: 0;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 190, 200, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient-right {
    position: absolute;
    top: 0;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 160, 180, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-cities {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.green-text {
    color: var(--green);
    font-weight: 600;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #333;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 10px;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.5;
}

.hero-visuals {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: -15px;
    z-index: 1;
}

.hero-combined-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    z-index: 3;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
    padding: 100px 0 80px;
    background: #fff;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.stats-title {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    display: inline;
    letter-spacing: -1px;
}

.stat-suffix {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    display: inline;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

/* =========================================
   STICKY PHONE + AUTO-SCROLL SERVICES
   (Snabbit-style animation)
   ========================================= */

/* Phone drop-in keyframe */
@keyframes phoneDropIn {
    0% {
        transform: translateY(-110vh);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Infinite marquee scroll for service cards */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0) translateY(-50%);
    }
    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.phone-scroll-section {
    position: relative;
    background: var(--green);
    overflow: hidden;
    padding: 80px 0 100px;
}

.phone-scroll-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-scroll-heading {
    text-align: center;
    margin-bottom: 32px;
    z-index: 5;
}

.phone-scroll-heading .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.phone-scroll-title {
    color: #fff !important;
    font-size: clamp(28px, 3.5vw, 44px) !important;
    margin-bottom: 0 !important;
}

.phone-scroll-viewport {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone — drops from above */
.sticky-phone {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    filter: drop-shadow(0 25px 80px rgba(0, 0, 0, 0.35));
    /* start hidden above */
    transform: translateY(-110vh);
    opacity: 0;
}

.sticky-phone.animate-in {
    animation: phoneDropIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sticky-phone img {
    width: 280px;
    height: auto;
    /* No border-radius — transparent image, just the phone subject */
}

/* Marquee track — auto-scrolls behind the phone */
.services-scroll-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(0) translateY(-50%);
    display: flex;
    gap: 28px;
    will-change: transform;
    padding: 0 14px;
    animation: marqueeScroll 30s linear infinite;
}

.services-scroll-track:hover {
    animation-play-state: paused;
}

.scroll-service-card {
    flex-shrink: 0;
    width: 240px;
    transition: transform 0.3s ease;
}

.scroll-service-card:hover {
    transform: translateY(-8px);
}

.scroll-service-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.scroll-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scroll-service-card:hover .scroll-service-image img {
    transform: scale(1.05);
}

.scroll-service-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 14px;
    text-align: center;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    padding: 100px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 10px;
}

.step-card {
    background: var(--green);
    border-radius: 24px;
    padding: 36px 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 440px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.25);
}

.step-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.step-content {
    text-align: center;
    margin-bottom: 24px;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.step-words-container {
    margin-top: auto;
    width: 100%;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    flex-grow: 1;
    justify-content: center;
}

.step-word-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.step-word-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-word-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.detail-val {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.step-word-badge {
    align-self: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    width: 100%;
}

.payment-status {
    border-left-color: #43e97b;
    background: rgba(67, 233, 123, 0.1);
}

.payment-status .detail-val {
    color: #43e97b;
    font-weight: 600;
}

.step-word-confirm {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #43e97b;
    padding: 8px;
    background: rgba(67, 233, 123, 0.15);
    border-radius: 8px;
    border: 1px dashed rgba(67, 233, 123, 0.3);
}

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-grey);
}

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

.review-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    border: 2px dashed #e0e0e0;
}

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

.review-quote {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    opacity: 0.8;
    font-family: Georgia, serif;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

.review-location {
    font-size: 13px;
    color: var(--text-light);
}

.review-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

.review-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================================
   FAQS SECTION
   ========================================= */
.faqs-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #fdf2f4 100%);
}

.faqs-list {
    max-width: 750px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-grey);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: #ddd;
}

.faq-item.active {
    border-color: var(--green);
    background: #fff;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    color: var(--green);
}

.faq-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}

.faq-item.active .faq-icon-circle {
    background: var(--dark);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--green);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-cta {
    text-align: center;
    margin-bottom: 60px;
}

.footer-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.3;
}

.footer-buttons .store-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.footer-buttons .store-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-combined-img {
        max-width: 700px;
    }

    .sticky-phone img {
        width: 230px;
    }

    .scroll-service-card {
        width: 200px;
    }

    .scroll-service-image {
        height: 240px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 768px) {
    .nav-container {
        gap: 16px;
        padding: 12px 24px;
    }

    .nav-link {
        font-size: 13px;
    }

    .logo-text {
        font-size: 24px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-visuals {
        flex-direction: column;
        align-items: center;
    }

    .hero-combined-img {
        max-width: 100%;
    }

    .sticky-phone img {
        width: 200px;
        border-radius: 28px;
    }

    .scroll-service-card {
        width: 180px;
    }

    .scroll-service-image {
        height: 220px;
        border-radius: 16px;
    }

    .phone-scroll-viewport {
        min-height: 400px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .stat-number,
    .stat-suffix {
        font-size: 38px;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .nav-container {
        gap: 10px;
        padding: 10px 16px;
        justify-content: center;
    }

    .nav-link {
        font-size: 12px;
    }

    .logo-text {
        font-size: 20px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}
