/* ==========================================================================
   Shree Madhuban Industries — stylesheet
   Palette sampled from the company logo (red) and visiting card (teal).
   ========================================================================== */

:root {
  --cement:      #e4e2dc;
  --cement-dark: #d5d2ca;
  --slab:        #f7f6f3;
  --basalt:      #1e2124;
  --ink:         #24272b;
  --muted:       #5f6368;
  --grout:       #c6c2b9;

  --brand:       #c90101;
  --brand-deep:  #8c0605;
  --teal:        #0193aa;
  --teal-deep:   #016b7c;

  --page:  1180px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 2.2vw, 1.6rem);
  --step-3: clamp(1.7rem, 3.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 6.2vw, 4rem);

  --shadow: 0 18px 44px -26px rgba(30, 33, 36, .55);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cement);
  color: var(--ink);
  font-family: "Karla", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0 0 .55em;
  color: var(--basalt);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -.012em; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.05em; max-width: 68ch; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--basalt); color: #fff; padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: .6rem; top: .6rem; }

/* ---------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.25rem, 8vw, 5.75rem); }
.band--slab  { background: var(--slab); }
.band--dark  { background: var(--basalt); color: #ddd9d2; }
.band--dark h2, .band--dark h3, .band--dark h4 { color: #fff; }
.band--tight { padding-block: clamp(2.25rem, 5vw, 3.25rem); }

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
}

.band--dark .lede { color: #b6b2ab; }

/* A painted kerb edge — the divider between a road and a footpath. */
.kerb {
  height: 9px;
  background:
    repeating-linear-gradient(90deg,
      var(--brand-deep) 0 78px,
      var(--slab) 78px 156px);
  border-block: 1px solid rgba(0,0,0,.16);
}

.rule {
  border: 0;
  border-top: 2px solid var(--grout);
  margin: 2.6rem 0;
}

/* ---------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: var(--slab);
  border-bottom: 5px solid var(--brand);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { width: 54px; height: auto; }
.brand b {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.16rem;
  line-height: 1.05; color: var(--basalt); letter-spacing: -.02em; display: block;
}
.brand span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  position: absolute; width: 1px; height: 1px; margin: 0;
  opacity: 0; pointer-events: none;
}
.nav-toggle-label { display: none; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--teal); outline-offset: 3px; }

.nav ul {
  list-style: none; display: flex; align-items: center; gap: clamp(.5rem, 1.7vw, 1.5rem);
  margin: 0; padding: 0;
}
.nav a {
  display: block; padding: .45rem .2rem;
  font-weight: 700; font-size: .98rem; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--grout); }
.nav a[aria-current="page"] { color: var(--brand-deep); border-bottom-color: var(--brand); }

.nav .callbtn {
  background: var(--basalt); color: #fff; border-radius: 3px;
  padding: .62rem 1.05rem; border-bottom: 3px solid var(--brand-deep);
}
.nav .callbtn:hover { background: var(--brand-deep); color: #fff; border-bottom-color: var(--basalt); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 3px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--line { background: transparent; color: var(--basalt); border-color: var(--basalt); }
.btn--line:hover { background: var(--basalt); color: #fff; }
.btn--wa { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--wa:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: #a8a49b url("../img/hero-field.svg") center/cover;
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,22,24,.34) 0 46%, rgba(20,22,24,0) 78%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem); }

.slab {
  background: var(--slab);
  max-width: 43rem;
  padding: clamp(1.7rem, 4vw, 2.9rem);
  border-left: 10px solid var(--brand);
  box-shadow: var(--shadow);
}
.slab h1 { margin-bottom: .45em; }
.slab p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }

.hero-facts {
  position: relative; z-index: 2;
  display: grid; gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--grout);
  border-top: 1px solid var(--grout);
}
.hero-facts div { background: var(--slab); padding: 1.1rem var(--gutter); }
.hero-facts b {
  font-family: "Archivo", sans-serif; display: block; font-size: 1.02rem; color: var(--basalt);
}
.hero-facts span { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.split {
  display: grid; gap: clamp(1.8rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}

/* ---------------------------------------------------------------- product card */
.card {
  background: var(--slab);
  border: 1px solid var(--grout);
  display: flex; flex-direction: column;
}
.card figure { margin: 0; border-bottom: 1px solid var(--grout); background: var(--cement-dark); }
.card figure img { width: 100%; height: 178px; object-fit: cover; }
.card__body { padding: 1.15rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.22rem; margin-bottom: .3rem; }
.card p { font-size: .97rem; color: var(--muted); margin-bottom: .9rem; }
.card__meta {
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--grout);
  font-size: .88rem; color: var(--basalt); font-weight: 700;
}
.card__meta em { font-style: normal; color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- catalogue entry */
.item {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.3rem, 3.5vw, 2.6rem);
  align-items: start;
  padding-block: clamp(2rem, 4.5vw, 3rem);
  border-top: 2px solid var(--grout);
}
.item:first-of-type { border-top: 0; padding-top: .5rem; }
.item figure { margin: 0; border: 1px solid var(--grout); }
.item figure img { width: 100%; height: auto; }
.item figcaption { font-size: .82rem; color: var(--muted); padding: .5rem .2rem 0; }
.item h3 { margin-bottom: .35em; }

