/* Heritage Shop Co — Precision Studio aesthetic */
/* Light theme, steel blue, slab serif display, clean geometric body */

:root {
  --white:      #ffffff;
  --cream:      #f8f9fb;
  --ice:        #eef2f7;
  --slate-100:  #e2e8f0;
  --slate-200:  #cbd5e1;
  --slate-300:  #94a3b8;
  --slate-500:  #64748b;
  --slate-700:  #334155;
  --slate-900:  #0f172a;
  --blue:       #2c5282;
  --blue-deep:  #1e3a5f;
  --blue-light: #dbeafe;
  --blue-mist:  #eff6ff;
  --teal:       #0d9488;
  --amber:      #d97706;
  --f-display:  "Zilla Slab", "Georgia", serif;
  --f-body:     "Karla", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--f-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

/* ─── UTILITY ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-100);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-900);
}
.nav__logo {
  width: 36px;
  height: 36px;
}
.nav__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav__name span { color: var(--blue); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--slate-900); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav__cta:hover { background: var(--blue-deep); color: var(--white) !important; }

/* ─── HERO ─── */
.hero {
  padding: 100px 0 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      var(--slate-100) 39px,
      var(--slate-100) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      var(--slate-100) 39px,
      var(--slate-100) 40px
    );
  opacity: 0.5;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.3), transparent 80%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--slate-900);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: normal;
  color: var(--blue);
}
.hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-500);
  margin: 0 0 32px;
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* Hero illustration — abstract machined part */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ─── STATS BAR ─── */
.stats {
  background: var(--blue-deep);
  color: var(--white);
  padding: 0;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats__item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stats__item:last-child { border-right: none; }
.stats__value {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.stats__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}

/* ─── SECTION HEADERS ─── */
.section {
  padding: 96px 0;
}
.section--alt { background: var(--cream); }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--blue);
}
.section__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 12px;
  line-height: 1.15;
}
.section__sub {
  font-size: 16px;
  color: var(--slate-500);
  max-width: 56ch;
  line-height: 1.7;
  margin: 0;
}

/* ─── CAPABILITIES ─── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 36px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cap-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(44,82,130,0.08);
}
.cap-card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-mist);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cap-card__icon svg { width: 24px; height: 24px; color: var(--blue); }
.cap-card__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 8px;
}
.cap-card__text {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* ─── MATERIALS ─── */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.mat-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}
.mat-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.mat-card__swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 2px solid var(--slate-100);
}
.mat-card__name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 4px;
}
.mat-card__desc {
  font-size: 11px;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── PROCESS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--slate-100);
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(44,82,130,0.2);
}
.step__title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 4px;
}
.step__text {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ─── TOLERANCES BANNER ─── */
.tol-banner {
  background: var(--slate-900);
  color: var(--white);
  padding: 48px 0;
}
.tol-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.tol-banner__text {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.tol-banner__text em {
  font-style: normal;
  color: var(--teal);
}
.tol-banner__specs {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}
.tol-banner__spec {
  text-align: center;
}
.tol-banner__val {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
}
.tol-banner__lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ─── QUOTE FORM ─── */
.quote-section {
  padding: 96px 0;
  background: var(--blue-mist);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.quote-form {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,82,130,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="file"] {
  padding: 10px 14px;
  background: var(--cream);
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

.quote-info__title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 8px;
}
.quote-info__text {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0 0 24px;
}
.quote-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quote-info__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 14px;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-info__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.footer__brand span { color: var(--blue-light); }
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__links a:hover { color: rgba(255,255,255,0.8); }
.footer__copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__content { animation: fadeUp 0.6s ease-out; }
.hero__visual { animation: fadeUp 0.6s ease-out 0.15s both; }
.stats__item { animation: fadeUp 0.5s ease-out both; }
.stats__item:nth-child(1) { animation-delay: 0.1s; }
.stats__item:nth-child(2) { animation-delay: 0.2s; }
.stats__item:nth-child(3) { animation-delay: 0.3s; }
.stats__item:nth-child(4) { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .tol-banner__inner { flex-direction: column; text-align: center; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 16px; }
}
