/* ==========================================================================
   Tier polish: loaded only for Silver and Gold sites (Bronze uses styles.css alone).

   Silver = refined: nicer details, subtle hover + gentle scroll fade-ins.
   Gold   = premium: everything in Silver, plus art direction, entrance
            animations, staggered reveals, counters, angled sections, shine.

   Every animation is off for visitors who set "reduce motion" on their device.
   ========================================================================== */

/* ---------------------------------------------------- Silver + Gold --- */

:is(.tier-silver, .tier-gold) .site-header { transition: box-shadow .3s ease; }
:is(.tier-silver, .tier-gold) .site-header.scrolled { box-shadow: 0 8px 28px -14px rgba(16, 24, 40, .35); }

/* kicker with accent rules either side */
:is(.tier-silver, .tier-gold) .section-head .kicker { display: inline-flex; align-items: center; gap: .75em; }
:is(.tier-silver, .tier-gold) .section-head .kicker::before,
:is(.tier-silver, .tier-gold) .section-head .kicker::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent);
}
:is(.tier-silver, .tier-gold) .areas-grid .section-head .kicker::before { display: none; }

/* buttons */
:is(.tier-silver, .tier-gold) .btn { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background-color .2s ease, color .2s ease, filter .2s ease; }
:is(.tier-silver, .tier-gold) .btn-accent:hover { box-shadow: 0 12px 26px -10px var(--accent); }
:is(.tier-silver, .tier-gold) .btn-primary:hover { box-shadow: 0 12px 26px -12px var(--primary); }

/* cards */
:is(.tier-silver, .tier-gold) .card { border-color: color-mix(in srgb, var(--line) 70%, white); }
:is(.tier-silver, .tier-gold) .service-card:hover {
  box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--primary) 50%, transparent);
}
:is(.tier-silver, .tier-gold) .icon-badge { transition: background-color .3s ease, color .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
:is(.tier-silver, .tier-gold) .service-card:hover .icon-badge { background: var(--primary); color: #fff; }

/* reviews: big soft quote mark */
:is(.tier-silver, .tier-gold) .review { position: relative; overflow: hidden; }
:is(.tier-silver, .tier-gold) .review::before {
  content: "\201C"; position: absolute; top: -6px; right: 18px;
  font: 800 6rem/1 Georgia, serif; color: color-mix(in srgb, var(--primary) 12%, transparent);
  pointer-events: none;
}

/* FAQ */
:is(.tier-silver, .tier-gold) .faq-item { transition: border-color .25s ease, box-shadow .25s ease; }
:is(.tier-silver, .tier-gold) .faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
:is(.tier-silver, .tier-gold) .faq-item summary:hover { color: var(--primary); }

/* chips */
:is(.tier-silver, .tier-gold) .chips li { background: #fff; transition: border-color .2s ease, transform .2s ease; }
:is(.tier-silver, .tier-gold) .chips li:hover { border-color: var(--primary); transform: translateY(-2px); }

/* about photo */
:is(.tier-silver, .tier-gold) .about-media { position: relative; }
:is(.tier-silver, .tier-gold) .about-media::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--accent) 35%, transparent);
}
:is(.tier-silver, .tier-gold) .about-grid { isolation: isolate; }

/* Silver hero: soft accent glow instead of the flat diagonal texture */
.tier-silver .hero:not(.has-img) {
  background:
    radial-gradient(circle at 8% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-dark));
}
.tier-silver .hero::after { opacity: .04; }

/* ------------------------------------------------- scroll reveals --- */
/* .js-motion is set on <html> only when motion is allowed (see layout()).
   motion.js adds .in to each element as it scrolls into view. */

