:root {
  /* Light section */
  --color-light-bg: #F1DAC4;
  --color-light-text: #0D0C1D;
  --color-light-accent: #474973;

  /* Dark section */
  --color-dark-bg: #0D0C1D;
  --color-dark-heading: #F1DAC4;
  --color-dark-text-secondary: #A69CAC;

  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Light section */
.section-light {
  background-color: var(--color-light-bg);
  color: var(--color-light-text);
}

.section-light a,
.section-light .accent {
  color: var(--color-light-accent);
}

section.section-light {
  padding: 4rem 0;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

/* Hero */
.hero {
  text-align: center;
}

.hero.section-dark {
  padding: 5rem 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-dark-heading);
  margin: 0 0 1.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark-heading);
  margin: 0 0 1.25rem;
}

.hero .hero-description {
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--color-dark-text-secondary);
}

/* Contact hero */
.contact-hero .hero-title {
  font-size: 2.75rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-hero .hero-description {
  max-width: 620px;
  margin-bottom: 0;
}

.button {
  display: inline-block;
  background-color: var(--color-light-accent);
  color: var(--color-dark-heading);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  opacity: 0.9;
}

/* Dark section */
.section-dark {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text-secondary);
  padding: 4rem 0;
}

.section-dark h2 {
  color: var(--color-dark-heading);
  margin-bottom: 1rem;
}

.section-light h2 {
  color: var(--color-light-accent);
  margin-bottom: 1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.section-dark .feature h3 {
  color: var(--color-dark-heading);
  margin-bottom: 0.5rem;
}

.section-light .feature h3 {
  color: var(--color-light-accent);
  margin-bottom: 0.5rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark-heading);
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--color-dark-text-secondary);
}

@media (max-width: 680px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Process steps */
.steps {
  --step-gap: 1rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--step-gap);
  margin: 2.5rem 0 0;
  padding: 0;
}

.step {
  position: relative;
  text-align: center;
}

.section-dark .step h3 {
  margin: 0 0 0.5rem;
  color: var(--color-dark-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Arrow from each step's header to the next, centered in the gap between columns */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(100% + var(--step-gap) / 2 - 20px);
  width: 40px;
  height: 2px;
  background-color: var(--color-dark-text-secondary);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(100% + var(--step-gap) / 2 + 10px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-dark-text-secondary);
  border-right: 2px solid var(--color-dark-text-secondary);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    padding-bottom: 2.5rem;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  /* Arrow points down to the next step's header */
  .step:not(:last-child)::before {
    top: calc(100% - 2rem);
    left: calc(50% - 1px);
    width: 2px;
    height: 1.25rem;
  }

  .step:not(:last-child)::after {
    top: calc(100% - 0.75rem - 10px);
    left: calc(50% - 4px);
    transform: rotate(135deg);
  }
}

/* Contact form */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form .optional {
  font-weight: 400;
  color: var(--color-light-accent);
  opacity: 0.75;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-light-text);
  background-color: #fff;
  border: 1.5px solid rgba(71, 73, 115, 0.3);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-light-accent);
}

.contact-form .button {
  align-self: flex-start;
}

.form-status {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status--success {
  color: var(--color-light-accent);
}

.form-status--error {
  color: #a13d3d;
}

.prefer-email {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(71, 73, 115, 0.2);
  text-align: center;
}

.prefer-email a {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* About hero */
.about-hero {
  padding: 4rem 0;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.photo-circle {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: rgba(71, 73, 115, 0.08);
  border: 3px solid var(--color-light-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.photo-circle .img-container {
  width: 100%;
  height: 100%;
}

.photo-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-placeholder-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-light-accent);
  opacity: 0.7;
  padding: 0 1.5rem;
}

.about-hero-text h1 {
  font-size: 2.5rem;
  color: var(--color-light-accent);
  margin: 0 0 1rem;
}

.about-hero-text .hero-description {
  max-width: 480px;
  margin: 0;
  color: var(--color-light-text);
}

.about-cta {
  text-align: center;
}

@media (max-width: 680px) {
  .about-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-hero-text .hero-description {
    margin: 0 auto;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}
