/*
Theme Name:  Steels Corporate Theme
Theme URI:   https://steels.com
Author:      Steels Digital Team
Author URI:  https://steels.com
Description: A premium corporate portfolio theme for Steels — a heavy industries and manufacturing company. Engineered with bold typography, immersive full-width sections, scroll-driven animations, and a robust customization framework.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steels-corp
Tags:        corporate, portfolio, manufacturing, full-width-template, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   TABLE OF CONTENTS
   ============================================================
   1.  CSS Custom Properties (Design Tokens)
   2.  CSS Reset & Base Styles
   3.  Typography Scale
   4.  Layout Utilities & Grid System
   5.  Utility Classes
   6.  Accessibility
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES — Design Token System
   ============================================================ */
:root {

  /* — Brand Color Palette — */
  --clr-navy:        #0d1b2e;   /* Deep corporate navy – primary brand */
  --clr-navy-mid:    #162540;   /* Mid-depth navy for cards / nav */
  --clr-navy-light:  #1f3460;   /* Lighter navy for hover states */
  --clr-steel:       #2e4a7a;   /* Steel blue – secondary brand */
  --clr-accent:      #e8511a;   /* Molten orange – signature accent (industrial heat) */
  --clr-accent-dark: #c03f0f;   /* Deeper orange for pressed states */
  --clr-accent-glow: rgba(232, 81, 26, 0.18); /* Accent glow for backgrounds */

  /* — Neutrals — */
  --clr-white:       #ffffff;
  --clr-off-white:   #f4f6f9;
  --clr-mist:        #e8edf5;
  --clr-silver:      #c4cdd8;
  --clr-slate:       #6b7a90;
  --clr-charcoal:    #2d3748;
  --clr-dark:        #111827;

  /* — Text — */
  --clr-text-primary:   #1a2335;
  --clr-text-secondary: #4a5568;
  --clr-text-muted:     #718096;
  --clr-text-on-dark:   #e2e8f0;
  --clr-text-white:     #ffffff;

  /* — Semantic — */
  --clr-success: #0f9d58;
  --clr-warning: #f4b400;
  --clr-error:   #db4437;

  /* — Typography — */
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* — Type Scale (fluid, clamp-based) — */
  --text-xs:   clamp(0.694rem,  0.65rem + 0.22vw,  0.8rem);
  --text-sm:   clamp(0.833rem,  0.78rem + 0.26vw,  0.9rem);
  --text-base: clamp(1rem,      0.95rem + 0.26vw,  1.063rem);
  --text-md:   clamp(1.2rem,    1.1rem  + 0.5vw,   1.375rem);
  --text-lg:   clamp(1.44rem,   1.25rem + 0.95vw,  1.875rem);
  --text-xl:   clamp(1.728rem,  1.4rem  + 1.6vw,   2.5rem);
  --text-2xl:  clamp(2.074rem,  1.6rem  + 2.4vw,   3.25rem);
  --text-3xl:  clamp(2.488rem,  1.8rem  + 3.4vw,   4.25rem);
  --text-hero: clamp(2.8rem,    2rem    + 4.5vw,   5.5rem);

  /* — Font Weights — */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* — Line Heights — */
  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.6;
  --lh-loose:  1.85;

  /* — Letter Spacing — */
  --ls-tight:  -0.03em;
  --ls-normal: -0.01em;
  --ls-wide:   0.05em;
  --ls-wider:  0.1em;
  --ls-widest: 0.2em;

  /* — 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 */

  /* — Section Padding (vertical rhythm) — */
  --section-pad-sm: clamp(3rem, 5vw, 4rem);
  --section-pad:    clamp(4rem, 7vw, 6rem);
  --section-pad-lg: clamp(5rem, 9vw, 8rem);

  /* — Container — */
  --container-max: 1320px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* — Border Radius — */
  --radius-sm:   3px;
  --radius:      6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.1),  0 2px 6px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.16), 0 6px 20px rgba(0,0,0,0.1);
  --shadow-xl:  0 24px 72px rgba(0,0,0,0.2);
  --shadow-accent: 0 8px 32px rgba(232,81,26,0.35);

  /* — Transitions — */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);

  --transition-fast:   150ms var(--ease-out);
  --transition-base:   250ms var(--ease-out);
  --transition-slow:   400ms var(--ease-out-expo);
  --transition-slower: 600ms var(--ease-out-expo);

  /* — Z-Index Stack — */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* — Navigation Heights — */
  --topbar-height: 40px;
  --nav-height:    80px;
  --header-total:  calc(var(--topbar-height) + var(--nav-height));

}


