/* Triveni Metal & Parts — site styles (mobile first, desktop from 900px) */

:root {
  --ground: #F5F3EF;
  --surface: #FFFFFF;
  --ink: #16191D;
  --ink-2: #3D434B;
  --muted: #4A5058;
  --line: #D8D4CC;
  --placeholder: #E4E0D8;
  --placeholder-line: #A8A298;
  --dark: #1E2328;
  --dark-2: #2A3037;
  --dark-line: #4A525C;
  --on-dark: #F5F3EF;
  --on-dark-2: #D2CEC6;
  --on-dark-3: #BDB8AF;
  --accent: #A34A1C;
  --accent-hover: #7E3713;
  --accent-light: #E9A77F;
  --whatsapp: #157A3F;
  --whatsapp-hover: #0F5E30;
  --error: #F2A08A;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --gutter: 20px;
  --max: 1280px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; font-family: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-quiet { height: 48px; padding: 0 22px; font-size: 15px; border: 1.5px solid var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; width: 100%; }
.btn-accent:hover { background: var(--accent-hover); }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }

.only-desktop { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 28px; }
.hero-grid { display: flex; flex-direction: column; gap: 18px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow-light { color: var(--accent-light); }
.hero h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.01em; }
.lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }

/* Photo placeholders — swap for <img> once the client sends photos */
.photo {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: var(--placeholder); border: 1px dashed var(--placeholder-line); border-radius: 14px;
  font-size: 13px; color: var(--muted);
}
img.photo {
  display: block; width: 100%; padding: 0; object-fit: cover;
  border: 1px solid var(--line); background: var(--placeholder);
}
.photo-stands { object-position: 40% 70%; }
.photo-hero { height: 220px; }
.photo-product { height: 150px; border-radius: 12px; font-size: 12px; }
.photo-about { height: 180px; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.stat-label { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* ---------- Products ---------- */
.products { padding: 36px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.products h2, .info h2 { font-size: 26px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; gap: 8px; }
.product h3 { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.product a { font-size: 14px; font-weight: 600; }
.catalogue-btn { order: 2; width: 100%; }

/* ---------- Bulk quote ---------- */
.bulk { padding: 40px 0; background: var(--dark); color: var(--on-dark); }
.bulk-grid { display: flex; flex-direction: column; gap: 18px; }
.bulk-copy { display: flex; flex-direction: column; gap: 18px; }
.bulk h2 { font-size: 26px; line-height: 1.15; }
.bulk-copy p:last-child { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }
.quote-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--dark-2); border-radius: 14px; }
.form-row { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--on-dark-2); }
.field input {
  height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dark-line);
  background: var(--dark); color: var(--on-dark); font: inherit; font-size: 16px;
}
.field input::placeholder { color: #8C8A85; }
.field input:focus-visible { outline-color: var(--accent-light); border-color: var(--accent-light); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.form-error { font-size: 14px; color: var(--error); }
.form-note { font-size: 13px; color: var(--on-dark-3); text-align: center; }

/* ---------- About + Contact ---------- */
.info { padding: 40px 0 0; }
.info-grid { display: flex; flex-direction: column; }
.about { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.about p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.contact {
  display: flex; flex-direction: column; gap: 16px;
  margin: 0 calc(-1 * var(--gutter)); padding: 36px var(--gutter) 40px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.contact-list { display: flex; flex-direction: column; gap: 12px; margin: 0; font-size: 15px; line-height: 1.5; }
.contact-list dt { display: inline; font-weight: 600; }
.contact-list dd { display: inline; margin: 0; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.map { width: 100%; height: 220px; border: 1px solid var(--line); border-radius: 14px; background: var(--placeholder); }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0; background: var(--dark); color: var(--on-dark-3); font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { color: var(--on-dark); font-weight: 600; }
.photo-credits { margin-top: 16px; font-size: 11px; line-height: 1.5; color: #9A968E; }
.photo-credits a { color: inherit; }
.photo-credits a:hover { color: var(--on-dark); }

/* ================= Desktop ================= */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  html { scroll-padding-top: 96px; }

  .only-mobile { display: none; }
  .only-desktop { display: inline-flex; }
  .call-mobile { display: none; }

  .header-inner { min-height: 84px; }
  .brand { flex-direction: row; align-items: baseline; gap: 12px; }
  .brand-name { font-size: 26px; }
  .brand-sub { font-size: 12px; }
  .site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
  .site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; }
  .site-nav > a:not(.btn):hover { color: var(--accent); }

  .hero { padding: 80px 0 72px; }
  .hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .hero-copy { gap: 24px; }
  .eyebrow { font-size: 13px; }
  .hero h1 { font-size: clamp(44px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.015em; }
  .lead { font-size: 19px; max-width: 540px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .btn-lg { height: 56px; font-size: 17px; }
  .photo-hero { height: 460px; border-radius: 18px; font-size: 15px; }

  .stats { padding-bottom: 72px; }
  .stats-grid { gap: 16px; }
  .stat { flex-direction: row; align-items: baseline; gap: 14px; padding: 24px 28px; border-radius: 14px; }
  .stat-value { font-size: 34px; }
  .stat-label { font-size: 15px; }

  .products { padding: 72px 0; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
  .catalogue-btn { order: 0; width: auto; }
  .products h2 { font-size: 40px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .product { gap: 12px; }
  .photo-product { height: 260px; border-radius: 14px; font-size: 14px; }
  .product h3 { font-size: 18px; }
  .product a { font-size: 15px; }

  .bulk { padding: 80px 0; }
  .bulk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .bulk-copy { gap: 20px; }
  .bulk h2 { font-size: 44px; line-height: 1.1; }
  .bulk-copy p:last-child { font-size: 18px; }
  .quote-form { gap: 16px; padding: 32px; border-radius: 18px; }
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field label { font-size: 14px; }
  .field input { height: 48px; padding: 0 14px; }

  .info { padding: 80px 0; }
  .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .info h2 { font-size: 36px; }
  .about, .contact { gap: 18px; padding: 0; margin: 0; background: none; border: none; }
  .about p { font-size: 17px; line-height: 1.65; }
  .photo-about { height: 240px; border-radius: 16px; font-size: 14px; }
  .contact-list { gap: 10px; font-size: 17px; }
  .map { height: 240px; border-radius: 16px; }

  .site-footer { padding: 32px 0; font-size: 14px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
