/* ============================================
   EIGHTY8 — Main Stylesheet
   Colours: #0A0A0A | #FFCD77 | #F5F5F5
            #30302E | #E6A830 | #CCCCCC
   Fonts:   Outfit (headings/CTAs) | Inter (body)
   ============================================ */

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

:root {
  --black:       #0A0A0A;
  --charcoal:    #30302E;
  --amber:       #FFCD77;
  --amber-deep:  #E6A830;
  --white:       #F5F5F5;
  --muted:       #CCCCCC;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Skip to main content — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Global focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent {
  color: var(--amber);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}

.btn--outline:hover {
  background: var(--amber);
  color: var(--black);
}

/* --- Section Labels --- */
.section-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  opacity: 0;
  animation: fadeUpIn 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  animation: fadeUpIn 0.4s ease forwards;
}

.hero__body {
  opacity: 0;
  animation: fadeUpIn 0.6s ease forwards;
  animation-delay: 2.2s;
}

.hero .btn {
  opacity: 0;
  animation: fadeUpIn 0.6s ease forwards;
  animation-delay: 2.6s;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(48, 48, 46, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 205, 119, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  font-weight: 700 !important;
  color: var(--amber) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem !important;
}

.nav__cta:hover {
  color: var(--amber-deep) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background-color: var(--amber);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero__mark {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUpIn 0.8s ease forwards;
  animation-delay: 0s;
}

.hero__mark-svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hero__mark-bg {
  fill: #F5F5F5;
  transition: fill 0.4s ease;
}

.hero__mark:hover .hero__mark-bg {
  fill: #0A0A0A;
}

.hero__content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero__mark {
  position: relative;
  z-index: 2;
}

.hero .accent {
  color: var(--black);
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.hero__body {
  font-size: 1.1rem;
  color: var(--black);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}


/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 7rem 0;
  background-color: var(--white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/coding-session.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services .section-eyebrow {
  color: var(--amber-deep);
}

.services .section-heading {
  color: var(--black);
  margin-bottom: 1rem;
}

.services__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-top: 3px solid var(--amber);
  padding: 2.5rem 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-top-color: var(--amber-deep);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
}

.service-card__icon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: rgba(10, 10, 10, 0.1);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.25px;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.service-card__sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--amber-deep);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.service-card p:last-child {
  color: var(--charcoal);
  font-size: 0.95rem;
}

/* ============================================
   SERVICE LIST
   ============================================ */
.service-list {
  padding: 5rem 0;
  background-color: var(--amber);
  position: relative;
}

.service-list::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/social-media.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.service-list .container {
  position: relative;
  z-index: 1;
}

.service-list .section-eyebrow {
  color: rgba(10, 10, 10, 0.5);
}

.service-list .section-heading {
  color: var(--black);
  margin-bottom: 1rem;
}

.service-list__heading-white {
  color: var(--white);
}

.service-list__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(10, 10, 10, 0.7);
  max-width: 680px;
  margin-bottom: 3rem;
}

.service-list__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-list__item {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-top: 3px solid var(--black);
  padding: 2.5rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.25px;
  color: var(--black);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.service-list__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
}

.service-list__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.service-list__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.25px;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.service-list__blurb {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--amber-deep);
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 7rem 0;
  background-color: var(--black);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/stats-and-results.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about__text p:last-of-type {
  margin-bottom: 2rem;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--amber);
  padding-left: 1.5rem;
}

.stat__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.stat__sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ============================================
   CLIENTS
   ============================================ */
.clients {
  padding: 7rem 0;
  background-color: var(--white);
  position: relative;
}

.clients::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/1iron-main-entrance.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.clients .container {
  position: relative;
  z-index: 1;
}

.clients .section-eyebrow {
  color: var(--amber-deep);
}

.clients .section-heading {
  color: var(--black);
  margin-bottom: 1rem;
}

.clients__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.client-card {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-top: 3px solid var(--amber);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
}

.client-card__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.client-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.client-card {
  display: flex;
  flex-direction: column;
}

.client-card__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.client-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.client-card__btn {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: auto;
  background: var(--black);
  color: var(--amber);
  border-color: var(--black);
}

.client-card__btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--amber);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 7rem 0;
  background: var(--charcoal);
  position: relative;
}

.contact__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 2;
}

.contact__inner {
  max-width: 720px;
}

.contact__body {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact__form input,
.contact__form textarea {
  background: var(--black);
  border: 1px solid rgba(255, 205, 119, 0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(204, 204, 204, 0.4);
}

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

.contact__form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  border-color: var(--amber);
}

.contact__form .btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--black);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 205, 119, 0.1);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.footer__nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--amber);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(204, 204, 204, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .service-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .hero__mark {
    width: 120px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  /* Hide logo mark — too large for mobile hero */
  .hero__mark {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  /* Stack about stats vertically on mobile */
  .about__stats {
    flex-direction: column;
  }

  /* Stack client cards vertically on mobile */
  .clients__grid {
    grid-template-columns: 1fr;
  }

  /* Hide footer nav links on mobile */
  .footer__nav {
    display: none;
  }
}
