/* Seasonal styles shared by the home page, product pages and company card. */
:root {
  --bg: #e2ecf2;
  --brand: #163950;
  --text: #243b4c;
  --muted: #3d5465;
  --white: #fafdff;
  --winter-panel: rgba(250, 253, 255, .90);
  --winter-button: #254b65;
  --winter-outline: #58788b;
  --winter-accent: #6691ad;
  --winter-rule: rgba(37, 75, 101, .17);
  --winter-scene-tint: linear-gradient(rgba(240, 247, 250, .68), rgba(224, 236, 243, .58));
  --winter-scene-x: 50%;
}

html { background-color: var(--bg); }

body {
  background: var(--winter-scene-tint),
    url("assets/themes/snowy-forest-2026/forest.jpg") var(--winter-scene-x) center / cover no-repeat, var(--bg);
  background-attachment: fixed;
  color: var(--text);
}

.nav-pill, .dropdown-panel, .contacts-card, .partner-section, .partners-grid, .wrapper, .uc-container {
  background: var(--winter-panel);
}

.nav-pill { box-shadow: 0 7px 26px rgba(22, 57, 80, .09); }
.logo-box, .phone-icon, .footer-bar { background: var(--winter-button); }
.nav-divider { background: var(--winter-rule); }
.burger span { background: var(--winter-button); }
.phone-text, .partner-subtitle, .main-subtitle, .req-sub, .req-label, .req-note, .uc-text {
  color: var(--muted);
}

.page-title, .products-title, .contacts-title, .partners-title, .partner-title, .contact-label,
.main-title, .features__title, .feature__heading, .req-name, .req-title, .req-link, .back-link {
  color: var(--brand);
}

.products-title::after, .contacts-title::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-inline-start: 16px;
  border-radius: 8px;
  vertical-align: middle;
  background: var(--winter-accent);
}

/* Blend the white video background into the light scene, as in the autumn theme. */
.video-block video {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: darken;
}

.product-tile, .product-tile:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.product-tile .product-image {
  background: radial-gradient(ellipse at center, rgba(250, 253, 255, .48), transparent 68%);
}
.product-tile h3 { color: var(--brand); }
.product-tile p { color: var(--text); }
.product-tile a, .btn-large {
  color: var(--brand);
  border-color: var(--winter-outline);
  background: var(--winter-panel);
}
.product-tile:hover a, .btn-large:hover, .uc-button:hover {
  background: var(--winter-button);
  color: var(--white);
}

.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--winter-button); }
/* Clear case swatches use an inline border; leave the swatch fills unchanged. */
.swatch.is-static[style*="border-color"] { border-color: var(--winter-outline) !important; }
.back-link:focus-visible, .swatch:focus-visible { outline: 2px solid var(--winter-button); }

.partners-section { background: transparent; }
.partner-logo-card { background: rgba(226, 236, 242, .48); }
.contact-icon { filter: brightness(0) saturate(100%) invert(22%) sepia(25%) saturate(1515%) hue-rotate(156deg) brightness(92%) contrast(92%); }

.feature__img, .gallery-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.feature__card {
  background: var(--winter-panel);
  border-color: var(--winter-rule);
}
.req-card { background: transparent; box-shadow: none; }
.req-block { background: var(--winter-panel); }
.req-head, .req-row, .req-foot, .uc-button { border-color: var(--winter-rule); }

/* The standalone placeholder uses a white logo, which needs a dark backing. */
.uc-logo {
  background: var(--winter-button);
  border-radius: 10px;
  padding: 7px 10px;
}

@media (max-width: 768px) {
  :root {
    /* Keep the trunks visible at the edge and the product area light. */
    --winter-scene-x: 4%;
    --winter-scene-tint: linear-gradient(90deg,
      rgba(238, 246, 250, .25), rgba(238, 246, 250, .62) 46%, rgba(231, 241, 248, .56));
  }

  .product-grid { gap: 12px; margin-top: 14px; }
  .product-tile {
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    justify-content: flex-start;
    gap: 6px;
  }
  .product-tile .product-image img {
    display: block;
    max-width: clamp(156px, 41vw, 176px);
    margin: 0 auto;
  }
  .product-tile h3 { margin-bottom: 6px; }
  .product-tile p { margin-bottom: 0; }
  .product-tile .color-swatches { flex-wrap: wrap; margin: 10px 0 12px; }
  .product-tile .product-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
  }
}

/* Keep the scene viewport-sized on iOS, where fixed backgrounds are unreliable. */
@supports (-webkit-touch-callout: none) {
  body { background: transparent; }
  html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--winter-scene-tint),
      url("assets/themes/snowy-forest-2026/forest.jpg") var(--winter-scene-x) center / cover no-repeat, var(--bg);
  }
}
