/* =================================================
   Sections:
   1.  Google Fonts Import
   2.  CSS Variables
   3.  Global Reset & Base
   4.  Typography (section heading)
   5.  Navbar
   6.  Hamburger Menu (mobile)
   7.  Button Global
   8.  Footer
   9.  Table
   10. Scroll To Top Button
   11. Page Transition / Fade In
   12. Animations
   13. Mobile (max-width: 768px)
   14. ACCESSIBILITY FIX — Font size & contrast
================================================= */


/* =================================================
   1. GOOGLE FONTS
================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&display=swap');


/* =================================================
   2. CSS VARIABLES
   (mirror dari content.css agar 1 sumber kebenaran)
================================================= */

:root {
    /* Palette */
    --c-black:       #0d0d0d;
    --c-dark:        #1a1a1a;
    --c-mid:         #4a4a4a;
    --c-muted:       #888888;
    --c-border:      #e4e4e4;
    --c-border-dark: #c8c8c8;
    --c-bg:          #f9f9f7;
    --c-surface:     #ffffff;

    /* Typography */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radius */
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   16px;
    --r-xl:   22px;
    --r-pill: 100px;

    /* Shadows */
    --shadow-xs: 0 1px 4px  rgba(0,0,0,.06);
    --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
    --shadow-md: 0 6px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.10);

    /* Motion */
    --ease:   cubic-bezier(.25,.46,.45,.94);
    --t-fast: 200ms;
    --t-mid:  320ms;

    /* Navbar height — dipakai di seluruh file */
    --nav-h: 72px;
}


/* =================================================
   3. GLOBAL RESET & BASE
================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* =================================================
   4. TYPOGRAPHY — SECTION HEADING
================================================= */

section {
    padding: 80px 24px;
    text-align: center;
}

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 400;
    color: var(--c-black);
    margin-bottom: 10px;
    letter-spacing: -.4px;
    line-height: 1.2;
}

section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--c-black);
    margin: 14px auto 0;
    border-radius: var(--r-pill);
}

section p.section-lead {
    font-size: 15px;
    color: var(--c-muted);
    font-weight: 300;
    max-width: 580px;
    margin: 16px auto 0;
    line-height: 1.8;
}


/* =================================================
   5. NAVBAR
================================================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);

    background: rgba(13, 13, 13, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: white;

    padding: 0 44px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, .06);

    transition: background var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease),
                height var(--t-mid) var(--ease);
}

nav.scrolled {
    background: rgba(10, 10, 10, .96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .55);
}

/* Logo */

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-area img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-area span,
nav h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: white;
    letter-spacing: -.1px;
    margin: 0;
}

/* Nav links */

nav ul {
    display: flex;
    gap: 6px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    position: relative;
    transition: color var(--t-fast), background var(--t-fast);
}

nav a:hover,
nav a.active {
    color: white;
    background: rgba(255, 255, 255, .08);
}

/* Underline indicator */

nav a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 1.5px;
    background: white;
    border-radius: var(--r-pill);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast) var(--ease);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}


/* =================================================
   6. HAMBURGER MENU (mobile)
   Toggle class .open pada nav untuk membuka menu
================================================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 8px;
    transition: background var(--t-fast);
    margin: 0;
    margin-top: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: white;
    border-radius: var(--r-pill);
    transition: transform var(--t-fast) var(--ease),
                opacity var(--t-fast);
}

/* Animasi X saat menu terbuka */

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* =================================================
   7. BUTTON GLOBAL
================================================= */

button {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 11px 20px;
    border: none;
    border-radius: var(--r-md);
    background: var(--c-black);
    color: white;
    cursor: pointer;
    transition: opacity var(--t-fast), transform var(--t-fast);
    letter-spacing: .2px;
}

button:hover {
    opacity: .82;
    transform: translateY(-1px);
}

button:focus-visible {
    outline: 2px solid var(--c-black);
    outline-offset: 3px;
}

/* Varian outline */

button.btn-outline {
    background: transparent;
    color: var(--c-black);
    border: 1.5px solid var(--c-black);
}

button.btn-outline:hover {
    background: var(--c-black);
    color: white;
    opacity: 1;
}


/* =================================================
   8. FOOTER
================================================= */

.footer {
    background: var(--c-black);
    color: rgba(255, 255, 255, .55);
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    padding: 72px 60px;
    max-width: 1200px;
    margin: auto;
}

.footer-box {
    flex: 1;
    min-width: 220px;
}

.footer-box h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -.1px;
}

.footer-box p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.7;
    transition: color var(--t-fast);
}

.footer-box p:hover {
    color: rgba(255, 255, 255, .85);
}

.footer-box p i {
    margin-top: 2px;
    flex-shrink: 0;
    opacity: .5;
}

/* Sosmed */

.sosmed {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.sosmed a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background var(--t-fast),
                color var(--t-fast),
                border-color var(--t-fast),
                transform var(--t-fast);
}

.sosmed a:hover {
    background: white;
    color: var(--c-black);
    border-color: white;
    transform: translateY(-3px);
}

/* WhatsApp button */

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 20px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--t-fast),
                color var(--t-fast),
                border-color var(--t-fast);
}

.wa-btn:hover {
    background: white;
    color: var(--c-black);
    border-color: white;
}

