/*
 * Saiwa Gostar — Visual Experience layer
 * Local-only photography and effects. No external CDN.
 * Designed for Persian/Arabic RTL and English/Russian LTR.
 */
:root {
  --visual-ink: #142633;
  --visual-deep: #0e202d;
  --visual-red: #c52e35;
  --visual-orange: #f18a4b;
  --visual-blue: #1a6784;
  --visual-line: rgba(20, 38, 51, .10);
  --visual-glass: rgba(255,255,255,.78);
}
body { overflow-x: clip; }
img { image-rendering: auto; }

/* Photographic mastheads for every main interior page */
.page-head {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(270px, 29vw, 370px);
  padding: clamp(42px, 5.5vw, 74px) 0 clamp(38px, 4.5vw, 58px);
  margin-bottom: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 0 0 32px 32px;
  background-color: #122733;
  background-image:
    linear-gradient(270deg, rgba(7, 20, 30, .94) 0%, rgba(7, 20, 30, .78) 35%, rgba(7, 20, 30, .40) 68%, rgba(7, 20, 30, .14) 100%),
    url('../images/thermal-shower.webp');
  background-size: cover;
  background-position: left center;
  box-shadow: 0 22px 54px rgba(13, 32, 45, .16);
}
.page-head::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(240px, 34vw, 460px);
  aspect-ratio: 1;
  inset-inline-start: -100px;
  top: -52%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 24px rgba(255,255,255,.035),
    0 0 0 55px rgba(255,255,255,.025),
    0 0 0 92px rgba(255,255,255,.018);
  background:
    radial-gradient(circle at 36% 36%, rgba(255,255,255,.12), transparent 9%),
    radial-gradient(circle at 68% 55%, rgba(255,255,255,.08), transparent 6%);
}
.page-head::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  width: auto;
  height: 3px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(241,138,75,.95), rgba(197,46,53,.95), transparent);
}
.page-head .wrap { position: relative; z-index: 2; width: min(100%, 1400px); }
.page-head h1 {
  max-width: 19ch;
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0,0,0,.20);
}
.page-head p {
  max-width: 64ch;
  color: rgba(255,255,255,.86);
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 2;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.page-head .breadcrumb { color: rgba(255,255,255,.72); }
.page-head .breadcrumb a { color: rgba(255,255,255,.78); }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head .breadcrumb span[aria-hidden] {
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.82);
}
.page-head .toc .chip {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.11);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}
.page-head .toc .chip:hover,
.page-head .toc .chip:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.56);
  background: rgba(255,255,255,.19);
  transform: translateY(-2px);
}

/* Each page has a subtly different image crop while keeping one brand language. */
.page-head--about {
  background-image:
    linear-gradient(270deg, rgba(7,20,30,.95) 0%, rgba(7,20,30,.80) 38%, rgba(7,20,30,.34) 72%, rgba(7,20,30,.12) 100%),
    url('../images/thermal-droplets.webp');
  background-position: left center;
}
.page-head--services {
  background-image:
    linear-gradient(270deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.74) 38%, rgba(7,20,30,.30) 72%, rgba(7,20,30,.08) 100%),
    url('../images/thermal-shower.webp');
  background-position: left 48%;
}
.page-head--projects {
  background-image:
    linear-gradient(270deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.75) 42%, rgba(7,20,30,.30) 74%, rgba(7,20,30,.10) 100%),
    url('../images/thermal-droplets.webp');
  background-position: center 44%;
}
.page-head--contact {
  background-image:
    linear-gradient(270deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.76) 38%, rgba(7,20,30,.30) 72%, rgba(7,20,30,.10) 100%),
    url('../images/thermal-droplets.webp');
  background-position: right center;
}
.page-head--products {
  background-image:
    linear-gradient(270deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.76) 38%, rgba(7,20,30,.28) 72%, rgba(7,20,30,.10) 100%),
    url('../images/thermal-shower.webp');
  background-position: left center;
}
html[dir="ltr"] .page-head {
  background-image:
    linear-gradient(90deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.74) 38%, rgba(7,20,30,.30) 72%, rgba(7,20,30,.12) 100%),
    url('../images/thermal-shower.webp');
  background-position: right center;
}
html[dir="ltr"] .page-head--about,
html[dir="ltr"] .page-head--projects,
html[dir="ltr"] .page-head--contact {
  background-image:
    linear-gradient(90deg, rgba(7,20,30,.94) 0%, rgba(7,20,30,.75) 42%, rgba(7,20,30,.30) 74%, rgba(7,20,30,.10) 100%),
    url('../images/thermal-droplets.webp');
}

