/* ============================================
   FORGE COMMAND - Global Styles
   Design reference: steelbuildltd.com
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --teal-accent: #FEDA33;
  --teal-dark: #F5A623;
  --teal-light: #FFE873;
  --accent-on-light: #9A6C00;
  --dark-primary: #1A1A1A;
  --dark-overlay: rgba(0, 0, 0, 0.55);
  --blue-grey: #7A8E94;
  --blue-grey-bg: #EDF1F3;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --text-dark: #2C2C2C;
  --text-medium: #5A5A5A;
  --text-light: #FFFFFF;
  --footer-grey: #4A4A4A;
  --border-light: #E0E0E0;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1280px;
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: var(--section-padding);
}

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

/* ---------- Button Styles ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-teal {
  background-color: var(--teal-accent);
  color: var(--dark-primary);
}

.btn-teal:hover {
  background-color: var(--teal-dark);
}

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

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--dark-primary);
}

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

.btn-outline-dark:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

/* ---------- Typography ---------- */
.headline-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
}

.headline-sans {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
}

.teal-text {
  color: var(--teal-accent);
}

/* ---------- Shared Section Heading ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-medium);
  max-width: 560px;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 28px 0;
}

.hero__header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__logo img {
  height: 44px;
  width: auto;
}

.hero__header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero__contact-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
}

.hero__contact-link {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.hero__contact-link:hover {
  opacity: 1;
}

.hero__contact-divider {
  opacity: 0.4;
}

/* Hamburger Icon */
.hero__menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  position: relative;
  z-index: 100;
}

/* When nav is open, lift the whole header above the overlay so the close (X) is always clickable,
   and hide the logo/contact so they do not show over the white nav panel. */
body.nav-open .hero__header {
  z-index: 110;
}

body.nav-open .hero__logo,
body.nav-open .hero__contact-bar {
  opacity: 0;
  pointer-events: none;
}

.hero__menu-toggle.active .hero__menu-bar {
  background-color: var(--dark-primary);
}

.hero__menu-bar {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.hero__menu-toggle.active .hero__menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hero__menu-toggle.active .hero__menu-bar:nth-child(2) {
  opacity: 0;
}

.hero__menu-toggle.active .hero__menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 800px;
  padding-left: 40px;
}

.hero__title {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero two-column layout: copy + device mockup */
.hero__inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 640px;
  flex: 1 1 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 18px;
}

.hero__appstore {
  display: inline-block;
  margin-top: 28px;
}

.hero__appstore img {
  height: 54px;
  width: auto;
  transition: transform 0.3s ease;
}

.hero__appstore:hover img {
  transform: translateY(-2px);
}

.hero__mockup {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-cue span {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0));
}

/* ============================================
   NAVIGATION OVERLAY
   ============================================ */
.nav-overlay {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100vh;
  background-color: var(--white);
  z-index: 90;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.nav-overlay.open {
  right: 0;
}

.nav-overlay__inner {
  padding: 120px 50px 60px;
}

.nav-overlay__menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay__item {
  border-bottom: 1px solid var(--border-light);
}

.nav-overlay__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.nav-overlay__link:hover {
  color: var(--teal-accent);
}

.nav-overlay__arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-overlay__dropdown-toggle[aria-expanded="true"] .nav-overlay__arrow {
  transform: rotate(180deg);
}

.nav-overlay__dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.nav-overlay__dropdown.open {
  max-height: 300px;
}

.nav-overlay__dropdown li a {
  display: block;
  padding: 12px 0 12px 20px;
  font-size: 0.95rem;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.nav-overlay__dropdown li a:hover {
  color: var(--teal-accent);
}

/* Background overlay when nav is open */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   PURPOSE / INTRO SECTION
   ============================================ */
.purpose {
  background-color: var(--blue-grey-bg);
}

.purpose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.purpose__title {
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--text-dark);
}

.purpose__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.purpose__buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* ============================================
   FEATURES / PRODUCT CARDS
   ============================================ */
.features {
  background-color: var(--white);
}

.features__header {
  text-align: center;
  margin-bottom: 60px;
}

.features__header .section-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.features__card {
  overflow: hidden;
  transition: transform 0.3s ease;
}

.features__card:hover {
  transform: translateY(-4px);
}

.features__card-image {
  height: 340px;
  overflow: hidden;
}

.features__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.features__card:hover .features__card-image img {
  transform: scale(1.05);
}

.features__card-banner {
  background-color: var(--teal-accent);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.features__card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features__card-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1.5px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.features__card-link:hover {
  opacity: 1;
}

/* ============================================
   SERVICES CAROUSEL
   ============================================ */
.services {
  background-color: var(--blue-grey-bg);
}

.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.services__header .section-label {
  width: 100%;
}

.services__counter {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
}

.services__carousel {
  overflow: hidden;
}

.services__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.services__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.services__slide-title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.services__slide-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 28px;
}

.services__slide-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-accent);
  transition: color 0.3s ease;
}

