@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --bg: #06080d;
  --bg-2: #0b1120;
  --bg-3: #111827;
  --panel: rgba(255,255,255,0.04);
  --panel-strong: rgba(255,255,255,0.06);
  --line: rgba(212,175,55,0.18);
  --line-soft: rgba(255,255,255,0.08);
  --text: #f5f1e8;
  --muted: #b7bfd0;
  --gold: #d4af37;
  --gold-soft: #f0d77a;
  --blue: #6fb5ff;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
  --radius: 22px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(212,175,55,0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(111,181,255,0.12), transparent 22%),
    linear-gradient(180deg, #05070b 0%, #090d14 35%, #0b111b 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; transition: .2s ease; }
a:hover { color: #fff1b8; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.small { padding: 60px 0; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(212,175,55,0.06);
  color: #f2df9c;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow::before, .kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}
h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}
h1 { font-size: clamp(42px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; }
p { margin: 0 0 16px; }
.lead {
  font-size: clamp(18px, 2vw, 23px);
  color: #e7e0d1;
  max-width: 780px;
}
.muted, p.muted { color: var(--muted); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, #b98a16, #f0d77a);
  color: #141821;
  box-shadow: 0 18px 40px rgba(185,138,22,0.24);
}
.btn.primary:hover { color: #05070b; transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: rgba(255,255,255,0.1);
}
.btn.secondary:hover { background: rgba(255,255,255,0.07); color: white; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5,7,11,0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .nav {
  width: min(calc(100% - 40px), 1280px);
  min-height: 104px;
  display: grid;
  grid-template-columns: clamp(300px, 31vw, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: white;
  width: 100%;
  min-width: 0;
}
.brand img {
  display: block;
  width: auto;
  height: clamp(64px, 6vw, 76px);
  max-width: 100%;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a {
  color: #e9edf7;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  white-space: nowrap;
}
.nav-links .btn { min-height: 44px; padding-inline: 18px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 72px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,7,11,0.25), transparent 35%, transparent 65%, rgba(5,7,11,0.18));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr);
  gap: 28px;
  align-items: start;
}
.hero-panel, .content-card, .service-card, .trust-card, .faq-item, .blog-card, .admin-card, .editor-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy h1 { max-width: 830px; }
.hero-copy .lead { margin-top: 20px; }
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(212,175,55,0.18);
  background:
    linear-gradient(180deg, rgba(212,175,55,0.08), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.02);
}
.hero-quote {
  padding: 18px 0 0;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #dce6f2;
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
#blog-grid.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: start;
}
.stat-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-box strong { display: block; font-size: 28px; margin-bottom: 4px; color: #fff4c7; }
.trust-card, .content-card, .service-card, .faq-item, .blog-card { padding: 26px; }
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 20px;
  color: #fff2ba;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(111,181,255,0.1));
  border: 1px solid rgba(212,175,55,0.2);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: #e8edf6;
}
.check-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-soft);
  font-size: 12px;
}
.signature-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #cfdae8;
}
.signature-line::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.cta-band {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(212,175,55,0.18);
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}
.faq-item details { width: 100%; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { margin-top: 16px; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212,175,55,0.08);
  color: #f2df9c;
  font-size: 12px;
  border: 1px solid rgba(212,175,55,0.16);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #05070b;
}
.blog-card img.is-logo,
.blog-post .cover.is-logo {
  object-fit: contain;
  padding: 18px;
  background: radial-gradient(circle at top left, rgba(111,181,255,0.10), transparent 28%), #05070b;
}
.blog-meta {
  color: #d7c176;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.blog-post { max-width: 900px; }
.blog-post .cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 24px;
  margin: 22px 0 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 10px;
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: #e9edf7;
  font-weight: 700;
}
.legal-nav a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.legal-nav a.active {
  background: linear-gradient(135deg, rgba(185,138,22,0.30), rgba(240,215,122,0.18));
  border-color: rgba(212,175,55,0.34);
  color: #fff3c4;
  box-shadow: 0 12px 30px rgba(185,138,22,0.14);
}
.blog-post .post-content h2,
.blog-post .post-content h3 {
  margin-top: 34px;
  margin-bottom: 12px;
}
.blog-post .post-content ul,
.blog-post .post-content ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.blog-post .post-content p,
.blog-post .post-content li { color: #d7deea; font-size: 18px; }
.site-footer {
  padding: 54px 0 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.18));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr 1.05fr;
  gap: 28px;
}
.footer-links, .footer-backlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}
.footer-links a, .footer-backlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #f0e4bf;
  border-bottom: 1px solid rgba(212,175,55,0.18);
  font-size: 14px;
}
.footer-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.contact-box { display: grid; gap: 12px; }
.admin-wrap {
  min-height: 100vh;
  padding: 30px 0 60px;
  background: linear-gradient(180deg, #05070b, #0a1019);
}
.admin-card { padding: 24px; margin-bottom: 22px; }
.editor-item { padding: 18px; }
.admin-grid { display: grid; gap: 18px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type="text"], input[type="url"], input[type="date"], input[type="password"], textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { color: #dde7f8; }
.small-text, .inline-code { color: var(--muted); }
.inline-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 600;
}
.notice.success { background: rgba(53,179,120,0.12); border: 1px solid rgba(53,179,120,0.26); color: #bdf2d8; }
.notice.error { background: rgba(231,93,93,0.12); border: 1px solid rgba(231,93,93,0.26); color: #ffd2d2; }
.premium-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}
@media (max-width: 960px) {
  .site-header {
    background: rgba(5,7,11,0.92);
  }
  .site-header .nav {
    width: min(calc(100% - 28px), var(--container));
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    padding: 14px 0 16px;
  }
  .brand {
    justify-content: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a:not(.btn) {
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .hero,
  .section {
    scroll-margin-top: 130px;
  }
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    gap: 24px;
  }
  .hero-panel,
  .cta-band,
  .trust-card,
  .content-card,
  .service-card,
  .faq-item,
  .blog-card {
    padding: 24px;
  }
  .footer-grid {
    gap: 22px;
  }
}
@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 64px 0; }
  .section.small { padding: 46px 0; }
  .hero { padding: 44px 0 52px; }
  .brand img {
    height: clamp(56px, 8vw, 66px);
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a:not(.btn) {
    min-height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }
  .nav-links .btn {
    min-height: 42px;
    padding-inline: 16px;
  }
  .hero-copy .lead,
  .blog-post .post-content p,
  .blog-post .post-content li {
    font-size: 17px;
  }
  .hero-panel,
  .cta-band,
  .trust-card,
  .content-card,
  .service-card,
  .faq-item,
  .blog-card,
  .contact-box {
    padding: 22px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-box {
    padding: 16px;
  }
  .legal-nav {
    gap: 10px;
    margin: 22px 0 12px;
  }
  .legal-nav a {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
  .footer-links,
  .footer-backlinks {
    gap: 8px 12px;
  }
  #blog-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(34px, 12vw, 52px); }
  h2 { font-size: clamp(28px, 10vw, 42px); }
  .lead { font-size: 18px; }
  .container { width: min(calc(100% - 22px), var(--container)); }
  .site-header {
    position: sticky;
  }
  .nav {
    gap: 12px;
    padding: 12px 0 14px;
  }
  .brand {
    flex-direction: row;
    align-items: center;
  }
  .brand img {
    height: clamp(46px, 10vw, 56px);
    width: auto;
    max-width: min(100%, 300px);
  }
  .nav-links {
    align-items: stretch;
    gap: 8px;
  }
  .nav-links a:not(.btn) {
    justify-content: center;
    width: 100%;
    min-height: 42px;
  }
  .btn,
  .nav-links .btn,
  .legal-nav a {
    width: 100%;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero-panel,
  .cta-band,
  .trust-card,
  .content-card,
  .service-card,
  .faq-item,
  .blog-card,
  .contact-box {
    padding: 20px;
    border-radius: 20px;
  }
  .btn-row {
    gap: 10px;
  }
  .hero-stats,
  .grid-2,
  .grid-3,
  .trust-strip,
  #blog-grid.grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-box strong {
    font-size: 24px;
  }
  .blog-post .cover {
    border-radius: 18px;
    margin: 18px 0 22px;
  }
  .blog-post .post-content p,
  .blog-post .post-content li {
    font-size: 16px;
  }
  .footer-links,
  .footer-backlinks,
  .legal-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-links a,
  .footer-backlinks a {
    width: 100%;
    min-height: 38px;
  }
  }

/* Header logo uses the full STM Global Solutions mark without extra text in the header. */
.blog-card img.is-logo {
  aspect-ratio: 16/7.8;
  object-fit: contain;
  object-position: center;
  padding: 24px 28px;
  background:
    radial-gradient(circle at left center, rgba(111,181,255,0.14), transparent 26%),
    radial-gradient(circle at right center, rgba(212,175,55,0.09), transparent 30%),
    linear-gradient(180deg, rgba(9,12,19,0.98), rgba(5,7,11,0.96));
  border: 1px solid rgba(255,255,255,0.10);
}

.blog-post .cover.is-logo {
  width: min(100%, 760px);
  aspect-ratio: 16/6.8;
  object-fit: contain;
  object-position: center;
  padding: 28px 38px;
  margin: 22px auto 28px;
  background:
    radial-gradient(circle at left center, rgba(111,181,255,0.14), transparent 28%),
    radial-gradient(circle at right center, rgba(212,175,55,0.10), transparent 32%),
    linear-gradient(180deg, rgba(9,12,19,0.98), rgba(5,7,11,0.96));
}

@media (max-width: 820px) {
  .blog-card img.is-logo {
    aspect-ratio: 16/8.4;
    padding: 20px 22px;
  }

  .blog-post .cover.is-logo {
    width: min(100%, 680px);
    aspect-ratio: 16/7.6;
    padding: 22px 26px;
  }
}

@media (max-width: 560px) {
  .blog-card img.is-logo {
    aspect-ratio: 16/9;
    padding: 16px 18px;
  }

  .blog-post .cover.is-logo {
    width: 100%;
    aspect-ratio: 16/9.2;
    padding: 18px 18px;
  }
}