/* Soft water highlights in page backgrounds, without reducing text contrast. */
body.page-about main,
body.page-services main,
body.page-contact main,
body.page-projects main,
body.page-products main,
body.page-product-detail main {
  background-image:
    radial-gradient(ellipse at 100% 18%, rgba(33,132,162,.055), transparent 28%),
    radial-gradient(ellipse at 0% 72%, rgba(241,138,75,.045), transparent 25%);
}
.section { position: relative; }
.section-white { background-color: rgba(255,255,255,.88); }
.section-head { position: relative; }
.section-eyebrow { letter-spacing: .015em; }
.section-head h2,
.company-copy h2,
.page-head h1 { text-wrap: balance; }

/* About: product photograph, water-glass framing and confident stats */
.page-about .about-split .photo,
.page-home .company-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  box-shadow: 0 26px 65px rgba(16,38,52,.15), 0 5px 16px rgba(16,38,52,.06);
  background: #dce6eb;
}
.page-about .about-split .photo::before,
.page-home .company-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8,24,34,.18));
}
.page-about .about-split .photo img,
.page-home .company-photo img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.page-about .about-split .photo:hover img,
.page-home .company-photo:hover img { transform: scale(1.035); }
.page-about .values-grid > div,
.page-about .pillars > div {
  position: relative;
  border-radius: 22px;
  border-color: rgba(20,38,51,.08);
  background: linear-gradient(145deg, #fff, #f8fbfc);
  box-shadow: 0 12px 32px rgba(16,38,52,.045);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.page-about .values-grid > div::after,
.page-about .pillars > div::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  inset-inline-end: -35px;
  bottom: -45px;
  border: 1px solid rgba(25,116,145,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(25,116,145,.035), 0 0 0 32px rgba(25,116,145,.025);
  pointer-events: none;
}
.page-about .values-grid > div:hover,
.page-about .pillars > div:hover {
  transform: translateY(-4px);
  border-color: rgba(25,116,145,.20);
  box-shadow: 0 20px 42px rgba(16,38,52,.075);
}
.figures {
  border-top-color: rgba(20,38,51,.12);
  border-bottom-color: rgba(20,38,51,.12);
}
.figures strong {
  background: linear-gradient(120deg, var(--sg-red), var(--sg-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Services: more tactile cards and a photographic after-sales panel */
.page-services .service-feature-grid { gap: 18px; }
.page-services .service-feature-grid > div {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(20,38,51,.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,249,251,.94));
  box-shadow: 0 14px 36px rgba(16,38,52,.055);
  transition: transform .24s ease, box-shadow .24s ease;
}
.page-services .service-feature-grid > div::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  inset-inline-end: -48px;
  bottom: -66px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255,255,255,.9) 0 7%, transparent 8%),
    radial-gradient(circle at 64% 65%, rgba(31,129,160,.16) 0 4%, transparent 5%),
    radial-gradient(circle at 40% 42%, rgba(31,129,160,.09), rgba(31,129,160,.015) 55%, transparent 70%);
  border: 1px solid rgba(31,129,160,.08);
  pointer-events: none;
}
.page-services .service-feature-grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(16,38,52,.09);
}
.page-services .service-feature-grid h3 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 14px;
  font-size: 1.12rem;
  font-weight: 800;
}
.page-services .service-feature-grid h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sg-orange), var(--sg-red));
}
.page-services .service-feature-grid p,
.page-services .service-feature-grid li { color: #657580; font-size: .91rem; }
.page-services .aftersales-section {
  background: transparent;
  padding-block: clamp(30px, 4vw, 54px);
}
.page-services .aftersales-section .wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4.5vw, 58px);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(270deg, rgba(9,25,36,.96) 0%, rgba(9,25,36,.86) 46%, rgba(9,25,36,.42) 100%),
    url('../images/thermal-shower.webp') left center / cover no-repeat;
  box-shadow: 0 26px 60px rgba(12,32,45,.16);
}
.page-services .aftersales-section .wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -70px;
  top: -130px;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 65px rgba(255,255,255,.025);
}
.page-services .aftersales-section h2 { color: #fff; font-weight: 750; }
.page-services .aftersales-section .muted { color: rgba(255,255,255,.78); }
.page-services .service-links a {
  position: relative;
  border-color: rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page-services .service-links a span { color: rgba(255,255,255,.72); }
.page-services .service-links a:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.15);
}

