/* ============================================
   HEM ARTISAN - Pixel-perfect clone styles
   ============================================ */

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

:root {
    --color-primary: #2200E0;
    --color-primary-hover: #1a00b3;
    --color-text: #000000;
    --color-text-body: #4C4C4C;
    --color-bg: #F5F5F7;
    --color-white: #ffffff;
    --color-card-border: #E5E5E5;
    --color-stars: #F59E0B;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Instrument Sans', 'Inter', sans-serif;
    --max-width: 1200px;
    --section-padding: 100px 24px;
    --border-radius: 16px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Hover for Cards */
.service-card,
.testimonial-card,
.method-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service-card:hover,
.testimonial-card:hover,
.method-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--color-primary) !important;
}

/* Gallery Hover Enhancement */
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1);
}

/* Button Pulse & Shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 150%;
    transition: all 0.6s ease;
}

.btn-primary:active {
    transform: scale(0.96);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    pointer-events: none;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    pointer-events: all;
    isolation: isolate;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
}

.navbar-cta {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar-cta:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.03);
}

.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.navbar-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--color-primary);
}

/* ---------- Hero Section ---------- */
.hero {
    padding-top: 140px;
    padding-bottom: 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(36px, 5.5vw, 68px);
    line-height: 1.08;
    color: var(--color-text);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 36px;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 14px 32px;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.03);
}

.hero-cta {
    margin-bottom: 60px;
}

.hero-image-wrapper {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

/* ---------- Services Ticker ---------- */
.ticker-section {
    background-color: var(--color-primary);
    padding: 20px 0;
    overflow: hidden;
    margin-top: 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-content span {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
}

.ticker-dot {
    font-size: 10px !important;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- About / Experience Section ---------- */
.about-section {
    padding: var(--section-padding);
    background-color: var(--color-bg);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 40px;
}

.about-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-card-border);
    margin-bottom: 48px;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

.testimonials-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.testimonials-subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-body);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.google-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 40px !important;
    background: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    border: 1px solid #E5E5E5 !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.google-badge:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #4285F4 !important;
}

.google-logo {
    display: flex !important;
    align-items: center !important;
}

.rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.rating-score {
    font-family: var(--font-body);
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #000000 !important;
}

.rating-stars {
    color: #F59E0B !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.testimonial-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.quote-mark {
    font-size: 36px;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 16px;
    font-family: serif;
}

.testimonial-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-card-border);
    margin-bottom: 16px;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
}

.author-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.stars {
    color: var(--color-stars);
    font-size: 18px;
    letter-spacing: 2px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 40px 24px;
    background-color: var(--color-white);
}

.cta-banner-btn {
    display: block;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 22px 40px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-banner-btn:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.01);
}

/* ---------- FAQ Section ---------- */
.faq-section {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

.faq-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.faq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}

.faq-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--color-text);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.faq-subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-body);
}

.faq-cta {
    flex-shrink: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-card-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-card-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
    transition: color 0.2s ease;
}

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

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

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

.faq-answer p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text-body);
    line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--color-bg);
    padding: 60px 24px 32px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
}

.footer-description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.65;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.footer-col ul li a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text-body);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-card-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 13px;
    color: var(--color-text-body);
}

/* ---------- 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) {
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 16px;
    }

    .navbar-cta {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }

    .navbar-inner {
        padding: 12px 20px;
        border-radius: 12px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-subtitle {
        opacity: 0.6;
    }

    .hero-image-wrapper {
        border-radius: 12px;
        margin: 0 16px;
    }

    .hero-image {
        border-radius: 12px;
    }

    .about-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .testimonial-card {
        padding: 24px;
    }

    .faq-header {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

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

    .cta-banner-btn {
        font-size: 16px;
        padding: 18px 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        width: 100%;
        text-align: center;
    }
}