/* Keshavlal Mohanlal & Co. — static site styles */
:root {
  --bg: #FBFAEE;
  --fg: #2E2421;
  --card: #F2F0E4;
  --muted: #EDEBDF;
  --muted-fg: #7A6F63;
  --primary: #8E4D31;
  --primary-fg: #FBFAEE;
  --border: #D9D2C1;
  --radius: 1rem;
  --font-heading: "Noto Serif", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.container-sm { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container-sm, .container-md { padding: 0 2rem; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 238, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}
.nav.scrolled { background: rgba(251, 250, 238, 0.95); border-bottom-color: var(--border); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; color: var(--fg); }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(46,36,33,.8); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-links a.nav-cta:hover {
  background: var(--primary);
  color: var(--bg);
  opacity: 1;
}
.nav-toggle {
  display: block;
  background: none;
  border: none;
  padding: .5rem;
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle.active {
  transform: rotate(90deg);
}
.mobile-menu {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  border-top: 1px solid transparent;
  background: var(--bg);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease, border-color 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding: 1.5rem 1.5rem;
  border-top-color: var(--border);
  box-shadow: 0 10px 20px rgba(46, 36, 33, 0.05);
}
.mobile-menu a:not(.nav-cta) {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(46, 36, 33, 0.8);
  border-bottom: 1px solid rgba(217, 210, 193, 0.4);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu a:not(.nav-cta):hover, .mobile-menu a:not(.nav-cta).active {
  color: var(--primary);
  padding-left: 0.5rem;
}
.mobile-menu a.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(46, 36, 33, 0.1);
  transition: all 0.2s ease;
}
.mobile-menu a.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(142, 77, 49, 0.25);
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 999px; font-size: .875rem; font-weight: 500; transition: opacity .15s, transform .1s, background .15s; cursor: pointer; border: 0; text-decoration: none; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn-sm { padding: .375rem 1rem; font-size: .75rem; }
.btn:active { transform: scale(.97); }

/* Sections */
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section { padding-top: 6rem; padding-bottom: 6rem; } }
.section-muted { background: rgba(237, 235, 223, .5); border-top: 1px solid rgba(217,210,193,.5); border-bottom: 1px solid rgba(217,210,193,.5); }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); font-weight: 500; }
.h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; margin-top: 1rem; }
.h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: .75rem; }
.h3 { font-size: 1.25rem; }
.lead { font-size: 1.125rem; color: var(--muted-fg); margin-top: 1rem; line-height: 1.6; }
.muted { color: var(--muted-fg); }

/* Hero */
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; padding-top: 6rem; padding-bottom: 6rem; } }
.hero-tagline { margin-top: 1.25rem; font-family: var(--font-heading); font-style: italic; font-size: 1.375rem; color: rgba(46,36,33,.8); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); aspect-ratio: 3/4; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Cards grid */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { border: 1px solid rgba(217,210,193,.7); background: var(--card); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,36,33,.06); }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; background: rgba(142,77,49,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.card h3 { margin-top: 1rem; font-size: 1.125rem; }

/* Product card */
.product-card { border: 1px solid rgba(217,210,193,.7); background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; max-width: 21.5rem; margin-inline: auto; width: 100%; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,36,33,.08); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}
.product-card:hover .thumb img {
  filter: brightness(0.8);
}
.thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(46, 36, 33, 0.85) 0%, rgba(46, 36, 33, 0) 100%);
  padding: 2.25rem 1.25rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}
