/*
Theme Name: Royal Batik
Theme URI: https://royalbatik.com
Author: Royal Batik Indonesia
Author URI: https://royalbatik.com
Description: A premium WordPress theme for Royal Batik - Indonesian Heritage Batik. Designed to showcase the art of traditional batik craftsmanship with elegant typography and modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royal-batik
Tags: custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ========================================
   CSS Custom Properties (Variables)
======================================== */
:root {
    /* Colors */
    --color-primary: #d4af37;
    --color-primary-dark: #b08d1a;
    --color-indigo-deep: #1a237e;
    --color-indigo-800: #283593;
    --color-background-light: #fdfbf7;
    --color-text-main: #2c2c2c;
    --color-text-muted: #6b6b6b;
    --color-cream-accent: #f3f0e6;
    --color-border-light: rgba(233, 232, 206, 0.5);
    
    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Spline Sans', sans-serif;
    
    /* Border Radius */
    --radius-default: 1rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --radius-2xl: 4rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-light);
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--color-primary);
}

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

/* ========================================
   Utility Classes
======================================== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-indigo-deep { color: var(--color-indigo-deep); }
.text-muted { color: var(--color-text-muted); }

/* Background Colors */
.bg-primary { background-color: var(--color-primary); }
.bg-indigo-deep { background-color: var(--color-indigo-deep); }

/* ========================================
   Site Layout
======================================== */
.site-wrapper {
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding-top: 5rem; /* Space for fixed navbar - smaller on mobile */
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
    .site-content {
        padding-top: 6rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .site-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Add spacing for regular pages */
.site-content > .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .site-content > .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ========================================
   Navigation Styles
======================================== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .navbar-wrapper {
        padding: 1rem;
    }
}

@media (min-width: 1024px) {
    .navbar-wrapper {
        padding: 1.5rem;
    }
}
.navbar-wrapper.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Only hide navbar on scroll for desktop */
@media (max-width: 767px) {
    .navbar-wrapper.navbar-hidden {
        transform: translateY(0);
        opacity: 1;
    }
}
.navbar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .navbar {
        gap: 1rem;
        padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    }
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .navbar-logo {
        gap: 0.75rem;
    }
}

.navbar-logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .navbar-logo-icon {
        width: 2rem;
        height: 2rem;
    }
}

.navbar-logo-icon .material-symbols-outlined {
    font-size: 18px;
}

@media (min-width: 768px) {
    .navbar-logo-icon .material-symbols-outlined {
        font-size: 20px;
    }
}

.navbar-logo-text {
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .navbar-logo-text {
        font-size: 1.125rem;
    }
}

/* Navigation Menu */
.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    color: var(--color-text-main);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active,
.navbar-menu .current-menu-item a,
.navbar-menu .current_page_item a {
    color: var(--color-primary);
}

/* CTA Button */
.navbar-cta {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    height: 2.25rem;
    padding: 0 1.25rem;
    background-color: var(--color-indigo-deep);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .navbar-cta {
        display: flex;
    }
}

@media (min-width: 768px) {
    .navbar-cta {
        height: 2.5rem;
        padding: 0 1.5rem;
        font-size: 0.875rem;
    }
}

.navbar-cta:hover {
    background-color: var(--color-indigo-800);
    color: white;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 0.75rem;
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    z-index: 49;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

@media (min-width: 768px) {
    .mobile-menu {
        top: 5rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
    }
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-default);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu .current-menu-item a,
.mobile-menu .current_page_item a {
    background-color: var(--color-cream-accent);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   Footer Styles
======================================== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border-light);
    background-color: white;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        padding: 2rem;
    }
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-main);
    font-family: var(--font-display);
}

/* Footer Copyright */
.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    order: 3;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        order: 2;
    }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1.5rem;
    order: 2;
}

@media (min-width: 768px) {
    .footer-social {
        order: 3;
    }
}

.footer-social a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-indigo-deep);
}

/* ========================================
   Button Styles
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--radius-full);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: white;
    color: var(--color-indigo-deep);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
    background-color: #f9fafb;
    color: var(--color-indigo-deep);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-primary);
    color: white;
}

.btn-gold:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

/* ========================================
   WordPress Specific Styles
======================================== */
/* Elementor Compatibility */
.elementor-page .site-content {
    padding-top: 6rem;
}

/* Add margin/padding untuk Elementor sections agar tidak mepet */
.elementor-page .elementor-section-wrap > .elementor-section:first-child {
    margin-top: 2rem;
}

.elementor-page .elementor-section-wrap > .elementor-section:last-child {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .elementor-page .elementor-section-wrap > .elementor-section:first-child {
        margin-top: 3rem;
    }
    
    .elementor-page .elementor-section-wrap > .elementor-section:last-child {
        margin-bottom: 3rem;
    }
}

/* WordPress Admin Bar Adjustment */
body.admin-bar .navbar-wrapper {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar-wrapper {
        top: 46px;
    }
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .navbar-wrapper,
    .mobile-menu,
    .footer-social {
        display: none !important;
    }
    
    .site-content {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
