/* PVrack — Product / Service Homepage */
:root {
  --gold: #efc462;
  --gold-dark: #d4a84a;
  --ink: #1a2332;
  --ink-soft: #3a3a3a;
  --slate: #64748b;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 196, 98, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  width: min(1400px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-main .nav-link {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-main .nav-link:hover,
.nav-item:hover > .nav-link { color: var(--gold-dark); }

.nav-item.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35em;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}

.dropdown li a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.dropdown-all a {
  font-weight: 600;
  color: var(--gold-dark) !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  padding-bottom: 0.65rem !important;
}

/* Categories hub */
.categories-hub {
  background: var(--bg-alt);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s var(--ease);
}

.category-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}

.category-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.3;
}

/* Mobile nav groups */
.mobile-nav-group {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-group summary {
  padding: 0.85rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-group summary::-webkit-details-marker { display: none; }

.mobile-nav-group a {
  display: block;
  padding: 0.5rem 0 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--slate);
  border-bottom: none;
}

.mobile-nav-hub {
  font-weight: 600 !important;
  color: var(--gold-dark) !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 8px;
}

.logo-text { font-size: 1.25rem; letter-spacing: -0.02em; }

/* nav-main styles defined in header section above */

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 24px 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-mobile a { padding: 0.75rem 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile[hidden] { display: none !important; }
.nav-mobile.open { display: flex; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.75) 45%,
    rgba(15, 23, 42, 0.4) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 820px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stats li { display: flex; flex-direction: column; gap: 0.25rem; }

.hero-stats strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-sans);
  line-height: 1;
}

.hero-stats span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trust bar */
.trust-bar {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding: 1.25rem 0;
}

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

.trust-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.trust-logos li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* Sections */
.section { padding: 5rem 0; }
.section-header { max-width: 560px; margin-bottom: 3rem; }
.section-header.center { text-align: center; margin-inline: auto; }
.section-header.align-left { text-align: left; }
.section-header p { margin-top: 0.75rem; color: var(--slate); font-size: 1.0625rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* Products */
.products { background: var(--bg); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.25s var(--ease);
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card.featured {
  background: linear-gradient(160deg, #fffbeb 0%, #fff 60%);
  border-color: var(--gold);
}

.product-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold);
  color: var(--ink);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

.product-icon {
  width: 48px;
  height: 48px;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}

.product-card h3 { margin-bottom: 0.75rem; color: var(--ink); font-family: var(--font-serif); font-size: 1.25rem; }
.product-card p { font-size: 0.9375rem; color: var(--slate); line-height: 1.7; }
.product-card p a,
.topic-block p a,
.section-header p a {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-card p a:hover,
.topic-block p a:hover,
.section-header p a:hover { color: var(--ink); }

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: gap 0.2s;
}
.card-link:hover { color: var(--ink); }

/* Solutions */
.solutions { background: var(--bg-alt); }

.solutions-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.solution-list { display: flex; flex-direction: column; gap: 0; }

.solution-list li { border-bottom: 1px solid var(--border); }
.solution-list li:first-child { border-top: 1px solid var(--border); }

.solution-list a {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  transition: padding-left 0.2s var(--ease);
}

.solution-list a:hover {
  padding-left: 0.5rem;
}

.sol-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  opacity: 0.8;
  min-width: 2rem;
}

.sol-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.sol-body strong { font-size: 1rem; color: var(--ink); }
.sol-body small { font-size: 0.875rem; color: var(--slate); }

.sol-arrow {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s var(--ease);
}

.solution-list a:hover .sol-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Engineering */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.eng-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s;
}

.eng-card:hover { border-color: var(--gold); }

.eng-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.eng-card > p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.eng-card ul { display: flex; flex-direction: column; gap: 0.5rem; }

.eng-card ul a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-dark);
}
.eng-card ul a:hover { text-decoration: underline; }

/* Process */
.process { background: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-steps li {
  position: relative;
  padding-top: 0.5rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.process-steps h4 { margin-bottom: 0.5rem; color: var(--ink); }
.process-steps p { font-size: 0.9375rem; color: var(--slate); }

/* Resources */
.resources { background: var(--bg-alt); }

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

.resource-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.2s var(--ease);
}

.resource-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.res-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.resource-card h4 { margin-bottom: 0.5rem; color: var(--ink); }
.resource-card p { font-size: 0.875rem; color: var(--slate); }

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-inner p { color: rgba(255,255,255,0.7); max-width: 480px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  opacity: 0.5;
}

.logo img, .footer-logo img { height: auto; display: block; }
.header-inner .logo img { max-height: 43px; width: auto; }
.footer-brand p { max-width: 320px; }
.footer-contact p { font-size: 0.875rem; line-height: 1.8; }
.footer-contact a { color: var(--gold); display: inline; padding: 0; }
.footer-contact a:hover { text-decoration: underline; }

/* Original content sections */
.content-section.alt { background: var(--bg-alt); }
.about-section { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); }

.topic-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.topic-blocks.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.topic-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.content-section.alt .topic-block { background: #fff; }
.topic-block.single { max-width: 100%; }
.topic-block h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.topic-block p { font-size: 0.9375rem; color: var(--slate); line-height: 1.75; }

.section-header h2 { margin-bottom: 0.75rem; }
.section-header > p { color: var(--slate); font-size: 1.0625rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .eng-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .solutions-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  .nav-main .nav-link { padding: 0.4rem 0.45rem; font-size: 0.75rem; }
}

@media (max-width: 1024px) {
  .nav-wrap { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero-content { padding: 3rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }

  .product-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }

  .trust-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .topic-blocks.two-col { grid-template-columns: 1fr; }
}
