/* ===== Scale & Connect — custom layer on top of Tailwind ===== */

::selection { background: #8B0000; color: #fff; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Buttons ----- */
.btn-primary, .btn-outline, .btn-ghost, .btn-white, .btn-outline-white {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 9999px;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: #8B0000; color: #fff; box-shadow: 0 8px 20px -8px rgba(139,0,0,.55); }
.btn-primary:hover { background: #6E0000; transform: translateY(-2px); }
.btn-outline { border: 2px solid #111111; color: #111111; background: transparent; }
.btn-outline:hover { background: #111111; color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 2px solid #8B0000; color: #8B0000; background: transparent; }
.btn-ghost:hover { background: #8B0000; color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: #8B0000; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-outline-white { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: #fff; color: #8B0000; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* ----- Nav ----- */
.nav-link { position: relative; color: rgba(0,0,0,.65); transition: color .18s ease; }
.nav-link:hover { color: #8B0000; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: #8B0000;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

#site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }

/* ----- Mobile drawer ----- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(17,17,17,.5);
  opacity: 0; transition: opacity .25s ease;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 20rem; max-width: 85vw; background: #fff;
  padding: 1.25rem 1.5rem 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.9,.3,1);
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-link {
  padding: .8rem .9rem; border-radius: .75rem; color: rgba(0,0,0,.7);
  transition: background-color .15s ease, color .15s ease;
}
.drawer-link:hover { background: #F8F9FA; color: #8B0000; }

/* ----- Hero ----- */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,17,17,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, black 30%, transparent 75%);
}

.stat { border-left: 3px solid #8B0000; padding-left: .85rem; }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #111111; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(0,0,0,.5); margin-top: .25rem; }
@media (min-width: 768px) { .stat-value { font-size: 2rem; } }

.lead-card {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid rgba(0,0,0,.08); border-radius: .9rem;
  padding: .7rem .8rem; background: #fff;
  animation: leadIn .6s cubic-bezier(.22,.9,.3,1) both;
}
.lead-icon {
  width: 2.4rem; height: 2.4rem; border-radius: .7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
@keyframes leadIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- Sections ----- */
.section-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #8B0000; margin-bottom: .8rem;
}
.section-title { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1.12; letter-spacing: -.02em; color: #111111; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-sub { margin-top: .9rem; color: rgba(0,0,0,.6); font-size: .95rem; line-height: 1.65; }
@media (min-width: 768px) { .section-sub { font-size: 1.05rem; } }

/* ----- Core service offer cards ----- */
.offer-card {
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  background: #FFFFFF; border: 2px solid #800000; border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 2rem; text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(139,0,0,.28); }
.offer-icons { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.25rem; }
.offer-icon {
  width: 3rem; height: 3rem; border-radius: .9rem;
  background: #FBF2F2; color: #800000;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.offer-card:hover .offer-icon { background: #800000; color: #fff; transform: translateY(-2px); }
.offer-card h3 {
  font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: #111111; font-size: 1rem; line-height: 1.35;
}
.offer-card p { margin-top: .75rem; font-size: .9rem; color: rgba(0,0,0,.6); line-height: 1.6; }

/* ----- Iframe wrapper (responsive) ----- */
.iframe-wrap { position: relative; width: 100%; }
.iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ----- Why cards ----- */
.why-card {
  border: 1px solid rgba(0,0,0,.08); border-radius: 1.25rem; padding: 1.75rem;
  background: #fff; transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(17,17,17,.25); }
.why-num { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: rgba(139,0,0,.25); margin-bottom: .6rem; }

/* ----- FAQ ----- */
.faq-item {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 1rem;
  padding: 0 1.25rem; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600; font-size: .95rem; color: #111111;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #8B0000; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: #8B0000;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.15rem; font-size: .9rem; color: rgba(0,0,0,.6); line-height: 1.65; }

/* ----- Contact cards ----- */
.contact-card {
  display: block; background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.25rem; padding: 1.75rem; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(139,0,0,.3); box-shadow: 0 20px 40px -22px rgba(17,17,17,.25); }
.contact-flag { font-size: 2rem; margin-bottom: .8rem; }

/* ----- Footer ----- */
.footer-link { color: rgba(255,255,255,.6); transition: color .15s ease; }
.footer-link:hover { color: #fff; }

/* ----- Modal ----- */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(17,17,17,.55);
  opacity: 0; transition: opacity .25s ease;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; background: #fff; border-radius: 1.5rem;
  width: 100%; max-width: 34rem; padding: 1.75rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,.9,.3,1);
  max-height: calc(100vh - 2rem); overflow-y: auto;
}
.modal.open .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.call-option {
  border: 1px solid rgba(0,0,0,.1); border-radius: 1rem; padding: 1.25rem;
  text-align: center; transition: border-color .2s ease, box-shadow .2s ease;
}
.call-option:hover { border-color: rgba(139,0,0,.4); box-shadow: 0 12px 30px -16px rgba(139,0,0,.35); }

/* ----- Scroll reveal ----- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.9,.3,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ----- Sticky mobile call bar clearance ----- */
@media (max-width: 767px) {
  body { padding-bottom: 84px; }
}

/* ----- Trades ticker ----- */
.ticker { background: #111111; overflow: hidden; padding: .9rem 0; border-top: 3px solid #8B0000; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-right: 3rem; white-space: nowrap;
  color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ----- Industry showcase cards ----- */
.industry-card {
  background: #fff; border: 2px solid #800000; border-radius: 16px;
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.industry-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -16px rgba(139,0,0,.32); }
.industry-img { position: relative; height: 240px; overflow: hidden; }
.industry-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,.9,.3,1);
}
.industry-card:hover .industry-img img { transform: scale(1.07); }
.industry-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: #800000; color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .85rem; border-radius: 9999px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
}
.industry-title {
  font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  color: #111111; font-size: 1.1rem; line-height: 1.3;
}

/* ----- Authority SEO content section ----- */
.authority-p { margin-top: 1.25rem; font-size: .95rem; color: rgba(0,0,0,.65); line-height: 1.75; max-width: 60rem; }
@media (min-width: 768px) { .authority-p { font-size: 1rem; } }
.authority-h3 {
  margin-top: 2.25rem; font-weight: 800; color: #111111;
  font-size: 1.15rem; letter-spacing: -.01em;
  padding-left: 1rem; border-left: 4px solid #800000;
}
@media (min-width: 768px) { .authority-h3 { font-size: 1.3rem; } }
.authority-list {
  margin-top: 2rem; display: grid; gap: .9rem;
  list-style: none; padding: 0;
}
@media (min-width: 768px) { .authority-list { grid-template-columns: 1fr 1fr; } }
.authority-list li {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 1rem;
  padding: 1.1rem 1.25rem; font-size: .9rem; color: rgba(0,0,0,.65); line-height: 1.6;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.authority-list li:hover { transform: translateY(-2px); border-color: rgba(139,0,0,.3); box-shadow: 0 10px 24px -14px rgba(17,17,17,.25); }
.authority-list strong { color: #111111; font-weight: 800; }
.authority-ico { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.authority-callout {
  margin-top: 2.5rem; background: #111111; color: #fff;
  border-radius: 1.25rem; padding: 1.75rem 2rem;
  border-left: 6px solid #8B0000;
}
.authority-callout p { font-size: 1.05rem; line-height: 1.7; font-weight: 600; color: rgba(255,255,255,.92); }

/* ----- Legal pages ----- */
.legal-h { font-weight: 800; color: #111111; font-size: 1.05rem; margin-bottom: .5rem; }
.legal-list { list-style: none; margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem; }
.legal-list li { position: relative; padding-left: 1.3rem; }
.legal-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .45rem; height: .45rem; border-radius: 2px; background: #8B0000;
}

/* ----- Cookie consent banner ----- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 65;
  max-width: 42rem; margin: 0 auto;
  background: #111111; color: #fff; border-radius: 1rem;
  border-left: 4px solid #8B0000;
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.45);
  animation: cookieIn .45s cubic-bezier(.22,.9,.3,1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 17rem; margin: 0; font-size: .8rem; color: rgba(255,255,255,.75); line-height: 1.55; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-accept, .cookie-decline {
  font-weight: 600; font-size: .8rem; padding: .6rem 1.2rem; border-radius: 9999px;
  cursor: pointer; transition: background-color .18s ease, transform .18s ease;
}
.cookie-accept { background: #8B0000; color: #fff; border: 1px solid #8B0000; }
.cookie-accept:hover { background: #6E0000; transform: translateY(-1px); }
.cookie-decline { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.cookie-decline:hover { background: rgba(255,255,255,.1); }
@media (max-width: 767px) {
  .cookie-banner { bottom: 96px; }
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Social icons ----- */
/* Logo on light backgrounds (artwork is white text on transparency) */
[data-testid="header-logo"] img, .drawer-logo {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.55)) drop-shadow(0 0 5px rgba(0,0,0,.22));
}

.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  color: rgba(0,0,0,.55);
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.social-icon:hover { color: #8B0000; background: #FBF2F2; transform: translateY(-2px); }
.social-icon-footer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: .6rem;
  color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.15);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-icon-footer:hover { color: #fff; background: #8B0000; border-color: #8B0000; transform: translateY(-2px); }
