/* Homepage — corporate expression of the shared Olymp brand system. */

/* Match Artemis's page-wide layout rhythm: every top-level content block uses
   the same vertical spacing, while major rounded panels span the full wrap. */
body.theme-home {
  --bg: var(--brand-bg);
  --focus-halo: #f2dfbd;
  --section-space: 56px;
  background-color: var(--bg);
}
body.theme-home .strip,
body.theme-home .section,
body.theme-home #products {
  padding-block: var(--section-space);
}

/* The homepage security panel has no image background, so it does not need
   the shared ornamental inner frame. */
body.theme-home #security > .wrap::before { display: none; }

@media (max-width: 640px) {
  body.theme-home { --section-space: 42px; }
}

/* partner / trust logo strip */
/* Partner / trust marquee — one DOM copy avoids duplicate links and image text. */
.logos-marquee {
  position: relative; overflow: hidden; margin-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex; align-items: center; width: max-content;
  animation: logos-scroll 70s linear infinite alternate;
}
.logos-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; }
.logos-group a { display: flex; align-items: center; flex: none; border-radius: 6px; }
.logos-group a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.logos-track img {
  height: 48px; width: auto; max-width: 210px; object-fit: contain; flex: none;
  opacity: .62; filter: grayscale(1); transition: opacity var(--duration-base) var(--ease-layout), filter var(--duration-base) var(--ease-layout);
}
.logos-group a:hover img,
.logos-group a:focus-visible img { opacity: 1; filter: grayscale(0); }
.logos-track .logo-lg { height: 64px; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }

