/* KeyRD Stylesheet - Mobile Optimized Modern Layout */

:root {
  --primary: #003f8a;
  --accent: #00b3a4;
  --text: #1a1a1a;
  --background: #ffffff;
  --muted: #666;
  --radius: 12px;
  --font: 'Segoe UI', sans-serif;
  --banner-bg: #f0f4f8;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, ol, nav, header, footer, main {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

/* HEADER */
header.main-header {
  background-color: #ffffff;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.main-logo {
  height: 128px;
  width: auto;
}

/* NAVIGATION */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.3s;
}

nav a:hover,
nav a.active {
  background: rgba(0, 63, 138, 0.1);
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: white;
}

.hero img {
  max-width: 240px;
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* MAIN */
main {
  padding: 1.5rem;
  margin-top: 0.5rem;
}

main p {
  margin: 0.5rem 0 1rem;
}

main p:first-of-type {
  margin-top: 0.25rem;
}

main h1,
main h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

/* BUTTONS */
a.button {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.3s;
}

a.button:hover {
  background: #002d6b;
}

/* SECTION */
section {
  padding: 2rem 1rem;
  background: #fff;
}

section h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.step {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.step img {
  max-width: 64px;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* FOOTER SECTION */
.footer-section {
  background: var(--banner-bg);
  padding: 4rem 2rem;
  text-align: center;
}

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

.footer-section img {
  width: 160px;
  margin: 0 auto 1.5rem;
  display: block;
}

.footer-section p {
  font-size: 1rem;
  color: var(--muted);
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

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

/* ✅ RESPONSIVE HEADER TWEAK FOR MOBILE */
@media (max-width: 767px) {
  header.main-header {
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    justify-content: center;
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  nav {
    justify-content: center;
    margin-top: 0;
  }
}

/* MEDIA QUERIES FOR LARGER SCREENS */
@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    margin-top: 0;
  }

  .steps {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .step {
    max-width: 280px;
  }
}