.js-motion :is(.tier-silver, .tier-gold) :is(.section-head, .grid > *, .about-grid > *, .faq-item, .chips li,
  .contact-grid > *, .cta-inner > *, .prose, .sidebar > *, .trust-list li, .stats-band-grid > *, .bento > *, .num-item, .spotlight-grid > *) {
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1),
              box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.js-motion .tier-silver :is(.section-head, .grid > *, .about-grid > *, .faq-item, .chips li,
  .contact-grid > *, .cta-inner > *, .prose, .sidebar > *, .trust-list li, .stats-band-grid > *, .bento > *, .num-item, .spotlight-grid > *):not(.in) {
  opacity: 0; transform: translateY(14px);
}
.js-motion .tier-gold :is(.section-head, .grid > *, .about-grid > *, .faq-item, .chips li,
  .contact-grid > *, .cta-inner > *, .prose, .sidebar > *, .trust-list li, .stats-band-grid > *, .bento > *, .num-item, .spotlight-grid > *) {
  transition-duration: .75s, .75s, .3s, .3s, .3s;
}
.js-motion .tier-gold :is(.section-head, .grid > *, .about-grid > *, .faq-item, .chips li,
  .contact-grid > *, .cta-inner > *, .prose, .sidebar > *, .trust-list li, .stats-band-grid > *, .bento > *, .num-item, .spotlight-grid > *):not(.in) {
  opacity: 0; transform: translateY(34px) scale(.98);
}

/* ------------------------------------------------------------- Gold --- */

/* bigger, more expressive hero type */
.tier-gold .hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -.025em; }
.tier-gold .hero-inner { padding-top: 110px; padding-bottom: 130px; }
.tier-gold .eyebrow { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* hero art direction: glowing orbs (parallax + slow float) replace the texture */
.tier-gold .hero:not(.has-img)::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 65%);
  opacity: .5; transform: translateY(calc(var(--scroll, 0) * .25px));
}
.tier-gold .hero:not(.has-img)::after {
  inset: auto; left: -180px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
  opacity: 1;
}
.tier-gold .hero { box-shadow: inset 0 -5px 0 var(--accent); }

/* hero card: gradient ring */
.tier-gold .hero-card {
  border: 2px solid transparent; border-radius: calc(var(--radius) * 2.4);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), rgba(255,255,255,.5) 45%, var(--accent)) border-box;
}

/* buttons: light sweep on hover */
.tier-gold .btn { position: relative; overflow: hidden; isolation: isolate; }
.tier-gold .btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.tier-gold .btn:hover::after { left: 130%; }

/* features become hover cards */
.tier-gold .feature { border-radius: calc(var(--radius) * 1.5); padding: 28px 20px; }
.tier-gold .feature:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow); }
.tier-gold :is(.service-card, .feature):hover .icon-badge { background: var(--primary); color: #fff; transform: rotate(-8deg) scale(1.1); }

/* stats: gradient numbers */
.tier-gold .stat-num {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* dotted texture on tinted sections */
.tier-gold .section-tint {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--primary) 13%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    var(--tint);
}

/* angled call-to-action band with slowly shifting gradient */
.tier-gold .cta-band {
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  padding: 104px 0;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary), var(--primary-dark));
  background-size: 220% 220%;
}

/* angled inner-page hero */
.tier-gold .page-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%); padding-bottom: 100px; }

/* trust bar + logo micro-interactions */
.tier-gold .trust-list .icon, .tier-gold .logo-mark { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tier-gold .trust-list li:hover .icon { transform: scale(1.18) rotate(-6deg); }
.tier-gold .logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }

/* ---------------------------------------- Gold motion (allowed only) --- */
@media (prefers-reduced-motion: no-preference) {
  .tier-gold .hero-copy > *, .tier-gold .hero-card { animation: gold-rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .tier-gold .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .tier-gold .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .tier-gold .hero-copy > :nth-child(3) { animation-delay: .27s; }
  .tier-gold .hero-copy > :nth-child(4) { animation-delay: .39s; }
  .tier-gold .hero-copy > :nth-child(5) { animation-delay: .5s; }
  .tier-gold .hero-card { animation-name: gold-card; animation-delay: .35s; animation-duration: 1.1s; }

  .tier-gold .hero:not(.has-img)::after { animation: gold-float 16s ease-in-out infinite alternate; }
  .tier-gold .cta-band { animation: gold-pan 14s ease infinite; }
  .tier-gold .about-placeholder .icon { animation: gold-bob 5s ease-in-out infinite; }
}

@keyframes gold-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gold-card { from { opacity: 0; transform: translateY(40px) rotate(1.5deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gold-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, -60px) scale(1.15); } }
@keyframes gold-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes gold-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 860px) {
  .tier-gold .hero-inner { padding-top: 64px; padding-bottom: 80px; }
  .tier-gold .cta-band { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); padding: 80px 0; }
  .tier-gold .hero:not(.has-img)::before { width: 380px; height: 380px; right: -140px; top: -140px; }
}