/* Footer bottom bar */

.footer-bottom {
    text-align: center;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 13px;
    color: rgba(255, 255, 255, .3);
    max-width: 100%;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .5);
    transition: color var(--t-fast);
}

.footer-bottom a:hover {
    color: white;
}


/* =================================================
   9. TABLE
================================================= */

table {
    width: 90%;
    margin: 32px auto;
    border-collapse: collapse;
    background: var(--c-surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

thead th {
    background: var(--c-black);
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: center;
}

td {
    padding: 13px 16px;
    text-align: center;
    color: var(--c-mid);
    border-bottom: 1px solid var(--c-border);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background var(--t-fast);
}

tbody tr:hover {
    background: var(--c-bg);
}


/* =================================================
   10. SCROLL TO TOP BUTTON
   (tambahan baru — belum ada di versi asli)
================================================= */

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;

    width: 42px;
    height: 42px;

    background: var(--c-black);
    color: white;

    border: none;
    border-radius: var(--r-md);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 16px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: opacity var(--t-fast),
                visibility var(--t-fast),
                transform var(--t-fast),
                background var(--t-fast);
    margin-top: 0;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--c-dark);
    opacity: 1;
    transform: translateY(-2px);
}


/* =================================================
   11. PAGE FADE-IN
   Tambahkan class .page-fade ke <main> atau <body>
================================================= */

.page-fade {
    animation: pageFadeIn .5s var(--ease) both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — tambahkan .reveal ke elemen,
   lalu toggle .visible via JS saat masuk viewport */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease),
                transform .6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =================================================
   12. ANIMATIONS
================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -42%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* =================================================
   13. MOBILE (max-width: 768px)
================================================= */

@media (max-width:768px){

    nav{
        flex-wrap:wrap;
        height:auto;
        padding:14px 20px;
        gap:0;

        position:sticky;
        top:0;
        z-index:1000;
    }

    .nav-toggle{
        display:flex;
    }

    nav ul{
        display:none;

        position:absolute;
        top:100%;
        left:0;

        width:100%;

        flex-direction:column;

        margin:0;
        padding:10px;

        background:rgba(0,0,0,.98);
        backdrop-filter:blur(10px);

        box-shadow:0 12px 30px rgba(0,0,0,.18);

        z-index:9999;
    }

    nav ul.open{
        display:flex;
    }

    nav a{
        width:100%;
        padding:12px;
    }

    /* Section */
    section {
        padding: 60px 16px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        padding: 48px 24px;
        text-align: center;
        gap: 36px;
    }

    .footer-box p {
        justify-content: center;
    }

    .sosmed {
        justify-content: center;
    }

    /* Table */
    table {
        width: 100%;
        font-size: 13px;
    }

    td, th {
        padding: 10px 12px;
    }

    /* Scroll top */
    .scroll-top {
        bottom: 18px;
        right: 18px;
    }

}

/* =================================================
   14. ACCESSIBILITY FIX — Font size & contrast
================================================= */

/* --- Navbar --- */
/* Link nav terlalu samar di background gelap */
nav a {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}
/* Logo/brand name */
.logo-area span,
nav h2 { font-size: 17px; }

/* --- Section lead text --- */
/* font-weight 300 + warna muted = susah dibaca */
section p.section-lead {
    font-size: 16px;
    font-weight: 400;          /* naik dari 300 */
    color: var(--c-mid);       /* #4a4a4a, lebih gelap dari --c-muted #888 */
    line-height: 1.85;
}

/* --- Button global --- */
button {
    font-size: 15px;
    padding: 12px 20px;
}
button.btn-outline { font-size: 15px; }

/* --- Footer --- */
/* Warna teks footer terlalu samar di background hitam */
.footer            { color: rgba(255, 255, 255, .75); }  /* naik dari .55 */

.footer-box p {
    font-size: 15px;
    line-height: 1.8;
}
.footer-box p i    { opacity: .7; }                      /* naik dari .5 */

/* Footer bottom bar — kontras sangat rendah */
.footer-bottom {
    font-size: 14px;
    color: rgba(255, 255, 255, .60);                     /* naik dari .30 */
}
.footer-bottom a   { color: rgba(255, 255, 255, .80); }  /* naik dari .50 */

/* WhatsApp button di footer */
.wa-btn { font-size: 15px; }

/* Sosmed icon size */
.sosmed a { font-size: 16px; }

/* --- Table --- */
table      { font-size: 15px; }
thead th   { font-size: 14px; letter-spacing: .3px; }
td         { font-size: 15px; padding: 14px 16px; }

/* --- Scroll to top --- */
.scroll-top { font-size: 17px; }

/* --- Focus-visible aksesibilitas --- */
.nav-toggle:focus-visible,
.scroll-top:focus-visible,
.wa-btn:focus-visible,
.sosmed a:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}
/* Focus untuk nav link (background gelap) */
nav a:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    nav a      { font-size: 15px; padding: 13px; }
    table      { font-size: 14px; }
    td, th     { font-size: 14px; padding: 11px 12px; }
    .footer-box p  { font-size: 15px; }
    .footer-bottom { font-size: 14px; }
    section p.section-lead { font-size: 15px; }
}