/* =========================================================
   FREORA WEBSITE STYLES
   Fluid version: header, main, and footer scale with screen
   ========================================================= */

/* =========================================================
   1. THEME VARIABLES
   ========================================================= */

:root {
  --ink: #07182f;
  --muted: #314155;
  --paper: #fbf4ea;
  --paper-light: #fff9f0;
  --gold: #c98a1c;
  --line: rgba(7, 24, 47, 0.14);
  --shadow: 0 24px 70px rgba(7, 24, 47, 0.13);
  --max-width: 1220px;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);

  background:
    radial-gradient(
      circle at 2% 9%,
      rgba(201, 138, 28, 0.1),
      transparent 22rem
    ),
    linear-gradient(
      180deg,
      var(--paper) 0%,
      var(--paper-light) 44%,
      var(--paper) 100%
    );

  font-family: Arial, Helvetica, sans-serif;
}

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

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


/* =========================================================
   3. HERO / HEADER
   ========================================================= */

.hero-header {
  position: relative;
  overflow: hidden;
  background: #fbf4ea;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   4. NAVIGATION
   ========================================================= */

.nav {
  position: absolute;
  top: clamp(14px, 2vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  width: min(var(--max-width), calc(100% - 40px));
  height: clamp(52px, 6vw, 72px);

  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* =========================================================
   LOGO
   Positioned independently so changing its size does NOT
   move the navigation links.
   ========================================================= */

.logo {
  position: absolute;

  left: 0;
  top: 50%;
  transform: translateY(-50%);

  display: block;
  z-index: 11;
}

.logo img {
  display: block;

  /*
     Responsive desktop logo.

     Increase the 22vw value if you want it to grow faster.
     Increase 360px if you want a larger maximum.
  */
  width: clamp(220px, 18vw, 360px);
  height: auto;
  max-width: none;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 62px);

  font-size: clamp(0.65rem, 1vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: -10px;

  height: 2px;

  background: var(--gold);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.18s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-button {
  display: none;

  width: 44px;
  height: 38px;
  padding: 0;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-button span {
  display: block;

  width: 28px;
  height: 2px;
  margin: 6px auto;

  background: var(--ink);
}


/* =========================================================
   5. HERO CONTENT
   ========================================================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;

  display: flex;
  align-items: center;

  pointer-events: none;
}

.hero-content {
  max-width: 740px;

  text-align: left;

  pointer-events: auto;
}

.eyebrow {
  margin: 0;

  color: var(--gold);

  font-size: clamp(0.8rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.subtitle {
  max-width: 520px;

  margin: clamp(10px, 2vw, 24px) 0 0;

  color: #ffffff;

  font-size: clamp(0.8rem, 1.45vw, 1.25rem);
  line-height: 1.55;
}


/* =========================================================
   6. SHARED SECTIONS
   ========================================================= */

.section {
  width: min(var(--max-width), calc(100% - 40px));

  margin: 0 auto;

  padding: clamp(50px, 8vw, 130px) 0;
}

.weapons-section,
.features-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 62px);

  text-align: center;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(1.1rem, 3vw, 2.25rem);
  letter-spacing: clamp(0.08em, 0.8vw, 0.2em);

  text-transform: uppercase;
}

.section-heading span {
  display: block;

  width: 66px;
  height: 2px;

  margin: 20px auto 0;

  background: var(--gold);
}


/* =========================================================
   7. WEAPONS SECTION
   ========================================================= */

.weapon-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: clamp(18px, 2vw, 28px);
}

.weapon-card {
  min-height: auto;

  padding: clamp(18px, 2.4vw, 30px);

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 248, 235, 0.9)
    );

  border: 1px solid rgba(7, 24, 47, 0.16);
  border-radius: 12px;

  box-shadow: 0 12px 34px rgba(7, 24, 47, 0.07);
}

.weapon-card img {
  width: min(230px, 88%);

  height: clamp(120px, 16vw, 190px);

  margin: 0 auto clamp(14px, 2vw, 22px);

  object-fit: contain;
}

