/* =============================================================================
   HICKS METALS & ALLOYS LTD — Main Stylesheet
   Typography: Roboto, Helvetica, Arial, Verdana, sans-serif — 18px/22px
   Brand Red : #ee222e
   Brand Nav : #546272
   Brand Dark: #172a34
   Footer    : #3d4a56
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  /* Push content below fixed header */
  scroll-padding-top: 70px;
}

body {
  font-family: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #333333;
  background-color: #ffffff;
}

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

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

/* -----------------------------------------------------------------------------
   2. LAYOUT HELPERS
----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -----------------------------------------------------------------------------
   3. HEADER (Fixed)
----------------------------------------------------------------------------- */
.site-header {
  background-color: #546272;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: stretch;
  height: 70px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  padding: 10px 16px 10px 0;
  flex-shrink: 0;
}

.logo-wrap img {
  height: 48px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #ffffff;
  font-family: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  height: 100%;
  transition: background-color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background-color: #ee222e;
  color: #ffffff;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 70px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Hamburger → X animation */
.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  background-color: #3d4a56;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-item {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background-color: #ee222e;
}

/* -----------------------------------------------------------------------------
   4. PAGE OFFSET (so fixed header doesn't cover content)
----------------------------------------------------------------------------- */
.page-wrap {
  padding-top: 70px;
}

/* -----------------------------------------------------------------------------
   5. HERO SLIDER
----------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #e8e8e8;
  background-image: url('../images/poly.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 540px;
}

/* Slide background image — fades in via JS */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/slider.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide-bg.is-visible {
  opacity: 1;
}

/* Gradient overlay on top of slide image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-overlay.is-visible {
  opacity: 1;
}

/* Text content layer */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 60px;
}

/* Animated text elements — start hidden, JS adds .is-anim */
.hero-metal-recycling,
.hero-ampersand,
.hero-skip-hire {
  font-family: 'Oswald', sans-serif;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-metal-recycling {
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.hero-ampersand {
  font-size: 80px;
  font-weight: 700;
  color: #ee222e;
}

.hero-skip-hire {
  font-size: 110px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.hero-subtext {
  font-family: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 10px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-cta-box {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Shared animated state */
.hero-metal-recycling.is-anim,
.hero-ampersand.is-anim,
.hero-skip-hire.is-anim {
  opacity: 1;
  transform: translateX(0);
}

.hero-subtext.is-anim,
.hero-cta-box.is-anim {
  opacity: 1;
  transform: translateY(0);
}

/* CTA text block */
.hero-cta-text {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
}

.hero-cta-text strong {
  color: #ee222e;
  font-weight: 700;
}

/* Phone link */
.hero-phone {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}

.hero-phone:hover {
  color: #ee222e;
}

.hero-phone svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   6. SECTION DIVIDER
----------------------------------------------------------------------------- */
.section-divider {
  border: none;
  border-top: 1px solid #dddddd;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   7. SERVICE CARDS (3-column grid)
----------------------------------------------------------------------------- */
.cards-section {
  display: flex;
}

.service-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: block;
  text-decoration: none;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-bg {
  transform: scale(1.07);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.42);
  transition: background-color 0.3s ease;
}

.service-card:hover .service-card-overlay {
  background-color: rgba(0, 0, 0, 0.58);
}

.service-card-body {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  color: #ffffff;
}

.service-card-title {
  font-family: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.service-card-rule {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  width: 55%;
  margin: 0 0 16px 0;
}

.service-card-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* Thin vertical separator between cards */
.service-card + .service-card {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* -----------------------------------------------------------------------------
   8. FOOTER
----------------------------------------------------------------------------- */
.site-footer {
  background-color: #3d4a56;
  padding: 14px 24px;
}

.site-footer p {
  font-family: 'Roboto', Helvetica, Arial, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   9. RESPONSIVE — Tablet (≤ 991px)
----------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-slider-wrap {
    height: 420px;
  }

  .hero-content {
    padding: 30px 36px;
  }

  .hero-metal-recycling {
    font-size: 56px;
  }

  .hero-ampersand {
    font-size: 56px;
  }

  .hero-skip-hire {
    font-size: 76px;
  }

  .hero-subtext {
    font-size: 24px;
  }

  .hero-phone {
    font-size: 24px;
  }
}

/* -----------------------------------------------------------------------------
   10. RESPONSIVE — Mobile (≤ 767px)
----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Swap desktop nav for hamburger */
  .main-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Hero adjustments */
  .hero-slider-wrap {
    height: 320px;
  }

  .hero-content {
    padding: 24px 20px;
    align-items: center;
    text-align: center;
  }

  .hero-metal-recycling {
    font-size: 40px;
  }

  .hero-ampersand {
    font-size: 40px;
  }

  .hero-skip-hire {
    font-size: 54px;
  }

  .hero-subtext {
    font-size: 18px;
    text-align: center;
  }

  .hero-cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-phone {
    font-size: 22px;
  }

  /* Stack cards vertically */
  .cards-section {
    flex-direction: column;
  }

  .service-card {
    min-height: 220px;
  }

  .service-card + .service-card {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* -----------------------------------------------------------------------------
   11. RESPONSIVE — Small Mobile (≤ 480px)
----------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-slider-wrap {
    height: 260px;
  }

  .hero-metal-recycling {
    font-size: 32px;
  }

  .hero-skip-hire {
    font-size: 42px;
  }

  .hero-subtext {
    font-size: 15px;
  }

  .hero-phone {
    font-size: 20px;
  }
}

