/*
Theme Name: Steels Corporate
Theme URI: https://steels.com
Author: Steels Web Team
Author URI: https://steels.com
Description: A premium corporate portfolio theme for Steels - an industrial steel manufacturing and engineering company. Features full-screen hero sliders, product portfolio with categories, mega menus, and a professional dark/light design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steels
Tags: corporate, portfolio, industrial, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =========================================================
   STEELS CORPORATE THEME — MASTER STYLESHEET
   Design System: Dark steel blues, bold typography,
   precision layouts inspired by industrial excellence.
   ========================================================= */

/* ----------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary:        #0A2240;   /* Deep Navy Steel */
  --color-primary-light:  #0D3060;
  --color-accent:         #E8311A;   /* Forge Red */
  --color-accent-hover:   #C42A16;
  --color-gold:           #C9A84C;   /* Steel Gold */
  --color-steel:          #4A7FB5;   /* Steel Blue */
  --color-steel-light:    #7BAFD4;

  /* Neutrals */
  --color-white:          #FFFFFF;
  --color-off-white:      #F5F7FA;
  --color-light-gray:     #E8ECF0;
  --color-mid-gray:       #9AABBF;
  --color-dark-gray:      #4A5568;
  --color-charcoal:       #1A2332;
  --color-black:          #0D111A;

  /* Typography */
  --font-display:  'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-heading:  'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-body:     'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  /* Type Scale */
  --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:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;
  --text-hero:  6rem;

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;

  /* Layout */
  --container-max:      1320px;
  --container-wide:     1600px;
  --container-narrow:   860px;

  /* Borders */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --border-width: 1px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.15);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.2);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.3);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* Z-index scale */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:    10;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

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

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

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

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ----------------------------------------------------------
   UTILITY CLASSES
   ---------------------------------------------------------- */
.container        { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container--wide  { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }

.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; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-white   { color: var(--color-white); }
.text-gold    { color: var(--color-gold); }

.bg-primary   { background: var(--color-primary); }
.bg-accent    { background: var(--color-accent); }
.bg-off-white { background: var(--color-off-white); }
.bg-dark      { background: var(--color-charcoal); }

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.2em; }

/* ----------------------------------------------------------
   SECTION SPACING
   ---------------------------------------------------------- */
.section-padding        { padding: var(--space-24) 0; }
.section-padding--lg    { padding: var(--space-32) 0; }
.section-padding--sm    { padding: var(--space-16) 0; }

/* ----------------------------------------------------------
   SECTION LABELS (eyebrow text above headings)
   ---------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-label--light { color: var(--color-steel-light); }
.section-label--gold  { color: var(--color-gold); }

/* ----------------------------------------------------------
   HEADINGS
   ---------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.section-title--light { color: var(--color-white); }
.section-title--sm    { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-dark-gray);
  line-height: 1.7;
  max-width: 640px;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); }

.btn-outline--dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline--dark:hover { background: var(--color-primary); color: var(--color-white); }

.btn-text {
  padding: 0;
  background: none;
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
}
.btn-text:hover { color: var(--color-accent-hover); }
.btn-text .arrow { transition: transform var(--transition-base); }
.btn-text:hover .arrow { transform: translateX(4px); }

.btn-icon {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

/* Arrow icon inside buttons */
.btn-arrow-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.btn:hover .btn-arrow-icon { transform: translateX(3px); }

/* ----------------------------------------------------------
   CARDS
   ---------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__image { position: relative; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.card:hover .card__image img { transform: scale(1.05); }

.card__body { padding: var(--space-6); }
.card__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2); }
.card__title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-3); line-height: 1.3; }
.card__text  { font-size: var(--text-sm); color: var(--color-dark-gray); line-height: 1.7; }
.card__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-light-gray); }

/* ----------------------------------------------------------
   DIVIDERS
   ---------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.divider__line { flex: 1; height: 1px; background: var(--color-light-gray); }
.divider__accent { width: 40px; height: 3px; background: var(--color-accent); flex-shrink: 0; }

.title-underline {
  position: relative;
  display: inline-block;
}
.title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 60px; height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ----------------------------------------------------------
   FORMS
   ---------------------------------------------------------- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-bottom: var(--space-2); }
.form-control {
  display: block; width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}
.form-control:focus { border-color: var(--color-steel); box-shadow: 0 0 0 3px rgba(74,127,181,0.15); }
.form-control--error { border-color: var(--color-accent); }

textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ----------------------------------------------------------
   GRID SYSTEM
   ---------------------------------------------------------- */
.grid { display: grid; gap: var(--space-6); }
.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 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4      { gap: var(--space-4); }
.gap-6      { gap: var(--space-6); }
.gap-8      { gap: var(--space-8); }

/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-padding { padding: var(--space-16) 0; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-padding { padding: var(--space-12) 0; }
  :root { --text-hero: 3.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
}

/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-steel);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ----------------------------------------------------------
   PRINT
   ---------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero-slider, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
