/* ============================================================
   Publishers Computer Corporation — Modern Redesign
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:        #0c1a35;
  --navy-mid:    #152347;
  --blue:        #1d4ed8;
  --blue-hover:  #1e40af;
  --blue-pale:   #eff6ff;
  --blue-border: #bfdbfe;
  --accent:      #0ea5e9;

  --text:        #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;

  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12);

  --radius:      8px;
  --radius-lg:   14px;

  --nav-h:       68px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--text-body); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 3.5px;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.nav-logo-sub {
  font-size: .65rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-menu a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-menu a.nav-cta {
  color: var(--white);
  background: var(--blue);
  padding: .45rem 1rem;
}
.nav-menu a.nav-cta:hover {
  background: var(--blue-hover);
}
.nav-menu a.nav-external::after {
  content: ' ↗';
  font-size: .75em;
  opacity: .6;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-dropdown-toggle::after {
  content: '▾';
  font-size: .75em;
  opacity: .7;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  color: var(--text-body);
  font-size: .875rem;
  padding: .5rem .85rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 500;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-mobile a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav-mobile .mobile-section-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .75rem .75rem .25rem;
  margin-top: .5rem;
}
.nav-mobile a.nav-cta {
  background: var(--blue);
  color: var(--white);
  margin-top: .5rem;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a6e 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(29,78,216,.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.page-hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: .75rem;
}
.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.15), 0 0 0 1px rgba(29,78,216,.3);
}
.btn-primary:hover { background: var(--blue-hover); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-inline: .25rem;
}
.btn-ghost:hover { color: var(--blue-hover); gap: .75rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.card h3 { font-size: 1.05rem; margin-top: .25rem; }
.card p { font-size: .9rem; color: var(--text-muted); }
.card-link {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .3rem;
  padding-top: .5rem;
}
.card-link::after { content: '→'; transition: margin .2s; }
.card:hover .card-link::after { margin-left: .25rem; }
.card-link:hover { color: var(--blue-hover); }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .75rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}
.feature-item span { font-size: .9rem; color: var(--text-body); }

/* ============================================================
   STAT BAR
   ============================================================ */
.stat-bar {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}
.stat-bar-inner {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
  flex-wrap: wrap;
}
.stat-bar-item strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-bar-item span {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: .4rem;
  font-weight: 500;
}

/* ============================================================
   INTRO / CONTENT SECTIONS
   ============================================================ */
.content-block {
  max-width: 760px;
  margin: 0 auto;
}
.content-block h2 { margin-bottom: 1rem; }
.content-block p { margin-bottom: 1rem; font-size: 1.025rem; }
.content-block p:last-child { margin-bottom: 0; }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.split-section h2 { margin-bottom: 1rem; }
.split-section p { margin-bottom: .85rem; font-size: 1rem; }

/* Section headings */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   CALLOUT / CTA BLOCKS
   ============================================================ */
.callout {
  background: var(--blue-pale);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.callout h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.callout p { color: var(--text-muted); margin-bottom: 1.5rem; }

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h3 { font-size: 1.4rem; color: var(--white); margin-bottom: .5rem; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
  width: 36px; height: 36px;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-row-label { font-size: .7rem; color: var(--text-muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .15rem; }
.contact-row-value { font-size: .95rem; color: var(--text); font-weight: 500; }
.contact-row-value a { color: var(--blue); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 100px;
}
.badge-blue  { background: var(--blue-pale); color: var(--blue); border: 1px solid var(--blue-border); }
.badge-navy  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.badge-group { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}
.service-intro p {
  font-size: 1.05rem;
  margin-bottom: .85rem;
}
.service-features-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* History timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem; top: 6px;
  width: 12px; height: 12px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-year {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.timeline-item h3 { margin-bottom: .35rem; font-size: 1rem; }
.timeline-item p { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-menu, .nav-dropdown { display: none; }
  .nav-hamburger { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; justify-content: center; }
  .stat-bar-inner { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}
