/* ============================================================
   CAPITOL CITY DESIGN — Shared Stylesheet
   Applies to all inner pages (company, portfolio, contact, legal)
   Homepage (index.html) has its own inline styles for the hero.
   ============================================================ */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  background: #f2f4f7;
  color: #2d2d2d;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: #4a7ca5; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

/* ----- SKIP NAV ----- */
.skip-nav {
  position: absolute; top: -100px; left: 0;
  background: #000; color: #fff; padding: 8px 14px;
  z-index: 9999; font-size: 13px;
}
.skip-nav:focus { top: 0; }

/* ============================================================
   HEADER — solid dark, matches homepage nav language
   ============================================================ */
header {
  background: #1a2e3f;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img { height: 38px; width: auto; }
.header-logo-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.header-logo-text span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* NAV — pipe-separated, matches homepage */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}
nav ul li { display: flex; align-items: center; }
nav ul li + li::before {
  content: '|';
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  margin: 0 2px;
}
nav ul li a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  transition: color 0.15s;
}
nav ul li a:hover,
nav ul li a.active { color: #fff; text-decoration: none; }

.nav-mobile-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 3px;
}

/* ============================================================
   PAGE HERO BANNER — sits just below header on inner pages
   ============================================================ */
.page-hero {
  background: #1a2e3f;
  padding: 36px 40px 32px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,124,165,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-hero .breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: none; }

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.content-outer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 40px 48px;
}
.two-col {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.main-col { flex: 1; min-width: 0; }
.sidebar-col { flex: 0 0 300px; }

/* ============================================================
   PANELS
   ============================================================ */
.card {
  background: #fff;
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #e4e8ed;
}
.card:last-child { margin-bottom: 0; }
.card h2 {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a2e3f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a7ca5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2d4f6e;
  margin: 20px 0 10px;
}
.card h3:first-child { margin-top: 0; }
.card p { font-size: 14px; color: #4a4a4a; margin-bottom: 12px; line-height: 1.75; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; padding: 0; }
.card ul li {
  font-size: 14px;
  color: #4a4a4a;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before {
  content: '—';
  color: #4a7ca5;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #e4e8ed;
  overflow: hidden;
}
.widget-header {
  background: #1a2e3f;
  padding: 12px 18px;
}
.widget-header h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.widget-body { padding: 18px; }
.widget-body p { font-size: 13px; color: #555; margin-bottom: 8px; line-height: 1.6; }
.widget-body p:last-child { margin-bottom: 0; }
.widget-body a { color: #4a7ca5; font-size: 13px; }
.widget-body ul { list-style: none; }
.widget-body ul li {
  border-bottom: 1px solid #f0f2f5;
}
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: #2d4f6e;
  font-weight: 600;
  transition: color 0.15s, padding-left 0.15s;
}
.widget-body ul li a:hover {
  color: #4a7ca5;
  padding-left: 4px;
  text-decoration: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: #1a2e3f; color: #fff; }
.btn-primary:hover { background: #2d4f6e; color: #fff; text-decoration: none; }
.btn-accent { background: #4a7ca5; color: #fff; }
.btn-accent:hover { background: #3a6285; color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #1a2e3f;
  border: 2px solid #1a2e3f;
}
.btn-outline:hover { background: #1a2e3f; color: #fff; text-decoration: none; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.port-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid #e4e8ed;
  transition: box-shadow 0.2s, transform 0.2s;
}
.port-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); transform: translateY(-2px); }
.port-thumb { position: relative; overflow: hidden; }
.port-thumb img {
  width: 100%; height: 190px;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.port-item:hover .port-thumb img { transform: scale(1.05); }
.port-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(26,46,63,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.port-item:hover .port-thumb-overlay { opacity: 1; }
.port-thumb-overlay span {
  color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 7px 16px;
}
.port-caption { padding: 12px 14px; }
.port-caption h3 {
  font-size: 13px; font-weight: 700;
  color: #1a2e3f; margin-bottom: 3px;
}
.port-caption p { font-size: 11px; color: #888; margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 9000;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-header {
  width: 100%; max-width: 960px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.lightbox-title { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.lightbox-close {
  background: none; border: none; color: #888;
  font-size: 30px; cursor: pointer; line-height: 1; padding: 4px 8px;
  transition: color 0.15s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-stage {
  width: 100%; max-width: 960px;
  display: flex; align-items: center; justify-content: center; padding: 0 8px;
}
.lightbox-img-wrap { flex: 1; text-align: center; min-height: 200px; }
.lightbox-img-wrap img { max-height: 70vh; max-width: 100%; object-fit: contain; display: inline-block; }
.lb-btn {
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 34px; cursor: pointer; padding: 10px 14px; flex-shrink: 0;
  transition: background 0.15s; line-height: 1; border-radius: 3px;
}
.lb-btn:hover { background: rgba(255,255,255,0.18); }
.lightbox-thumbs {
  display: flex; gap: 6px; margin-top: 10px;
  padding: 0 16px; overflow-x: auto;
  max-width: 960px; width: 100%; scrollbar-width: thin;
}
.lightbox-thumbs img {
  height: 54px; width: 72px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; opacity: 0.5; flex-shrink: 0;
  transition: opacity 0.15s;
}
.lightbox-thumbs img.active,
.lightbox-thumbs img:hover { border-color: #4a7ca5; opacity: 1; }
.lightbox-counter { color: #666; font-size: 12px; margin-top: 6px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #1a2e3f; margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid #d0d6de; border-radius: 3px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px; color: #333;
  background: #fafbfc;
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #4a7ca5; background: #fff; outline: none; }
.form-group textarea { height: 140px; resize: vertical; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.consent-row label { font-size: 12px; color: #666; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-success {
  display: none; background: #e8f5e9; border: 1px solid #a5d6a7;
  color: #2e7d32; padding: 14px 18px; border-radius: 3px;
  font-size: 14px; margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #1a2e3f; color: #c8d0d8; padding: 40px 40px 0; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer h4 {
  font-size: 11px; font-weight: 700; color: #fff;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-transform: uppercase; letter-spacing: 0.08em;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; font-size: 13px; }
footer ul li a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
footer ul li a:hover { color: #fff; text-decoration: none; }
.footer-contact-p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 6px; line-height: 1.6; }
.footer-contact-p a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-contact-p a:hover { color: #fff; }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 0; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.synprism-credit { max-width: 1080px; margin: 0 auto; padding: 0 0 14px; text-align: right; }
.synprism-credit span { font-size: 11px; color: rgba(255,255,255,0.2); }
.synprism-credit a { color: rgba(255,255,255,0.3); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; color: #ccc; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; z-index: 9999; font-size: 12px; flex-wrap: wrap;
}
#cookie-banner a { color: #7ec8e3; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  font-size: 11px; font-weight: 700; padding: 7px 16px;
  border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em;
}
#cookie-accept { background: #4a7ca5; color: #fff; }
#cookie-decline { background: #444; color: #fff; }

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid #4a7ca5; outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  header { padding: 0 20px; }
  .content-outer { padding: 28px 20px 40px; }
  .page-hero { padding: 28px 20px 24px; }
  .two-col { flex-direction: column; }
  .sidebar-col { flex: none; width: 100%; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 32px 20px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #1a2e3f; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  nav ul.open { display: flex; }
  nav ul li::before { display: none; }
  nav ul li a { padding: 12px 24px; font-size: 13px; color: rgba(255,255,255,0.8); width: 100%; }
  .nav-mobile-btn { display: block; }
  .port-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