/* Contact: dark water-photo information card + clean high-contrast form */
.page-contact .contact-grid { align-items: stretch; }
.page-contact .contact-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(10,28,40,.96), rgba(10,28,40,.82)),
    url('../images/thermal-droplets.webp') center / cover no-repeat;
  box-shadow: 0 22px 54px rgba(14,34,47,.14);
}
.page-contact .contact-info::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -65px;
  bottom: -100px;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.02);
}
.page-contact .contact-info h2 { color: #fff; }
.page-contact .contact-info .info-list li { border-bottom-color: rgba(255,255,255,.13); }
.page-contact .contact-info .info-list li > svg {
  color: #ffb17f;
  background: rgba(255,255,255,.10);
}
.page-contact .contact-info .info-list small { color: rgba(255,255,255,.58); }
.page-contact .contact-info .info-list a,
.page-contact .contact-info .info-list li div { color: rgba(255,255,255,.90); }
.page-contact .contact-info .socials a {
  color: #fff;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.page-contact .contact-info .socials a:hover { background: rgba(255,255,255,.14); }
.page-contact .form-card {
  border: 1px solid rgba(20,38,51,.08);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(16,38,52,.07);
}
.page-contact .form-card h2 { font-weight: 800; }
.page-contact .field input,
.page-contact .field select,
.page-contact .field textarea { background: #f8fafb; }
.page-contact .field input:focus,
.page-contact .field select:focus,
.page-contact .field textarea:focus {
  border-color: #de7950;
  box-shadow: 0 0 0 4px rgba(241,138,75,.13);
}

/* Projects: image-rich cards without replacing their real content */
.page-projects .project-card-section {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(20,38,51,.08);
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,252,.96));
  box-shadow: 0 16px 40px rgba(16,38,52,.055);
  transition: transform .24s ease, box-shadow .24s ease;
}
.page-projects .project-card-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: 0;
  top: 0;
  width: min(42%, 430px);
  height: 100%;
  opacity: .13;
  background: url('../images/thermal-droplets.webp') center / cover no-repeat;
  mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,.7) 48%, transparent 100%);
  pointer-events: none;
}
.page-projects .project-card-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(16,38,52,.085);
}
.page-projects .project-card-index {
  color: #fff;
  background: linear-gradient(135deg, var(--sg-red), var(--sg-orange));
  box-shadow: 0 8px 18px rgba(197,46,53,.17);
}
.page-projects .project-card-section .check-list li {
  border-color: rgba(20,38,51,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}
.page-projects .project-card-section .goal {
  border-color: rgba(241,138,75,.24);
  background: linear-gradient(135deg, rgba(255,247,241,.95), rgba(255,255,255,.92));
}

/* Product catalog: refined cards with a soft condensation texture */
.page-products .filter-bar {
  padding: 13px;
  border: 1px solid rgba(20,38,51,.075);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(16,38,52,.04);
  backdrop-filter: blur(12px);
}
.page-products .chips a,
.page-products .chips button { transition: background .2s ease, color .2s ease, transform .2s ease; }
.page-products .product-card {
  border-color: rgba(20,38,51,.075);
  border-radius: 23px;
  box-shadow: 0 14px 36px rgba(16,38,52,.055);
}
.page-products .product-card .thumb {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(240,247,249,.72)),
    url('../images/thermal-droplets.webp') center / cover no-repeat;
}
.page-products .product-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: inherit;
  pointer-events: none;
}
.page-products .product-card .thumb img { position: relative; z-index: 1; }
.page-products .product-card .body { padding-inline: 10px; }
.page-products .product-card h3 { font-weight: 780; }
.page-products .product-card .btn,
.page-products .product-card a.btn { border-radius: 12px; }