.services__slide-link:hover {
  color: var(--teal-dark);
}

.services__slide-image {
  height: 400px;
  overflow: hidden;
}

.services__slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.services__nav-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--text-dark);
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.services__nav-btn:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background-color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  text-align: center;
}

.stats__card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.stats__icon img {
  width: 36px;
  height: 36px;
}

.stats__number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.stats__label {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.stats__underline {
  width: 50px;
  height: 2px;
  background-color: var(--teal-accent);
}

/* ============================================
   CASE STUDIES
   ============================================ */
.casestudies {
  background-color: var(--off-white);
}

.casestudies__header {
  text-align: center;
  margin-bottom: 60px;
}

.casestudies__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.casestudies__card {
  background: var(--white);
  overflow: hidden;
}

.casestudies__card-image {
  height: 300px;
  overflow: hidden;
}

.casestudies__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.casestudies__card:hover .casestudies__card-image img {
  transform: scale(1.04);
}

.casestudies__card-content {
  padding: 36px;
}

.casestudies__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.casestudies__tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: var(--blue-grey-bg);
  color: var(--text-medium);
  border-radius: 2px;
}

.casestudies__featured-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 10px;
}

.casestudies__card-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.casestudies__card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 24px;
}

/* ============================================
   VALUES / GIVING BACK
   ============================================ */
.values {
  background-color: var(--white);
}

.values__header {
  text-align: center;
  margin-bottom: 60px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.values__card {
  background: var(--off-white);
  overflow: hidden;
}

.values__card-image {
  height: 280px;
  overflow: hidden;
}

.values__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values__card-content {
  padding: 36px;
}

.values__card-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.values__card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background-color: var(--blue-grey-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__info-item {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.contact__info-item a {
  color: var(--teal-accent);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__form-group {
  margin-bottom: 16px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--teal-accent);
}

.contact__form textarea {
  resize: vertical;
}

.contact__submit {
  width: 100%;
  text-align: center;
}

.contact__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-medium);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--white);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  margin-bottom: 16px;
  height: 44px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-medium);
  max-width: 220px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.footer__links a {
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--teal-accent);
}

.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer__social-link {
  color: var(--footer-grey);
  transition: color 0.3s ease;
}

.footer__social-link:hover {
  color: var(--teal-accent);
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-medium);
}


/* ============================================
   FORGE yellow contrast fixes (black/white/yellow brand)
   Bright yellow reads on dark; on light sections use readable gold;
   yellow fills get dark text.
   ============================================ */
.section-label { color: var(--accent-on-light); }
.services__slide-link { color: var(--accent-on-light); }
.services__slide-link:hover { color: var(--teal-dark); }
.features__card-title { color: var(--dark-primary); }
.features__card-link { color: var(--dark-primary); }
.teal-text { color: var(--accent-on-light); }

/* Mobile header: logo + hamburger only; Log In / Get Started live in the menu (no overlap) */
@media (max-width: 768px){ .hero__header-cta { display: none !important; } }

/* hero no-mockup single column (clean hero: bg + headline + sub + CTAs + badge) */
.hero__inner { grid-template-columns: 1fr !important; }
.hero__content { max-width: 820px; }
.hero__mockup { display: none !important; }
