/* ==========================================================================
   Abacus Metals — Site Stylesheet
   Eraa Brand Family — Confidential
   Vedic-aligned palette: Mars-Saturn maroon, Jupiter gold, Sun copper, Moon cream
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --c-maroon: #4A1525;
  --c-claret: #612233;
  --c-rose:   #9B3A4A;
  --c-gold:   #E2AC4A;
  --c-copper: #A0623B;
  --c-cream:  #F5E5D5;
  --c-silk:   #FFFCF5;
  --c-silk-text: #FFFEF9; /* legibility on dark */
  --c-charcoal: #3B2C2C;

  /* Functional */
  --c-bg: var(--c-silk);
  --c-text: var(--c-charcoal);
  --c-text-muted: rgba(59, 44, 44, 0.72);
  --c-border: rgba(74, 21, 37, 0.14);
  --c-border-strong: rgba(74, 21, 37, 0.32);

  /* Type */
  --ff: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(74, 21, 37, 0.06), 0 4px 12px rgba(74, 21, 37, 0.05);
  --shadow-md: 0 4px 14px rgba(74, 21, 37, 0.10), 0 18px 40px rgba(74, 21, 37, 0.08);
  --radius: 4px;
  --radius-lg: 10px;

  --transition: 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-maroon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-rose); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff);
  color: var(--c-maroon);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 500; }
p  { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--c-text); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--c-gold); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--c-cream); }
.section--maroon { background: var(--c-maroon); color: var(--c-silk-text); }
.section--maroon h1, .section--maroon h2, .section--maroon h3, .section--maroon h4 { color: var(--c-silk-text); }
.section--claret { background: var(--c-claret); color: var(--c-silk-text); }
.section--claret h1, .section--claret h2, .section--claret h3, .section--claret h4 { color: var(--c-gold); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--centred { text-align: center; margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-silk);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-link img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-charcoal);
  border-radius: var(--radius);
  position: relative;
}
.nav a:not(.btn):hover { color: var(--c-maroon); background: rgba(74, 21, 37, 0.04); }
.nav a:not(.btn).is-current {
  color: var(--c-maroon);
}
.nav a:not(.btn).is-current::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.95rem;
  right: 0.95rem;
  height: 2px;
  background: var(--c-gold);
}
.nav .btn { margin-left: 0.5rem; padding: 0.55rem 1.1rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  color: var(--c-maroon);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-silk);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 0.75rem var(--gutter) 1.25rem;
    gap: 0.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0.5rem; font-size: 1rem; }
  .nav a:not(.btn).is-current::after { left: 0.5rem; right: auto; width: 18px; }
  .nav .btn { margin: 0.6rem 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--c-maroon);
  color: var(--c-silk-text) !important;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { background: var(--c-gold); color: var(--c-maroon) !important; transform: translateY(-1px); }
.btn--gold { background: var(--c-gold); color: var(--c-maroon) !important; }
.btn--gold:hover { background: #cf9c3d; color: var(--c-maroon) !important; }
.btn--ghost {
  background: transparent;
  color: var(--c-maroon) !important;
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { background: var(--c-maroon); color: var(--c-silk-text) !important; border-color: var(--c-maroon); }
.btn--ghost-light {
  background: transparent;
  color: var(--c-silk-text) !important;
  border-color: rgba(255, 254, 249, 0.42);
}
.btn--ghost-light:hover { background: var(--c-silk); color: var(--c-maroon) !important; border-color: var(--c-silk); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--c-maroon);
  color: var(--c-silk-text);
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8rem);
}
.hero::before {
  /* Subtle Vedic geometric texture — diagonal */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(226, 172, 74, 0.10), transparent 38%),
    radial-gradient(circle at 84% 78%, rgba(160, 98, 59, 0.14), transparent 42%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg, transparent 50%, rgba(226, 172, 74, 0.08) 50%);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: var(--c-silk-text); margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255, 254, 249, 0.85); margin-bottom: 2.25rem; max-width: 620px; }
