/* Base styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #1f2937; /* gray-800 */
  background: #ffffff;
}
a { text-decoration: none; color: #21409A; } /* Hytera-esque deep blue */
a:hover { text-decoration: underline; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 100px; /* visible and balanced */
  width: auto;
  display: block;
}
.brand .brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827; /* gray-900 */
  letter-spacing: 0.2px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 10px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  transition: transform 0.05s ease, background 0.2s ease;
}
.nav a.active,
.nav a:hover {
  background: #21409A; /* deep blue */
  color: #ffffff;
  border-color: #21409A;
  transform: translateY(-1px);
}

/* Hero / Banner */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 10px;
}
.hero img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.25rem);
  color: #111827;
}
.hero p {
  margin: 0;
  color: #4b5563; /* gray-600 */
}

/* Sections */
.section {
  padding: 36px 0;
}
.section h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #111827;
}
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* Contact form */
form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
label {
  font-weight: 600;
  color: #111827;
}
input, textarea, button {
  font: inherit;
}
input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 10px;
  background: #ffffff;
}
textarea { min-height: 140px; resize: vertical; }
button {
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid #21409A;
  background: #21409A;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
}
button:hover { filter: brightness(0.95); }

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 22px 0;
  color: #6b7280; /* gray-500 */
  font-size: 0.95rem;
}

/* Utilities */
.muted { color: #6b7280; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6; /* gray-100 */
  color: #374151;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav a { padding: 10px 12px; }
  .brand .brand-text { display: none; } /* keep header compact on small screens */
}

/* ------------------- Mobile Responsive Enhancements ------------------- */

/* Make images scale properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container adjusts automatically */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section stacks properly */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
}

/* Navigation responsive */
.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  padding: 8px 12px;
}

.nav a.active {
  font-weight: bold;
}

/* Grid section */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  border-radius: 4px;
}

/* ------------------- Mobile Breakpoints ------------------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  center img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
}

/* ------------------- Extra Form Styling ------------------- */
form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form div {
  display: flex;
  flex-direction: column;
}

form label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

form input,
form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #21409A;
  box-shadow: 0 0 0 2px rgba(33, 64, 154, 0.2);
}

form button {
  margin-top: 12px;
  background: #21409A;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background: #1b3581;
}

/* Mobile spacing improvement */
@media (max-width: 480px) {
  form {
    padding: 16px;
  }

  form input,
  form textarea {
    font-size: 0.95rem;
  }

  form button {
    font-size: 0.95rem;
    padding: 10px;
  }
}
