/* ========== Variables ========== */
:root {
    --bg: #f6f1ee;
    --accent: #00ADCC;
    --accent-soft: rgba(0, 173, 204, 0.14);
    --text: #26221f;
    --muted: rgba(38, 34, 31, 0.65);
    --card-bg: rgba(255, 255, 255, 0.66);
    --card-border: rgba(0, 0, 0, 0.08);
    --glass-blur: 14px;
    --radius-lg: 20px;
    --gap: clamp(1rem, 2vw, 1.8rem);
}

/* ========== Base ========== */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

body {
    background: radial-gradient(800px 600px at 20% 10%, rgba(0, 173, 204, 0.06), transparent 50%), #f6f1ee;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.service-img img {
    width: 100%;

    object-fit: cover;
    /* auto crop     height: 100%;*/
    object-position: center;
    /* fokus di tengah */
    border-radius: 24px;
    /* opsional: biar premium */
    display: block;
}

.service-img {
    width: 100%;

    /* sesuaikan, atau min-height     height: 400px;*/
    overflow: hidden;
}


/* ========== Layout wrapper ========== */
.wrap {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 3.5rem 0 0rem;
}

/* ========== Header / Hero ========== */
header.hero {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.kicker {
    font-family: "Montserrat";
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 600;
    font-size: .82rem;
    margin-bottom: .6rem
}

h1.title {
    font-family: "Montserrat";
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 .8rem;
    line-height: 1.03
}

p.lead {
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.8;
    margin: 0 0 1.25rem
}

.hero-actions {
    display: flex;
    gap: .85rem
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: .75rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Montserrat";
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 173, 204, 0.14)
}

.btn-ghost {
    padding: .7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600
}

.hero-visual {
    justify-self: end;
    position: relative
}

.hero-glow {
    position: absolute;
    right: -40px;
    top: -30px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(86px);
    opacity: .12;
    z-index: 0
}

.hero-visual img {
    width: 480px;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 2
}

/* ========== Section heading ========== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 3.25rem 0 1.2rem
}

.section-head h2 {
    font-family: "Montserrat";
    font-size: 1.8rem;
    margin: 0
}

.section-head p {
    color: var(--muted);
    margin: 0;
    max-width: 46ch
}

/* ========== Services (staggered rows) ========== */
.services {
    display: grid;
    gap: 2.25rem
}

.service-row {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 36px rgba(18, 18, 18, 0.04);
    backdrop-filter: blur(var(--glass-blur));
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(18, 18, 18, 0.06);
    border-color: var(--accent)
}

/* alternate layout classes */
.row-left .media {
    order: 1
}

.row-left .body {
    order: 2
}

.row-right .media {
    order: 2
}

.row-right .body {
    order: 1
}

.media {
    flex: 1;
    min-width: 280px
}

.media img {
    width: 100%;
    /*  height: 100%;*/
    object-fit: cover;
    border-radius: 14px
}

.body {
    flex: 1.05;
    min-width: 320px
}

.body h3 {
    font-family: "Montserrat";
    font-size: 1.25rem;
    margin: 0 0 .5rem;
    color: var(--text)
}

.body p {
    color: var(--muted);
    margin: 0 0 .8rem;
    line-height: 1.7
}

.body ul {
    margin: 0 0 1rem 1.15rem;
    color: var(--muted);
    line-height: 1.6
}

.body li {
    margin-bottom: .45rem
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.badge {
    display: inline-block;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
    border: 1px solid rgba(0, 173, 204, 0.14)
}

/* WhatsApp CTA (elegant) */
.wa {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text);
    text-decoration: none;
    font-family: "Montserrat";
    font-weight: 700
}

.wa img {
    width: 18px;
    height: 18px;
    opacity: .95;
    filter: grayscale(100%)
}

/* ========== "Choose Your Class" card (intro grid) ========== */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem
}

.intro-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.62));
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.04)
}

.intro-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) saturate(.95);
    opacity: .98
}

.intro-overlay {
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent, rgba(246, 241, 238, 0.65));
}

.intro-overlay h4 {
    margin: 0;
    font-family: "Montserrat";
    font-size: 1rem
}

.intro-overlay p {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .9rem
}

/* ========== Responsive ========== */
@media(max-width:980px) {
    header.hero {
        grid-template-columns: 1fr;
        text-align: left
    }

    .hero-visual {
        justify-self: center;
        margin-top: 1rem
    }

    .hero-visual img {
        width: 100%;
        max-width: 520px;
        height: auto
    }

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

/* MOBILE: gambar selalu di atas, teks di bawah untuk tiap section */
@media(max-width:780px) {
    .service-row {
        flex-direction: column;
        text-align: left;
        padding: 1rem
    }

    .service-row .media,
    .service-row .body {
        order: unset !important;
        width: 100%
    }

    .intro-grid {
        grid-template-columns: 1fr
    }

    .kicker {
        text-align: left
    }
}

/* small screens tweak */
@media(max-width:480px) {
    h1.title {
        font-size: 1.6rem
    }

    .body h3 {
        font-size: 1.05rem
    }
}

/* accessibility focus */
a:focus {
    outline: 3px solid rgba(0, 173, 204, 0.18);
    outline-offset: 3px
}

/* MOBILE: semua gambar tampil duluan */
@media(max-width: 780px) {

    .service-row {
        display: flex;
        flex-direction: column !important;
        /* stack vertikal */
        gap: 24px;
        text-align: center;
    }

    .service-row .service-img {
        order: 1 !important;
        /* gambar dulu */
        width: 100%;
    }

    .service-row .body {
        order: 2 !important;
        /* teks setelah gambar */
        width: 100%;
    }

    /* Biar gambar portrait tetap premium */
    .service-img {
        height: 320px;
        overflow: hidden;
        border-radius: 18px;
    }

    .service-img img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        /* auto crop center */
        object-position: center;
    }

    .media img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        border-radius: 14px
    }
}

@media(max-width: 768px) {
    .service-img {
        height: 360px;
    }
}

@media(max-width: 540px) {
    .service-img {
        height: 260px;
    }
}