:root {
  --blue: #0866ff;
  --blue-dark: #064ec4;
  --ink: #1c2b33;
  --muted: #52636d;
  --paper: #fff;
  --soft: #f0f4f7;
  --line: #dce4e9;
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #d7e7ff; color: #102f62; }

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.07em;
}

.brand .brand-dot { color: var(--blue); }

.brand small {
  margin-top: 7px;
  color: #52636d;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 29px);
}

.nav-links a {
  color: #354750;
  font-size: .9rem;
  font-weight: 600;
}

.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 9px 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}

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

.btn-primary {
  background: var(--blue);
  color: white !important;
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  border-color: #aab9c2;
  background: transparent;
  color: var(--ink) !important;
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue) !important; }

.hero {
  padding: clamp(76px, 10vw, 128px) 0 76px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.055em;
}

h1 { font-size: clamp(3rem, 6.5vw, 5.8rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.035em; }

.hero p, .lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero-image {
  width: 100%;
  min-height: 390px;
  max-height: 560px;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  border-radius: 8px 80px 8px 8px;
  background: var(--soft);
}

.hero-visual {
  position: relative;
}

.image-caption {
  margin-top: 12px;
  color: #63737c;
  font-size: .8rem;
}

.section {
  padding: clamp(75px, 9vw, 120px) 0;
}

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

.section-heading {
  max-width: 790px;
  margin-bottom: 44px;
}

.section-heading p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: box-shadow .25s, transform .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(22,48,65,.09);
}

.card-image {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: var(--soft);
}

.card-content { padding: 25px; }
.card-content p { color: var(--muted); }
.card-content a { color: var(--blue); font-weight: 750; }

.card-label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 7vw, 90px);
}

.feature + .feature { margin-top: 100px; }

.feature-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.feature-copy p { color: var(--muted); font-size: 1.05rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 750;
}

.text-link:hover { text-decoration: underline; }

.callout {
  padding: clamp(32px, 6vw, 70px);
  border-radius: 10px;
  background: #eaf2ff;
}

.callout p { max-width: 700px; color: #455b70; }

.page-hero {
  padding: clamp(80px, 10vw, 130px) 0 80px;
  background: #f1f6fa;
}

.page-hero h1 { max-width: 1000px; }
.page-hero .lead { max-width: 780px; }

.content {
  max-width: 850px;
  padding: 70px 0 110px;
}

.content h2 {
  margin-top: 42px;
  font-size: 1.9rem;
}

.content p, .content li { color: var(--muted); }

.contact-panel {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-email {
  color: var(--blue);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 58px 0 25px;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 42px;
}

.footer-grid p { max-width: 390px; color: var(--muted); }
.footer-grid h3 { font-size: 1rem; letter-spacing: 0; }

.footer-links {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links a { color: #52636d; font-size: .92rem; }
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #63737c;
  font-size: .82rem;
}

@media (max-width: 960px) {
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .82rem; }
  .hero-grid, .feature { grid-template-columns: 1fr 1fr; gap: 35px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .navbar { min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: .95rem; }
  .nav-links .btn { margin-top: 8px; }
  .hero { padding: 68px 0; }
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .hero-image { min-height: 0; aspect-ratio: 5 / 4; }
  .cards, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .feature + .feature { margin-top: 65px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* NUBCOR corporate logo image */
.brand-logo {
  display: block;
  width: 210px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.site-header .brand,
.site-footer .brand {
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 480px) {
  .brand-logo {
    width: 175px;
    max-width: 44vw;
  }
}
