/* SPJ SANMATI TRADERS LLP — site styles */
:root {
  --ivory: #FBF8F1;
  --paper: #FFFDF8;
  --beige: #F3ECDF;
  --sand: #EAE1D1;
  --warm-grey: #DDD5C8;
  --line: #E3DACB;
  --charcoal: #24211E;
  --body: #3B3732;
  --muted: #655E55;
  --copper: #9A5530;        /* text-safe copper */
  --copper-deep: #7E4325;
  --copper-light: #C98257;
  --brass: #B8954A;
  --brass-soft: #D9C38E;
  --saffron: #D9822B;
  --terracotta: #B5523B;
  --wa: #1E8E4E;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .06);
  --max: 1180px;
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Motif (understated Indian border) ---------- */
.motif {
  height: 14px;
  background: url("../img/motif.svg") repeat-x center / auto 14px;
  opacity: .75;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--saffron); border-radius: 2px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17733F; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); flex: none; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: .06em; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: .68rem; letter-spacing: .26em; color: var(--copper); margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  color: var(--charcoal); text-decoration: none;
}
.nav a:hover { background: var(--beige); color: var(--charcoal); }
.nav a[aria-current="page"] { color: var(--copper); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--warm-grey); border-radius: 8px;
  width: 46px; height: 42px; cursor: pointer; color: var(--charcoal);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--beige); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); }
  .nav .nav-cta { display: block; margin-top: 12px; }
  .nav .nav-cta a { background: var(--copper); color: #fff; text-align: center; border-radius: 8px; border: 0; }
}
@media (min-width: 861px) { .nav .nav-cta { display: none; } }
@media (max-width: 420px) {
  .brand img { height: 44px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .2em; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--beige); }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 76px; background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--copper); }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  aspect-ratio: 1 / 0.92;
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); position: relative;
}
.hero-mosaic::after {
  content: ""; position: absolute; inset: -9px; border: 1px solid var(--brass-soft); border-radius: 20px; pointer-events: none;
}
.hero-mosaic .photo { border-radius: 10px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 56px; }
}