/* Product detail: a luminous gallery, glass-like spec cards and clear CTA */
.page-product-detail .product-detail { align-items: start; gap: clamp(24px,4vw,52px); padding-block: 18px 36px; }
.page-product-detail .gallery-main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20,38,51,.07);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.80), rgba(234,243,247,.72)),
    url('../images/thermal-droplets.webp') center / cover no-repeat;
  box-shadow: 0 22px 55px rgba(16,38,52,.08);
}
.page-product-detail .gallery-main img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 20px rgba(20,38,51,.10));
}
.page-product-detail .gallery-thumbs button {
  border-radius: 13px;
  border-color: rgba(20,38,51,.12);
  background: #f7fafb;
  transition: border-color .2s ease, transform .2s ease;
}
.page-product-detail .gallery-thumbs button:hover,
.page-product-detail .gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--sg-orange);
  transform: translateY(-2px);
}
.page-product-detail .product-info {
  padding: clamp(24px,3vw,38px);
  border: 1px solid rgba(20,38,51,.075);
  border-radius: 26px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 18px 46px rgba(16,38,52,.06);
}
.page-product-detail .product-info h1 { font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 800; }
.page-product-detail .product-actions { gap: 10px; }
.page-product-detail .product-actions .btn { border-radius: 13px; }

/* Homepage image accents and trust elements */
.page-home .proof-strip {
  border: 1px solid rgba(20,38,51,.06);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 32px rgba(16,38,52,.045);
}
.page-home .category-tile {
  min-height: 220px;
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(31,129,160,.075), transparent 48%),
    linear-gradient(145deg,#fff,#f8fbfc);
}
.page-home .category-tile:hover { border-color: rgba(241,138,75,.45); }
.page-home .company-section {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(31,129,160,.075), transparent 38%),
    linear-gradient(180deg,#f7f9fa,#eef3f5);
}
.page-home .cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(12,29,41,.97), rgba(18,42,56,.90)),
    url('../images/thermal-shower.webp') left center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 60px rgba(13,32,45,.16);
}
.page-home .cta-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-end: -90px;
  top: -180px;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02);
  pointer-events: none;
}
.page-home .cta-band > * { position: relative; z-index: 1; }

/* Footer is also part of the visual story */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(10,25,36,.98), rgba(17,39,52,.93)),
    url('../images/thermal-droplets.webp') center / cover no-repeat;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset-inline-end: -100px;
  top: 10px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 60px rgba(255,255,255,.014);
  pointer-events: none;
}
.site-footer .wrap { position: relative; z-index: 1; }

/* Accessibility and responsive behavior */
@media (max-width: 900px) {
  .page-head { min-height: 260px; border-radius: 0 0 24px 24px; }
  .page-head h1 { max-width: 18ch; font-size: clamp(1.9rem, 5.4vw, 2.8rem); }
  .page-services .aftersales-section .wrap { border-radius: 23px; }
  .page-contact .contact-grid { gap: 18px; }
  .page-projects .project-card-section::before { width: 52%; opacity: .09; }
}
@media (max-width: 600px) {
  .page-head {
    min-height: 240px;
    padding-block: 34px 30px;
    border-radius: 0 0 20px 20px;
    background-position: 30% center;
  }
  .page-head h1 { font-size: clamp(1.75rem, 7.2vw, 2.35rem); font-weight: 760; }
  .page-head p { font-size: .91rem; line-height: 1.9; }
  .page-head .breadcrumb { margin-bottom: 15px; font-size: .75rem; }
  .page-services .service-feature-grid > div { min-height: 0; padding: 23px; }
  .page-services .aftersales-section .wrap { padding: 25px 20px; }
  .page-contact .contact-info,
  .page-contact .form-card { border-radius: 20px; }
  .page-projects .project-card-section { border-radius: 20px; padding: 22px 18px; }
  .page-projects .project-card-section::before { width: 65%; opacity: .07; }
  .page-products .filter-bar { padding: 9px; border-radius: 16px; }
  .page-product-detail .product-info { padding: 22px 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .about-split .photo img,
  .page-home .company-photo img,
  .page-services .service-feature-grid > div,
  .page-projects .project-card-section { transition: none !important; }
}
