/* ===========================
   King Training Resources
   Vanilla CSS — no framework
   =========================== */

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

body {
  font-family: 'PT Serif', Georgia, serif;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #800080;
  outline-offset: 2px;
}

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

address {
  font-style: normal;
}

/* --- Layout --- */
.site-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
.site-header {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.site-logo {
  max-width: 240px;
}

.tagline {
  color: #800080;
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 2rem;
}

.header-contact {
  max-width: 24rem;
}

.contact-cta {
  color: #800080;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 1.1rem;
}

.contact-info dt {
  margin-top: 1rem;
}

.contact-info dd {
  padding-left: 2rem;
  margin-top: 0.25rem;
}

.contact-info a {
  font-weight: 700;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* --- Services --- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.service-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.service-title {
  color: #800080;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- Tagline Section --- */
.tagline-section {
  margin-top: 5rem;
  margin-bottom: 4rem;
}

.tagline-text {
  color: #800080;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.4;
}

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  border-top: 1px solid #e5e5e5;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1rem;
}

.footer-address p {
  font-style: italic;
}

.footer-contact a {
  color: #0000EE;
  font-weight: 700;
  text-decoration: underline;
}

.footer-contact a:hover {
  color: #1e40af;
}

/* --- Responsive: Tablet+ --- */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .header-contact {
    padding-left: 2rem;
  }

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

  .tagline-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .tagline-text {
    grid-column: 2 / 4;
    font-size: 2.25rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-content > * {
    flex: 1;
  }

  .footer-contact {
    text-align: right;
  }
}
