/* ============================================================
   LINK METALS LLC — Single Page Site
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 160px;
}

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --slate: #2a2a2a;
  --cream: #fbf8f1;
  --cream-deep: #f3eddd;
  --paper: #fefcf6;
  --footer-bg: #2a2823;
  --accent: #8b5a2b;
  --accent-hover: #6e4720;
  --rule: rgba(26, 26, 26, 0.12);
  --shadow-soft: 0 4px 20px rgba(26, 26, 26, 0.06);
  --shadow-deep: 0 12px 40px rgba(26, 26, 26, 0.1);

  /* Verdana matches the original Link Metals website typography */
  --sans: Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin-bottom: 1.1rem; font-size: 15px; }
p.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

section { padding: 5.5rem 0; }
@media (max-width: 768px) { section { padding: 3.5rem 0; } }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo - large and prominent */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 115px;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}
.brand:hover .brand-logo { opacity: .75; }
@media (max-width: 800px) {
  .brand-logo { height: 86px; }
}
@media (max-width: 600px) {
  .brand-logo { height: 64px; }
  .nav-inner { padding: .9rem 1.2rem; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: .3rem 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .3s;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 86vh;
  padding-top: 190px;
  display: flex;
  align-items: center;
  background: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}
.hero-text h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
}
.hero-lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 55ch;
  line-height: 1.7;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { aspect-ratio: 4/3; max-width: 100%; }
  .hero { padding-top: 130px; min-height: auto; }
}

/* --- Section anchor target --- */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Section head --- */
.section-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.section-head h2 {
  margin-top: 0;
  position: relative;
  padding-bottom: 0.8rem;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}

/* --- Split (image + text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.split:last-child { margin-bottom: 0; }
.split:nth-child(even) .split-img { order: 2; }
.split-img {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.split:hover .split-img img { transform: scale(1.04); }
.split-body h3 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  position: relative;
}
.split-body h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}
.split-body p {
  font-size: 15px;
  line-height: 1.75;
}
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }
  .split:nth-child(even) .split-img { order: 0; }
  .split-img { aspect-ratio: 4/3; }
}

/* --- Section variations --- */
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }

/* --- Pull quote --- */
.pull {
  background: var(--slate);
  color: var(--cream);
  padding: 6rem 0;
}
.pull-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.pull blockquote {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--cream);
  font-style: italic;
}
.pull blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--cream);
  margin: 0 auto 2rem;
  opacity: .5;
}

/* --- Mosaic --- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 12px;
}
.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.3rem;
  background: linear-gradient(transparent, rgba(26,26,26,.85));
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .05em;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s ease;
}
.mosaic-item:hover .caption { opacity: 1; }
.m-tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 3/4; }
.m-wide { grid-column: span 8; aspect-ratio: 16/9; }
.m-sq { grid-column: span 4; aspect-ratio: 1/1; }
.m-half { grid-column: span 6; aspect-ratio: 4/3; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-tall, .m-wide, .m-sq, .m-half {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 1/1;
  }
  .m-wide { grid-column: span 2; aspect-ratio: 16/10; }
}

/* --- Section divider --- */
hr.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 4rem 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--cream-deep);
  color: var(--ink-soft);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.footer-brand-logo {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
  /* No inversion - original logo on light footer background */
}
.footer-tag {
  font-size: 14px;
  max-width: 38ch;
  line-height: 1.6;
  color: var(--ink-soft);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.3rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .7rem; font-size: 13px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .7;
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .8rem; text-align: center; }
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
