/* ============================================================
   ESKA METALWORKS – Global Design System
   style.css | ESKA Metalworks Design System
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary:       #FF6B00;
  --color-primary-dark:  #CC5500;
  --color-primary-glow:  rgba(255, 107, 0, 0.25);
  --color-dark:          #0D0D0D;
  --color-dark-2:        #1A1A1A;
  --color-dark-3:        #242424;
  --color-dark-4:        #2E2E2E;
  --color-steel:         #2C3E50;
  --color-steel-light:   #3D5166;
  --color-light:         #F5F5F5;
  --color-light-2:       #E0E0E0;
  --color-muted:         #9E9E9E;
  --color-white:         #FFFFFF;

  /* Socials */
  --color-whatsapp:      #25D366;
  --color-twitter:       #000000;
  --color-facebook:      #1877F2;
  --color-instagram-1:   #833AB4;
  --color-instagram-2:   #FD1D1D;
  --color-instagram-3:   #FCB045;

  /* Typography */
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Font Sizes (fluid clamp) */
  --text-xs:    clamp(0.7rem,  1.5vw, 0.75rem);
  --text-sm:    clamp(0.85rem, 1.8vw, 0.9rem);
  --text-base:  clamp(0.95rem, 2vw,   1rem);
  --text-lg:    clamp(1.05rem, 2.2vw, 1.125rem);
  --text-xl:    clamp(1.15rem, 2.5vw, 1.25rem);
  --text-2xl:   clamp(1.2rem,  3vw,   1.5rem);
  --text-3xl:   clamp(1.4rem,  4vw,   2rem);
  --text-4xl:   clamp(1.75rem, 5vw,   2.75rem);
  --text-5xl:   clamp(2rem,    6vw,   3.75rem);
  --text-hero:  clamp(2.2rem,  8vw,   5.5rem);

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

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.5);
  --shadow-orange: 0 4px 24px var(--color-primary-glow);

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

  /* Layout */
  --container-max:  1280px;
  --nav-height:     72px;
  --section-pad-y:  var(--space-20);
}

/* ── CSS Reset ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}


body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-light);
  background-color: var(--color-dark);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-5xl);  }
h3 { font-size: var(--text-3xl);  }
h4 { font-size: var(--text-2xl);  }
h5 { font-size: var(--text-xl);   }
h6 { font-size: var(--text-lg);   }

p {
  color: var(--color-muted);
  line-height: 1.8;
}

strong { color: var(--color-white); font-weight: 600; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 640px)  { .container { padding-inline: var(--space-8);  } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

.section {
  padding-block: var(--section-pad-y);
}

.section--dark   { background-color: var(--color-dark);   }
.section--dark-2 { background-color: var(--color-dark-2); }
.section--dark-3 { background-color: var(--color-dark-3); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Section Heading ──────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.section-title span {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-muted);
  max-width: 600px;
  line-height: 1.8;
}

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

.section-header--center {
  text-align: center;
}

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

/* Orange accent underline */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin-top: var(--space-4);
  border-radius: var(--radius-full);
}

.section-header--center .section-title::after {
  margin-inline: auto;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-dark-4), transparent);
  border: none;
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-primary  { color: var(--color-primary); }
.text-white    { color: var(--color-white);   }
.text-muted    { color: var(--color-muted);   }
.text-upper    { text-transform: uppercase;   }
.text-center   { text-align: center;          }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Page Hero Banner (inner pages) ──────────────────────── */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background-color: var(--color-dark-2);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.9) 0%,
    rgba(255, 107, 0, 0.08) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
}

.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.page-hero__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

.page-hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.breadcrumb a { color: var(--color-muted); transition: color var(--transition-base); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: var(--color-primary); }
.breadcrumb__current { color: var(--color-light); }

/* Real App Icons */
.app-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
}
.btn .app-icon {
  margin-right: 0.5rem;
}
.footer__contact-item .app-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.fab .app-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