/* ---------- Photos with graceful fallback ---------- */
.photo {
  position: relative; overflow: hidden; margin: 0;
  background-color: var(--sand);
  min-height: 140px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 253, 248, .92); color: var(--charcoal);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 6px;
}
/* Shown only when a photo file has not been added yet */
.photo.missing img { display: none; }
.photo.missing { background-image: var(--swatch); }
.photo.missing::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/motif.svg") repeat center / 40px auto;
  opacity: .12;
}
.tone-copper { --swatch: linear-gradient(135deg, #E9C2A2 0%, #C98257 55%, #A8603A 100%); }
.tone-brass  { --swatch: linear-gradient(135deg, #EFE0B4 0%, #D3B169 55%, #B08D45 100%); }
.tone-zinc   { --swatch: linear-gradient(135deg, #E4E5E3 0%, #B9BDBE 55%, #969C9F 100%); }
.tone-ingot  { --swatch: linear-gradient(135deg, #EED3BC 0%, #CF9168 50%, #9A5530 100%); }
.tone-mixed  { --swatch: linear-gradient(135deg, #EEE7DA 0%, #D2C6B2 55%, #B5A68E 100%); }
.tone-industry { --swatch: linear-gradient(135deg, #EDE6DA 0%, #D8CBB6 55%, #BFAE93 100%); }

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(60, 40, 20, .04);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--copper);
  letter-spacing: .1em; display: block; margin-bottom: 12px;
}
.card-accent { border-top: 3px solid var(--brass); }

/* Metal preview tiles (home) */
.metal-tile { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--body); transition: border-color .15s ease, transform .15s ease; }
.metal-tile:hover { border-color: var(--copper-light); transform: translateY(-2px); color: var(--body); }
.metal-tile .photo { aspect-ratio: 4 / 3; }
.metal-tile .tile-body { padding: 20px 22px 22px; }
.metal-tile h3 { margin-bottom: .3em; }
.metal-tile p { font-size: .95rem; color: var(--muted); margin: 0; }
.metal-tile .symbol { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--copper); letter-spacing: .1em; }

/* Material cards (What We Buy / Sell) */
.material { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.material + .material { margin-top: 28px; }
.material .photos { display: grid; gap: 4px; grid-template-rows: 1fr; min-height: 340px; }
.material .photos.two { grid-template-rows: 1fr 1fr; }
.material .photo { min-height: 0; height: 100%; }
.material-body { padding: 36px 40px; display: flex; flex-direction: column; }
.material-body .tag { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--copper); text-transform: uppercase; }
.material-body h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 6px 0 14px; }
.material-body .grades { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; }
.material-body .grades li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--ivory); border: 1px solid var(--beige); border-radius: 8px; font-weight: 500; color: var(--charcoal); }
.material-body .grades li::before { content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg) translateY(-2px); flex: none; }
.material-body .btn { align-self: flex-start; margin-top: auto; }
.material.reverse .photos { order: 2; }
@media (max-width: 860px) {
  .material, .material.reverse { grid-template-columns: 1fr; }
  .material.reverse .photos { order: 0; }
  .material .photos { min-height: 240px; }
  .material .photos.two { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .material-body { padding: 28px 24px; }
}

/* Feature list (why us) */
.feature { display: flex; gap: 16px; }
.feature .mark {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--beige); border: 1px solid var(--brass-soft);
  font-family: var(--font-head); font-weight: 800; color: var(--copper);
}
.feature h3 { margin-bottom: .3em; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Industry list */
.industry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--brass); }
.industry h3 { margin-bottom: .35em; }
.industry p { margin-bottom: .8em; color: var(--muted); }
.industry .how { font-size: .92rem; color: var(--body); margin: 0; }
.industry .how strong { color: var(--copper); font-family: var(--font-head); }

/* Page header (inner pages) */
.page-hero { padding: 56px 0 50px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .35em; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--charcoal); color: #EFE8DC; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--copper-light), var(--brass), var(--saffron)); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #D8CFC1; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-outline { color: #fff; border-color: #CDBFA9; }
.cta-band .btn-outline:hover { background: #fff; color: var(--charcoal); }
.cta-band a:not(.btn) { color: var(--brass-soft); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } .cta-band .btn-row { justify-content: flex-start; } }

/* Prose blocks (About) */
.prose { max-width: 70ch; }
.prose p { font-size: 1.08rem; }
.pillars .card h3 { display: flex; align-items: center; gap: 10px; }
.pillars .card h3::before { content: ""; width: 10px; height: 10px; background: var(--saffron); transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 36px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item svg { width: 22px; height: 22px; color: var(--copper); flex: none; margin-top: 3px; }
.contact-item .label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item .value { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--charcoal); text-decoration: none; word-break: break-word; }
a.value:hover { color: var(--copper); }

.gstin-box { margin-top: 14px; padding: 18px 20px; border: 1px dashed var(--brass); background: var(--ivory); border-radius: var(--radius); }
.gstin-box .label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gstin-box .value { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--charcoal); letter-spacing: .04em; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 24px 18px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .93rem; color: var(--charcoal); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: #fff; border: 1px solid var(--warm-grey); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201, 130, 87, .25); }
.field .err { display: none; color: #A3311E; font-size: .86rem; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A3311E; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.form-status.show { display: block; }
.form-status.ok { background: #EAF4EC; color: #1D5B33; border: 1px solid #BFDCC6; }
.form-status.fail { background: #FBECE8; color: #8A2A18; border: 1px solid #EDC3B8; }
.form-status.info { background: var(--beige); color: var(--charcoal); border: 1px solid var(--brass-soft); }
button[disabled] { opacity: .65; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: #2B2723; color: #D8CFC1; padding-top: 0; margin-top: 0; }
.site-footer .motif { opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E8DECF; text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--brass-soft); }
.footer-about { font-size: .95rem; color: #C9BFB0; max-width: 40ch; }
.footer-bottom { border-top: 1px solid #423B34; padding: 20px 0 26px; font-size: .86rem; color: #ADA293; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(20, 60, 35, .3);
}
.wa-float:hover { background: #17733F; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

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