/* ShireTech Services — main stylesheet (v1.8.0; adds software & products showcase) */

:root {
  --navy-900: #061230;
  --navy-800: #0a1f4a;
  --navy-700: #102a63;
  --royal-600: #14438c;
  --royal-500: #1d5cb8;
  --cyan-400: #1e9fe5;
  --cyan-300: #5cc1f2;
  --ink: #14213d;
  --ink-soft: #44516e;
  --muted: #6b7894;
  --line: #dbe2ee;
  --tint: #f4f7fb;
  --tint-2: #e8f1fa;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10,31,74,0.06), 0 1px 3px rgba(10,31,74,0.08);
  --shadow-md: 0 8px 24px rgba(10,31,74,0.10);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--royal-500); text-decoration: none; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  color: var(--navy-800); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
}
.skip-link:focus {
  background: var(--navy-800); color: #fff; padding: 12px 16px;
  position: fixed; left: 12px; top: 12px; z-index: 9999; border-radius: 4px;
  clip: auto; clip-path: none; width: auto; height: auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font-weight: 600; font-size: 0.97rem;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn-primary { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-primary:hover { background: var(--royal-500); border-color: var(--royal-500); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-800); color: #fff; }

/* Support bar (top of every page, above main header) */
.support-bar {
  background: var(--navy-900);
  color: #cbd6ea;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.support-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap;
}
.support-bar-msg { color: #cbd6ea; }
.support-bar-buttons {
  display: flex; align-items: center; gap: 10px;
}
.support-bar-buttons iframe {
  height: 40px; width: 160px;
  border: none; border-radius: 4px;
  display: block; flex-shrink: 0;
}
.support-bar-ticket {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  background: var(--cyan-400); color: #fff;
  border-radius: 4px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
  transition: background 0.15s ease;
}
.support-bar-ticket:hover { background: var(--royal-500); color: #fff; }
.support-bar-ticket svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Header */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px; padding: 14px 24px;
}
.site-branding .custom-logo-link { display: inline-block; }
.site-branding .custom-logo,
.site-branding img {
  display: block; height: auto !important; width: auto !important;
  max-height: 56px; max-width: 280px; object-fit: contain;
}
.site-wordmark {
  font-family: 'Source Serif Pro', serif; font-weight: 700; font-size: 1.4rem;
  color: var(--navy-800); display: inline-flex; align-items: baseline; gap: 6px;
}
.site-wordmark .wordmark-accent { color: var(--royal-500); }
.site-wordmark .wordmark-sub {
  font-family: 'Inter', sans-serif; font-size: 0.65rem; letter-spacing: 0.22em;
  color: var(--muted); font-weight: 600; margin-left: 6px;
}
.primary-menu {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  justify-self: center;
}
.primary-menu a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; position: relative; white-space: nowrap;
}
.primary-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cyan-400); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s;
}
.primary-menu a:hover::after { transform: scaleX(1); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy-800);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint); white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.header-phone:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(30,159,229,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(20,67,140,0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #e7eefc; padding: 88px 0 96px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--cyan-300);
  margin-bottom: 14px;
}
.hero .lede { font-size: 1.1rem; color: #cbd6ea; max-width: 60ch; margin-top: 6px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.hero-trust {
  display: flex; gap: 32px; list-style: none; padding: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  color: #b6c3dd; font-size: 0.92rem;
}
.hero-trust li { display: flex; flex-direction: column; gap: 2px; }
.hero-trust span {
  color: #fff; font-weight: 700; font-size: 1.05rem;
  font-family: 'Source Serif Pro', serif;
}

/* Hero side card (Splashtop) — same outer styling as v1.0.0's hero-card */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.hero-card-row { display: flex; align-items: center; gap: 10px; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2bd47a; box-shadow: 0 0 0 4px rgba(43,212,122,0.18);
  flex-shrink: 0;
}
.status-label { color: #cfe6cf; font-size: 0.95rem; font-weight: 600; }
.hero-card-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 16px 0; }
.hero-card-list { list-style: none; margin: 0; padding: 0; }
.hero-card-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; color: #d6dff0; font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.hero-card-list li:last-child { border-bottom: 0; }
.hc-check {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(43, 212, 122, 0.15);
  color: #2bd47a;
  display: inline-flex; align-items: center; justify-content: center;
}
.hc-text { color: #d6dff0; }
.hero-card-foot {
  margin: 16px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: #a8b4cf;
}
.hero-card-foot a { color: var(--cyan-300); font-weight: 600; white-space: nowrap; }

/* Section primitives */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header .eyebrow { color: var(--royal-500); }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; }

/* Services */
.services { padding: 96px 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--navy-800), var(--cyan-400));
  opacity: 0; transition: opacity 0.18s;
}
.service-card:hover {
  border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--tint-2); color: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); }
.service-points {
  list-style: none; padding: 0; margin: 16px 0 0;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.service-points li {
  position: relative; padding-left: 22px; margin-bottom: 6px;
  font-size: 0.93rem; color: var(--ink-soft);
}
.service-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--cyan-400); border-radius: 2px;
  transform: rotate(45deg);
}