/* ============================================================
   2. CSS RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

button { cursor: pointer; }

ul, ol { list-style: none; }

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--clr-mist);
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */

/* Display Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-primary);
  font-weight: var(--fw-bold);
}

h1, .h1 { font-size: var(--text-3xl); font-weight: var(--fw-black); }
h2, .h2 { font-size: var(--text-2xl); }
h3, .h3 { font-size: var(--text-xl); }
h4, .h4 { font-size: var(--text-lg); }
h5, .h5 { font-size: var(--text-md); }
h6, .h6 { font-size: var(--text-base); font-weight: var(--fw-semibold); }

/* Body Text */
p {
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--clr-text-secondary);
}

p + p { margin-top: var(--space-4); }

/* Display utility */
.display-hero {
  font-size: var(--text-hero);
  font-weight: var(--fw-black);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
}

/* Section Labels / Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* On dark backgrounds */
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5,
.on-dark h6 { color: var(--clr-white); }

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

.on-dark .eyebrow { color: var(--clr-accent); }


/* ============================================================
   4. LAYOUT UTILITIES & GRID SYSTEM
   ============================================================ */

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

.container--narrow  { max-width: 900px; }
.container--wide    { max-width: 1500px; }
.container--flush   { padding-inline: 0; }

/* Section wrapper */
.section {
  padding-block: var(--section-pad);
}

.section--sm  { padding-block: var(--section-pad-sm); }
.section--lg  { padding-block: var(--section-pad-lg); }
.section--none { padding-block: 0; }

/* Flexbox grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Flex utilities */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap  { flex-wrap: wrap; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Section header layout */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header .eyebrow {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-md);
  line-height: var(--lh-snug);
}

/* Divider accent bar under section headings */
.heading-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  margin-top: var(--space-5);
  border-radius: var(--radius-full);
}

.section-header--center .heading-accent {
  margin-inline: auto;
}


/* ============================================================
   5. UTILITY CLASSES
   ============================================================ */

/* Background fills */
.bg-navy     { background-color: var(--clr-navy); }
.bg-navy-mid { background-color: var(--clr-navy-mid); }
.bg-dark     { background-color: var(--clr-dark); }
.bg-off-white{ background-color: var(--clr-off-white); }
.bg-accent   { background-color: var(--clr-accent); }
.bg-white    { background-color: var(--clr-white); }
.bg-mist     { background-color: var(--clr-mist); }

/* Text colors */
.text-accent   { color: var(--clr-accent) !important; }
.text-white    { color: var(--clr-white) !important; }
.text-muted    { color: var(--clr-text-muted) !important; }
.text-navy     { color: var(--clr-navy) !important; }

/* Font weights */
.fw-light     { font-weight: var(--fw-light); }
.fw-regular   { font-weight: var(--fw-regular); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }
.fw-black     { font-weight: var(--fw-black); }

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

.hidden   { display: none !important; }
.invisible { visibility: hidden !important; }

/* Spacing helpers */
.mt-0  { margin-top: 0 !important; }
.mt-4  { margin-top: var(--space-4)  !important; }
.mt-8  { margin-top: var(--space-8)  !important; }
.mt-12 { margin-top: var(--space-12) !important; }
.mt-16 { margin-top: var(--space-16) !important; }

.mb-4  { margin-bottom: var(--space-4)  !important; }
.mb-8  { margin-bottom: var(--space-8)  !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }

/* Text alignment */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* CTA Buttons — primary system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
}

.btn--primary:hover {
  background: var(--clr-accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
}

.btn--outline-accent {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
}

.btn--outline-accent:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
}

.btn--navy {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.btn--navy:hover {
  background: var(--clr-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

/* Arrow icon in buttons */
.btn .arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* ============================================================
   6. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--clr-accent);
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Respect reduced motion preference */
@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;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — mobile-first
   ============================================================ */

/* ≥ 640px (sm) */
@media (min-width: 640px) {
  .sm\:grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 768px (md) */
@media (min-width: 768px) {
  .md\:grid--2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 1024px (lg) */
@media (min-width: 1024px) {
  .lg\:grid--3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ≤ 767px collapse helpers */
@media (max-width: 767px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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