/* ------------------------------
   GLOBAL RESET & BASE
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fb;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ------------------------------
   LAYOUT
--------------------------------*/
.results-section {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.results-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #003366;
}

/* ------------------------------
   CARDS
--------------------------------*/
.result-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid #e0e5eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.result-card:hover {
  border-color: #003366;
  box-shadow: 0 4px 8px rgba(0,51,102,0.1);
  transform: translateY(-2px);
}

/* ------------------------------
   GRID
--------------------------------*/
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ------------------------------
   TEXT ELEMENTS
--------------------------------*/
.result-company-name,
.result-officer-name {
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
}

.result-company-meta,
.result-officer-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.text-muted {
  color: #888;
  font-size: 0.9rem;
}

.loading-text {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  color: #666;
}

/* ------------------------------
   STATUS PILL
--------------------------------*/
.status-pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #e8f0fa;
  color: #003366;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ------------------------------
   HEADER (Company Header)
--------------------------------*/
.company-header {
  background: linear-gradient(135deg, #003366, #004d99);
  color: white;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

.company-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.company-header .company-number {
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #003366 0%, #004d99 100%);
  color: white;
  border-radius: 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-weight: 300;
}

/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e5eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003366;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #003366;
}

/* FOOTER */
.site-footer {
  background: #f8f9fb;
  color: #555;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e0e5eb;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

/* SEARCHBOX */
.search-ui {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 1px solid #d0d7e0;
  border-radius: 8px;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1), 0 2px 8px rgba(0,0,0,0.1);
}

.autocomplete {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d0d7e0;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.autocomplete-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
  color: #333;
}

.autocomplete-item:hover {
  background: #f8f9fb;
  color: #003366;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

/* HOMEPAGE */
.homepage {
  flex: 1;
}

/* Center the entire site content */
.site-header-inner,
.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
