/* ==============================================
   shared.css — DigPatent Shared Header & Footer
   Loaded by: patent.php, patent_list.php,
              inquiry.php, report.php
   Self-contained — no dependency on home.css
   ============================================== */

/* Box-sizing reset (replaces 01-reset.css for these pages) */
*, *::before, *::after { box-sizing: border-box; }

/* Header height token — resolves var(--header-height) in page CSS */
:root { --header-height: 4rem; }

/* Body offset for fixed header (inquiry.php fallback; overridden by patent.css/report.css) */
body { padding-top: 64px; }

/* ── SITE HEADER ───────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: 64px;
  background: rgb(15, 31, 61);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  width: 120px;
  height: 30px;
  display: block;
}

/* Header search */
.header-search { flex: 1; max-width: 480px; }
.header-search form { position: relative; }
.header-search input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 40px 0 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.38); }
.header-search input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(200, 150, 12, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.10);
}
.header-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  line-height: 1;
  display: flex;
}

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.sister-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(200, 150, 12, 0.8);
  border: 1px solid rgba(200, 150, 12, 0.35);
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sister-link:hover {
  color: #c8960c;
  border-color: #c8960c;
  background: rgba(200, 150, 12, 0.07);
}

/* ── SITE FOOTER ───────────────────────────── */
.site-footer {
  background: #0a1628;
  padding: 80px 0 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand { flex: 0 0 auto; }
.footer-logo-img {
  width: 136px;
  height: 34px;
  display: block;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.52);
  max-width: 280px;
  line-height: 1.6;
}
.footer-nav-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-list li strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 600;
}
.footer-nav-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: rgba(255, 255, 255, 0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}
.footer-sister {
  font-size: 13px;
  color: rgba(200, 150, 12, 0.85);
}
.footer-sister a {
  color: rgba(200, 150, 12, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-sister a:hover { color: #c8960c; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .header-search { display: none; }
  .nav-link { display: none; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
