/* =========================================================
   Ai PANTHIYA - GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {
    /* Core brand colors */
    --color-yellow: #f2b51f;
    --color-red: #a63a3e;
    --color-maroon: #7a232c;
    --color-charcoal: #1f1f1f;
    --color-black: #111111;
    --color-ash-dark: #2b2b2b;
    --color-ash: #686868;
    --color-ash-light: #e8e8e8;
    --color-ash-soft: #f3f3f3;
    --color-ivory: #f7f3e8;
    --color-white: #ffffff;

    /* Semantic colors */
    --color-background: var(--color-white);
    --color-surface: var(--color-ash-soft);
    --color-surface-dark: var(--color-charcoal);
    --color-text: var(--color-charcoal);
    --color-text-muted: var(--color-ash);
    --color-primary: var(--color-yellow);
    --color-accent: var(--color-red);
    --color-border: #dddddd;

    /* Typography */
    --font-heading: "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 24px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Shadow */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: 180ms ease;
}

/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

main:focus {
    outline: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    -webkit-tap-highlight-color: rgba(242, 181, 31, 0.24);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-heading);
    line-height: 1.15;
}

p {
    margin-top: 0;
}

.container {
    width: min(calc(100% - (var(--container-padding) * 2)),
            var(--container-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--space-3xl);
}

.section--dark {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.section--ash {
    background: var(--color-ash-soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-maroon);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-label::before {
    width: 24px;
    height: 3px;
    background: var(--color-yellow);
    content: "";
}

.section-title {
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.section--dark .section-description {
    color: #cfcfcf;
}

.section--dark .section-label {
    color: var(--color-yellow);
}

/* Accessibility */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    background: var(--color-yellow);
    color: var(--color-black);
    font-weight: 800;
}

.skip-link:focus {
    top: 20px;
}

:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
