/* =============================================================================
   GLOBAL.CSS — UE Landworks
   CSS custom properties, Google Fonts, base resets, and typography scale
   ============================================================================= */

/* -----------------------------------------------------------------------------
   GOOGLE FONTS IMPORT
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500&display=swap');


/* -----------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ----------------------------------------------------------------------------- */
:root {
  /* Colors */
  --orange:       #F47B00;
  --orange-dark:  #C96200;
  --orange-light: #FF9A2E;
  --black:        #0D0D0D;
  --dark:         #161616;
  --dark2:        #1F1F1F;
  --gray:         #2A2A2A;
  --text-muted:   #888888;
  --white:        #F5F0EA;

  /* Typography — families */
  --font-display:  'Bebas Neue', sans-serif;
  --font-ui:       'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  /* Typography — sizes */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.0625rem; /* 17px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  3rem;      /* 48px */
  --text-4xl:  4rem;      /* 64px */
  --text-5xl:  5rem;      /* 80px */

  /* Typography — line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  /* Typography — letter spacing */
  --tracking-tight:  0px;
  --tracking-normal: 1px;
  --tracking-wide:   2px;
  --tracking-wider:  3px;
  --tracking-widest: 4px;

  /* Spacing scale */
  --space-1:  0.25rem;   /* 4px  */
  --space-2:  0.5rem;    /* 8px  */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Layout */
  --container-max:  1280px;
  --container-md:   960px;
  --container-sm:   720px;
  --gutter:         1.5rem;
  --gutter-lg:      2.5rem;

  /* Borders */
  --radius-none:  0;
  --border-color: var(--gray);

  /* Shadows / Glow */
  --logo-glow:       drop-shadow(0 0 8px rgba(244, 123, 0, 0.5));
  --orange-glow-sm:  0 0 12px rgba(244, 123, 0, 0.25);
  --orange-glow-md:  0 0 24px rgba(244, 123, 0, 0.35);

  /* Z-index scale */
  --z-base:    1;
  --z-above:   10;
  --z-nav:     100;
  --z-modal:   200;
  --z-overlay: 300;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Clip-path parallelogram offsets (adjust per element size) */
  --clip-sm:  6px;
  --clip-md:  10px;
  --clip-lg:  14px;
}


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

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll lock — applied via JS when modal is open */
body.modal-open {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

input,
select,
textarea {
  cursor: text;
}

fieldset {
  border: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
  line-height: var(--leading-tight);
}

/* Remove default focus ring — replaced with orange outline below */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}


/* -----------------------------------------------------------------------------
   NOISE TEXTURE OVERLAY
   Full-page fixed pseudo-element providing tactile depth at 4% opacity.
   Applied to body::before so it covers everything without blocking events.
   ----------------------------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 1;
}


/* -----------------------------------------------------------------------------
   TYPOGRAPHY SCALE — DISPLAY (Bebas Neue)
   All-caps, wide letter-spacing. Used for page titles and hero headlines.
   ----------------------------------------------------------------------------- */

/* Hero headline — largest display size */
.text-hero {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, var(--text-5xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Section headline — H1/H2 equivalents */
.text-display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-4xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.text-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-3xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.text-display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--text-2xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Outlined / hollow display text — for alternating headline style */
.text-display--outline {
  -webkit-text-stroke: 2px currentColor;
  color: transparent;
}


/* -----------------------------------------------------------------------------
   TYPOGRAPHY SCALE — UI / SUBHEADINGS (Barlow Condensed)
   Uppercase, weight 600–700, tight letter-spacing.
   ----------------------------------------------------------------------------- */

/* Section labels — small orange caps preceding H2 */
.text-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Left rule line on section labels */
.text-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--orange);
  flex-shrink: 0;
}

.text-subheading-lg {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.text-subheading {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.text-subheading-sm {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Nav links and UI buttons */
.text-ui {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.text-ui-sm {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}


/* -----------------------------------------------------------------------------
   TYPOGRAPHY SCALE — BODY (Barlow)
   Normal case, weight 400–500, comfortable line-height.
   ----------------------------------------------------------------------------- */

.text-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-relaxed);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-normal);
}

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

.text-orange {
  color: var(--orange);
}

.text-white {
  color: var(--white);
}


/* -----------------------------------------------------------------------------
   LAYOUT UTILITIES
   ----------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: 60px;
  }
}

/* Section vertical rhythm */
.section {
  padding-block: var(--space-20);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-24);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-32);
  }
}

/* Section backgrounds */
.bg-black  { background-color: var(--black); }
.bg-dark   { background-color: var(--dark); }
.bg-dark2  { background-color: var(--dark2); }
.bg-orange { background-color: var(--orange); }

/* Orange radial glow accent — applied as a section background layer */
.bg-glow {
  background-image: radial-gradient(ellipse at 50% 0%, rgba(244, 123, 0, 0.08), transparent 70%);
}


/* -----------------------------------------------------------------------------
   SECTION HEADER PATTERN
   Label (with left rule) stacked above Bebas Neue H2.
   ----------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header__label {
  /* Inherits .text-label styles — apply both classes */
  margin-bottom: var(--space-4);
}

.section-header__title {
  /* Apply .text-display or .text-display-lg alongside this class */
}

.section-header__body {
  margin-top: var(--space-6);
  max-width: 56ch;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}


/* -----------------------------------------------------------------------------
   ACCESSIBILITY — REDUCED MOTION
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
