/* ==========================================================================
   Swati Industrial Corporation - custom overrides
   Built on the template tokens: --theme, --theme-2, --smoke, --black,
   --border, --secondary and the Unbounded / Poppins font pair.
   ========================================================================== */

/* Brand tints derived from the logo blue (#0D64B9, same as the theme token) */
:root {
  --brand: #0D64B9;
  --brand-tint: #F0F6FC;
  --brand-tint-2: #E3EDF8;
  --brand-border: #CBDDF0;
}

/* --------------------------------------------------------------------------
   1. Header products dropdown
   -------------------------------------------------------------------------- */
.main-menu ul.dp-menu.column-2 {
  width: 560px;
  padding: 20px 0;
}

.main-menu ul.dp-menu.column-2 li a {
  padding: 9px 24px;
  font-size: 15px;
  line-height: 1.45;
  display: block;
  break-inside: avoid;
}

.main-menu ul.dp-menu.column-2 li a:hover {
  color: var(--white);
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   1b. Home page vector graphics
   The template sizes these slots for small icons; the product illustrations
   need a wider plate, and the process icons sit on a dark circle.
   -------------------------------------------------------------------------- */

/* home products slider - category cards
   The photo spans the full card width on a white square plate. Category
   photos are 800x1000 product shots on white, so "contain" shows the whole
   product with no cropping. Cards share one height so the row stays even. */
.service-4-slider .swiper-slide {
  height: auto;
}

.service-4-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 26px;
  border: 1px solid var(--border);
}

.service-4-box .icon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border);
}

.service-4-box .icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.5s ease;
}

.service-4-box:hover .icon img {
  transform: scale(1.05);
}

.service-4-box .title {
  margin-top: 22px;
  padding: 0 6px;
  font-size: 20px;
}

.service-4-box .text {
  margin-top: 10px;
  padding: 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* button sits on the bottom edge whatever the text length */
.service-4-box .ui-btn-dashed-border {
  margin: auto 0 0 6px;
  padding-top: 20px;
  align-self: flex-start;
}

/* home why-choose - flat feature icons fill their tile */
.choose-3-feature-box .thumb {
  background-color: transparent;
  overflow: hidden;
}

.choose-3-feature-box .thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* home process - keep the light artwork readable inside the dark circle */
.process-box .icon img {
  width: 68px;
  height: 68px;
}

@media only screen and (max-width: 991px) {
  .service-4-box .title {
    font-size: 19px;
  }

  .process-box .icon img {
    width: 52px;
    height: 52px;
  }
}

/* --------------------------------------------------------------------------
   2. Products page - category cards
   -------------------------------------------------------------------------- */

/* Category photography is 800x1000 (4:5 portrait). The theme leaves this
   thumb at the image's natural ratio, which made the grid ragged; pin it to
   4:5 so the cards line up and nothing is cropped. */
.service-box .thumb {
  background-color: var(--smoke);
}

.service-box .thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  -o-object-fit: contain;
     object-fit: contain;
}

.service-box .content .category-count {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 15px;
  border-radius: 40px;
  background-color: var(--smoke-2);
  color: var(--theme);
  font-family: var(--font_poppins);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. Category page - intro
   -------------------------------------------------------------------------- */
.category-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.category-intro-thumb {
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--smoke);
}

.category-intro-thumb img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  aspect-ratio: 4 / 5;
}

.category-intro-content .text-wrapper {
  margin-top: 22px;
}

.category-intro-content .text-wrapper .text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--secondary);
}

.category-intro-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font_poppins);
}

