/* ===================================== */
/* Global Styles - style.css             */
/* Ini adalah CSS dasar untuk seluruh website */
/* ===================================== */

/* Reset CSS dasar untuk konsistensi di berbagai browser */
*, *::before, *::after {
    box-sizing: border-box; /* Model box-sizing yang lebih intuitif */
    margin: 0;
    padding: 0;
}

/* Body: Font dasar, warna teks, dan background */
body {
    font-family: 'Poppins', sans-serif; /* Font utama, diimpor dari Google Fonts di HTML */
    line-height: 1.6; /* Kerapatan baris teks */
    color: #333; /* Warna teks default */
    background-color: #f0f2f5; /* Warna background halaman yang lembut */
    -webkit-font-smoothing: antialiased; /* Membuat teks terlihat lebih halus di macOS/iOS */
    -moz-osx-font-smoothing: grayscale; /* Membuat teks terlihat lebih halus di macOS/iOS */
}

/* Link Umum: Gaya dasar untuk semua link */
a {
    color: #007bff; /* Warna link default */
    text-decoration: none; /* Hilangkan garis bawah default */
    transition: color 0.3s ease; /* Transisi halus saat hover */
}

a:hover {
    color: #0056b3; /* Warna link saat di-hover */
}

/* Heading (H1-H6): Gaya dasar untuk judul */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Font untuk judul, diimpor di HTML */
    margin-bottom: 0.8em; /* Spasi bawah default */
    color: #333; /* Warna judul default */
    line-height: 1.2;
}

h1 {
    font-size: 2.8em; /* Ukuran H1 default */
}

h2 {
    font-size: 2.2em; /* Ukuran H2 default */
}

h3 {
    font-size: 1.8em; /* Ukuran H3 default */
}

/* Tombol Umum (General Buttons) */
.button-cta {
    display: inline-block;
    background-color: #ff6f61; /* Warna merah muda cerah */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px; /* Bentuk kapsul */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-cta:hover {
    background-color: #e65c50; /* Warna lebih gelap saat hover */
    transform: translateY(-2px); /* Sedikit naik saat hover */
}

/* Tombol Sekunder/Alternatif */
.button-secondary {
    display: inline-block;
    background-color: #007bff; /* Warna biru */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-secondary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Header Styling */
header {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sedikit bayangan */
}

header nav {
    display: flex;
    justify-content: space-around; /* Menjaga jarak antar item */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding samping untuk responsivitas */
}

header .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff; /* Warna hover untuk link navigasi */
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Ubah dari space-around ke space-between */
    gap: 20px; /* Tambahkan gap antar kolom */
    padding: 0 20px; /* Padding samping untuk mencegah konten nempel pinggir */
}

footer h3 {
    color: #ff6f61; /* Warna judul di footer */
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
}

footer .footer-content > div { /* Target masing-masing kolom footer */
    flex: 1 1 220px; /* flex-grow, flex-shrink, flex-basis */
    padding: 10px 15px; /* Sedikit padding di dalam kolom agar teks tidak nempel border */
    text-align: left; /* Teks di dalam kolom kiri secara default */
}


footer ul {
    list-style: none;
    padding: 0;
    /* text-align: left; -> Ini akan kita override di media query */
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9em;
}

footer ul li a:hover {
    color: #fff;
}

footer p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #ccc;
}

footer div:last-child { /* Bagian copyright */
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.8em;
    color: #ccc;
}

/* Responsive dasar untuk mobile (contoh sederhana) */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 15px;
    }
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }
    footer ul {
        text-align: center; /* Kembali ke tengah untuk mobile */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.5em;
    }
    .button-cta, .button-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}