.weapon-card h3 {
  margin: 0;

  font-size: clamp(0.9rem, 1.4vw, 1.13rem);
  letter-spacing: 0.19em;

  text-transform: uppercase;
}

.weapon-card .role {
  margin:
    clamp(8px, 1.4vw, 13px)
    0
    clamp(12px, 2vw, 22px);

  color: var(--gold);

  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.weapon-card p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.65;
}


/* =========================================================
   8. FEATURES SECTION
   ========================================================= */

.feature-grid {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card {
  min-height: clamp(100px, 13vw, 176px);

  padding: clamp(18px, 2.5vw, 32px) 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: clamp(10px, 1.8vw, 18px);

  text-align: center;

  border-left: 1px solid var(--line);
}

.feature-card:first-child {
  border-left: 0;
}

.feature-card img {
  width: clamp(30px, 4vw, 44px);
  height: clamp(30px, 4vw, 44px);
}

.feature-card h3 {
  max-width: 128px;

  margin: 0;

  font-size: clamp(0.65rem, 1vw, 0.82rem);
  line-height: 1.3;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* =========================================================
   9. FOOTER
   ========================================================= */

.footer {
  position: relative;

  min-height: clamp(300px, 32vw, 500px);

  display: flex;
  align-items: flex-end;
  justify-content: center;

  overflow: hidden;

  background: #fbf4ea;
}

.footer img {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: auto;

  z-index: 0;
}

.footer-logo {
  position: relative;

  z-index: 1;

  margin-bottom: clamp(24px, 4vw, 48px);

  color: white;

  opacity: 0.92;

  font-size: clamp(1.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: clamp(0.2em, 1vw, 0.55em);
}


/* =========================================================
   10. TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .logo img {
    width: clamp(190px, 24vw, 280px);
  }

  .hero-content {
    max-width: 660px;
  }

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

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

  .feature-card:nth-child(4) {
    border-left: 0;
  }
}


/* =========================================================
   11. PHONE RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {

  .nav {
    top: 10px;

    width: calc(100% - 28px);

    height: 50px;

    justify-content: flex-end;
  }

  .logo {
    left: 0;
    top: 50%;
  }

  .logo img {
    width: clamp(140px, 38vw, 190px);
  }

  .menu-button {
    display: block;

    position: relative;

    z-index: 12;
  }

  .nav-links {
    position: fixed;

    inset: 0 0 auto;

    padding: 94px 24px 34px;

    flex-direction: column;

    gap: 24px;

    background: rgba(251, 244, 234, 0.97);

    box-shadow: var(--shadow);

    transform: translateY(-110%);

    transition: transform 0.22s ease;

    z-index: 11;
  }

  body.menu-open .nav-links {
    transform: translateY(0);
  }

  .hero-overlay {
    width: min(100% - 28px, var(--max-width));

    justify-content: center;

    text-align: center;
  }

  .hero-content {
    max-width: 90%;

    text-align: center;
  }

  .eyebrow {
    font-size: clamp(0.65rem, 3vw, 1rem);

    letter-spacing: 0.1em;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(0.65rem, 2.6vw, 0.95rem);
  }

  .section {
    width: min(100% - 28px, var(--max-width));

    padding: clamp(46px, 10vw, 74px) 0;
  }

  .weapon-grid {
    grid-template-columns: 1fr;
  }

  .weapon-card img {
    height: clamp(150px, 45vw, 230px);
  }

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

  .feature-card,
  .feature-card:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .feature-card:nth-child(odd) {
    border-left: 0;
  }
}


/* =========================================================
   12. SMALL PHONE RESPONSIVE
   ========================================================= */

@media (max-width: 430px) {

  .logo img {
    width: clamp(125px, 40vw, 165px);
  }

  .section-heading h2 {
    letter-spacing: 0.13em;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }

  .feature-card:first-child {
    border-top: 0;
  }
}
