:root {
  --brand: #2b5876;
  --accent: #ffb400;
  --accent-dark: #ff9800;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
  background: #f9fafb;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------------- NAVBAR ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--brand);
}

.brand .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 20px;
  background: var(--accent);
  color: #111;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* ---------------- HERO ---------------- */
.hero {
  background: linear-gradient(rgba(11, 38, 67, 0.65), rgba(11, 38, 67, 0.65)),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}

.hero-content {
  max-width: 740px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  background: var(--accent);
  color: #111;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* ---------------- SECTIONS ---------------- */
.section {
  padding: 60px 20px; /* reduced from 80px for less white space */
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.8rem;
  color: var(--brand);
}

/* ---------------- GRID ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------------- DEFAULT CARD (Features) ---------------- */
.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s;

  aspect-ratio: 1 / 1; /* square for features */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------------- ABOUT CARDS ---------------- */
#about .card {
  aspect-ratio: auto;   /* remove square */
  padding: 16px;        /* less padding */
  border-radius: 8px;
  display: block;
  text-align: left;
}

#about .card i {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--accent);
}

#about .card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--brand);
}

#about .card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------------- HOW IT WORKS ---------------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-around;
}

.step {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 16px;
}

.step span {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 56px;
  margin-bottom: 12px;
  transition: 0.3s;
}

.step:hover span {
  background: var(--accent);
  color: #111;
}

/* ---------------- CONTACT ---------------- */
.contact-section .contact-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 88, 118, 0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

/* ---------------- FOOTER ---------------- */
/* Footer */
.footer {
  background: #03051b;
  color: #ddd;
  padding: 60px 20px 30px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-about p {
  color: #aaa;
  line-height: 1.6;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: #0077cc;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: #0077cc;
  text-decoration: none;
  margin-left: 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}


/* ---------------- RESPONSIVE NAV ---------------- */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle-label {
    display: block;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: #111827;
    height: 2px;
    width: 24px;
    border-radius: 2px;
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-toggle:checked ~ .nav-cta {
    display: inline-block;
    position: absolute;
    top: calc(64px + 100%);
    right: 20px;
    margin-top: 12px;
  }
}
