/**
 * TRISENSA CERAMICS — DESIGN SYSTEM TOKENS
 * Visual Direction: Modern Industrial Editorial
 * Brand: PT. Sumbertaman Keramika Industri (Since 1948)
 */

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

:root {
  /* Brand Identity Colors */
  --color-brand-red: #E30C19;
  --color-brand-red-hover: #C50915;
  --color-brand-terracotta: #B8472E;
  --color-brand-clay: #8C4729;
  --color-brand-sage: #2C4A3E;

  /* Surfaces & Backgrounds */
  --color-bg-canvas: #F9F8F5;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-alt: #F3EFE9;
  --color-bg-surface-elevated: #FFFFFF;
  --color-bg-dark: #181716;
  --color-bg-dark-surface: #22201E;

  /* Typography Colors */
  --color-text-primary: #1C1B19;
  --color-text-secondary: #5C5852;
  --color-text-muted: #827E77;
  --color-text-inverse: #F9F8F5;
  --color-text-inverse-muted: #A8A49D;

  /* Borders & Dividers */
  --color-border: #E5E1D8;
  --color-border-subtle: #EFECE6;
  --color-border-dark: #33312D;
  --color-border-focus: #1C1B19;

  /* Interactive States */
  --color-hover-overlay: rgba(28, 27, 25, 0.04);
  --color-active-overlay: rgba(28, 27, 25, 0.08);

  /* Status Tokens */
  --color-success: #1E6B3C;
  --color-success-bg: #EDF7F0;
  --color-warning: #B36814;
  --color-warning-bg: #FCF4E8;
  --color-error: #D32F2F;
  --color-error-bg: #FDEDED;

  /* Typography Families */
  --font-family-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: 'Space Grotesk', ui-monospace, Menlo, Monaco, monospace;

  /* Typography Scales */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.125rem;    /* 18px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 2.5rem;     /* 40px */
  --font-size-4xl: 3.25rem;    /* 52px */
  --font-size-hero: 4rem;      /* 64px */

  /* Spacing System */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4.5rem;   /* 72px */
  --space-4xl: 6rem;     /* 96px */

  /* Layout Boundaries */
  --container-max-width: 1280px;
  --container-wide-width: 1440px;
  --container-padding: 1.5rem;
  --header-height: 84px;

  /* Border Radii */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-subtle: 0 1px 3px rgba(28, 27, 25, 0.05);
  --shadow-card: 0 4px 12px rgba(28, 27, 25, 0.04), 0 1px 2px rgba(28, 27, 25, 0.02);
  --shadow-card-hover: 0 12px 28px rgba(28, 27, 25, 0.08), 0 2px 6px rgba(28, 27, 25, 0.04);
  --shadow-modal: 0 24px 48px rgba(28, 27, 25, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --header-height: 68px;
    --space-4xl: 3.5rem;
    --space-3xl: 2.5rem;
    --space-2xl: 2rem;
    --space-xl: 1.5rem;
  }
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-canvas);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  padding-top: var(--header-height);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  color: var(--color-text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--font-size-hero)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--font-size-3xl)); }
h3 { font-size: clamp(1.35rem, 2.5vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

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

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus indicator for WCAG accessibility */
:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

/* Utilities */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

