/* Matchbox Systems — brand styles */
:root {
  --white: #ffffff;
  --black: #000000;
  --orange: #E85D04;
  --grey-light: #f0f0f0;
  --text-max: 65ch;
  --section-padding: clamp(2rem, 5vw, 4rem);
  --inner-max: 720px;
  --inner-wide: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

/* Section scaffolding */
.section-inner {
  max-width: var(--inner-wide);
  margin: 0 auto;
  padding: var(--section-padding) 1.5rem;
}

.section-inner--narrow {
  max-width: var(--inner-max);
}

.section-inner--in-box {
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-inner p {
  max-width: var(--text-max);
}

/* Section 1 — Hero */
.section-hero {
  background: var(--white);
  color: var(--black);
}

.hero-headline {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: var(--text-max);
}

.hero-subtitle {
  color: var(--orange);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 1.5rem;
  max-width: var(--text-max);
}

.hero-subhead {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  margin: 0 0 1.5rem;
  max-width: var(--text-max);
}

.section-hero p {
  margin: 0 0 1rem;
}

.highlight {
  color: var(--orange);
  font-weight: 700;
}

/* Section 2 — Black box */
.section-black {
  background: var(--black);
  color: var(--white);
}

.section-black .section-inner p,
.section-black .audience-heading {
  color: var(--white);
}

.audience-block {
  margin: 0;
}

.audience-heading {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.audience-block p {
  margin: 0 0 1.25rem;
  max-width: var(--text-max);
}

.divider {
  border: 0;
  margin: 1.5rem 0;
  height: 2px;
}

.divider--orange {
  background: var(--orange);
}

/* Section titles */
.section-title {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin: 0 0 1.5rem;
  max-width: var(--text-max);
}

.section-title--light {
  color: var(--white);
}

/* Section 3 — What Matchbox delivers */
.section-white {
  background: var(--white);
  color: var(--black);
}

.delivers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.deliver-card {
  max-width: var(--text-max);
}

.deliver-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.deliver-card p {
  margin: 0;
}

@media (min-width: 600px) {
  .delivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .delivers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Section 4 — How Matchbox works */
.section-grey {
  background: var(--grey-light);
  color: var(--black);
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.how-item-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.how-item p {
  margin: 0;
  max-width: var(--text-max);
}

/* Section 5 — CTA */
.cta-intro {
  margin: 0 0 1.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.4;
}

.cta-button:hover {
  filter: brightness(1.1);
}

/* Section 6 — Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.team-card {
  max-width: 320px;
}

.team-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  background: var(--grey-light);
  border-radius: 50%;
}

.team-name {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.team-role {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.team-bio {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  max-width: var(--text-max);
}

.team-linkedin {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.team-linkedin:hover {
  text-decoration: underline;
}

/* Footer — Company information */
.footer {
  background: var(--white);
  border-top: 2px solid var(--orange);
  padding: var(--section-padding) 0;
  margin-top: 0;
}

.footer-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.footer-subtitle {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.footer-block {
  margin-bottom: 1.5rem;
}

.footer-block p {
  margin: 0;
  font-size: 0.9rem;
  max-width: var(--text-max);
}

.footer-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }

  .team-card {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: none;
    border-right: 2px solid var(--orange);
  }

  .team-card:last-child {
    border-right: 0;
  }
}
