/* Ohm Shree Corporation
   Concept: "the gin house". A working double roller gin is the hero,
   the catalogue is a shelf of kraft parts tags, and contact is a turmeric
   order slip. Palette: navy, raw cotton, kraft tag, turmeric. */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --cotton: #f7f8f5;
  --white: #ffffff;
  --teal: #14284a;
  --teal-deep: #0c1a33;
  --teal-2: #1f3d6b;
  --teal-3: #3d649c;
  --mint: #c9d6ea;
  --turmeric: #f2b233;
  --turmeric-deep: #d9971a;
  --kraft: #e3cf9e;
  --kraft-dark: #b99a5c;
  --ink: #0f2a2f;
  --muted: #4c6266;
  --line: #d3dcd9;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --font: "Bricolage", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }

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

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 84%;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 5.6vw, 5.1rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.15; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-turmeric { background: var(--turmeric); color: var(--ink); }
.btn-turmeric:hover { background: var(--turmeric-deep); color: var(--ink); }
.btn-line { border-color: rgba(247, 248, 245, 0.6); color: var(--cotton); }
.btn-line:hover { border-color: var(--cotton); background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 40, 74, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--cotton);
  border-bottom: 1px solid rgba(201, 214, 234, 0.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand {
  color: #fff; text-decoration: none; line-height: 1.05;
  font-weight: 800; font-stretch: 80%; font-size: 1.4rem; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}
.brand small { display: block; font-weight: 450; font-stretch: 100%; font-size: 0.78rem; color: var(--mint); letter-spacing: 0; font-variation-settings: "opsz" 12; }
.site-nav ul { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--cotton); text-decoration: none; font-weight: 550; }
.site-nav a:hover { color: var(--turmeric); }
.site-nav .btn { min-height: 2.6rem; padding: 0.45rem 1.1rem; color: var(--ink); }
.site-nav .btn:hover { color: var(--ink); }
@media (max-width: 820px) {
  .site-nav li:not(.keep) { display: none; }
  .brand small { display: none; }
}

