/* ==========================================================================
   DESA CANGGU - MASTER DESIGN SYSTEM & STYLE UTILITIES
   Font Family: Public Sans (Official Government & Public Administration Standard)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- BASE & TYPOGRAPHY HIERARCHY --- */
html {
    scroll-behavior: smooth;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.65;
    font-family: 'Public Sans', sans-serif;
    letter-spacing: -0.011em;
}

/* Headings typographic balance */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    line-height: 1.15;
    font-weight: 800;
}

h2 {
    line-height: 1.25;
    font-weight: 800;
}

h3 {
    line-height: 1.35;
    font-weight: 700;
}

p {
    text-wrap: pretty;
}

/* Responsive spacing utilities */
.section-py {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 640px) {
    .section-py {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}
@media (min-width: 1024px) {
    .section-py {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- DROPDOWN ANIMATION --- */
.dropdown-menu {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

/* --- CARD HOVER & SHADOW EFFECTS --- */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

/* --- BADGE STYLES --- */
.badge-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* --- GLASSMORPHISM HEADER --- */
.header-glass {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}
.btn-secondary:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* --- MOBILE SPECIFIC AUDIT & REFINEMENTS --- */
@media (max-width: 640px) {
    /* Touch target safety */
    a, button, input, select {
        touch-action: manipulation;
    }
    
    /* Ensure minimum touch target size */
    .btn-primary, .btn-secondary {
        min-height: 46px;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Prevent overflow on small screens */
    img, video, iframe, canvas {
        max-width: 100%;
        height: auto;
    }

    /* Mobile container padding consistency */
    .mobile-container-pad {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

