/* =========================================================
   FRESHClean LAUNDRY — AYUZA PEMULA
   FASE 3: CSS RESPONSIVE
   Konsep: Fresh Minimalist | Mobile-first
   Warna: Teal, Aqua, Putih
   ========================================================= */

/* 1. RESET & DESIGN TOKENS */
:root {
    --color-primary: #0D8B84;
    --color-primary-dark: #0B5E5A;
    --color-aqua: #E6F9F7;
    --color-mint: #DDF4E8;
    --color-text: #183A38;
    --color-muted: #607875;
    --color-white: #FFFFFF;
    --color-border: #E2EFED;
    --color-surface: #F7FBFA;

    --font-heading: "Poppins", sans-serif;
    --font-body: "Nunito", sans-serif;

    --container-width: 1120px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow-soft: 0 12px 34px rgba(11, 94, 90, 0.08);
    --shadow-card: 0 8px 24px rgba(11, 94, 90, 0.07);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

/* 2. HEADER & NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 239, 237, 0.9);
    backdrop-filter: blur(12px);
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.logo-text,
.footer-logo {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
}

.main-nav a {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--color-primary);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* 3. BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 25px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 18px rgba(13, 139, 132, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 11px 22px rgba(13, 139, 132, 0.22);
    transform: translateY(-2px);
}

.btn-primary:focus-visible,
.header-cta:focus-visible,
.main-nav a:focus-visible,
.logo:focus-visible {
    outline: 3px solid rgba(13, 139, 132, 0.35);
    outline-offset: 4px;
}

/* 4. HERO — SPLIT LAYOUT */
.hero-section {
    overflow: hidden;
    padding: 76px 0 82px;
    background:
        radial-gradient(circle at 88% 15%, rgba(221, 244, 232, 0.7), transparent 28%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FCFB 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
}

.hero-content {
    max-width: 560px;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-label {
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--color-aqua);
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.16;
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-content > p {
    max-width: 490px;
    margin-bottom: 28px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero-content .btn-primary {
    margin-bottom: 17px;
}

.hero-note {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-image {
    position: relative;
    min-height: 360px;
    padding: 12px;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--color-aqua), var(--color-mint));
    box-shadow: var(--shadow-soft);
}

.hero-image::before {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(13, 139, 132, 0.18);
    border-radius: 50%;
    content: "";
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 25px;
    object-fit: cover;
}

/* 5. SHARED SECTION HEADING */
.about-section,
.services-section,
.gallery-section,
.contact-section {
    padding: 84px 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading .section-label {
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 12px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(27px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 16px;
}

/* 6. ABOUT */
.about-section {
    background: var(--color-white);
}

.about-content {
    max-width: 820px;
    margin-inline: auto;
    padding: 30px 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.about-content p {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.9;
}

/* 7. SERVICES */
.services-section {
    background: var(--color-surface);
}

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

.service-card {
    min-height: 210px;
    padding: 27px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--color-aqua);
    font-size: 25px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.service-card p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* 8. GALLERY */
.gallery-section {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-width: 0;
    border-radius: var(--radius-md);
    background: var(--color-aqua);
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

/* 9. CONTACT */
.contact-section {
    background: var(--color-aqua);
}

.contact-section .section-heading h2 {
    color: var(--color-primary-dark);
}

.contact-content {
    max-width: 780px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-inline: auto;
}

.contact-item {
    padding: 23px;
    border: 1px solid rgba(13, 139, 132, 0.12);
    border-radius: var(--radius-md);
    background: var(--color-white);
}

.contact-item h3 {
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 16px;
}

.contact-item p {
    color: var(--color-muted);
    font-size: 14px;
}

.whatsapp-btn {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 230px;
    margin-top: 8px;
}

/* 10. FOOTER */
.site-footer {
    padding: 42px 0 30px;
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.footer-logo {
    color: var(--color-white);
    font-size: 21px;
}

.footer-container > p {
    font-size: 14px;
}

.copyright {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px !important;
}

.footer-credit {
    margin-top: 8px;
    color: #A8E4DB;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* 11. TABLET */
@media (max-width: 900px) {
    .header-container {
        gap: 14px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 5vw, 48px);
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 165px;
    }
}

/* 12. MOBILE */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        width: min(100% - 32px, var(--container-width));
    }

    .header-container {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 0;
        padding-top: 10px;
        padding-bottom: 9px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        border-radius: 11px;
        font-size: 19px;
    }

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

    .header-cta {
        min-height: 38px;
        padding-inline: 14px;
        font-size: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 23px;
        margin-top: 9px;
        padding: 5px 1px 2px;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex-shrink: 0;
        font-size: 12px;
    }

    .hero-section {
        padding: 48px 0 58px;
    }

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

    .hero-content {
        max-width: none;
    }

    .hero-label {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .hero-content h1 {
        max-width: 520px;
        margin-bottom: 15px;
        font-size: clamp(34px, 10vw, 45px);
        letter-spacing: -1.4px;
    }

    .hero-content > p {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.75;
    }

    .btn-primary {
        width: 100%;
        min-height: 50px;
        padding-inline: 18px;
        font-size: 14px;
    }

    .hero-note {
        font-size: 12px;
    }

    .hero-image {
        min-height: 245px;
        padding: 8px;
        border-radius: 25px;
    }

    .hero-image img {
        min-height: 245px;
        max-height: 310px;
        border-radius: 19px;
    }

    .hero-image::before {
        top: -9px;
        right: -8px;
        width: 55px;
        height: 55px;
    }

    .about-section,
    .services-section,
    .gallery-section,
    .contact-section {
        padding: 62px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
        letter-spacing: -0.6px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .about-content {
        padding: 23px 20px;
        border-radius: 20px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.8;
    }

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

    .service-card {
        min-height: auto;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 15px;
        align-items: center;
        padding: 18px;
        border-radius: 16px;
    }

    .service-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 48px;
        height: 48px;
        margin: 0;
        font-size: 22px;
    }

    .service-card h3 {
        align-self: end;
        margin-bottom: 3px;
        font-size: 15px;
    }

    .service-card p {
        align-self: start;
        font-size: 13px;
        line-height: 1.55;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 145px;
        gap: 11px;
    }

    .gallery-grid img {
        grid-column: span 1;
        border-radius: 14px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-item {
        padding: 19px;
    }

    .whatsapp-btn {
        grid-column: auto;
        width: 100%;
        margin-top: 5px;
    }

    .site-footer {
        padding: 35px 0 25px;
    }

    .footer-logo {
        font-size: 19px;
    }

    .footer-container > p {
        font-size: 13px;
    }
}

/* 13. SMALL MOBILE */
@media (max-width: 360px) {
    .container {
        width: min(100% - 26px, var(--container-width));
    }

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

    .header-cta {
        padding-inline: 11px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 33px;
    }

    .gallery-grid {
        grid-auto-rows: 125px;
    }
}

/* 14. ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    background: #16A765;
    color: var(--color-white);
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(11, 94, 90, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}
.floating-whatsapp:hover {
    background: #128C56;
    transform: translateY(-3px);
}
@media (max-width: 640px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 31px;
    }
}


/* WHATSAPP BRAND COLOR — CTA & FLOATING BUTTON */
.btn-primary,
.whatsapp-btn {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}

.btn-primary:hover,
.whatsapp-btn:hover {
    background: #1DA851;
    box-shadow: 0 11px 24px rgba(29, 168, 81, 0.26);
}

.floating-whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.floating-whatsapp:hover {
    background: #1DA851;
}

.whatsapp-icon {
    display: block;
    width: 32px;
    height: 32px;
}


/* SERVICE PRICING */
.service-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.service-price strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.service-price span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 640px) {
    .service-price {
        margin-top: 9px;
        padding-top: 8px;
    }

    .service-price strong {
        font-size: 18px;
    }

    .price-note {
        margin-top: 17px;
        font-size: 11px;
        text-align: left;
    }
}


/* MOBILE SERVICE CARD ALIGNMENT FIX */
@media (max-width: 640px) {
    .service-card {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 15px;
        row-gap: 3px;
        align-items: start;
    }

    .service-card .service-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
    }

    .service-card h3 {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        align-self: end;
    }

    .service-card p {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        align-self: start;
    }

    .service-card .service-price {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 7px;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding-top: 10px;
        white-space: nowrap;
    }

    .service-card .service-price strong,
    .service-card .service-price span {
        display: inline-block;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


/* BRAND LOGO — CUSTOM FRESHCLEAN LAUNDRY */
.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.logo img {
    display: block;
    width: 226px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .logo img {
        width: 188px;
    }
}

@media (max-width: 360px) {
    .logo img {
        width: 160px;
    }
}