.spec {
  width: 100%; border-collapse: collapse; margin-top: 1.1rem;
  font-size: .95rem;
}
.spec th, .spec td { text-align: left; padding: .55rem .8rem .55rem 0; vertical-align: top; border-top: 1px solid var(--grout); }
.spec th { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--basalt); width: 11rem; }
.spec td { color: var(--muted); }

.taglist { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.taglist li {
  font-size: .83rem; font-weight: 700; color: var(--basalt);
  border: 1px solid var(--grout); background: var(--slab); padding: .28rem .65rem; border-radius: 2px;
}

/* ---------------------------------------------------------------- steps (a real sequence) */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.1rem; align-items: start;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--brand); border-top: 4px solid var(--brand); padding-top: .35rem;
}
.steps h4 { margin-bottom: .18em; }
.steps p { margin: 0; font-size: .97rem; color: var(--muted); }
.band--dark .steps p { color: #a9a5a0; }

/* ---------------------------------------------------------------- facts / list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 10px; height: 10px; background: var(--brand); transform: rotate(45deg);
}
.band--dark .checks li::before { background: var(--teal); }

/* ---------------------------------------------------------------- swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1rem; }
@media (min-width: 880px) { .swatches { grid-template-columns: repeat(4, 1fr); max-width: 58rem; } .swatch i { height: 96px; } }
.swatch { text-align: left; }
.swatch i { display: block; height: 82px; border: 1px solid rgba(0,0,0,.18); }
.swatch b { display: block; font-size: .92rem; margin-top: .45rem; font-family: "Archivo", sans-serif; }
.swatch span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.info { margin: 0; }
.info div { padding: .95rem 0; border-top: 1px solid var(--grout); }
.info div:first-child { border-top: 0; padding-top: 0; }
.info dt { font-family: "Archivo", sans-serif; font-weight: 700; font-size: .9rem; color: var(--brand-deep); margin-bottom: .18rem; }
.info dd { margin: 0; color: var(--ink); }
.info dd a { color: var(--ink); }

.map { border: 1px solid var(--grout); background: var(--cement-dark); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------------------------------------------------------------- form */
.form { background: var(--slab); border: 1px solid var(--grout); padding: clamp(1.3rem, 3.5vw, 2rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .32rem; color: var(--basalt); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .7rem .8rem; background: #fff;
  border: 1px solid var(--grout); border-radius: 2px; color: var(--ink);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field small { display: block; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.form-note { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------------------------------------------------------------- page head */
.pagehead {
  background: var(--basalt);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 5px solid var(--brand);
}
.pagehead h1 { color: #fff; max-width: 20ch; }
.pagehead p { color: #b3afa8; max-width: 62ch; margin-bottom: 0; font-size: var(--step-1); }
.crumbs { font-size: .88rem; color: #8d8983; margin-bottom: 1.1rem; }
.crumbs a { color: #cfcac2; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- call strip */
.callout {
  background: var(--brand-deep);
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
}
.callout h2 { color: #fff; margin-bottom: .3em; }
.callout p { color: #f2cfcd; margin-bottom: 0; }
.callout .btn--line { color: #fff; border-color: #fff; }
.callout .btn--line:hover { background: #fff; color: var(--brand-deep); }
.callout .btn--solid { background: #fff; color: var(--brand-deep); border-color: #fff; }
.callout .btn--solid:hover { background: var(--basalt); border-color: var(--basalt); color: #fff; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--basalt); color: #a7a39d; padding-block: 3rem 2rem; font-size: .95rem; }
.foot h4 { color: #fff; font-size: .98rem; margin-bottom: .75rem; }
.foot a { color: #ddd9d2; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot img { width: 160px; margin-bottom: 1rem; }
.foot p { margin-bottom: .6rem; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot__base {
  margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid #3a3d41;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .87rem; color: #86827c;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-block: .9rem; }
}

@media (max-width: 520px) {
  .brand > span > span { display: none; }
}

@media (max-width: 760px) {
  .masthead__inner { min-height: 68px; }
  .brand img { width: 44px; }
  .brand b { font-size: 1rem; }

  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 6px; cursor: pointer;
    border: 1px solid var(--grout); background: var(--slab); border-radius: 3px;
  }
  .nav-toggle-label span { display: block; height: 3px; background: var(--basalt); border-radius: 2px; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--slab); border-bottom: 5px solid var(--brand);
    max-height: 0; overflow: hidden;
    transition: max-height .22s ease;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .4rem var(--gutter) 1.1rem; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--grout); }
  .nav a:hover { border-bottom-color: var(--grout); }
  .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
  .nav .callbtn { margin-top: .9rem; text-align: center; border-bottom: 3px solid var(--brand-deep); }

  .nav-toggle:checked ~ .nav { max-height: 30rem; }

  .masthead__inner { position: relative; }
}

@media (min-width: 761px) {
  .nav { max-height: none !important; }
}

@media print {
  .masthead, .callout, .btn-row, .map { display: none; }
  body { background: #fff; }
}
