/*
Theme Name: Pradaya Theme
Theme URI: http://localhost:8091/
Author: Ariel
Description: Native WordPress theme for Pradaya — matching pradaya.co.id design. Bahasa Indonesia only.
Version: 1.0.0
Text Domain: pradaya-theme
License: GNU General Public License v2 or later
*/

/* ─── Google Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ─── Base Reset (from pradaya.co.id) ─────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0 auto;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #48494B;
    background: #f1f5f9;
    overflow-x: hidden;
}

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

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

.pradaya-brand,
.pradaya-brand__image {
    display: block;
    width: clamp(220px, 22vw, 280px);
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .pradaya-brand,
    .pradaya-brand__image {
        width: min(190px, 58vw);
        max-height: 56px;
    }
}

/* ─── Site Layout ─────────────────────────────────────────────────────────── */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner,
.site-footer__inner,
.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.site-branding__logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.site-nav__menu,
.site-footer__menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav__menu a,
.site-footer__menu a {
    font-weight: 600;
    color: #1f2937;
}

.site-footer {
    background: #0f172a;
    color: #fff;
    margin-top: auto;
    padding: 2rem 0;
}

.site-footer__copy {
    margin: 1rem 0 0;
    opacity: 0.8;
}

.page-header {
    padding: 2rem 0 0;
}

.page-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #111827;
}

.page-content {
    padding: 1.5rem 0 4rem;
}

.entry-content > * + * {
    margin-top: 1.25rem;
}

.archive-listing {
    padding: 2rem 0 4rem;
}

.archive-card {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ─── Navigation Bar (glass-card sticky) ────────────────────────────────── */
#site-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
}

#site-drawer-wrapper {
    position: relative;
    z-index: 1000;
}

/* ─── Utility: glass-card from original site ─────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.drawer-transition {
    position: fixed;
    top: 0;
    right: -100%;
    width: 65%;
    height: 100vh;
    background: white;
    transition: right 0.3s ease-in-out;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.drawer-transition.active {
    right: 0;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.title-text {
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    color: #48494B;
}

.welcome {
    width: 100%;
}

/* ─── Statistics Counter ──────────────────────────────────────────────────── */
#counter-section {
    text-align: center;
}

.counter-number {
    font-size: 2rem;
    font-weight: 800;
    color: #034694;
}

/* ─── Game Plan / Flip Cards ─────────────────────────────────────────────── */
.flip-container {
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.flip-container:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
}

.flip-back {
    transform: rotateY(180deg);
}

/* ─── Partner Logo Carousel ─────────────────────────────────────────────── */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-card {
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px;
    flex-shrink: 0;
}

.carousel-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ─── Products Grid ───────────────────────────────────────────────────────── */
#loadMore {
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-product-card {
    transition: transform 0.3s;
}

.image-product-card:hover {
    transform: scale(1.05);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: #034694;
    color: white;
    padding: 3rem 0;
    margin-top: auto;
}

/* ─── Page Content Typography ─────────────────────────────────────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #1a1a1a;
    font-weight: 700;
}

.entry-content p {
    color: #48494B;
    margin: 0 0 1.25rem;
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
.animate-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-container {
    overflow: hidden;
}

/* ─── AOS-like fade effects ───────────────────────────────────────────────── */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ─── WordPress Block Overrides ─────────────────────────────────────────── */
.wp-block-group {
    max-width: 100% !important;
}

.site-main .wp-block-group {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ─── Responsive Helpers ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .carousel-card {
        width: 100px;
        height: 60px;
    }

    .carousel-container {
        height: 200px;
    }

    .title-text {
        font-size: 2rem !important;
    }
}

/* ─── Scrollbar Styling ──────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #034694;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #022b5e;
}

/* ─── Drawer hover effect ─────────────────────────────────────────────────── */
.drawer-hover {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.drawer-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #034694;
    transform: skewX(-45deg);
    transition: all 0.4s ease;
    z-index: -1;
}

.drawer-hover:hover::before {
    left: 100%;
}

.drawer-hover:hover a,
.drawer-hover:hover {
    color: white !important;
}

/* ─── Nav Item Styles ─────────────────────────────────────────────────────── */
.nav-item {
    cursor: pointer;
    transition: color 0.2s;
}

.nav-text {
    transition: all 0.2s;
}

.nav-item:hover .nav-text {
    color: #034694;
}

/* ─── Marquee content ────���─────────────────────────────────────────────────── */
.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ─── Truncate ───────────────────────────────────────────────────────────── */
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Scroll Snap Slider ───────────────────────────────────────────────────── */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

