/* =========================
   Base / Reset
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background-color: #f9fafb;
}

body {
  margin: 0;
  padding: 0;
}

/* =========================
   Typography
========================= */

h1, h2, h3 {
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #111827;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.small-note {
  font-size: 0.9rem;
  color: #4b5563;
}

/* =========================
   Header / Navigation
========================= */

header {
  padding: 1.25rem 1rem;
  margin: 0 0 2rem 0;
  background-color: #1f6fb2;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   Brand / Logo (UPGRADE)
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
}

.brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

nav a.active {
  border-bottom: 3px solid #ffffff;
  padding-bottom: 0.25rem;
}

nav a:hover {
  color: #e5e7eb;
}

/* =========================
   Sections
========================= */

section {
  margin-bottom: 4rem;
  padding: 0 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 4rem 1rem 3rem;
}

.hero.small {
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-logo {
  max-width: 700px;
  width: 100%;
  height: 350px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.highlight {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.cta-section {
  background-color: #1d4ed8;
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 0.75rem;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #e5e7eb;
}

/* =========================
   Buttons / Links (UPGRADE colors)
========================= */

a {
  color: #1f6fb2; /* upgraded brand blue */
}

a:hover {
  text-decoration: underline;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background-color: #1f6fb2; /* upgraded brand blue */
  color: #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cta:hover {
  background-color: #155a8a; /* upgraded hover blue */
  text-decoration: none;
}

/* Optional: if you ever use <button class="cta"> */
button.cta {
  font: inherit;
}

/* =========================
   Cards / Grids
========================= */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

/* =========================
   Forms
========================= */

form {
  max-width: 700px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  margin-bottom: 1rem;
}

input,
select,
textarea {
  margin-top: 0.4rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1f6fb2; /* upgraded brand blue */
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.15);
}

textarea {
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}

.checkbox input {
  margin-right: 0.5rem;
}

/* =========================
   Footer
========================= */

footer {
  background-color: #1f2933;
  color: #e5e7eb;
  padding: 3rem 1rem 1rem;
  margin: 3rem 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-column p {
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #9ca3af;
}

/* =========================
   Responsive Tweaks
========================= */

@media (max-width: 600px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
