/* ============================================
   COREMETAL INDUSTRIES — Global Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --clr-black: #000000;
  --clr-dark: #0a0a0a;
  --clr-dark-card: #111111;
  --clr-dark-surface: #1a1a1a;
  --clr-copper: #AC8566;
  --clr-copper-light: #c9a07a;
  --clr-copper-dark: #8a6a50;
  --clr-white: #ffffff;
  --clr-gray-100: #f5f5f5;
  --clr-gray-300: #cccccc;
  --clr-gray-500: #888888;
  --clr-gray-700: #444444;
  --clr-gray-900: #1a1a1a;

  /* Typography */
  --ff-primary: 'Poppins', sans-serif;
  --ff-heading: 'Poppins', sans-serif;

  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3rem;      /* 48px */
  --fs-5xl: 3.5rem;    /* 56px */
  --fs-hero: 4.5rem;   /* 72px */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slider: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-copper: 0 4px 20px rgba(172, 133, 102, 0.3);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section {
  padding: var(--space-5xl) 0;
}

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

.section--copper {
  background-color: var(--clr-copper);
}

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

.text-copper {
  color: var(--clr-copper);
}

.text-gray {
  color: var(--clr-gray-300);
}

/* ---------- Section Headings ---------- */
.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--clr-copper);
  margin-top: var(--space-md);
}

.section-title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-gray-300);
  max-width: 700px;
  line-height: 1.7;
}

.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

.btn--outline:hover {
  background: var(--clr-copper);
  color: var(--clr-white);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background: var(--clr-gray-100);
  transform: translateY(-2px);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--clr-gray-300);
}

.breadcrumb a {
  color: var(--clr-copper);
}

.breadcrumb a:hover {
  color: var(--clr-copper-light);
}

.breadcrumb .separator {
  color: var(--clr-gray-500);
}

/* ---------- Page Hero Banner (Inner Pages) ---------- */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-black) 100%);
  border-bottom: 3px solid var(--clr-copper);
  text-align: center;
  padding-top: var(--header-height);
}

.page-hero__title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--clr-copper);
  color: var(--clr-white);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-copper);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-copper-light);
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(172, 133, 102, 0.4); /* Copper transparent */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(172, 133, 102, 0.1); /* Very light copper fill */
  border-color: rgba(172, 133, 102, 0.8);
}
