/* ==========================================================================
   uat-brand.css — UX-D brand layer
   --------------------------------------------------------------------------
   Scope:
     1. Header dual-logo motion (Digicut.png  <->  "DI WANDGESTALTUNG" wordmark)
     2. Premium trust system: .dc-trust-band / .dc-trust-checkout / .dc-trust-row
     3. Google reviews star-icon refinements (bootstrap-icons bi-star-fill)

   Loading:
     This file is loaded by the <link> tag at the top of
     shop/templates/header.html, which is included on every page via
     base.html. It therefore comes after style.css / menu.css /
     trust-benefits.css in document order and wins at equal specificity.

   Old class hooks (.home-trust-strip*, .trust-checkout-mini*,
   .compact-trust-row*) are intentionally NOT used here: the templates were
   rebuilt on the .dc-* system so this file is self-contained.
   ========================================================================== */

:root {
    --uat-ink: #1a1a2e;
    --uat-ink-soft: #4a4958;
    --uat-warm: #ece2d9;
    --uat-warm-deep: #dfd0c0;
    --uat-gold: #c7a469;
    --uat-gold-deep: #8a6b3c;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. Header dual-logo motion
   --------------------------------------------------------------------------
   The <img> stays in normal flow and always defines the box (width: 100%,
   height auto), so the header can never resize during the crossfade.
   The wordmark is absolutely positioned over the same box.

   Motion is opt-in via JS: header.html only cycles when the user does NOT
   prefer reduced motion. Without JS / with reduced motion the wordmark
   layer stays at opacity: 0 and the static logo is shown permanently.
   ────────────────────────────────────────────────────────────────────────── */

.dc-logo-motion {
    position: relative;
    display: block;
    width: 100%;
    max-width: 208px;
}

.dc-logo-motion__img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 700ms ease;
}

.dc-logo-motion__wordmark {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--uat-ink);
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
}

.dc-logo-motion__wordmark-lead {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.15rem, 5vw, 1.7rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
}

.dc-logo-motion__wordmark-rule {
    width: 2.4rem;
    height: 2px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, transparent 0%, var(--uat-gold) 50%, transparent 100%);
}

.dc-logo-motion__wordmark-name {
    margin-top: 0.35rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(10px, 2.9vw, 11.5px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    white-space: nowrap;
}

.dc-logo-motion--alt .dc-logo-motion__img {
    opacity: 0;
}

.dc-logo-motion--alt .dc-logo-motion__wordmark {
    opacity: 1;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. Premium trust system
   Three variants, one design language:
     .dc-trust-band     — 6-item full strip (PDP, cart, lists, pages, …)
     .dc-trust-checkout — 3-item calm one-liner (checkout, keeps CTA visible)
     .dc-trust-row      — 3-signal badge strip (cart / checkout)
   ────────────────────────────────────────────────────────────────────────── */

.dc-trust-band,
.dc-trust-checkout,
.dc-trust-row {
    --dc-ink: var(--uat-ink);
    --dc-gold-deep: var(--uat-gold-deep);
}

/* 2a. Full band */

.dc-trust-band {
    background: linear-gradient(180deg, #faf7f2 0%, #f1e9df 100%);
    border-top: 1px solid rgba(26, 26, 46, 0.06);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    padding: clamp(1.5rem, 3vw, 2.4rem) 1rem;
}

.dc-trust-band__grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 72rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.1rem, 2.4vw, 2rem) clamp(1.4rem, 3.2vw, 2.9rem);
}

.dc-trust-band__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dc-trust-band__icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--uat-warm);
    border: 1px solid rgba(199, 164, 105, 0.4);
    color: var(--dc-gold-deep);
    font-size: 1.02rem;
    line-height: 1;
}

.dc-trust-band__title {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--dc-ink);
    white-space: nowrap;
}

/* 2b. Checkout minimal */

.dc-trust-checkout {
    padding: 0.85rem 1rem;
    background: rgba(236, 226, 217, 0.5);
    border: 1px solid rgba(26, 26, 46, 0.07);
    border-radius: 0.75rem;
}

.dc-trust-checkout__inner {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 1.6rem;
}

.dc-trust-checkout__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dc-ink);
    white-space: nowrap;
}

.dc-trust-checkout__icon {
    color: var(--dc-gold-deep);
    font-size: 0.95rem;
}

/* 2c. Badge strip row */

.dc-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1.25rem;
    padding: 0.65rem 1.1rem;
    background: rgba(236, 226, 217, 0.45);
    border: 1px solid rgba(26, 26, 46, 0.06);
    border-radius: 0.85rem;
    font-size: 0.85rem;
    color: var(--dc-ink);
}

.dc-trust-row__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.dc-trust-row__stars {
    display: inline-flex;
    gap: 0.1rem;
    color: var(--uat-gold);
    font-size: 0.82rem;
    line-height: 1;
}

.dc-trust-row__strong {
    font-weight: 600;
}

.dc-trust-row__icon {
    color: var(--dc-gold-deep);
    font-size: 0.95rem;
}

.dc-trust-row__sep {
    width: 1px;
    height: 1.05em;
    background: rgba(26, 26, 46, 0.16);
}

@media (max-width: 575.98px) {
    .dc-trust-row__sep {
        display: none;
    }
    .dc-trust-row {
        gap: 0.35rem 0.9rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. Google reviews — bootstrap-icons star refinements
   .google-reviews-* layout stays in style.css; this layer only swaps the
   glyph stars for bi-star-fill and keeps the intro usable when no rating
   context is provided.
   ────────────────────────────────────────────────────────────────────────── */

.google-reviews-stars,
.google-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    letter-spacing: 0;
}

.google-reviews-stars .bi {
    font-size: 0.9rem;
}

.google-review-stars .bi {
    font-size: 0.85rem;
}

/* Single-column intro when the view provides no google_rating context */
.google-reviews-heading-row:not(:has(.google-reviews-score)) {
    grid-template-columns: 1fr;
}

.google-reviews-review-count {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--uat-ink-soft);
}
