/* =====================================================
   LAYAR KATEKESE KATOLIK
   File: assets/css/style.css
   Fungsi: CSS utama dengan tema Katolik
   ===================================================== */

/* ============================================
   1. VARIABEL & RESET
   ============================================ */
:root {
    /* Warna utama tema Katolik */
    --primary: #8B0000;
    --primary-dark: #6B0000;
    --primary-light: #A52A2A;
    --secondary: #C9A84C;
    --secondary-dark: #B8942F;
    --secondary-light: #E8D48B;
    --accent: #2C3E50;
    
    /* Warna latar */
    --bg-cream: #FAF8F5;
    --bg-light: #FFFFFF;
    --bg-dark: #1A1A1A;
    --bg-footer: #2C1810;
    
    /* Warna teks */
    --text-dark: #2D2D2D;
    --text-body: #4A4A4A;
    --text-muted: #6C757D;
    --text-light: #FFFFFF;
    
    /* Warna border & shadow */
    --border: #E8E0D4;
    --border-light: #F0EBE3;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-primary: 'Merriweather', serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-heading: 'Cinzel', serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Transisi */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   2. UTILITIES
   ============================================ */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   3. TOP BAR (di atas navbar)
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--secondary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left a {
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: var(--secondary-light);
}

.top-bar-right {
    display: flex;
    gap: 12px;
}

.top-bar-right a {
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.top-bar-right a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   4. NAVBAR UTAMA
   ============================================ */
.main-navbar {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.navbar-brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.navbar-menu li a i {
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition);
}

.navbar-menu li a:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

.navbar-menu li a:hover i {
    transform: scale(1.15);
}

.navbar-menu li a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.navbar-menu li a.active i {
    color: white;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 60%;
}

.navbar-search {
    display: flex;
    align-items: center;
    background: var(--bg-cream);
    border-radius: 25px;
    padding: 6px 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.navbar-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.navbar-search input {
    border: none;
    background: transparent;
    outline: none;
    padding: 4px 8px;
    width: 180px;
    font-size: 0.9rem;
}

.navbar-search button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero/hero-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.85), rgba(44, 62, 80, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero-cross {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--secondary-light);
    font-style: italic;
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: var(--secondary);
    color: var(--text-dark);
    padding: 14px 35px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.hero-btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 35px;
    border: 2px solid white;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ============================================
   6. WAVE DIVIDER
   ============================================ */
.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   7. FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--bg-footer), #1a0f08);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 4rem;
    position: relative;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.footer-brand-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-newsletter {
    margin-top: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--secondary);
}

.footer-bottom-verse {
    font-style: italic;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   8. SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   9. ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   10. LOADING OVERLAY
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.ebook-download{
    text-align: center;
    margin: 20px 0;
}

.ebook-button{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(13,110,253,.35);
    transition: all .3s ease;
}

.ebook-button:hover{
    background: linear-gradient(135deg, #0b5ed7, #06357a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13,110,253,.45);
}

.ebook-button i{
    font-size: 20px;
}