/* Interaction and product detail refinements for Suvarna. */
:root {
  --interaction-ease: cubic-bezier(.22,.68,.15,1);
  --surface-shadow: 0 24px 48px -32px #192c3860;
  --brand-blue: #006eac;
  --brand-green: #218c38;
}

html { scrollbar-gutter: stable; }
.header { background: #fff; color: var(--ink); transition: box-shadow 280ms ease; }
.logo-window {
  display: block;
  position: relative;
  width: 190px;
  aspect-ratio: 1500 / 660;
  overflow: hidden;
}
/* Display the supplied PNG unchanged; the window excludes only its blank margins. */
.logo-window img {
  position: absolute;
  width: 118.266667%;
  max-width: none;
  height: auto;
  left: -9.333333%;
  top: -14.242424%;
}
#navigation .nav-cta { background: var(--brand-blue); color: #fff; }
.footer-grid .footer-logo {
  display: inline-block;
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 8px;
}
.footer-grid .footer-logo::after { display: none; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-method { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-label { font-size: 9px; letter-spacing: .12em; color: #5b7161; margin-bottom: 2px; }
.contact-email { grid-column: 1 / -1; }
.contact-links a { width: fit-content; max-width: 100%; gap: 14px; font-size: 16px; }
.contact-links a > span { min-width: 0; overflow-wrap: anywhere; }
.contact-links .icon { width: 14px; height: 14px; }
.header.is-scrolled { box-shadow: 0 8px 30px #10222c24; }
.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--brand-green);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  pointer-events: none;
}

.button, .nav-cta {
  transition: background 280ms ease, box-shadow 280ms ease, color 280ms ease;
}
.button .icon, .nav-cta .icon, .text-link .icon, .card-link .icon,
.product-detail-link .icon, .card-arrow .icon, .circle-button .icon,
.contact-links .icon, .footer-bottom .icon {
  transition: transform 320ms var(--interaction-ease);
}
.circle-button {
  transition: background 260ms ease, color 260ms ease,
    border-color 260ms ease, box-shadow 260ms ease;
}
.product-image-scene, .solution-image, .motion-stage {
  border-radius: 8px;
  isolation: isolate;
  transition: box-shadow 350ms ease, background 350ms ease;
}
.product-image-scene > img, .solution-image > img {
  position: relative;
  z-index: 1;
}
.card-top { z-index: 2; }
.product-image-scene::before, .solution-image::before,
.hero-product-stage::before, .motion-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 240px at var(--pointer-x, 50%) var(--pointer-y, 50%), #ffffffa6, transparent 75%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
  z-index: 0;
}
.product-image-scene::after, .solution-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #192c383d;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
  z-index: 3;
}
.hero-product-stage { position: relative; isolation: isolate; }
.hero-product-stage > *, .motion-stage > * { position: relative; z-index: 1; }
.motion-stage > .stage-coordinate { position: absolute; }

/* Let all featured text size shared rows, keeping the actions still on each slide. */
.showcase-copy {
  --showcase-title-size: 48px;
  --showcase-body-size: 13px;
  --showcase-range-size: 24px;
  min-width: 0;
}
.showcase-slot { display: grid; }
.showcase-slot > * { grid-area: 1 / 1; align-self: start; min-width: 0; }
.showcase-reserve { visibility: hidden; pointer-events: none; user-select: none; }
.showcase-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: var(--showcase-title-size);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.showcase-copy #showcase-name { font: inherit; letter-spacing: inherit; margin: 0; }
.showcase-description {
  font-size: var(--showcase-body-size);
  line-height: 1.85;
  color: #c4d0d3;
  max-width: 500px;
}
.showcase-description > p { color: inherit; }
.showcase-range {
  font-size: var(--showcase-range-size);
  font-weight: 400;
  margin-top: 8px;
}
.showcase-size #showcase-size { font: inherit; margin: 0; }
@media (max-width: 1100px) {
  .showcase-copy { --showcase-title-size: 39px; }
}
@media (max-width: 800px) {
  .showcase-copy { --showcase-title-size: 34px; --showcase-body-size: 12px; --showcase-range-size: 19px; }
}
@media (max-width: 600px) {
  .showcase-copy { --showcase-title-size: 39px; --showcase-body-size: 13px; }
}

.product-card h3, .solution-copy h3 { transition: color 250ms ease; }
.product-detail-link, .card-link { position: relative; }
.product-detail-link::after, .card-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--interaction-ease);
}
.industry-photo-card { border-radius: 8px; }
.industry-photo-card > div > span .icon { transition: transform 320ms var(--interaction-ease); }
.industry-photo-card::after { transition: background 300ms ease; }
.industry-photo-card > div { transition: background 300ms ease; }
.filters button, .showcase-selectors button {
  transition: color 250ms ease, background 250ms ease,
    box-shadow 250ms ease, border-color 250ms ease;
}
.search { transition: border-color 250ms ease, box-shadow 250ms ease; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.material-tags span { transition: background 250ms ease, border-color 250ms ease; }
.quality-badges > div, .test-grid article { transition: border-color 250ms ease; }
#enquiry-form {
  border: 1px solid #192c3810;
  border-radius: 10px;
  transition: box-shadow 300ms ease, border-color 300ms ease;
}
#enquiry-form:focus-within { border-color: #192c3840; box-shadow: var(--surface-shadow); }
#enquiry-form input:focus, #enquiry-form textarea:focus {
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.footer-grid a {
  width: fit-content;
  max-width: 100%;
  position: relative;
}
.footer-grid a::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--interaction-ease);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #365b59; box-shadow: 0 10px 24px -14px #192c3890; }
  .button.white:hover, .showcase-copy .button:hover { background: var(--accent); }
  #navigation .nav-cta:hover { background: var(--accent); color: var(--ink); }
  .button:hover .icon, .nav-cta:hover .icon, .text-link:hover .icon,
  .contact-links a:hover .icon, .footer-bottom a:hover .icon { transform: translateX(4px); }
  .circle-button:hover { box-shadow: 0 0 0 5px #192c3810; }
  .showcase-navigation .circle-button:hover { box-shadow: 0 0 0 5px #ffffff12; }
  #next-slide:hover .icon, #showcase-next:hover .icon, #industry-next:hover .icon { transform: translateX(3px); }
  #previous-slide:hover .icon, #showcase-previous:hover .icon, #industry-previous:hover .icon { transform: translateX(-3px); }
  #hero-product-details:hover .icon { transform: translate(2px,-2px); }
  .dialog-close:hover .icon, .industry-dialog-close:hover .icon { transform: rotate(90deg); }
  #back-to-top:hover .icon { transform: translateY(-3px); }
  .product-card:is(:hover,:focus-visible) .product-image-scene,
  .solution-card:is(:hover,:focus-visible) .solution-image { box-shadow: var(--surface-shadow); }
  .product-card:is(:hover,:focus-visible) .product-image-scene::before,
  .product-card:is(:hover,:focus-visible) .product-image-scene::after,
  .solution-card:is(:hover,:focus-visible) .solution-image::before,
  .solution-card:is(:hover,:focus-visible) .solution-image::after,
  .hero-product-stage:hover::before, .motion-stage:hover::before { opacity: 1; }
  .product-card:is(:hover,:focus-visible) h3,
  .solution-card:is(:hover,:focus-visible) h3 { color: #3e635c; }
  .product-card:is(:hover,:focus-visible) .product-detail-link::after,
  .solution-card:is(:hover,:focus-visible) .card-link::after { transform: scaleX(1); }
  .product-card:is(:hover,:focus-visible) .product-detail-link .icon,
  .solution-card:is(:hover,:focus-visible) .card-link .icon { transform: translateX(4px); }
  .product-card:is(:hover,:focus-visible) .card-arrow .icon { transform: translate(2px,-2px); }
  .industry-photo-card:is(:hover,:focus-visible) > div { background: #0d202233; }
  .industry-photo-card:is(:hover,:focus-visible) > div > span .icon { transform: translate(3px,-3px); }
  .filters button:hover, .showcase-selectors button:hover { box-shadow: 0 4px 14px #192c3810; }
  .material-tags span:hover { background: #e3eadd; border-color: #6b8477; }
  .quality-badges > div:hover, .test-grid article:hover { border-color: #5e7d6e; }
  .footer-grid a:hover::after { transform: scaleX(1); }
}

/* A stable shell: only the reading area scrolls when a tab has more content. */
#product-dialog {
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100% - 64px));
  height: min(720px, calc(100vh - 72px));
  height: min(720px, calc(100dvh - 72px));
  max-height: none;
  overflow: hidden;
  border: 1px solid #ffffff80;
  border-radius: 16px;
  box-shadow: 0 36px 100px #0b192047, 0 8px 30px #0b192033;
}
#product-dialog::backdrop { background: #0c1920b8; backdrop-filter: blur(10px); }
#product-dialog .dialog-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: 44% 56%;
  grid-template-rows: minmax(0,1fr);
}
#product-dialog .dialog-visual {
  min-width: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  padding: 36px;
  overflow: hidden;
  background: linear-gradient(135deg,#edf0e8,#d6dfd9);
  border-right: 1px solid #192c3810;
}
#product-dialog .dialog-product-float { width: 100%; height: 100%; aspect-ratio: auto; }
#product-dialog .dialog-product-float img { width: 100%; height: 100%; object-fit: contain; }
.dialog-image-label {
  position: absolute;
  inset: 26px 30px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 8px;
  letter-spacing: .12em;
  color: #425b60;
}
.dialog-image-caption {
  position: absolute;
  bottom: 26px;
  left: 30px;
  font-size: 8px;
  letter-spacing: .14em;
  color: #425b60;
}
#product-dialog .dialog-close { position: absolute; inset: 18px 18px auto auto; z-index: 3; }
#product-dialog .dialog-close:focus-visible { outline: 2px solid #55796a; outline-offset: 4px; }
#product-dialog .dialog-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 46px 42px 32px;
}
#product-dialog .dialog-content > .eyebrow {
  flex: none;
  margin: 0 0 14px;
  padding-right: 40px;
  font-size: 9px;
}
#product-dialog .dialog-content h2 { flex: none; font-size: 37px; line-height: 1.1; }
#product-dialog #dialog-size {
  flex: none;
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 5px 12px;
  border: 1px solid #d4dfd7;
  border-radius: 20px;
  background: #edf1e9;
  color: #415b50;
  font-size: 11px;
}
#product-dialog .detail-tabs { flex: none; gap: 24px; margin: 24px 0 18px; }
#product-dialog .detail-tabs button {
  position: relative;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  white-space: nowrap;
  font-size: 11px;
  transition: color 220ms ease;
}
#product-dialog .detail-tabs button::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--interaction-ease);
}
#product-dialog .detail-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
#product-dialog .detail-tabs button:hover { color: #3e635c; }
#product-dialog .detail-tabs button:not([aria-selected="true"]):hover::after {
  transform: scaleX(.4);
  opacity: .4;
}
#product-dialog #dialog-information {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 14px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #a1b4a8 #e9eee8;
  font-size: 12.5px;
  line-height: 1.85;
}
#product-dialog #dialog-information:focus-visible { outline-offset: -3px; }
#product-dialog #dialog-information section:first-child h3 { margin-top: 0; }
#product-dialog .dialog-actions { flex: none; padding-top: 12px; border-top: 1px solid var(--line); }
#product-dialog #dialog-scroll-hint {
  height: 18px;
  line-height: 18px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .04em;
  color: #718477;
  opacity: 0;
  transition: opacity 180ms ease;
}
#product-dialog #dialog-scroll-hint.is-visible { opacity: 1; }
#product-dialog #dialog-scroll-hint .icon { width: 14px; height: 14px; }
#product-dialog .dialog-actions .button { width: 100%; margin: 0; min-height: 54px; font-size: 12px; }
#industry-dialog { border-radius: 14px; box-shadow: 0 36px 100px #0b192047; }
#industry-related-products button { border-radius: 6px; transition: border-color 250ms ease, background 250ms ease; }
#industry-related-products button:hover { background: #e3ebdf; }