/* Software & products */
.software { padding: 96px 0; background: var(--tint); border-top: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  /* Full-bleed: all five cards span the viewport, not just the 1180px
     container. Safe because body has overflow-x: hidden. */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50vw);
  padding: 4px clamp(24px, 5vw, 72px); /* page gutter; 4px top leaves room for hover lift */
}
/* Wrap gracefully on narrower screens — never scroll sideways. */
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.product-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--navy-800), var(--cyan-400));
  opacity: 0; transition: opacity 0.18s;
}
.product-card:hover {
  border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--tint-2); color: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.product-card h3 { margin-bottom: 10px; }
.product-card p { color: var(--ink-soft); }
.product-tags {
  list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.product-tags li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--royal-600);
  background: var(--tint-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.product-link {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--royal-500);
}
.product-link svg { transition: transform 0.18s; }
.product-link:hover { color: var(--navy-800); }
.product-link:hover svg { transform: translate(2px, -2px); }

/* Partner ticker */
.partners {
  padding: 56px 0 64px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.partners-eyebrow {
  text-align: center;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  margin: 0 0 36px;
}
.partner-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partner-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: partner-scroll 36s linear infinite;
}
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-ticker:hover .partner-track { animation-play-state: paused; }
.partner-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.25s, filter 0.25s;
  white-space: nowrap;
}
.partner-logo:hover { opacity: 1; filter: grayscale(0); }
/* Vendor-specific hint colours for when text logos are still in use.
   Swap each <span class="partner-logo" data-vendor="..."> for an
   <img src="path/to/logo.png" alt="Vendor name"> when you have real assets. */
.partner-logo[data-vendor="microsoft"]   { color: #00a4ef; }
.partner-logo[data-vendor="yeastar"]     { color: #ee7c1d; }
.partner-logo[data-vendor="splashtop"]   { color: #ed1c24; }
.partner-logo[data-vendor="cybercentriq"]{ color: #6b46c1; }
.partner-logo[data-vendor="cybertec"]    { color: #0099cc; }
.partner-logo[data-vendor="voiceflex"]   { color: #e51b3d; }
.partner-logo[data-vendor="chess"]       { color: #00b3a4; }
.partner-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; transform: none; flex-wrap: wrap; justify-content: center; }
}

/* About */
.about {
  padding: 96px 0; background: var(--tint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { max-width: 18ch; }
.about-copy p { color: var(--ink-soft); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: 'Source Serif Pro', serif; font-weight: 700;
  font-size: 2.2rem; color: var(--navy-800); line-height: 1; margin-bottom: 6px;
}
.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* Contact */
.contact { padding: 96px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contact-copy h2 { max-width: 22ch; }
.contact-copy p { color: var(--ink-soft); }
.contact-phone {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Source Serif Pro', serif; font-weight: 700;
  font-size: 1.75rem; color: var(--navy-800);
  padding: 14px 22px; border: 2px solid var(--navy-800); border-radius: var(--radius);
  margin: 14px 0 10px; transition: background 0.15s, color 0.15s;
}
.contact-phone:hover { background: var(--navy-800); color: #fff; }
.contact-meta { color: var(--muted); font-size: 0.92rem; }
.contact-card {
  background: var(--navy-800); color: #e7eefc;
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,159,229,0.35), transparent 70%);
  pointer-events: none;
}
.contact-card h3 { color: #fff; margin-bottom: 12px; position: relative; }
.contact-card p { color: #cdd7ec; position: relative; }
.muted-small { font-size: 0.88rem; color: #a8b4cf !important; }
.contact-card-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 22px 0; position: relative; }
.contact-list { list-style: none; margin: 0; padding: 0; position: relative; }
.contact-list li {
  display: grid; grid-template-columns: 80px 1fr; gap: 14px;
  padding: 8px 0; align-items: baseline;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong {
  color: #94a4c4; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
}
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--cyan-300); }

/* Footer */
.site-footer { background: var(--navy-900); color: #b6c3dd; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .custom-logo-link { display: inline-block; }
.footer-brand .custom-logo,
.footer-brand img {
  display: block; height: auto !important; width: auto !important;
  max-height: 72px; max-width: 320px; object-fit: contain;
}
.footer-tag { color: #94a4c4; margin-top: 14px; max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 {
  color: #fff; font-family: 'Inter', sans-serif; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b6c3dd; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0; color: #6e7d9c; font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
.footer-copy { font-size: 0.85rem; }
.footer-legal { color: #5b6783; line-height: 1.6; max-width: 100%; }
.footer-legal .legal-placeholder {
  color: #94a4c4;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  padding: 1px 6px; border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78em;
}

/* Fallback */
.fallback-article { padding: 80px 0; max-width: 720px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto auto; gap: 14px; }
  .main-navigation { display: none; }
  .hero { padding: 64px 0 72px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 18px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .support-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .support-bar-msg { text-align: center; }
  .support-bar-buttons { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .header-phone span { display: none; }
  .hero-actions .btn { width: 100%; }
  .contact-phone { font-size: 1.35rem; padding: 12px 16px; }
}
