/*
Theme Name: Jasa Digital v4 (Hallmark Brutal Teal)
Theme URI: https://jasadigital.site
Author: Jasa Digital Team
Author URI: https://jasadigital.site
Description: Brutal structure, Teal palette. 0px radius, hard shadows, DM Serif Display, Inter, JetBrains Mono.
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: jasa-digital
*/

/* Hallmark · macrostructure: Workbench · tone: Brutal Luxury · anchor hue: Teal (180)
 * custom (vibe: "Brutal Industrial Teal" · paper oklch(13% 0.01 250) · accent oklch(60% 0.12 180) Teal · DM Serif Display + Inter)
 * axes: dark / roman-serif / cool
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* TYPOGRAPHY */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-display: 4.5rem;
    --text-display-l: 5.5rem;
    --text-display-xl: 7rem;

    /* COLORS (Brutal Teal / Dark) */
    --color-paper: oklch(13% 0.01 250); /* Near Black */
    --color-paper-2: oklch(18% 0.01 250); /* Dark Gray */
    --color-paper-3: oklch(25% 0.01 250); /* Mid Gray */
    --color-paper-inverse: oklch(98% 0.01 250); /* Off White */

    --color-accent: oklch(60% 0.12 180); /* Teal / Tosca */
    --color-accent-hover: oklch(50% 0.12 180);
    
    --color-text: oklch(95% 0.01 250); /* White-ish */
    --color-text-muted: oklch(70% 0.01 250); /* Light Gray */
    --color-text-inverse: oklch(13% 0.01 250);

    --color-border: oklch(30% 0.01 250); /* Strong border for Brutalism */
    --color-focus: var(--color-accent);

    /* SPACING */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;

    /* RADII & BORDERS (Brutalist = 0px) */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-full: 0px;
    
    --rule-thin: 1px solid var(--color-border);
    --rule-thick: 2px solid var(--color-text);
    --rule-accent: 2px solid var(--color-accent);

    /* SHADOWS (Hard, offset) */
    --shadow-hard: 6px 6px 0px 0px var(--color-accent);
    --shadow-hard-hover: 2px 2px 0px 0px var(--color-accent);
    --shadow-white: 6px 6px 0px 0px var(--color-text);

    /* MOTION */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in: cubic-bezier(0.8, 0, 0.8, 0.2);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 150ms;
    --dur-normal: 300ms;
    --dur-slow: 600ms;
}

/* BASE */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip; /* mobile non-negotiable */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-paper);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
    min-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

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

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

/* TYPOGRAPHY CLASSES */
.text-display { font-size: var(--text-display); line-height: 1.0; letter-spacing: -0.02em; }
.text-h1 { font-size: var(--text-5xl); line-height: 1.05; letter-spacing: -0.01em; }
.text-h2 { font-size: var(--text-4xl); line-height: 1.1; }
.text-h3 { font-size: var(--text-2xl); line-height: 1.2; }
.text-body { font-size: var(--text-base); }
.text-body-large { font-size: var(--text-lg); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

.label-mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section-py { padding: var(--space-xl) 0; }
.section-py-sm { padding: var(--space-lg) 0; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* BRUTALIST COMPONENTS */
.brutal-card {
    background: var(--color-paper-2);
    border: var(--rule-thick);
    padding: var(--space-md);
    transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}

.brutal-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hard);
    border-color: var(--color-accent);
}

.brutal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    cursor: pointer;
    border: var(--rule-thick);
    background: var(--color-paper);
    color: var(--color-text);
    transition: all var(--dur-fast) var(--ease-out);
    box-shadow: var(--shadow-hard);
}

.brutal-button:hover, .brutal-button.is-hover {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px 0px var(--color-accent);
    background: var(--color-accent);
    color: var(--color-paper);
    border-color: var(--color-accent);
}

.brutal-button:focus-visible, .brutal-button.is-focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
}

.brutal-button:active, .brutal-button.is-active {
    transform: translate(6px, 6px);
    box-shadow: none;
}

.brutal-button.primary {
    background: var(--color-accent);
    color: var(--color-paper);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-white);
}

.brutal-button.primary:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-paper);
}

/* FORMS (8-States) */
.brutal-input {
    width: 100%;
    background: var(--color-paper-2);
    border: var(--rule-thick);
    padding: var(--space-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color var(--dur-fast) var(--ease-out);
}

.brutal-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-paper);
}

.brutal-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* HEADER / NAV (N5 Floating pill structure, but Brutalized) */
.site-header {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-md));
    max-width: 1200px;
    z-index: 100;
    background: var(--color-paper-2);
    border: var(--rule-thick);
    box-shadow: var(--shadow-hard);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
}

.site-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    text-transform: uppercase;
    margin: 0;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: var(--space-md);
        align-items: center;
    }
    .nav-links a {
        font-family: var(--font-mono);
        font-size: var(--text-sm);
        text-transform: uppercase;
        font-weight: 700;
    }
}

/* HERO (Workbench / Brutal) */
.hero-section {
    padding-top: calc(var(--space-xxl) + var(--space-md));
    padding-bottom: var(--space-xl);
    border-bottom: var(--rule-thick);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-paper);
    padding: 2px 8px;
    border: 2px solid var(--color-text);
    margin-bottom: var(--space-sm);
}

/* UTILS */
.border-b { border-bottom: var(--rule-thick); }
.border-t { border-top: var(--rule-thick); }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 767px) {
    .text-display { font-size: var(--text-4xl); }
    .text-h1 { font-size: var(--text-3xl); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .site-header {
        border-radius: 0;
        top: 0;
        width: 100%;
        border-top: none;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-bottom: var(--rule-thick);
    }
    
    .hero-section {
        padding-top: var(--space-xxl);
    }
}

/* FAQ DETAILS */
details.brutal-faq {
    background: var(--color-paper-2);
    border: var(--rule-thick);
    margin-bottom: var(--space-sm);
}
details.brutal-faq summary {
    padding: var(--space-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.brutal-faq summary::-webkit-details-marker {
    display: none;
}
details.brutal-faq summary::after {
    content: '+';
    font-size: var(--text-lg);
    color: var(--color-accent);
}
details.brutal-faq[open] summary::after {
    content: '-';
}
details.brutal-faq .faq-content {
    padding: 0 var(--space-sm) var(--space-sm);
    border-top: 1px dashed var(--color-border);
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    color: var(--color-text-muted);
}
