/* 
  NVD Enterprises — Global Styles
  Industrial luxury aesthetic with restrained, grid-based layouts.
*/

/* ----------------------------------------------------------
   Typography: Google Fonts
   ---------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;500;600&family=Cormorant+Garamond:wght@500;600;700&display=swap");

/* ----------------------------------------------------------
   Design Tokens
   ---------------------------------------------------------- */
:root {
  --steel:        #1B2A4A;
  --steel-mid:    #253A5E;
  --copper:       #B87333;
  --copper-light: #D4944A;
  --iron:         #E8E9EB;
  --fog:          #F5F5F0;
  --charcoal:     #2C2C2C;
  --silver:       #9EA3A8;
  --white:        #FAFAF8;

  --max-width: 1120px;
  --gutter: 2rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ----------------------------------------------------------
   Global Reset / Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12) 0, transparent 55%),
              var(--fog);
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   Layout Helpers
   ---------------------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

/* Ensure anchored sections stop clear of sticky header */
#services-overview,
#ferrous,
#non-ferrous,
#scrap {
  scroll-margin-top: 4.5rem;
}

.section--compact {
  padding-block: 3rem;
}

.section--dark {
  background: radial-gradient(circle at top left, rgba(184, 115, 51, 0.12) 0, transparent 55%),
              var(--steel);
  color: var(--white);
}

.section--light {
  background: var(--fog);
}

.section--iron {
  background: var(--iron);
}

/* Subtle grid overlay for selected sections */
.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(158, 163, 168, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(158, 163, 168, 0.06) 1px, transparent 1px);
  background-size: 56px 0, 0 56px;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.section__inner {
  position: relative;
  z-index: 1;
}

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

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

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

@media (max-width: 840px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ----------------------------------------------------------
   Header & Navigation
   ---------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(245, 245, 240, 0.9), rgba(245, 245, 240, 0.92));
  border-bottom: 1px solid rgba(184, 115, 51, 0.35);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  width: 150px;
  max-width: 40vw;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.brand__tagline {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.nav__link {
  position: relative;
  padding-block: 0.2rem;
  color: var(--charcoal);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 150ms ease-out;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--steel-mid);
}

.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--copper);
  color: var(--steel);
  background: linear-gradient(to right, rgba(248, 245, 240, 0.9), rgba(245, 236, 226, 0.95));
}

.nav__cta:hover {
  background: linear-gradient(to right, rgba(212, 148, 74, 0.12), rgba(184, 115, 51, 0.16));
}

@media (max-width: 720px) {
  .header__bar {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
}

/* ----------------------------------------------------------
   Typography & Copy
   ---------------------------------------------------------- */
.eyebrow {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--silver);
}

.eyebrow--copper {
  color: var(--copper-light);
}

.headline {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  margin: 0.4rem 0 0.75rem;
}

.headline--hero {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.headline em {
  font-style: normal;
  color: var(--copper-light);
}

.lede {
  max-width: 38rem;
  font-size: 1rem;
  color: var(--silver);
}

.lede--dark {
  color: rgba(250, 250, 248, 0.86);
}

.lede--charcoal {
  color: var(--charcoal);
}

.kicker-list {
  list-style: none;
  padding-left: 0;
  margin: 1.8rem 0 0;
}

.kicker-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.kicker-list li + li {
  margin-top: 0.75rem;
}

.kicker-list__bullet {
  margin-top: 0.25rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--copper);
}

.kicker-list__text {
  color: inherit;
}