@media (max-width: 900px) {
  #product-dialog .dialog-content { padding: 48px 28px 26px; }
  #product-dialog .dialog-content h2 { font-size: 31px; }
  #product-dialog .detail-tabs { gap: 18px; }
  #product-dialog .detail-tabs button { font-size: 10px; }
  #product-dialog .dialog-visual { padding: 20px; }
  .dialog-image-label { inset: 24px 20px auto; font-size: 7px; }
  .dialog-image-caption { left: 20px; font-size: 7px; }
}
@media (max-width: 800px) {
  .header .logo-window { width: 148px; }
  #navigation { background: #fff; border-top-color: #dce4df; }
  .contact-links { gap: 24px 20px; }
}
@media (max-width: 600px) {
  .contact-links a { font-size: 15px; gap: 10px; }
}
@media (max-width: 360px) {
  .contact-links { grid-template-columns: 1fr; }
  .contact-email { grid-column: auto; }
}
@media (max-width: 700px) {
  #product-dialog {
    width: calc(100% - 28px);
    height: min(900px, calc(100vh - 28px));
    height: min(900px, calc(100dvh - 28px));
    border-radius: 12px;
  }
  #product-dialog .dialog-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: clamp(110px,22dvh,190px) minmax(0,1fr);
  }
  #product-dialog .dialog-visual { border-right: 0; border-bottom: 1px solid #192c3810; padding: 8px 28px; }
  #product-dialog .dialog-close { inset: 14px 14px auto auto; }
  .dialog-image-label { inset: 18px 74px auto 20px; font-size: 7px; letter-spacing: .08em; }
  .dialog-image-caption { bottom: 12px; left: 20px; font-size: 6px; }
  #product-dialog .dialog-content { padding: 24px 24px 22px; }
  #product-dialog .dialog-content > .eyebrow { margin-bottom: 10px; padding-right: 0; font-size: 8px; }
  #product-dialog .dialog-content h2 { font-size: 30px; }
  #product-dialog #dialog-size { margin-top: 12px; padding: 4px 10px; font-size: 10px; }
  #product-dialog .detail-tabs { gap: 19px; margin: 18px 0 14px; }
  #product-dialog .detail-tabs button { font-size: 10px; min-height: 42px; }
  #product-dialog #dialog-information { padding-right: 10px; font-size: 12px; }
  #product-dialog .dialog-actions .button { min-height: 50px; padding: 14px 18px; font-size: 11px; }
  #product-dialog #dialog-scroll-hint { margin-bottom: 8px; font-size: 8px; }
}
@media (max-height: 640px) and (min-width: 701px) {
  #product-dialog { height: calc(100dvh - 32px); }
  #product-dialog .dialog-content { padding: 28px 28px 22px; }
  #product-dialog .dialog-content > .eyebrow { margin-bottom: 8px; }
  #product-dialog .dialog-content h2 { font-size: 29px; }
  #product-dialog #dialog-size { margin-top: 10px; }
  #product-dialog .detail-tabs { margin: 14px 0 12px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  #product-dialog { height: calc(100dvh - 20px); }
  #product-dialog .dialog-layout { grid-template-columns: 35% 65%; }
  #product-dialog .dialog-content { padding: 22px 26px 18px; }
  #product-dialog .dialog-content > .eyebrow { font-size: 8px; margin-bottom: 6px; }
  #product-dialog .dialog-content h2 { font-size: 26px; }
  #product-dialog #dialog-size { font-size: 9px; padding: 3px 9px; margin-top: 8px; }
  #product-dialog .detail-tabs { margin: 12px 0 10px; }
  #product-dialog .detail-tabs button { min-height: 36px; padding: 8px 0; font-size: 10px; }
  #product-dialog .dialog-actions { padding-top: 8px; }
  #product-dialog #dialog-scroll-hint { height: 12px; line-height: 12px; margin-bottom: 5px; font-size: 8px; }
  #product-dialog .dialog-actions .button { min-height: 44px; padding: 12px 18px; font-size: 11px; }
  #product-dialog .dialog-close { width: 34px; height: 34px; min-width: 34px; min-height: 34px; inset: 12px 12px auto auto; }
}
@media (max-width: 360px), (max-width: 700px) and (max-height: 650px) {
  #product-dialog .dialog-content { padding: 18px 20px; }
  #product-dialog .dialog-content h2 { font-size: 26px; }
  #product-dialog .dialog-content > .eyebrow { margin-bottom: 8px; font-size: 7px; }
  #product-dialog #dialog-size { margin-top: 9px; padding: 3px 9px; }
  #product-dialog .detail-tabs { margin: 12px 0 10px; gap: 16px; }
  #product-dialog .detail-tabs button { min-height: 38px; padding: 9px 0; font-size: 9px; }
  #product-dialog .dialog-actions { padding-top: 8px; }
  #product-dialog .dialog-actions .button { min-height: 46px; font-size: 10px; }
  #product-dialog #dialog-scroll-hint { height: 14px; line-height: 14px; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .button .icon, .nav-cta .icon, .text-link .icon, .circle-button .icon,
  .card-arrow .icon, .product-detail-link .icon, .card-link .icon,
  .contact-links .icon, .industry-photo-card .icon, .footer-bottom .icon { transform: none !important; }
}