/* ---------- Hero: the gin ---------- */
.hero {
  background: var(--teal);
  color: var(--cotton);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .soft { color: var(--mint); font-weight: 300; font-stretch: 100%; display: block; font-size: 0.46em; letter-spacing: -0.01em; line-height: 1.15; margin-top: 0.7rem; }
.hero .lead { color: var(--mint); margin-top: 1.5rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.hero-facts li {
  border: 1px solid rgba(201, 214, 234, 0.35);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.92rem; color: var(--cotton);
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.machine {
  background: radial-gradient(120% 90% at 50% 35%, var(--teal-2) 0%, var(--teal-deep) 100%);
  border: 1px solid rgba(201, 214, 234, 0.2);
  border-radius: 28px;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.machine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.25rem 0.5rem 0.5rem; }
.machine-head p { margin: 0; font-size: 0.92rem; color: var(--mint); }
.machine-head strong { font-weight: 700; color: #fff; }
.gin { width: 100%; height: auto; display: block; }

/* SVG parts */
.gin .frame { fill: rgba(201, 214, 234, 0.06); stroke: rgba(201, 214, 234, 0.28); stroke-width: 2; }
.gin .hopper { fill: rgba(227, 207, 158, 0.16); stroke: var(--kraft); stroke-width: 2.5; stroke-linejoin: round; }
.gin .roller-body { fill: #e3e8ef; stroke: #f7f8f5; stroke-width: 3; }
.gin .groove { stroke: #a9b7cb; stroke-width: 3; stroke-linecap: round; fill: none; }
.gin .hub { fill: var(--kraft); stroke: var(--kraft-dark); stroke-width: 2; }
.gin .shaft { fill: var(--teal-deep); }
.gin .knife { fill: #9aa8bb; stroke: #eef1f6; stroke-width: 1.5; }
.gin .beater { fill: #c3ccd9; stroke: #f7f8f5; stroke-width: 1.5; }
.gin .arm { stroke: var(--teal-3); stroke-width: 10; stroke-linecap: round; fill: none; }
.gin .rod { stroke: var(--mint); stroke-width: 7; stroke-linecap: round; }
.gin .jali { stroke: var(--kraft); stroke-width: 8; stroke-dasharray: 9 6; }
.gin .gear-teeth { fill: none; stroke: var(--teal-3); stroke-width: 12; stroke-dasharray: 7 5; }
.gin .gear-disc { fill: var(--teal-3); stroke: #8aa6cf; stroke-width: 2; }
.gin .gear-spoke { stroke: var(--teal-deep); stroke-width: 6; stroke-linecap: round; }
.gin .ecc-disc { fill: var(--kraft); stroke: var(--kraft-dark); stroke-width: 2; }
.gin .pin { fill: var(--teal-deep); stroke: var(--mint); stroke-width: 2; }
.gin .lint { fill: none; stroke: #ffffff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 10; opacity: 0.9; animation: lint 1.6s linear infinite; }
.gin .lint.thin { stroke-width: 3; opacity: 0.6; animation-duration: 2.1s; }
.gin .seed { fill: #3a2c22; }
.gin .puff circle { fill: #ffffff; }
.gin .floor { stroke: rgba(201, 214, 234, 0.3); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.gin .tag-label { fill: var(--mint); font-family: var(--font); font-size: 13px; font-weight: 500; }

@keyframes lint { to { stroke-dashoffset: -48; } }

/* hotspots */
.gin .hot { cursor: pointer; outline: none; }
.gin .hot .ring { fill: var(--turmeric); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.gin .hot .dot { fill: var(--turmeric); stroke: var(--ink); stroke-width: 2; transition: r 0.15s ease; }
.gin .hot .plus { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.gin .hot:hover .dot, .gin .hot:focus-visible .dot { r: 15; }
.gin .hot:focus-visible .dot { stroke: #fff; stroke-width: 3; }
.gin .hot[aria-pressed="true"] .dot { fill: #fff; }
.gin .hot[aria-pressed="true"] .ring { fill: #fff; }
@keyframes ping { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(2.1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gin .lint, .gin .hot .ring { animation: none; }
}

/* selected part card */
.part-pick {
  margin-top: clamp(0.75rem, 2vw, 1rem);
  background: var(--cotton);
  color: var(--ink);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  min-height: 9.25rem;
}
.part-pick img { width: 7.5rem; height: 7.5rem; object-fit: contain; background: var(--white); border-radius: 14px; }
.part-pick h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.part-pick p { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.6rem; }
.part-pick .btn { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.part-pick[data-anim] { animation: pick 0.3s ease; }
@keyframes pick { from { opacity: 0.3; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .part-pick[data-anim] { animation: none; } }
@media (max-width: 460px) {
  .part-pick { grid-template-columns: 5.5rem 1fr; }
  .part-pick img { width: 5.5rem; height: 5.5rem; }
}

.hot-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.hot-list button {
  background: transparent; color: var(--mint);
  border: 1px solid rgba(201, 214, 234, 0.35); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.88rem; cursor: pointer;
}
.hot-list button:hover { border-color: var(--mint); color: #fff; }
.hot-list button[aria-pressed="true"] { background: var(--turmeric); border-color: var(--turmeric); color: var(--ink); font-weight: 650; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Parts shelf: kraft tags ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.25rem; padding: 0; list-style: none; }
.filters button {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 1.05rem; font-weight: 600; cursor: pointer;
}
.filters button:hover { border-color: var(--teal-2); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
  margin: 0; padding: 0; list-style: none;
}
.tag {
  --cut: 22px;
  position: relative;
  background: var(--kraft);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
  border-radius: 0 0 16px 16px;
  padding: 2.6rem 1.1rem 1.15rem;
  display: flex; flex-direction: column;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}
.tag:nth-child(3n + 1) { --tilt: -0.7deg; }
.tag:nth-child(3n + 2) { --tilt: 0.5deg; }
.tag:nth-child(4n + 3) { --tilt: -0.3deg; }
.tag:hover { transform: rotate(0deg) translateY(-4px); }
.tag::before {
  content: ""; position: absolute; top: 0.85rem; left: 50%; translate: -50% 0;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--cotton);
  box-shadow: 0 0 0 4px var(--kraft-dark);
}
.tag img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); border-radius: 12px; padding: 0.6rem; }
.tag .group-name { font-size: 0.85rem; color: #6b5528; margin: 0.9rem 0 0.15rem; }
.tag h3 { margin-bottom: 0.4rem; }
.tag p.use { font-size: 0.95rem; color: #4a3f2a; margin-bottom: 0.9rem; }
.tag .btn { margin-top: auto; align-self: flex-start; min-height: 2.6rem; padding: 0.4rem 1.05rem; font-size: 0.95rem; }
.tag[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tag { transition: none; } }
@media (max-width: 560px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.8rem; }
  .tag { --cut: 14px; padding: 2.1rem 0.7rem 0.85rem; }
  .tag::before { top: 0.65rem; width: 0.75rem; height: 0.75rem; box-shadow: 0 0 0 3px var(--kraft-dark); }
  .tag h3 { font-size: 1.08rem; }
  .tag p.use { font-size: 0.86rem; }
  .tag .btn { padding: 0.35rem 0.8rem; font-size: 0.88rem; min-height: 2.4rem; }
}

/* ---------- Also supplied ---------- */
.also { background: var(--teal-deep); color: var(--cotton); }
.also h2 { color: #fff; }
.also .section-head p { color: var(--mint); }
.also-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.also-list li {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(201, 214, 234, 0.2);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 650; font-stretch: 85%; line-height: 1.2;
  font-variation-settings: "opsz" 40;
}
.also-list li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; background: var(--turmeric); border-radius: 2px; translate: 0 -0.15rem; }
.also .btn { margin-top: 2.5rem; }
@media (max-width: 700px) { .also-list { grid-template-columns: 1fr; } }

/* ---------- How to order (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: clamp(5rem, 10vw, 7.5rem); font-weight: 800; font-stretch: 75%; line-height: 0.8;
  font-variation-settings: "opsz" 96;
  color: transparent; -webkit-text-stroke: 2px var(--teal-2);
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.year {
  font-size: clamp(7rem, 22vw, 17rem); font-weight: 800; font-stretch: 75%; line-height: 0.78;
  font-variation-settings: "opsz" 96; letter-spacing: -0.02em;
  color: var(--kraft); margin: 0;
}
.year-note { font-size: 1.15rem; font-weight: 600; margin: 1.25rem 0 0; }
.about h2 { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-weight: 700; font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 500; font-size: 1.3rem; line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* ---------- Contact: the order slip ---------- */
.contact { background: var(--turmeric); color: var(--ink); }
.call-big {
  display: inline-block; color: var(--ink); text-decoration: none;
  font-size: clamp(2.6rem, 8.5vw, 7.25rem); font-weight: 800; font-stretch: 80%; line-height: 0.95;
  font-variation-settings: "opsz" 96; letter-spacing: -0.01em;
  margin: 0.75rem 0 0.5rem;
}
.call-big:hover { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 4px; }
.contact-intro { font-size: 1.15rem; margin: 1rem 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.contact-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; align-content: start; }
.contact-list dt { font-size: 0.9rem; color: #5b4310; }
.contact-list dd { margin: 0.25rem 0 0; font-weight: 600; }
.contact-list address { font-style: normal; }
.contact-list a:not(.btn) { color: var(--ink); }
.contact-list .wide { grid-column: 1 / -1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; grid-column: 1 / -1; }
.map { position: relative; min-height: 22rem; border-radius: 24px; overflow: hidden; background: var(--turmeric-deep); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--mint); font-size: 0.92rem; padding-block: 2rem 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 4.25rem; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 60; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.75rem; font-weight: 700; text-decoration: none; }
  .action-bar svg { width: 1.25rem; height: 1.25rem; }
  .action-bar .ab-call { background: var(--teal-deep); color: #fff; }
  .action-bar .ab-wa { background: var(--turmeric); color: var(--ink); }
}

@media print {
  .site-header, .action-bar, .map, .machine, .filters { display: none; }
  .hero, .also, .contact { background: none; color: #000; }
}

