/* PREMIUM TEXTILE BACKGROUND — 2026-10-14
   Site-wide tactile background for the main V.S. shell. */

/* LIGHT: warm paper/textile instead of sterile flat white */
html[data-theme="light"] body{
  background-color:#f3f1ec!important;
  background-image:
    url('../assets/ui/premium-textile-light.png'),
    radial-gradient(circle at 12% 7%,rgba(147,202,224,.14),transparent 27%),
    radial-gradient(circle at 88% 10%,rgba(219,124,184,.08),transparent 24%),
    radial-gradient(circle at 54% 72%,rgba(194,181,158,.08),transparent 30%),
    linear-gradient(135deg,#f7f5f0 0%,#f0f2f0 45%,#f7f6f2 100%)!important;
  background-repeat:repeat,no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-size:512px 512px,auto,auto,auto,auto!important;
  background-attachment:fixed,fixed,fixed,fixed,fixed!important;
}

/* Let the textile read through major sections instead of painting them white. */
html[data-theme="light"] .services,
html[data-theme="light"] .projects,
html[data-theme="light"] .process-section,
html[data-theme="light"] .faq-section{
  background:
    linear-gradient(180deg,rgba(249,248,244,.68),rgba(245,246,243,.48))!important;
  border-top:1px solid rgba(30,63,79,.045);
  border-bottom:1px solid rgba(30,63,79,.035);
}
html[data-theme="light"] .pricing-section,
html[data-theme="light"] .about-section{
  background:
    radial-gradient(circle at 84% 18%,rgba(219,124,184,.045),transparent 26%),
    linear-gradient(180deg,rgba(239,243,241,.66),rgba(245,245,241,.52))!important;
}

/* Premium glass surfaces over the texture */
html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .lead-form,
html[data-theme="light"] .contact-aside,
html[data-theme="light"] .advantages{
  background:
    linear-gradient(145deg,rgba(255,255,255,.82),rgba(250,251,249,.62))!important;
  border-color:rgba(40,77,94,.095)!important;
  box-shadow:
    0 24px 60px rgba(46,66,75,.075),
    0 7px 18px rgba(46,66,75,.055),
    inset 0 1px 0 rgba(255,255,255,.92)!important;
  backdrop-filter:blur(13px) saturate(112%);
  -webkit-backdrop-filter:blur(13px) saturate(112%);
}
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .price-card:hover{
  box-shadow:
    0 30px 72px rgba(46,66,75,.11),
    0 10px 24px rgba(46,66,75,.065),
    inset 0 1px 0 rgba(255,255,255,.96)!important;
}

/* Fine edge highlight makes cards feel embossed into the textured paper. */
html[data-theme="light"] .service-card::before,
html[data-theme="light"] .project-card::before,
html[data-theme="light"] .price-card::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.34);
  opacity:.9;
}

/* DARK: same tactile language, darker woven surface */
html:not([data-theme="light"]) body,
html[data-theme="dark"] body{
  background-image:
    url('../assets/ui/premium-textile-dark.png'),
    radial-gradient(circle at 14% 6%,rgba(60,172,230,.10),transparent 26%),
    radial-gradient(circle at 87% 9%,rgba(242,93,173,.065),transparent 23%),
    linear-gradient(180deg,#021421 0%,#031827 50%,#021421 100%)!important;
  background-repeat:repeat,no-repeat,no-repeat,no-repeat!important;
  background-size:512px 512px,auto,auto,auto!important;
  background-attachment:fixed,fixed,fixed,fixed!important;
}

/* Keep the hero more cinematic while allowing the texture to show subtly. */
html[data-theme="light"] .hero{
  background:
    linear-gradient(135deg,rgba(250,249,245,.88),rgba(237,243,244,.78) 55%,rgba(228,239,243,.78)),
    url('../assets/ui/premium-textile-light.png')!important;
  background-repeat:no-repeat,repeat!important;
  background-size:auto,512px 512px!important;
}
html[data-theme="dark"] .hero,
html:not([data-theme="light"]) .hero{
  background:
    radial-gradient(circle at 77% 22%,rgba(62,176,255,.15),transparent 29%),
    radial-gradient(circle at 72% 65%,rgba(240,93,173,.09),transparent 24%),
    linear-gradient(135deg,rgba(1,17,29,.95) 0%,rgba(2,26,45,.95) 52%,rgba(5,43,71,.95) 100%),
    url('../assets/ui/premium-textile-dark.png')!important;
  background-repeat:no-repeat,no-repeat,no-repeat,repeat!important;
  background-size:auto,auto,auto,512px 512px!important;
}

/* Modal in light mode: less sterile */
html[data-theme="light"] .project-modal__dialog{
  background:
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(246,247,244,.91)),
    url('../assets/ui/premium-textile-light.png')!important;
  background-repeat:no-repeat,repeat!important;
  background-size:auto,512px 512px!important;
  border-color:rgba(35,73,90,.12)!important;
  box-shadow:
    0 52px 130px rgba(31,62,78,.24),
    0 12px 35px rgba(31,62,78,.09),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
}

/* Avoid fixed backgrounds on phones: smoother scrolling, same visual. */
@media(max-width:760px){
  html[data-theme="light"] body,
  html[data-theme="dark"] body,
  html:not([data-theme="light"]) body{
    background-attachment:scroll,scroll,scroll,scroll,scroll!important;
  }
}