.category-intro-meta .count {
  padding: 8px 18px;
  border-radius: 40px;
  background-color: var(--theme);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-intro-meta .divider {
  width: 30px;
  height: 1px;
  background-color: var(--border);
}

.category-intro-meta .note {
  font-size: 15px;
  color: var(--secondary);
}

.category-intro-content .btn-wrapper {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   4. Category page - product sections
   -------------------------------------------------------------------------- */
.category-products-header {
  text-align: center;
  margin-bottom: 60px;
}

.category-products-header .section-subtitle {
  justify-content: center;
}

.category-products-inner .product-section + .product-section {
  margin-top: 30px;
}

.product-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding: 45px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background-color: var(--white);
  overflow: hidden;
  scroll-margin-top: 140px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* the accent bar on the leading edge marks where a product starts */
.product-section::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background-color: var(--brand);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.product-section:hover {
  border-color: var(--brand-border);
  box-shadow: 0 18px 45px rgba(13, 100, 185, 0.09);
}

.product-section:hover::before {
  opacity: 1;
}

/* every second product flips its colour and its image side */
.product-section:nth-of-type(even) {
  background-color: var(--brand-tint);
  border-color: var(--brand-border);
}

.product-section:nth-of-type(even) .product-section-media {
  order: 2;
}

.product-section:nth-of-type(even)::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.product-section-thumb {
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--smoke);
}

.product-section:nth-of-type(even) .product-section-thumb {
  background-color: var(--white);
}

.product-section-thumb img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  aspect-ratio: 4 / 5;
  transition: transform 0.5s ease;
}

.product-section:hover .product-section-thumb img {
  transform: scale(1.04);
}

.product-section-gallery {
  margin-top: 14px;
  display: flex;
  gap: 14px;
}

.product-section-gallery .thumb {
  flex: 1 1 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--smoke);
}

.product-section-gallery .thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  -o-object-fit: contain;
     object-fit: contain;
}

.product-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand);
  color: var(--white);
  font-family: var(--font_unbounded);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(13, 100, 185, 0.28);
}

.product-section-title {
  margin-top: 20px;
  font-family: var(--font_unbounded);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.01em;
}

.product-section-lead {
  margin-top: 16px;
  font-family: var(--font_poppins);
  font-size: 17px;
  line-height: 1.8;
  color: var(--black);
}

.product-section-body {
  margin-top: 20px;
}

.product-section-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

.product-section-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font_poppins);
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  transition: color 0.3s ease;
}

.product-section-call i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--theme);
  transition: all 0.3s ease;
}

.product-section-call:hover {
  color: var(--theme);
}

.product-section-call:hover i {
  background-color: var(--theme);
  border-color: var(--theme);
  color: var(--white);
}

/* keep the rich-text bits readable on the tinted alternate card */
.product-section:nth-of-type(even) .product-section-body ul li::before,
.product-section:nth-of-type(even) .product-section-call i {
  background-color: var(--white);
}

.product-section:nth-of-type(even) .product-section-body blockquote {
  background-color: var(--white);
}

.product-section:nth-of-type(even) .product-section-call:hover i {
  background-color: var(--theme);
}

/* --------------------------------------------------------------------------
   5. Category page - other categories
   -------------------------------------------------------------------------- */
.other-category-header {
  text-align: center;
  margin-bottom: 45px;
}

.other-category-header .section-subtitle {
  justify-content: center;
}

.other-category-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.other-category-box {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--white);
  transition: all 0.35s ease;
}

.other-category-box:hover {
  border-color: var(--theme);
  transform: translateY(-4px);
}

.other-category-box .thumb {
  display: block;
  overflow: hidden;
  background-color: var(--smoke);
}

.other-category-box .thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.5s ease;
}

.other-category-box:hover .thumb img {
  transform: scale(1.06);
}

.other-category-box .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}

.other-category-box .content .title {
  font-family: var(--font_unbounded);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
}

.other-category-box .content .arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--theme);
  transition: all 0.3s ease;
}

.other-category-box:hover .content .arrow {
  background-color: var(--theme);
  border-color: var(--theme);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Rich text - product description and blog body
   -------------------------------------------------------------------------- */
.product-section-body,
.blog-details .content .text-wrapper {
  font-family: var(--font_poppins);
}

.product-section-body p,
.blog-details .content .text-wrapper p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--secondary);
}

.product-section-body p + p,
.blog-details .content .text-wrapper p + p {
  margin-top: 20px;
}

.product-section-body h2,
.product-section-body h3,
.product-section-body h4,
.blog-details .content .text-wrapper h2,
.blog-details .content .text-wrapper h3,
.blog-details .content .text-wrapper h4 {
  font-family: var(--font_unbounded);
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  margin-top: 38px;
  margin-bottom: 16px;
  text-transform: none;
}

.product-section-body h2,
.blog-details .content .text-wrapper h2 {
  font-size: 26px;
}

.product-section-body h3,
.blog-details .content .text-wrapper h3 {
  font-size: 21px;
}

