/* ============================================
   TOK TOK LAUNDRY — Styles
   Dark Precision Theme System
   ============================================ */

/* ============================================
   1. DESIGN TOKENS & THEME VARIABLES
   ============================================ */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #1a3a5f;
    --bg-secondary: #253d5c;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --accent: #d4a574;
    --accent-hover: #e5b87d;
    --border: #0f2541;

    /* Light Theme */
    --light-bg-primary: #f9f7f3;
    --light-bg-secondary: #ffffff;
    --light-text-primary: #1a3a5f;
    --light-text-secondary: #666666;
    --light-border: #e0ddd6;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease-out;
    --transition-slow: 300ms ease-out;
}

/* Light theme toggle */
html[data-theme="light"] {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --border: var(--light-border);
}

/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--text-secondary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   4. LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    padding: var(--space-lg) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.nav {
    flex: 1;
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: block;
    }

    .nav-list {
        display: flex;
        gap: var(--space-2xl);
    }
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--accent);
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

html[data-theme="light"] .icon-sun {
    display: block;
}

html[data-theme="light"] .icon-moon {
    display: none;
}

.btn-cta {
    flex: 0 0 auto;
}

/* ============================================
   6. BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px var(--space-lg);
    min-height: 44px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-large {
    padding: 14px var(--space-2xl);
    font-size: 1rem;
    min-height: 48px;
}

/* ============================================
   7. HERO SECTION
   ============================================ */

.hero {
    padding: var(--space-4xl) 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    max-width: 600px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-title {
    margin-bottom: var(--space-lg);
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .hero-cta-group {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

/* ============================================
   8. SERVICES SECTION
   ============================================ */

.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast);
}

.service-card:hover {
    border-color: var(--accent);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--accent);
}

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

.service-title {
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.services-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ============================================
   9. WHY SATUAN SECTION
   ============================================ */

.satuan-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.benefit-item {
    text-align: center;
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--accent);
    color: var(--bg-primary);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.benefit-item h3 {
    margin-bottom: var(--space-sm);
}

.benefit-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   10. PRICING SECTION
   ============================================ */

.pricing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.pricing-card {
    padding: var(--space-2xl);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.pricing-card h3 {
    margin-bottom: var(--space-lg);
    color: var(--accent);
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-list span:last-child {
    color: var(--accent);
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   11. HOW IT WORKS SECTION
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--bg-secondary);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--accent);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.step h3 {
    margin-bottom: var(--space-sm);
}

.step p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   12. GLOSSARY SECTION
   ============================================ */

.glossary {
    background-color: var(--bg-secondary);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.glossary-item {
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.glossary-item h4 {
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.glossary-item p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   13. FAQ SECTION
   ============================================ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-lg);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    padding: var(--space-md) 0;
    transition: color var(--transition-fast);
}

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

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: var(--space-md) 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer.open {
    display: block;
    animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   14. CTA BLOCK
   ============================================ */

.cta-block {
    background-color: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--space-lg);
}

.cta-content p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-2xl);
}

/* ============================================
   15. FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--accent);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ============================================
   16. MODAL
   ============================================ */

.wa-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.wa-modal.open {
    display: flex;
    animation: fadeIn 300ms ease-out;
}

.wa-modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
}

.wa-modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.wa-modal-close:hover {
    color: var(--accent);
}

.wa-modal-body h3 {
    margin-bottom: var(--space-md);
}

.wa-modal-body p {
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

/* ============================================
   17. ANIMATIONS
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    animation: slideUp 600ms ease-out forwards;
}

[data-animate]:nth-child(2) {
    animation-delay: 100ms;
}

[data-animate]:nth-child(3) {
    animation-delay: 200ms;
}

[data-animate]:nth-child(4) {
    animation-delay: 300ms;
}

[data-animate]:nth-child(5) {
    animation-delay: 400ms;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes suitGently {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes suitHangerSway {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes sparkleFlash {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================
   17. SUIT HANGER SVG ANIMATIONS
   ============================================ */

.suit-hanger {
    width: 100%;
    max-width: 250px;
    height: auto;
    color: var(--accent);
    animation: suitHangerSway 4s ease-in-out infinite;
    transform-origin: top center;
}

.suit-jacket {
    animation: suitGently 3.5s ease-in-out infinite;
}

.shirt {
    animation: suitGently 3.8s ease-in-out infinite;
    animation-delay: 0.2s;
}

.pants {
    animation: suitGently 4s ease-in-out infinite;
    animation-delay: 0.4s;
}

.sparkle-dot {
    animation: sparkleFlash 2.5s ease-in-out infinite;
}

.sparkle-dot:nth-child(2) {
    animation-delay: 0.4s;
}

.sparkle-dot:nth-child(3) {
    animation-delay: 0.8s;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
    [data-animate],
    .faq-answer.open,
    .suit-hanger,
    .suit-jacket,
    .shirt,
    .pants,
    .sparkle-dot {
        animation: none;
        opacity: 1;
        transform: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   18. RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .btn-cta {
        display: none;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

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

    .hero-visual {
        min-height: 300px;
    }

    .suit-hanger {
        max-width: 180px;
    }

    .hero-cta-group {
        gap: var(--space-md);
    }

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

    .pricing-content {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile-friendly touch targets */
@media (hover: hover) and (pointer: fine) {
    .service-card {
        cursor: pointer;
    }

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

/* Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.faq-question:focus-visible,
.footer-link:focus-visible,
.wa-modal-close:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