/* ----------------------------------------------------------
   Buttons / Links
   ---------------------------------------------------------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.7rem;
  border: 1px solid transparent;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out,
    transform 80ms ease-out, box-shadow 80ms ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(27, 42, 74, 0.5);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--copper), #8e541f);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(245, 245, 240, 0.7);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}

.btn--outline-dark {
  border-color: var(--copper);
  color: var(--steel);
  background: transparent;
}

.btn--outline-dark:hover {
  background: rgba(184, 115, 51, 0.06);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

button {
  font: inherit;
  background: none;
}

/* ----------------------------------------------------------
   Hero (Home)
   ---------------------------------------------------------- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__main {
  max-width: 40rem;
}

.hero__meta {
  font-size: 0.8rem;
  color: rgba(250, 250, 248, 0.85);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 245, 240, 0.22);
  background: radial-gradient(circle at top left, rgba(37, 58, 94, 0.85) 0, rgba(27, 42, 74, 0.9) 45%, rgba(6, 9, 18, 0.9) 100%);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.hero__meta-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero__meta-label {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--silver);
}

.hero__meta-value {
  font-size: 1.1rem;
  color: var(--white);
}

.hero__meta-divider {
  border-left: 1px solid rgba(245, 245, 240, 0.2);
  margin-inline: 0.25rem;
  height: 3.4rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  }
}

@media (max-width: 879px) {
  .hero__meta {
    padding: 1.3rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  }

  .hero__meta-divider {
    display: none;
  }
}

/* ----------------------------------------------------------
   Home: About & Services Overview
   ---------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem;
}

.split--2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
}

@media (max-width: 840px) {
  .split--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.muted-border {
  border-top: 1px solid rgba(184, 115, 51, 0.35);
  padding-top: 1.75rem;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.2rem;
}

@media (max-width: 960px) {
  .card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .card-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 115, 51, 0.4);
  background: radial-gradient(circle at top, rgba(248, 245, 240, 0.7) 0, rgba(248, 245, 240, 0.96) 48%, #f7f7f4 100%);
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.1);
  display: flex;
  flex-direction: column;
}

.service-card__eyebrow {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--copper);
}

.service-card__title {
  margin: 0.4rem 0 0.5rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  color: var(--steel);
}

.service-card__body {
  font-size: 0.95rem;
  color: var(--charcoal);
}

.service-card__footer {
  margin-top: auto;
  padding-top: 1.3rem;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--steel-mid);
  cursor: pointer;
}

.service-card__footer span {
  width: 22px;
  height: 1px;
  background: var(--copper);
}

.service-card__footer span:last-child {
  width: auto;
  height: auto;
  background: none;
}

.service-card__footer:hover {
  color: var(--copper);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 115, 51, 0.4);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--steel-mid);
  background: rgba(250, 250, 248, 0.85);
}

/* ----------------------------------------------------------
   Services Page
   ---------------------------------------------------------- */
.page-header {
  max-width: 40rem;
}

.page-header__lede {
  margin-top: 0.75rem;
}

/* Ensure dark hero intros on Services / Contact don't appear as light blocks */
.section--dark .page-header {
  background: transparent;
  color: var(--white);
}

.section--dark .page-header .lede,
.section--dark .page-header .page-header__lede {
  color: rgba(250, 250, 248, 0.86);
}

.service-block {
  padding-block: 2.4rem;
  border-top: 1px solid rgba(184, 115, 51, 0.35);
}

.service-block:last-of-type {
  border-bottom: 1px solid rgba(184, 115, 51, 0.35);
  padding-bottom: 2.6rem;
}

/* Make stacked service sections read as flat, text-on-background content */
.section--iron .service-block {
  background: transparent;
}

.section--iron .service-block:first-of-type {
  border-top: 0;
}

.service-block__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--steel-mid);
}

.service-block__summary {
  font-size: 0.95rem;
  color: var(--charcoal);
  max-width: 32rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(184, 115, 51, 0.6);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--steel);
  background: rgba(248, 245, 240, 0.85);
}

.service-block__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.service-block__list li + li {
  margin-top: 0.35rem;
}

/* ----------------------------------------------------------
   Contact Page
   ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: 2.8rem;
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  }
}

.contact-card {
  padding: 1.8rem 1.9rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 115, 51, 0.5);
  background: radial-gradient(circle at top, rgba(248, 245, 240, 0.8) 0, rgba(248, 245, 240, 0.98) 45%, #f9f9f6 100%);
  box-shadow: var(--shadow-soft);
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.75rem;
}

.contact-list__label {
  display: block;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--silver);
}

.contact-list__value {
  color: var(--charcoal);
}

/* Form */
.form {
  display: grid;
  gap: 1.1rem;
}

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

@media (min-width: 640px) {
  .form__row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.field__label {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--steel-mid);
}

.field__hint {
  font-size: 0.8rem;
  color: var(--silver);
}

.field input,
.field select,
.field textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(158, 163, 168, 0.7);
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--charcoal);
  background: rgba(250, 250, 248, 0.96);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(158, 163, 168, 0.9);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form__footer {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--silver);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer {
  border-top: 1px solid rgba(184, 115, 51, 0.4);
  background: #f0f0ea;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  font-size: 0.82rem;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__name {
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel-mid);
}

.footer__slogan {
  color: var(--silver);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  font-family: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

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

.footer__link:hover {
  color: var(--copper);
}

@media (max-width: 720px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