.product-card:hover .thumb-overlay {
  opacity: 1;
  transform: translateY(0);
}
.thumb-overlay-text {
  color: #FBFAEE;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.product-card .body { padding: 1rem 1rem 1.1rem; }
.product-card .body h3 { font-size: 1.15rem; }
.product-card .body p { margin-top: .5rem; font-size: .875rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .row { margin-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product-gallery .product-card { max-width: 20rem; }
.product-gallery .product-card .thumb {
  aspect-ratio: 3/2;
  border-bottom: 0;
}
.product-gallery .product-card .thumb img { object-fit: cover; }
.product-gallery .product-card .body { display: none; }
.product-gallery .product-card-home-adjust .thumb {
  aspect-ratio: 4/3;
}
.product-gallery .product-card-home-adjust .thumb img {
  object-position: center 42%;
}
.link-primary { color: var(--primary); font-weight: 500; font-size: .875rem; }
.link-primary:hover { text-decoration: underline; }

/* Process steps */
.step { display: flex; flex-direction: column; gap: .75rem; }
.step-num { font-family: ui-monospace, monospace; font-size: .625rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted-fg); }

/* Industries chips */
.chips { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; font-size: .875rem; }
.chip .icon { color: var(--primary); font-size: 18px; }

/* Quality */
.q-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .q-grid { grid-template-columns: 1fr 1.1fr; } }
.q-img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.q-img img { width: 100%; height: 100%; object-fit: cover; }
.q-list { margin-top: 2rem; display: grid; gap: 1rem; }
.q-item { display: flex; gap: 1rem; }
.q-item span.num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(142,77,49,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .875rem; }

/* Forms */
.form-card { margin-top: 2.5rem; border: 1px solid rgba(217,210,193,.7); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field.full { grid-column: 1 / -1; }
.form-label { display: block; font-size: .75rem; font-weight: 500; color: rgba(46,36,33,.8); margin-bottom: .375rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .5rem .75rem; font-size: .875rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: .375rem;
  color: var(--fg); font-family: inherit;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(142,77,49,.15); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.form-note { margin-top: 1rem; font-size: .8125rem; color: var(--muted-fg); text-align: center; }

/* Contact page */
.contact-grid { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.reach { display: grid; gap: 1.25rem; }
.reach-row { display: flex; gap: .75rem; font-size: .875rem; align-items: flex-start; }
.reach-row .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; font-size: 18px; }
.map-img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-img img { width: 100%; height: 100%; object-fit: cover; }

/* Product detail */
.crumbs { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: var(--muted-fg); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--primary); }
.pd-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.pd-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: zoom-in;
}
.pd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-img:hover img {
  transform: scale(1.06);
}
.spec-table { margin-top: .75rem; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; font-size: .875rem; border-top: 1px solid var(--border); }
.spec-row:first-child { border-top: 0; }
.spec-row dt { padding: .75rem 1rem; background: rgba(237,235,223,.5); color: rgba(46,36,33,.7); margin: 0; }
.spec-row dd { padding: .75rem 1rem; margin: 0; }
.bullet-list { margin-top: .75rem; display: grid; gap: .5rem; }
.bullet-list li { display: flex; gap: .5rem; font-size: .875rem; color: rgba(46,36,33,.8); }
.bullet-list li::before { content: ""; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(237,235,223,.5); margin-top: 6rem; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid > div { min-width: 0; }
.footer h4 { font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .5rem; font-size: .875rem; color: var(--muted-fg); }
.footer ul li { min-width: 0; }
.footer ul li span:last-child,
.footer ul li a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer .material-symbols-outlined { flex-shrink: 0; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(217,210,193,.5); padding: 1.25rem 0; font-size: .75rem; color: var(--muted-fg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.socials { display: flex; gap: .75rem; margin-top: 1.25rem; color: var(--muted-fg); }
.socials a:hover { color: var(--primary); }
@media (max-width: 767px) {
  .footer-grid { gap: 2rem; padding: 3rem 0; }
  .footer-bottom { justify-content: flex-start; }
  .footer .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* About */
.about-grid { display: grid; gap: 3rem; margin-top: 4rem; align-items: start; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-prose > * + * { margin-top: 1.25rem; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; padding: .75rem 1rem; border-radius: .5rem; background: var(--fg); color: var(--bg); font-size: .875rem; box-shadow: 0 8px 24px rgba(0,0,0,.15); opacity: 0; transform: translateY(20px); transition: all .3s; z-index: 100; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.flex-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

/* Product Image Zoom Hover Effect */
.pd-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 36, 33, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}
.pd-img:hover .pd-img-overlay {
  opacity: 1;
}
.pd-img-overlay-badge {
  background: var(--bg);
  color: var(--fg);
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 12px rgba(46, 36, 33, 0.15);
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
.pd-img:hover .pd-img-overlay-badge {
  transform: translateY(0);
}
.pd-img-overlay-badge span {
  font-size: 18px;
}

/* Fullscreen Lightbox Modal */
.zoom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  touch-action: none;
}
.zoom-lightbox.active {
  opacity: 1;
}
.zoom-lightbox-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.zoom-lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.1s ease-out; /* Responsive panning */
  transform-origin: center center;
  cursor: grab;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.zoom-lightbox-img:active {
  cursor: grabbing;
}
.zoom-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(251, 250, 238, 0.1);
  border: 1px solid rgba(251, 250, 238, 0.2);
  color: #FBFAEE;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1010;
}
.zoom-lightbox-close:hover {
  background: rgba(251, 250, 238, 0.2);
  transform: scale(1.05);
}
.zoom-lightbox-close:active {
  transform: scale(0.95);
}
.zoom-lightbox-close span {
  font-size: 24px;
}

.zoom-lightbox-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 36, 33, 0.9);
  border: 1px solid rgba(217, 210, 193, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1010;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.zoom-lightbox-btn {
  background: none;
  border: none;
  color: #FBFAEE;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.zoom-lightbox-btn:hover {
  background: rgba(251, 250, 238, 0.15);
}
.zoom-lightbox-btn:active {
  transform: scale(0.9);
}
.zoom-lightbox-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.zoom-lightbox-btn span {
  font-size: 20px;
}
.zoom-lightbox-divider {
  width: 1px;
  height: 20px;
  background: rgba(251, 250, 238, 0.2);
}
.zoom-lightbox-info {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 250, 238, 0.75);
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 1010;
  background: rgba(15, 12, 10, 0.7);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  opacity: 1;
  transition: opacity 0.5s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.zoom-lightbox-info.fade-out {
  opacity: 0;
}
