/* Kennith Driver - kennithdriver.com
   Brand colors: navy #1E3A5F, purple #5B4B8A, on white.
   Plain, clean, mobile-friendly. No frameworks. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1f1f1f;
  background: #ffffff;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: #5b4b8a;
}

a:hover {
  color: #1e3a5f;
}

/* Header */

.site-header {
  background: #1e3a5f;
  color: #ffffff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Hero */

.hero {
  background: #1e3a5f;
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-photo {
  width: 260px;
  max-width: 70vw;
  height: auto;
  border-radius: 12px;
  border: 4px solid #ffffff;
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero a {
  color: #d9d2ec;
}

/* Sub-page header */

.page-hero {
  background: #1e3a5f;
  color: #ffffff;
  padding: 2.75rem 0 2.25rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.3rem;
  line-height: 1.15;
}

.page-hero .tagline {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #d9d2ec;
}

/* Business page: the workspace photo is the whole-page background, fixed
   in place, so the words and cards scroll over it while the picture stays
   still. Only the words that sit on the photo are white, the same color
   as the header text; the backgrounds and the card text are unchanged.
   Stand-in image until Ken has an actual desk to photograph; only the
   business page uses it. */
body.business-page {
  background-image: linear-gradient(rgba(30, 58, 95, 0.65), rgba(30, 58, 95, 0.65)), url("images/hero-workspace.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* The hero needs no picture of its own now; the fixed page background
   shows through it. */
.page-hero.hero-business {
  background: transparent;
}

.page-hero.hero-business .hero-cta {
  margin-top: 1.25rem;
}

/* No white backgrounds behind the sections; the picture shows through. */
body.business-page .section,
body.business-page .section-alt {
  background: transparent;
}

/* Only the words that sit on the photo are white, like the header text.
   The words inside the white cards stay dark. */
body.business-page .section h2,
body.business-page .section-intro,
body.business-page .section-note,
body.business-page .center,
body.business-page form label {
  color: #ffffff;
}

body.business-page .section a {
  color: #ffffff;
}

body.business-page .section a:hover {
  color: #d9d2ec;
}

body.business-page .card a {
  color: #5b4b8a;
}

body.business-page .card a:hover {
  color: #1e3a5f;
}

/* On phones a fixed background scrolls jerkily, so let it move with the
   page there. */
@media (max-width: 768px) {
  body.business-page {
    background-attachment: scroll;
  }
}

.page-intro {
  max-width: 640px;
  margin: 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.6rem;
  line-height: 1.15;
}

.hero .tagline {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #d9d2ec;
}

.hero-sub {
  max-width: 640px;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.button {
  display: inline-block;
  background: #5b4b8a;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #4a3d72;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  border: 2px solid #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: #f4f2f8;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.9rem;
  color: #1e3a5f;
}

.section-intro {
  max-width: 640px;
  margin: 0 0 1.75rem;
}

.section-note {
  margin-top: 1.75rem;
}

.center {
  text-align: center;
}

/* Cards */

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

.card {
  background: #ffffff;
  border: 1px solid #ddd6ea;
  border-top: 4px solid #5b4b8a;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
}

.section-alt .card {
  border: 1px solid #ddd6ea;
  border-top: 4px solid #5b4b8a;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #1e3a5f;
}

.card p {
  margin: 0 0 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
}

/* Campaign 25 card grid (beauty page) */

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}

.campaign-meta span {
  display: inline-block;
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.campaign-meta span.end {
  background: #5b4b8a;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.campaign-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid #ddd6ea;
  border-radius: 8px;
  overflow: hidden;
}

.campaign-card a {
  display: block;
  text-decoration: none;
}

.campaign-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.campaign-card figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
}

.campaign-card .day {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b4b8a;
}

.campaign-card .cap {
  display: block;
  color: #1f1f1f;
  font-weight: 600;
  line-height: 1.4;
}

.campaign-card a:hover .cap {
  color: #1e3a5f;
  text-decoration: underline;
}

.campaign-card.teaser {
  border: 2px dashed #5b4b8a;
  background: #f4f2f8;
}

/* Product showcase (beauty page) */

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

.product-card {
  background: #ffffff;
  border: 1px solid #ddd6ea;
  border-top: 4px solid #5b4b8a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-photo {
  background: #ffffff;
  border-bottom: 1px solid #eeeaf4;
  padding: 1rem;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
}

.product-body {
  padding: 1.1rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #1e3a5f;
}

.product-body .price {
  margin: 0 0 0.25rem;
}

.product-body .reg {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.product-body .shop {
  margin-top: auto;
  margin-bottom: 0;
}

.product-card .button {
  min-height: 2.75rem;
}

/* Intuit certification badges: shown unaltered, original aspect ratio, per Intuit guidelines.
   Max 2 per row: each badge takes half the row, so the third wraps underneath. */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.intuit-badge {
  width: calc(50% - 0.5rem);
  height: auto;
}

/* Links list */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd6ea;
}

.link-list li:last-child {
  border-bottom: none;
}

/* Contact form */

form {
  max-width: 560px;
}

form p {
  margin: 0 0 1rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #9a93ad;
  border-radius: 6px;
  background: #ffffff;
}

form input:focus,
form textarea:focus {
  outline: 2px solid #5b4b8a;
  outline-offset: 1px;
}

.hidden {
  display: none;
}

/* Footer */

.site-footer {
  background: #1e3a5f;
  color: #ffffff;
  padding: 2rem 0;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: #d9d2ec;
}

/* Small screens */

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

  .hero .tagline {
    font-size: 1.15rem;
  }

  .page-hero h1 {
    font-size: 1.9rem;
  }

  .page-hero .tagline {
    font-size: 1.15rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .campaign-card figcaption {
    padding: 0.55rem 0.7rem 0.7rem;
  }

  .campaign-card .cap {
    font-size: 0.95rem;
  }
}
