/*
Theme Name: Jarwinn Solar Energy
Theme URI: https://jarwinn.com
Author: Jarwinn
Author URI: https://jarwinn.com
Description: Custom WordPress theme untuk Jarwinn — Distributor Panel Surya Indonesia. Desain modern, performa tinggi, tanpa page builder.
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: jarwinn
Tags: solar, energy, corporate, custom-logo, custom-menu, featured-images
*/

/* ============================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================ */
:root {
    /* Colors — Primary (Orange) */
    --color-primary: #FF8000;
    --color-primary-light: #FF9933;
    --color-primary-dark: #CC6600;

    /* Colors — Accent (Dark Gray for contrast) */
    --color-accent: #1A1A1A;
    --color-accent-light: #333333;
    --color-accent-dark: #000000;
    --color-accent-glow: rgba(245, 158, 11, 0.15);

    /* Colors — Background */
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #FFF7ED; /* Pale orange */
    --color-bg-light: #F3F4F6;
    --color-bg-dark: #1A1A1A; /* Dark gray instead of green */
    --color-bg-darker: #000000;

    /* Colors — Text */
    --color-text: #1A1A1A;
    --color-text-secondary: #4B5563;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-text-on-dark: #F3F4F6;
    --color-text-on-dark-muted: #9CA3AF;

    /* Colors — Utility */
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-lg: rgba(0, 0, 0, 0.12);
    --color-overlay: rgba(245, 158, 11, 0.7); /* Orange overlay */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes — Fluid */
    --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: clamp(1.875rem, 2.5vw, 2rem);
    --text-4xl: clamp(2rem, 3vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 4vw, 3.5rem);
    --text-6xl: clamp(3rem, 5vw, 4.5rem);

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px var(--color-shadow);
    --shadow-md: 0 4px 6px -1px var(--color-shadow), 0 2px 4px -2px var(--color-shadow);
    --shadow-lg: 0 10px 15px -3px var(--color-shadow-lg), 0 4px 6px -4px var(--color-shadow);
    --shadow-xl: 0 20px 25px -5px var(--color-shadow-lg), 0 8px 10px -6px var(--color-shadow);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-wide: 1440px;
    --header-height: 100px;
    --section-padding: clamp(3rem, 6vw, 6rem);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
}

/* ============================================
   CSS RESET
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--section-padding) 0;
}

.section--cream {
    background-color: var(--color-bg-cream);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--color-text-on-dark);
}

.section--dark p {
    color: var(--color-text-on-dark-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.accent-underline {
    position: relative;
    display: inline-block;
}

.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-lg);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 640px;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header.text-center .section-subtitle {
    margin: 0 auto;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
