/* =========================================================
   INTRYS - Cohesion bridge
   Retrofits older page patterns (.cat-hero, .svc-grid-2,
   .step-list, .faq, .checkout-card, shop/cart/checkout cards)
   so they share the modern.css visual language.
   Load AFTER components.css, services.css, modern.css.
   ========================================================= */

/* ---------- Universal page rhythm ---------- */
main { padding-bottom: clamp(40px, 5vw, 80px); }
.container > section + section,
main > section + section { margin-top: clamp(24px, 3vw, 48px); }

/* ---------- Buttons - unify weight + radius ---------- */
.btn { border-radius: 12px; font-weight: 700; letter-spacing: -.005em; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-blue); border: none; color: #fff; box-shadow: 0 12px 30px -14px rgba(37,99,235,.55); }
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(37,99,235,.7); }
.btn-yellow { background: linear-gradient(135deg, #fbbf24 0%, #f7d840 100%); color: #0a1f3f; border: none; box-shadow: 0 12px 30px -14px rgba(247,216,64,.6); }
.btn-yellow:hover { filter: brightness(1.05); }

/* ---------- Legacy category hero (.cat-hero) ---------- */
/* Used on: services.html, all 11 service pages, laptops/desktops/networking/wifi/microsoft-365/office-in-a-box, about.html, contact.html, bulk-orders.html, shop.html, account, login, register, etc. */
.cat-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-aurora) !important;
  color: #fff !important;
  border-radius: clamp(20px, 2.5vw, 32px) !important;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px) !important;
  isolation: isolate;
  border: none !important;
  margin-top: 18px;
}
.cat-hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(99,102,241,.55), transparent 70%),
    radial-gradient(35% 35% at 80% 20%, rgba(236,72,153,.45), transparent 70%),
    radial-gradient(40% 40% at 70% 80%, rgba(34,197,247,.45), transparent 70%);
  filter: blur(40px);
  animation: float 20s ease-in-out infinite alternate;
}
.cat-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 80%);
}
@media (prefers-reduced-motion: reduce) { .cat-hero::before { animation: none; } }
.cat-hero h1, .cat-hero h2 { color: #fff !important; letter-spacing: -.02em; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.1; max-width: 22ch; }
.cat-hero p, .cat-hero .lede, .cat-hero .sub { color: rgba(255,255,255,.85) !important; max-width: 60ch; }
.cat-hero .crumb, .cat-hero .breadcrumb, .cat-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 14px;
}
.cat-hero a:not(.btn) { color: #f7d840; }
.cat-hero a:not(.btn):hover { color: #fff; }
.cat-hero .btn-light { background: rgba(255,255,255,.95); color: var(--ink); }

/* ---------- Service grid (.svc-grid-2) - retrofit with the new look ---------- */
.svc-grid-2 { gap: clamp(28px, 4vw, 56px) !important; }
.svc-grid-2 > div h2,
.svc-grid-2 > div > h2 {
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.018em; margin-top: 0;
}

/* check-list (services.css) - keep base, add gradient accent */
.check-list li::before { color: var(--green); }

/* checkout-card on service pages - upgrade to modern card */
.checkout-card {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line-soft) !important;
  background: var(--card) !important;
  box-shadow: 0 24px 60px -28px rgba(15,23,42,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.checkout-card:hover { transform: translateY(-3px); box-shadow: 0 32px 70px -28px rgba(15,23,42,.28); }
.checkout-card h3 { letter-spacing: -.012em; }

/* "Most popular" pricing tile - gradient ring */
.checkout-card.popular,
.checkout-card[data-popular],
.checkout-card.featured {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--card),var(--card)) padding-box,
    var(--grad-blue) border-box !important;
  position: relative;
}
.checkout-card.popular::before,
.checkout-card.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-blue); color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Step list (numbered process) ---------- */
.step-list .step,
.step-list > li {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 20px; transition: border-color .2s, transform .2s;
}
.step-list .step:hover { border-color: color-mix(in srgb,var(--blue) 40%, var(--line)); transform: translateX(2px); }
.step-list .step::before,
.step-list > li::before {
  background: var(--grad-blue) !important; color: #fff !important;
  width: 44px !important; height: 44px !important; border-radius: 12px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px -10px rgba(37,99,235,.6);
}

/* ---------- FAQ accordions ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 0; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: color-mix(in srgb,var(--blue) 30%, var(--line)); box-shadow: 0 16px 40px -22px rgba(37,99,235,.3); }
.faq details summary {
  padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--blue); transition: transform .25s var(--ease);
  font-size: 12px;
  width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb,var(--blue) 10%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > *:not(summary) { padding: 0 22px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Source / link tiles (.source-grid) ---------- */
.source-tile, .source-grid > a {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line-soft) !important;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s !important;
}
.source-tile:hover, .source-grid > a:hover {
  transform: translateY(-3px);
  border-color: var(--blue) !important;
  box-shadow: 0 20px 40px -22px rgba(37,99,235,.3);
}

/* ---------- Product / shop cards ---------- */
.product-card, .card.product, .card-product {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line-soft) !important;
  background: var(--card) !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s !important;
  overflow: hidden;
}
.product-card:hover, .card.product:hover, .card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(15,23,42,.25);
  border-color: color-mix(in srgb,var(--blue) 25%, var(--line));
}
.product-card .price, .card-product .price { font-weight: 800; letter-spacing: -.01em; }

/* ---------- Form controls - unify focus ring ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select, textarea {
  border-radius: 10px !important;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent) !important;
}

/* ---------- Headings rhythm site-wide ---------- */
h1, h2, h3 { letter-spacing: -.018em; }
section h2:not(.section-title):not(.cat-hero h2) { font-size: clamp(22px, 2.4vw, 30px); }

/* ---------- Section helper for older pages ---------- */
.container > section,
main > section { padding-block: 0; }
.container > section.padded,
main > section.padded { padding-block: clamp(28px, 4vw, 60px); }

/* ---------- Header polish so it matches modern look ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .nav-bar { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 6%, var(--card)), var(--card)); }
.site-header .nav-bar a:hover { color: var(--blue); }

/* ---------- Footer polish ---------- */
.site-footer h5 { background: linear-gradient(90deg,#fff,#cbd5e1); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal-on-scroll global ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Universal CTA strip helper for legacy pages ---------- */
.legacy-cta {
  background: var(--grad-aurora); color: #fff;
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  margin-top: 32px;
  position: relative; overflow: hidden;
}
.legacy-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 70% 50%, rgba(247,216,64,.22), transparent 70%);
  pointer-events: none;
}
.legacy-cta h2 { color: #fff; margin: 0; }
.legacy-cta p { color: rgba(255,255,255,.85); margin: 4px 0 0; }