.product-section-body h4,
.blog-details .content .text-wrapper h4 {
  font-size: 18px;
}

.product-section-body > *:first-child,
.blog-details .content .text-wrapper > *:first-child {
  margin-top: 0;
}

.product-section-body ul,
.product-section-body ol,
.blog-details .content .text-wrapper ul,
.blog-details .content .text-wrapper ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.product-section-body ul li,
.blog-details .content .text-wrapper ul li {
  position: relative;
  padding-inline-start: 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}

.product-section-body ul li::before,
.blog-details .content .text-wrapper ul li::before {
  content: "\f00c";
  font-family: var(--font_awesome);
  font-weight: 900;
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--smoke-2);
  color: var(--theme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.product-section-body ol,
.blog-details .content .text-wrapper ol {
  counter-reset: rich-list;
}

.product-section-body ol li,
.blog-details .content .text-wrapper ol li {
  counter-increment: rich-list;
  position: relative;
  padding-inline-start: 34px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}

.product-section-body ol li::before,
.blog-details .content .text-wrapper ol li::before {
  content: counter(rich-list);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--theme);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font_poppins);
  font-weight: 600;
  font-size: 11px;
}

.product-section-body blockquote,
.blog-details .content .text-wrapper blockquote {
  margin: 32px 0 0;
  padding: 28px 32px;
  border-radius: 16px;
  border-inline-start: 3px solid var(--theme);
  background-color: var(--smoke);
  font-family: var(--font_unbounded);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
}

.product-section-body img,
.blog-details .content .text-wrapper img {
  border-radius: 16px;
  margin-top: 28px;
  max-width: 100%;
  height: auto;
}

