/* CardGenie.ca — shared stylesheet */

/* =============================
   Reset & base
============================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f7f6f3;
  color: #1a1a1a;
  line-height: 1.6;
}

a {
  color: #1565c0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.section {
  padding: 60px 0;
}

.section--alt {
  background: #ffffff;
}

/* =============================
   Nav bar
============================= */
.nav {
  background: #ffffff;
  border-bottom: 1px solid #e0ddd8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1565c0;
  letter-spacing: -0.5px;
}

.nav__logo:hover {
  text-decoration: none;
  color: #0d47a1;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.nav__links a:hover {
  color: #1565c0;
  text-decoration: none;
}

/* =============================
   Hero / calculator section
============================= */
.hero {
  background: linear-gradient(135deg, #e3f0ff 0%, #f0f9f7 100%);
  padding: 56px 0 48px;
}

.hero__headline {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d253f;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero__sub {
  font-size: 1.1rem;
  color: #444;
  max-width: 580px;
  margin-bottom: 36px;
}

/* Calculator shell */
.calc {
  background: #ffffff;
  border: 1px solid #d6e4f7;
  border-radius: 12px;
  padding: 32px;
  max-width: 680px;
}

.calc__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 20px;
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.calc__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc__field input {
  width: 100%;
  border: 1px solid #c8d8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #f7faff;
  outline: none;
  transition: border-color 0.2s;
}

.calc__field input:focus {
  border-color: #1565c0;
  background: #fff;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn--primary {
  background: #1565c0;
  color: #fff;
}

.btn--primary:hover {
  background: #0d47a1;
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

/* Static result strip */
.calc__results {
  margin-top: 24px;
  border-top: 1px solid #e8eef7;
  padding-top: 20px;
}

.calc__results-label {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7faff;
  border: 1px solid #d6e4f7;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.card-result__name {
  font-weight: 700;
  color: #0d253f;
  font-size: 0.97rem;
}

.card-result__tagline {
  font-size: 0.85rem;
  color: #555;
  margin-top: 2px;
}

.card-result__badge {
  background: #e3f0e8;
  color: #1b5e20;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =============================
   Category grid
============================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid #e0ddd8;
  border-radius: 10px;
  padding: 24px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
  box-shadow: 0 4px 16px rgba(21,101,192,0.10);
  border-color: #b3cef5;
  text-decoration: none;
}

.cat-card__label {
  font-size: 1rem;
  font-weight: 700;
  color: #0d253f;
  margin-bottom: 6px;
}

.cat-card__desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

/* =============================
   How it works
============================= */
.steps {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}

.step {
  flex: 1;
  text-align: center;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1565c0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0d253f;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 0.9rem;
  color: #555;
}

/* =============================
   Section headings
============================= */
.section__heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0d253f;
  margin-bottom: 8px;
}

.section__sub {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
}

/* =============================
   Card list (category pages)
============================= */
.card-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-item {
  background: #ffffff;
  border: 1px solid #e0ddd8;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-item__rank {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1565c0;
  min-width: 30px;
  line-height: 1;
  padding-top: 3px;
}

.card-item__body {
  flex: 1;
}

.card-item__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d253f;
  margin-bottom: 4px;
}

.card-item__tagline {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.card-item__fee {
  background: #f0f4ff;
  color: #1565c0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

/* =============================
   CTA box
============================= */
.cta-box {
  background: linear-gradient(135deg, #e3f0ff 0%, #e8f7f3 100%);
  border: 1px solid #c5ddf7;
  border-radius: 10px;
  padding: 32px 28px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-box__text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d253f;
  margin-bottom: 4px;
}

.cta-box__text p {
  font-size: 0.9rem;
  color: #555;
}

/* =============================
   Page intro (category pages)
============================= */
.page-intro {
  background: linear-gradient(135deg, #e3f0ff 0%, #f0f9f7 100%);
  padding: 44px 0 36px;
}

.page-intro__h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0d253f;
  margin-bottom: 12px;
}

.page-intro__lead {
  font-size: 1.05rem;
  color: #444;
  max-width: 680px;
}

/* =============================
   Footer
============================= */
.footer {
  background: #1a2436;
  color: #b0bec5;
  padding: 36px 0;
  margin-top: 60px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #90a4ae;
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.footer__nav a {
  color: #90a4ae;
  font-size: 0.88rem;
}

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

.footer__legal {
  width: 100%;
  border-top: 1px solid #2d3d54;
  margin-top: 24px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #607d8b;
}

/* =============================
   Breadcrumb
============================= */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #1565c0;
}

.breadcrumb span {
  margin: 0 6px;
  color: #bbb;
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .hero__headline {
    font-size: 1.6rem;
  }

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

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

  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .card-item {
    flex-wrap: wrap;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .calc__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__headline {
    font-size: 1.35rem;
  }

  .calc {
    padding: 20px 16px;
  }
}
