:root {
  --navy: #1a2332;
  --emerald: #1a7431;
  --emerald-dark: #0d5a24;
  --gold: #c9981d;
  --gold-light: #fdf8e3;
  --bg: linear-gradient(180deg,#faf9f7 0%,#f0ede6 100%);
  --card: #ffffff;
  --text: #1f2937;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e8e5e0;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0,0,0,.055), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
  --transition: all .2s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---- Mobile hamburger nav ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.navbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}
.navbar-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar-toggle span {
  display: block; width: 22px; height: 2.5px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: var(--transition);
}

.logo, .logo-img {
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.logo span { color: var(--emerald); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { color: var(--text-mid); font-weight: 500; font-size: 0.88rem; text-decoration: none; transition: var(--transition); }
.nav-links a:hover { color: var(--emerald); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--emerald); color: #fff; border: 2px solid var(--emerald); }
.btn-primary:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--emerald); border: 2px solid var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: #fff; }

.hero {
  background: linear-gradient(140deg,#1a2332 0%,#243447 30%,#1e3a36 60%,#1a2332 100%);
  color: #fff; padding: 48px 16px; text-align: center; position: relative;
}
.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-left {
  flex: 0 0 200px;
}
.hero-right {
  flex: 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.25;
}
.hero img.logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.stats-bar {
  display: flex; justify-content: center; gap: 32px;
  margin: -24px auto 32px; background: #fff; padding: 16px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 560px; border: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--emerald); }
.stat-item span { font-size: 0.72rem; color: var(--text-mid); text-transform: uppercase; font-weight: 600; }

.search-container { margin-bottom: 1.5rem; display: flex; gap: 0.75rem; justify-content: center; }
.search-box {
  display: flex; gap: 8px; width: 100%; max-width: 560px;
}
.search-box input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 0.92rem;
}
.search-box input:focus { outline: none; border-color: var(--emerald); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px;
  transition: var(--transition); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: block;
}
.card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
  border-color: var(--emerald);
}
.card h3 { font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 0.85rem; color: var(--text-mid); margin: 0 0 4px 0; }

footer {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 36px 16px; margin-top: 40px; text-align: center;
  font-size: 0.82rem;
}
footer img.logo {
  display: block; margin: 0 auto;
  width: 100%; max-width: 280px; height: auto;
}

/* ---- Desktop (>= 1024px) ---- */
@media (min-width: 1024px) {
  .hero-right {
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}

/* ---- Tablet (768-1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .hero h1 { font-size: 2.2rem; }
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
  .navbar-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
    padding: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    display: block; padding: 12px 20px;
    font-size: 0.9rem; border-radius: 0;
  }
  .hero { padding: 36px 12px; }
  
  /* Mobile: Center logo+text, buttons centered below */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }
  .hero-top-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: 100%;
  }
  .hero-left {
    flex: 0 0 80px;
  }
  .hero-right {
    flex: 1;
    text-align: left;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  .hero-right h1 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    line-height: 1.1;
    text-align: left;
  }
  .hero-right p {
    font-size: 0.7rem;
    margin-bottom: 0;
    line-height: 1.1;
    text-align: left;
  }
  .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  .stats-bar {
    flex-wrap: wrap; gap: 16px; max-width: 100%;
    margin: -20px auto 24px; padding: 14px;
  }
  .stat-item strong { font-size: 1.15rem; }
  .stat-item { min-width: 80px; }
  .search-box { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 14px; }
}