.product-section-body a,
.blog-details .content .text-wrapper a {
  color: var(--theme);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Blog details
   -------------------------------------------------------------------------- */
/* a <p>, not a heading (the page h1 carries the title), so restore the
   heading look the theme gives h1-h6 */
.blog-details .blog-title {
  margin: 0;
  font-family: var(--font_unbounded);
  color: var(--primary);
  font-size: 34px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: -0.01em;
}

.blog-details .content {
  margin-top: 38px;
}

.blog-details .blog-thumb img {
  border-radius: 18px;
}

.blog-details .content .text-wrapper > p:first-of-type {
  font-size: 18px;
  line-height: 1.8;
  color: var(--black);
}

.blog-details .video-wrapper {
  margin-top: 34px;
}

.blog-details .video-wrapper img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

.blog-details .tags-wrapper-box {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.blog-details .tags-wrapper .tag {
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 7px 18px;
  font-family: var(--font_poppins);
  font-size: 14px;
  color: var(--black);
  background-color: var(--smoke);
}

/* --------------------------------------------------------------------------
   8. Sidebar
   -------------------------------------------------------------------------- */
.sidebar-category-list li a {
  font-size: 15px;
  line-height: 1.5;
}

.sidebar-newsletter-form .input-field .ui-btn {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8b. Quality page - process centre image
   The theme centres this with translate(-50%, -50%), but the GSAP fade-anim
   on the same element rewrites its transform, pushing the photo right over
   step 03. Centre it with flex instead so the animation can't break it.
   -------------------------------------------------------------------------- */
.process-2-shape-1 {
  inset: 0;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.process-2-shape-1 img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media only screen and (max-width: 1399px) {
  .process-2-shape-1 img {
    max-width: 330px;
  }
}

@media only screen and (max-width: 1199px) {
  .process-2-shape-1 {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8c. Infrastructure page - machine cards
   Square photos, no theme overlay or zoom. The machine name fades in on a
   plain white label on hover, and stays visible on touch screens.
   -------------------------------------------------------------------------- */
.machine-box .thumb {
  border-radius: 14px;
  background-color: var(--white);
}

.machine-box .thumb img {
  aspect-ratio: 1 / 1;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.machine-box:hover .thumb img {
  transform: none;
}

.machine-box .content-wrapper {
  inset: auto 0 0;
  width: 100%;
  height: auto;
  padding: 18px;
  background-color: transparent;
  outline: none;
  pointer-events: none;
}

.machine-box .content {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.machine-box .title {
  margin-top: 0;
  font-size: 18px;
  text-transform: none;
}

/* touch screens have no hover, so keep the name on show */
@media (hover: none) {
  .machine-box .content-wrapper {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   8d. Contact form - status message, field errors, honeypot
   -------------------------------------------------------------------------- */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.contact-form-status[data-state="success"] {
  background-color: #e8f6ee;
  border: 1px solid #a8dcbd;
  color: #17643a;
}

.contact-form-status[data-state="error"] {
  background-color: #fdeeee;
  border: 1px solid #f2b8b8;
  color: #a12626;
}

.main-contact-wrap .field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #c62828;
}

.main-contact-wrap .field-error:empty {
  display: none;
}

.main-contact-wrap [aria-invalid="true"],
.main-contact-wrap [aria-invalid="true"] + .nice-select {
  border-color: #e57373 !important;
}

.contact-recaptcha {
  margin-top: 22px;
}

/* the Google widget is 304px wide; scale it down on very narrow phones */
@media (max-width: 360px) {
  .contact-recaptcha .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }
}

.main-contact-wrap .submit-btn .ui-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* --------------------------------------------------------------------------
   8e. Page preloader
   Outlined "SWATI" filled by a moving wave, in the logo blue. Same effect as
   swatitechnoproducts.com, recoloured and set in the site heading font.
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white, #fff);
}

.loader {
  width: fit-content;
  font-size: clamp(54px, 15vw, 120px);
  line-height: 1.5;
  font-family: var(--font_unbounded);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  background:
    radial-gradient(1.13em at 50% 1.6em, var(--brand) 99%, transparent 101%)
      calc(50% - 1.6em) 0 / 3.2em 100% text,
    radial-gradient(1.13em at 50% -0.8em, transparent 99%, var(--brand) 101%)
      50% 0.8em / 3.2em 100% repeat-x text;
  -webkit-background-clip: text;
          background-clip: text;
  animation: swati-wave 2s linear infinite;
}

.loader::before {
  content: "Swati";
}

@keyframes swati-wave {
  to {
    background-position: calc(50% + 1.6em) 0, calc(50% + 3.2em) 0.8em;
  }
}

/* no motion for visitors who ask for less: show the word filled instead */
@media (prefers-reduced-motion: reduce) {
  .loader {
    animation: none;
    background: none;
    color: var(--brand);
  }
}

/* --------------------------------------------------------------------------
   8f. 404 page
   -------------------------------------------------------------------------- */
.error-page-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-page-code {
  display: block;
  font-family: var(--font_unbounded);
  font-weight: 800;
  font-size: clamp(90px, 22vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
}

.error-page-title {
  margin-top: 18px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
}

.error-page-text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--secondary);
}

.error-page-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
}

.error-page-home {
  margin-top: 26px;
}

.error-page-home a {
  color: var(--theme);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 1399px) {
  .category-intro-inner {
    gap: 45px;
  }

  .product-section {
    gap: 40px;
    padding: 38px;
  }

  .product-section-title {
    font-size: 26px;
  }
}

@media only screen and (max-width: 991px) {
  .category-intro-inner,
  .product-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .product-section:nth-of-type(even) .product-section-media {
    order: 0;
  }

  .product-section {
    padding: 30px;
    border-radius: 18px;
  }

  .category-products-inner .product-section + .product-section {
    margin-top: 22px;
  }

  .product-section-title,
  .blog-details .blog-title {
    font-size: 28px;
  }

  .category-products-header {
    margin-bottom: 40px;
  }

  .product-section-body h2,
  .blog-details .content .text-wrapper h2 {
    font-size: 23px;
  }

  .product-section-body h3,
  .blog-details .content .text-wrapper h3 {
    font-size: 19px;
  }
}

@media (max-width: 575px) {
  .product-section-title,
  .blog-details .blog-title {
    font-size: 24px;
  }

  .product-section-lead {
    font-size: 16px;
  }

  .product-section {
    padding: 24px 22px;
  }

  .product-section::before {
    width: 3px;
  }

  .product-section-actions .ui-btn-dashed-border {
    width: 100%;
    justify-content: center;
  }

  .product-section-body blockquote,
  .blog-details .content .text-wrapper blockquote {
    padding: 22px;
    font-size: 16px;
  }

  .category-intro-meta {
    gap: 12px;
  }

  .category-intro-meta .divider {
    display: none;
  }
}
