/* Variables */
:root {
    --bg-color: #F8F6F0; /* Matching the light warm tone in the image */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --card-bg: #FFFFFF;
    --border-radius: 16px;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
/* Global page width */
header.nav,
main,
footer {
    width: min(1200px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: grid;
    gap: 14px;
    margin: 24px 0 28px;
}
.contact-link { display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid rgba(255,255,255,.16); text-decoration:none; color:inherit; }
.contact-link:last-child { border-bottom:1px solid rgba(255,255,255,.16); }
.contact-info { display:flex; flex-direction:column; gap:4px; min-width:0; }
.contact-info strong { font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.contact-info > span { opacity:.8; }
.contact-icon { width:42px; height:42px; flex:0 0 42px; border-radius:11px; display:grid; place-items:center; }
.contact-icon svg { width:23px; height:23px; display:block; }
.contact-icon-email { background:rgba(255,255,255,.12); }
.contact-icon-email svg { stroke:currentColor; stroke-width:1.8; }
.contact-icon-whatsapp { background:#25D366; color:#fff; }
.contact-icon-whatsapp svg { fill:currentColor; width:25px; height:25px; }
.contact-icon-shopee { background:#EE4D2D; color:#fff; }
.contact-icon-shopee svg { fill:currentColor; width:25px; height:25px; }
.contact-link:hover .contact-info > span { opacity:1; }
.contact-link:hover .contact-icon { transform:translateY(-1px); }
.contact-icon { transition:transform .2s ease; }

.section {
    padding: 80px 0;
}

/* Typography */
.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 32px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand img {
    display: block;
    width: 235px;
    height: auto;
    max-width: 100%;
}

.nav nav {
    display: flex;
    gap: 32px;
}

.nav nav a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav nav a:hover {
    color: var(--text-muted);
}

/* Buttons */
.button {
    display: inline-flex;
    background-color: var(--text-main);
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background-color: #333;
}

.button.light {
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid #e0e0e0;
}

.button.light:hover {
    background-color: #f9f9f9;
}

.text-link {
    font-weight: 600;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

.hero-art {
    position: relative;
}

.hero-frame img {
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero-note {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ========================================= */
/* FIX: PORTFOLIO GRID (SERAGAM & SEJAJAR)   */
/* ========================================= */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.work-grid {
    display: grid;
    /* Grid dinamis menyesuaikan lebar layar, minimal 320px */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px;
    align-items: stretch; /* Memaksa setiap baris memiliki tinggi yang sama */
}

.work-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Memenuhi tinggi grid cell */
    transition: transform 0.3s ease;
    text-decoration: none;
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Rasio gambar seragam, bisa diubah ke 1/1 atau 16/9 */
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #EAE8E3;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mencegah gambar peyang, otomatis crop jika rasio beda */
    display: block;
    transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
    transform: scale(1.03); /* Efek zoom halus saat di-hover */
}

.work-img span {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.work-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Mendorong konten jika teks pendek, menjaga tinggi tetap sejajar */
    margin-top: 20px;
}

.work-meta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}
/* ========================================= */


/* Services Section */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

.service b {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 24px;
}

.service p {
    color: var(--text-muted);
}

/* Split Section (About) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-copy p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Journal / Articles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card small {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.article-card p {
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.article-card span {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
}

/* CTA */
.cta {
    text-align: center;
    background: #fff;
    padding: 100px 5%;
    border-radius: 24px;
    margin: 40px 0 80px 0;
}

.cta .about-copy {
    margin: 0 auto 32px auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
}

footer .brand {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

footer p {
    margin-bottom: 24px;
}

footer small {
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header.nav,
    main,
    footer {
        width: calc(100% - 32px);
    }

    .hero, .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .nav {
        flex-direction: column;
        gap: 24px;
    }
    .brand img {
        width: 220px;
    }
    .nav nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.language-switcher{display:inline-flex;gap:7px;align-items:center;margin-left:18px}.language-switcher a{padding:4px 6px;border-radius:6px}.language-switcher a.active{font-weight:600;background:rgba(0,0,0,.07)}


/* Contact icons: explicit sizing to prevent browser SVG fallback from becoming huge */
.contact-links { width:100%; max-width:520px; }
.contact-link { width:100%; }
.contact-icon { width:42px !important; height:42px !important; min-width:42px; max-width:42px; min-height:42px; max-height:42px; flex:0 0 42px; overflow:hidden; }
.contact-icon svg { width:24px !important; height:24px !important; min-width:24px; max-width:24px; min-height:24px; max-height:24px; display:block; flex:0 0 24px; }
.contact-icon-whatsapp svg, .contact-icon-shopee svg { width:25px !important; height:25px !important; }


footer .brand img {
    width: 190px;
}

@media (max-width: 480px) {
    .brand img { width: 205px; }
    footer .brand img { width: 170px; }
}