/* Product cards — calm, editorial surfaces inspired by Heidi's visual language. */
.prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.prod {
  position: relative; isolation: isolate; overflow: hidden; min-height: 0;
  display: flex; flex-direction: column; background: #fff; border: 0; border-radius: 28px;
  padding: 38px 36px;
  box-shadow: 0 18px 56px rgba(35, 37, 39, .07), 0 1px 2px rgba(35, 37, 39, .04);
  transition: transform var(--duration-slow) var(--ease-layout), box-shadow var(--duration-slow) var(--ease-layout);
}
.prod--apollo,
.prod--artemis { background: #fdfcf9; }
.prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(35, 37, 39, .11), 0 2px 4px rgba(35, 37, 39, .04);
}
.prod__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.prod__top { display: flex; align-items: center; gap: 16px; }
.prod__mark {
  width: 44px;
  height: 52px;
  flex: none;
  display: block;
  background: currentColor;
  -webkit-mask: url("/assets/images/brand/olymp-logo.png") -4px center / auto 60px no-repeat;
          mask: url("/assets/images/brand/olymp-logo.png") -4px center / auto 60px no-repeat;
}
.prod--apollo .prod__mark { color: var(--navy); }
.prod--artemis .prod__mark { color: #025b4c; }
.prod__top > span { display: flex; flex-direction: column; gap: 3px; }
.prod__name { display: block; font-family: var(--serif); font-size: 36px; color: var(--ink); line-height: 1.05; }
.prod__for { display: block; margin-top: 3px; font-size: 15px; font-weight: 520; letter-spacing: 0; line-height: 1.35; text-transform: none; white-space: normal; }
.prod--apollo .prod__for { color: var(--navy); }
.prod--artemis .prod__for { color: #025b4c; }
.prod p { margin: 24px 0 0; color: #4d5054; font-size: 15.5px; line-height: 1.65; }
.prod ul { min-height: 79px; list-style: none; margin: 22px 0 16px; padding: 0; display: grid; gap: 11px; }
.prod li { position: relative; padding-left: 23px; font-size: 14.5px; line-height: 1.5; color: #4d5054; }
.prod li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 15px;
  font-weight: 750;
}
.prod--apollo li::before { color: var(--navy); }
.prod--artemis li::before { color: #025b4c; }
.prod li strong { color: var(--ink); font-weight: 650; }
.prod__go {
  align-self: flex-start; margin-top: 0;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 650; font-size: 14.5px;
}
.prod__go::after { content: ""; position: absolute; inset: 0; }
.prod--apollo .prod__go { color: var(--navy); }
.prod--artemis .prod__go { color: #025b4c; }
.prod__go svg { width: 17px; height: 17px; transition: transform var(--duration-base) var(--ease-layout); }
.prod:hover .prod__go svg { transform: translateX(4px); }

/* Customer recommendations — every quote occurs only once in the DOM. */
.testi-marquee {
  position: relative; width: 100vw; margin: 48px 0 0 calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testi-track {
  display: flex; align-items: stretch; width: max-content;
  animation: home-testi-scroll 110s linear infinite alternate;
}
.testi-group {
  display: flex; align-items: stretch; gap: 24px; padding: 12px 24px 36px 0;
  flex: none;
}
@keyframes home-testi-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
.testi {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 460px; min-height: 280px; margin: 0; padding: 24px 28px; flex: none;
  text-align: left; background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 18px 42px -32px rgba(67, 59, 48, .3);
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.testi:hover {
  transform: translateY(-4px); background: var(--surface);
  box-shadow: 0 20px 44px -30px rgba(67, 59, 48, .4);
}
.testi__who { margin: 0 0 18px; display: flex; align-items: center; gap: 13px; }
.testi__av {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-contrast); font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 12px -5px rgba(140, 94, 36, .34);
}
.testi__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi__meta { text-align: left; }
.testi__meta b { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.testi__meta span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.testi__quote {
  margin: 0; align-self: stretch; font-family: var(--serif); font-weight: 500;
  font-size: 17px; line-height: 1.48; color: var(--ink); text-wrap: pretty;
}
.testi__quote strong { font-weight: inherit; color: inherit; }
.testi__more { display: none; }
@media (max-width: 640px) {
  .testi-group { align-items: flex-start; }
  .testi {
    width: min(340px, calc(100vw - 32px));
    height: 294px;
    min-height: 0;
    padding: 22px;
  }
  .testi__quote { font-size: 16px; }
  .testi--expandable .testi__quote {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
  }
  .testi--expandable.is-expanded .testi__quote {
    display: block;
    overflow: visible;
  }
  .testi--expandable.is-expanded { height: auto; }
  .testi__more {
    display: inline-flex;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testi-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .testi-track { animation: none; }
  .testi { transition: none; }
  .testi:hover { transform: none; }
}
@media (hover: none) and (pointer: coarse) {
  .testi-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .testi-marquee::-webkit-scrollbar { display: none; }
  .testi-track { animation: none; }
  .testi-group[aria-hidden="true"] { display: none; }
  .testi { scroll-snap-align: center; }
}

/* blog cards */
.blogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 48px; }
.blogs--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.bpost { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--duration-base) var(--ease-layout), box-shadow var(--duration-base) var(--ease-layout); }
.bpost:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bpost__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}
.bpost__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bpost__tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bpost h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.25; margin: 12px 0 0; }
.bpost__meta { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 940px) {
  .prods { grid-template-columns: 1fr; }
  .prod { min-height: 340px; }
  .prod ul { min-height: 0; }
}
@media (max-width: 560px) {
  .prod { min-height: 0; padding: 26px 22px; }
  .prod__top { align-items: flex-start; gap: 11px; }
  .prod__mark { width: 40px; height: 48px; }
  .prod__name { font-size: 29px; }
  .prod__for { white-space: normal; line-height: 1.35; }
  .prod p { margin-top: 20px; }
  .prod ul { margin-top: 16px; }
}

/* Static, square principle tiles inspired by Pulse's modular layout. */
.section--principles > .wrap { max-width: 980px; }
.principles-grid {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}
.principle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.principle-row--reverse .principle-card { order: 2; }
.principle-row--reverse .principle-media { order: 1; }
.principle-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  color: var(--ink);
}
.principle-card--oat { background: #f4d9b1; }
.principle-card--stone { background: #e7bd7c; }
.principle-card--clay { background: #c99647; }
.principle-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 37px);
  line-height: 1.1;
}
.principle-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  font-size: clamp(15.5px, 1.45vw, 18px);
  line-height: 1.58;
}
.principle-media {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #e2ddd3;
}
.principle-media picture { display: contents; }
.principle-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.faq-answer-en { display: none; }
html[lang^="en"] .faq-answer-default { display: none; }
html[lang^="en"] .faq-answer-en { display: inline; }
.faq-security-answer a,
.faq-inline-links a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.faq-security-answer a:focus-visible,
.faq-inline-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .principles-grid {
    gap: 12px;
    margin-top: 30px;
  }
  .principle-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .principle-row--reverse .principle-card { order: 1; }
  .principle-row--reverse .principle-media { order: 2; }
  .principle-card {
    aspect-ratio: auto;
    min-height: 340px;
    padding: 28px 24px;
    border-radius: 22px;
  }
  .principle-media { border-radius: 22px; }
  .principle-card h3 { font-size: 28px; }
}

/* ---------- Swiss-made story ---------- */
.swiss {
  padding: 70px 24px 42px;
}
.swiss-grid {
  position: relative;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #f2f1ed;
  box-shadow: var(--shadow-sm);
}
.swiss__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}
.swiss__main { min-width: 0; }
.swiss h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.swiss p {
  margin-top: 20px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
}
.swiss__main p {
  max-width: 760px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}
.swiss__mark {
  display: block;
  width: min(62%, 190px);
  margin: 0 auto;
}
.swiss__badge {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 8px;
}
.swiss__claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 80px);
  margin-top: clamp(28px, 4vw, 44px);
}
.swiss__claim { min-width: 0; }
.swiss__icon {
  width: 46px;
  height: 46px;
  color: var(--ink);
}
.swiss__claim h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.2;
}
.swiss__claim p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 1060px) {
  .swiss__claims { gap: 30px; }
}
@media (max-width: 780px) {
  .swiss { padding: 56px 14px 28px; }
  .swiss-grid { border-radius: 22px; }
  .swiss__header,
  .swiss__claims { grid-template-columns: 1fr; }
  .swiss__header { gap: 30px; }
  .swiss__badge { width: min(100%, 340px); }
  .swiss__claims {
    gap: 34px;
    margin-top: 30px;
  }
}