.hero .eyebrow { color: var(--c-gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Page header (smaller hero for inner pages) */
.page-header {
  background: var(--c-maroon);
  color: var(--c-silk-text);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(226, 172, 74, 0.12), transparent 45%);
  pointer-events: none;
}
.page-header h1 { color: var(--c-silk-text); margin-bottom: 0.6rem; }
.page-header .lead { color: rgba(255, 254, 249, 0.85); max-width: 680px; }
.page-header .eyebrow { color: var(--c-gold); }
.page-header .container { position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: rgba(255, 254, 249, 0.65);
}
.breadcrumb a { color: var(--c-gold); }
.breadcrumb a:hover { color: var(--c-silk-text); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.card--cream-bg { background: var(--c-cream); }
.card:hover { border-color: var(--c-gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-top: 0.25rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-maroon);
  color: var(--c-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.card--feature .card-icon { background: var(--c-gold); color: var(--c-maroon); }

/* Feature row (icon + text, 2-col) */
.feature-list { display: grid; gap: 1.25rem; }
.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  align-items: start;
}
.feature-list { padding-left: 0; }
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* Two-column intro */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Materials strip */
.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.materials > div {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--c-border);
}
.materials > div:last-child { border-right: none; }
.materials .grade {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.4rem;
}
.materials .name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-maroon);
  margin-bottom: 0.4rem;
}
.materials .use { font-size: 0.92rem; color: var(--c-text-muted); margin: 0; }
@media (max-width: 880px) {
  .materials { grid-template-columns: repeat(2, 1fr); }
  .materials > div:nth-child(2) { border-right: none; }
  .materials > div:nth-child(1), .materials > div:nth-child(2) { border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 480px) {
  .materials { grid-template-columns: 1fr; }
  .materials > div { border-right: none; border-bottom: 1px solid var(--c-border); }
  .materials > div:last-child { border-bottom: none; }
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 254, 249, 0.18);
  border-bottom: 1px solid rgba(255, 254, 249, 0.18);
}
.stats > div {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255, 254, 249, 0.18);
  text-align: center;
}
.stats > div:last-child { border-right: none; }
.stats .num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.stats .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 254, 249, 0.78);
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) {
    border-bottom: 1px solid rgba(255, 254, 249, 0.18);
  }
}

/* Process steps */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-gold);
  background: var(--c-maroon);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-top: 0.2rem; margin-bottom: 0.4rem; }
.step p { margin: 0; }

/* Definition list (specs) */
.specs {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-silk);
}
.specs dl { margin: 0; }
.specs .row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--c-border);
  align-items: baseline;
}
.specs .row:last-child { border-bottom: none; }
.specs dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin: 0;
}
.specs dd { margin: 0; color: var(--c-charcoal); }
@media (max-width: 560px) {
  .specs .row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* CTA banner */
.cta-banner {
  background: var(--c-claret);
  color: var(--c-silk-text);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(226, 172, 74, 0.18), transparent 55%);
}
.cta-banner h2 { color: var(--c-silk-text); margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255, 254, 249, 0.82); max-width: 580px; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner .actions { display: inline-flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-method {
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-method .label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.6rem;
}
.contact-method .value {
  font-size: 1.2rem;
  color: var(--c-maroon);
  font-weight: 500;
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.contact-method .value a { color: inherit; }
.contact-method p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

.address-block address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-charcoal);
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.divider .mark {
  color: var(--c-gold);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-maroon);
  color: rgba(255, 254, 249, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  font-size: 0.95rem;
  border-top: 3px solid var(--c-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--c-gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 254, 249, 0.78); }
.site-footer a:hover { color: var(--c-gold); }
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 254, 249, 0.62); font-size: 0.92rem; line-height: 1.55; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 254, 249, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 254, 249, 0.55);
}
.footer-bottom a { color: rgba(255, 254, 249, 0.7); }
.parent-line { color: rgba(255, 254, 249, 0.55); }

/* ---------- Utility ---------- */
.text-centre { text-align: center; }
.muted { color: var(--c-text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Focus ring */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reveal animation on load (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.7s 0.1s ease-out forwards; }
  .reveal-2 { animation-delay: 0.18s; }
  .reveal-3 { animation-delay: 0.28s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-banner, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
}
