/* Nation Fabrication LLC - Premium dark industrial style */

:root {
  --bg: #0b0b0b;
  --surface: #161616;
  --surface-strong: #1f1f1f;
  --blue: #0e5bff;
  --blue-soft: rgba(14, 91, 255, 0.14);
  --white: #ffffff;
  --gray: #b5b5b5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-s: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* Utility classes */
.container {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section--compact {
  padding: 60px 0;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.flex {
  display: flex;
}

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

.shadow-soft {
  box-shadow: var(--shadow);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-s {
  border-radius: var(--radius-s);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(14, 91, 255, 0.32);
}

.button--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary:hover {
  box-shadow: 0 24px 50px rgba(14, 91, 255, 0.35);
}

.button--outline:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Header and navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  padding: 1.2rem 0;
}

.header--scrolled {
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(18px);
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav__brand img {
  width: auto;
  height: 55px;
  border-radius: 12px;
  background: #121212;
  object-fit: contain;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  position: relative;
}

.nav__link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

.nav__quote {
  padding: 0.9rem 1.4rem;
  background: rgba(14, 91, 255, 0.12);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.65), rgba(11, 11, 11, 0.95));
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/mobile-welding.jpg') center/cover no-repeat;
  filter: brightness(0.45);
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(14, 91, 255, 0.18), transparent 35%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
}

.hero__eyebrow {
  color: var(--blue);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__heading {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  max-width: 680px;
  margin: 2rem auto 0;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #121212;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.scroll-indicator__icon {
  width: 26px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: grid;
  place-items: start;
  padding-top: 6px;
}

.scroll-indicator__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--white);
  animation: scroll 1.6s infinite;
}

@keyframes scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title__label {
  background: rgba(14, 91, 255, 0.12);
  color: var(--blue);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-title__heading {
  font-size: clamp(2rem, 2.6vw, 3.25rem);
  margin: 0;
  line-height: 1.05;
}

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

.service-feature__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.service-feature__image {
  min-height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.service-feature__content {
  display: grid;
  gap: 1.2rem;
}

.service-feature__heading {
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
}

.service-feature__text {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 260px;
  display: grid;
  gap: 1.3rem;
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.service-card__media {
  min-height: 180px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.service-card:hover .service-card__media,
.service-card:focus-within .service-card__media {
  transform: scale(1.02);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  background: rgba(14, 91, 255, 0.1);
  border-color: rgba(14, 91, 255, 0.22);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(14, 91, 255, 0.18);
  border-radius: 16px;
}

.service-card__title {
  font-size: 1.1rem;
  margin: 0;
}

.service-card__text {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.75;
}

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

.why-card{

    background:#141414;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:35px;

    transition:.35s ease;

    box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.why-card:hover{

    transform:translateY(-10px);

    border-color:#0E5BFF;

    box-shadow:0 20px 45px rgba(14,91,255,.25);

}

.why-icon{

    width:70px;

    height:70px;

    border-radius:18px;

    background:#0E5BFF;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:32px;

    margin-bottom:25px;

}

.why-card h3{

    color:#fff;

    font-size:28px;

    margin-bottom:15px;

    font-weight:700;

}

.why-card p{

    color:#bdbdbd;

    line-height:1.8;

    font-size:17px;

}

@media(max-width:1000px){

.why-grid{

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

}

}

@media(max-width:700px){

.why-grid{

grid-template-columns:1fr;

}

}

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

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  min-height: 210px;
}

.stat-card__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--blue);
}

.stat-card__label {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 0.98rem;
}

.about-grid {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-image {
  position: relative;
  min-height: 520px;
  background: url('../images/about-hero.jpg') center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.18), rgba(11, 11, 11, 0.82));
}

.about-content {
  max-width: 540px;
}

.about-eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.about-heading {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.about-text {
  color: var(--gray);
  margin: 1.8rem 0 2.4rem;
  font-size: 1rem;
  line-height: 1.8;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  min-height: 360px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(14, 91, 255, 0.22);
}

.project-card__media {
  position: relative;
  min-height: 240px;
  background: #111;
}

.project-card__media::before {
  content: 'Placeholder image — replace with project photo';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.9;
  padding: 1rem;
}

.project-card__content {
  padding: 1.7rem;
}

.project-card__title {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.project-card__category {
  color: var(--gray);
  font-size: 0.96rem;
  margin: 0;
}

.industry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.industry-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 1rem 1.3rem;
  text-align: center;
  color: var(--gray);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.industry-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 91, 255, 0.24);
  color: var(--white);
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  min-height: 250px;
  background: #111;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.42);
}

.gallery-card::before {
  content: 'Replace with gallery photo';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.88rem;
  text-align: center;
  padding: 1rem;
}

.gallery-card--filled::before {
  content: none;
}

.gallery-card__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero, .section, .footer {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease forwards;
}

.hero { animation-delay: 0.1s; }
.section { animation-delay: 0.15s; }
.footer { animation-delay: 0.2s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.quote-form,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-image-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-image-card img {
  width: 100%;
  min-height: 680px;
  height: 680px;
  object-fit: contain;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-image-title {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.form-grid {
  display: grid;
  gap: 1.3rem;
}

.form-group {
  display: grid;
  gap: 0.65rem;
}

.label {
  font-weight: 600;
  font-size: 0.95rem;
}

.input,
.textarea,
.select,
.file-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input:focus,
.textarea:focus,
.select:focus,
.file-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 91, 255, 0.12);
}

.textarea {
  min-height: 165px;
  resize: vertical;
}

.file-input {
  padding: 0.85rem 1rem;
}

.hero .button,
.quote-form .button,
.contact-card .button {
  min-width: 170px;
}

.map-placeholder {
  min-height: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: 'Google Map placeholder - replace with map embed';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.38);
  text-align: center;
  padding: 2rem;
}

.footer {
  padding: 3rem 0 2rem;
  background: #090909;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand {
  display: grid;
  gap: 1rem;
}

.footer__links,
.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer__link {
  color: var(--gray);
}

.footer__meta {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 91, 255, 0.18);
  border: 1px solid rgba(14, 91, 255, 0.32);
  display: grid;
  place-items: center;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-6px);
}

.back-to-top:hover {
  transform: translateY(-10px);
}

@media (max-width: 1080px) {
  .services-grid,
  .stats-grid,
  .projects-grid,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100%, calc(100% - 2rem));
  }

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

  .nav__list {
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .hero__content {
    padding: 1rem;
  }

  .services-grid,
  .stats-grid,
  .projects-grid,
  .industry-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 85vh;
  }
}

@media (max-width: 520px) {
  .hero__heading {
    font-size: 3.15rem;
  }

  .hero__subtitle {
    font-size: 0.98rem;
  }

  .nav__brand {
    gap: 0.7rem;
  }
}
