/* Homepage composition guided by PandaRoads. Photography and palette are specific to Panda Remote Expert. */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
.reference-home {
  --reference-nav: 65px;
  --reference-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --reference-serif: Fraunces, Georgia, serif;
  --hero-base: #162126;
  --hero-shade: 22 33 38;
  --hero-photo: url('/assets/operations.webp');
  --reference-paper: #fff;
  --reference-copy: #e5e7ec;
  --hero-accent: #efdabd;
  --reference-red: #c41e3a;
  --reference-red-hover: #a0142b;
  --reference-contact-green: #0a5c50;
  --reference-contact-blue: #101827;
  --reference-panel: rgb(255 255 255 / 6%);
  --reference-badge-bg: rgb(255 255 255 / 10%);
  --reference-line: rgb(255 255 255 / 15%);
  --reference-glow: rgb(64 13 24 / 30%);
}
html[lang="ar"] .reference-home {
  --reference-sans: Tahoma, Arial, system-ui, sans-serif;
  --reference-serif: Tahoma, Arial, system-ui, sans-serif;
}
html[lang="ru"] .reference-home {
  --reference-sans: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --reference-serif: Georgia, 'Times New Roman', serif;
}

.reference-home .site-head { font-family: var(--reference-sans); border-bottom-color: #e7ded1; }
.reference-home .nav-bar { min-height: var(--reference-nav); max-width: 72rem; }
.reference-home .site-head .brand { color: var(--reference-red); font-size: 1.31rem; letter-spacing: -.035em; }
.reference-home .site-head .nav-cta { padding: .5rem 1.05rem; min-height: 37px; background: var(--reference-red); color: var(--reference-paper); border-color: var(--reference-red); border-radius: 30px; }
.reference-home .site-head .nav-cta:hover { background: var(--reference-red-hover); border-color: var(--reference-red-hover); }
.reference-home .language-menu summary { min-height: 37px; border: 1px solid var(--rule); border-radius: 30px; }
.reference-home .mobile-menu summary::after { content: none; }
.reference-home .hamburger { display: block; width: 24px; height: 15px; border-block: 2px solid currentColor; position: relative; }
.reference-home .hamburger::before { content: ''; position: absolute; inset-inline: 0; inset-block-start: 50%; border-top: 2px solid currentColor; transform: translateY(-50%); }

.reference-home .pr-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-block: 36px 64px;
  color: var(--reference-paper);
  font-family: var(--reference-sans);
  background: var(--hero-base);
}
.reference-home .pr-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  block-size: clamp(600px, 94svh, 860px);
  background:
    linear-gradient(180deg, rgb(var(--hero-shade) / 28%), rgb(var(--hero-shade) / 42%) 30%, rgb(var(--hero-shade) / 12%) 62%, var(--hero-base) 100%),
    linear-gradient(90deg, rgb(var(--hero-shade) / 26%), rgb(var(--hero-shade) / 73%) 34%, rgb(var(--hero-shade) / 63%) 64%, rgb(var(--hero-shade) / 28%)),
    var(--hero-photo) center 46% / cover no-repeat;
}
.reference-home .pr-hero-content {
  width: min(100%, 1140px);
  margin-inline: auto;
  padding: 0 20px;
  text-align: center;
}
.reference-home .reference-badge {
  display: inline-block;
  max-inline-size: 100%;
  margin: 0 auto 22px;
  padding: 7px 18px;
  border: 1px solid var(--reference-line);
  border-radius: 50px;
  background: var(--reference-badge-bg);
  color: var(--hero-accent);
  font-size: .875rem;
  line-height: 1.55;
  letter-spacing: .035em;
  font-weight: 650;
}
.reference-home .pr-hero h1 {
  width: min(100%, 800px);
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--reference-paper);
  font-family: var(--reference-serif);
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.025em;
}
html[lang="ar"] .reference-home .pr-hero h1 {
  letter-spacing: 0;
  line-height: 1.28;
}
.reference-home .pr-hero h1 span { color: var(--hero-accent); }
.reference-home .pr-hero-lead {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--reference-copy);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: -.013em;
}
.reference-home .pr-hero-actions { display: flex; margin: 0 auto; justify-content: center; }
.reference-home .pr-hero-actions .btn-hero-primary {
  max-width: 100%;
  min-height: 50px;
  padding: .66rem clamp(.9rem, 4.7vw, 2.25rem);
  gap: .38rem;
  border: 1px solid var(--reference-red);
  border-radius: 50px;
  color: var(--reference-paper);
  background: var(--reference-red);
  box-shadow: 0 8px 24px var(--reference-glow);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.reference-home .pr-hero-actions .btn-hero-primary:hover { background: var(--reference-red-hover); border-color: var(--reference-red-hover); }
.reference-home .pr-hero :is(a, button):focus-visible { outline-color: var(--hero-accent); }
.reference-home .pr-hero-glass-card {
  display: block;
  width: min(100%, 740px);
  margin: 38px auto 0;
  padding: 32px 28px;
  text-align: start;
  border: 1px solid var(--reference-line);
  border-radius: 18px;
  background: var(--reference-panel);
}
.reference-home .pr-hero-glass-card h2 {
  font-family: var(--reference-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 18px;
  text-wrap: initial;
  color: var(--reference-paper);
}
.reference-home .pr-hero-glass-card ol { margin: 0 0 20px; padding-inline-start: 22px; color: var(--reference-copy); line-height: 1.75; }
.reference-home .pr-hero-glass-card li + li { margin-block-start: 12px; }
.reference-home .pr-hero-glass-card li a { color: var(--reference-paper); font-weight: 700; }
.reference-home .pr-hero-glass-card :is(.handover-context, .pr-glass-divider, .pr-glass-prompt) { max-width: none; color: var(--reference-copy); }
.reference-home .support-action { margin-block-start: 1rem; }
.reference-home .support-action a { color: var(--hero-accent); font-weight: 680; }
.reference-home .pr-glass-footer { margin-block-start: 1rem; padding: 1rem 0 0; background: none; border-top: 1px solid var(--reference-line); }
.reference-home .pr-glass-rates { color: var(--reference-copy); }
.reference-home .pr-glass-rates .label-gold { color: var(--hero-accent); font-weight: 700; }
.reference-home .pr-glass-footer .contact-links a,
.reference-home .pr-glass-footer .contact-links button { color: var(--reference-paper); text-decoration: none; font-weight: 600; }
.reference-home .pr-glass-footer .contact-links a:hover,
.reference-home .pr-glass-footer .contact-links button:hover { color: var(--hero-accent); text-decoration: underline; }

.reference-home .reference-contact {
  position: absolute;
  z-index: 2;
  inset-inline-end: 20px;
  inset-block-start: calc(100svh - var(--reference-nav) - 148px);
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}
.reference-home .reference-contact a {
  display: flex;
  min-width: 56px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  background: var(--reference-contact-green);
  color: var(--reference-paper);
  border-radius: 50%;
  font-size: 0;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.reference-home .reference-contact a[href^='mailto:'] { background: var(--reference-red); }
.reference-home .reference-contact svg { width: 25px; height: 25px; }

/* Tablet & narrower viewports: move .reference-contact into normal flow so it never overlaps card edges or text links */
@media (max-width: 959px) {
  .reference-home .reference-contact {
    position: relative;
    inset-inline: auto;
    inset-block-start: auto;
    width: min(calc(100% - 40px), 740px);
    margin: 24px auto 0;
    flex-direction: row;
    gap: 0;
    border: 1px solid var(--reference-line);
    border-radius: 12px;
    overflow: hidden;
  }
  .reference-home .reference-contact a {
    min-height: 50px;
    flex: 1;
    gap: .45rem;
    border-radius: 0;
    font-size: .9rem;
    font-weight: 650;
    box-shadow: none;
  }
  .reference-home .reference-contact a[href^='mailto:'] { background: var(--reference-contact-blue); }
  .reference-home .reference-contact svg { width: 19px; height: 19px; }
}

@media (max-width: 767px) {
  .reference-home .pr-hero {
    padding-block: 24px 0;
    --hero-photo: url('/assets/operations-mobile.webp');
  }
  .reference-home .pr-hero::before {
    block-size: 740px;
    background:
      linear-gradient(180deg, rgb(var(--hero-shade) / 56%), rgb(var(--hero-shade) / 78%) 28%, rgb(var(--hero-shade) / 58%) 59%, var(--hero-base) 100%),
      var(--hero-photo) 63% 48% / cover no-repeat;
  }
  .reference-home .pr-hero-content { padding-inline: 16px; }
  .reference-home .reference-badge { min-height: 48px; display: inline-grid; place-items: center; max-width: 100%; }
  .reference-home .pr-hero h1 { font-size: clamp(1.75rem, 8.21vw, 2.4rem); }
  .reference-home .pr-hero-lead { margin-bottom: 14px; }
  .reference-home .pr-hero-actions .btn-hero-primary { font-size: clamp(.93rem, 4.45vw, 1.1rem); }
  .reference-home .pr-hero-glass-card { margin-block-start: 20px; padding: clamp(1.15rem, 5vw, 1.75rem); }
  .reference-home .site-head .brand { font-size: clamp(.94rem, 4.5vw, 1.31rem); }
  .reference-home .nav-bar .brand span { max-inline-size: none; }
  .reference-home .language-menu { display: none; }
  .reference-home .reference-contact {
    width: 100%;
    margin: 28px 0 0;
    border-radius: 0;
    border-inline: none;
    border-bottom: none;
  }
  .reference-home .reference-contact a {
    min-height: 52px;
    font-size: .87rem;
  }
}
