/**************

wide mobile: 475px
tablet: 880px

**************/

/* RESET */

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

body {
  margin: 0;
}

html, body, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Outline for dev - DELETE IN PROD */

* {
    outline: 0px dotted gray;
}

/* ======================================== */
/* BASE                                     */
/* ======================================== */

:root {
  --font-sans: system-ui, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;

  --color-bg: #FFFFFF;
  --color-text: #111827;
  --color-border: #E5E7EB;

  --color-accent: #2563EB;
  --color-accent-dark: #1E40AF;
  --color-accent-tint: #DDE7FF;

  /* Optional semantic tokens */
  --link: var(--color-accent);
  --link-hover: var(--color-accent-dark);
  --surface: #FFFFFF;           /* card background */
  --surface-muted: #F9FAFB;     /* soft section bg */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

strong { font-weight: 600; }

em { font-style: italic; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: var(--space-6) 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ======================================== */
/* LAYOUT                                   */
/* ======================================== */

.site-container {
    max-width: 72rem;
    padding: 0 var(--space-5);
    margin: 0 auto;
}

/* === HEADER === */

.site-header__identity {
    text-align: center;
    padding-top: var(--space-3);
}

.site-header__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-header__menu {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.site-header__cta {
    text-align: center;
}

@media only screen and (min-width: 540px) {
  .site-header__nav {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: var(--space-3);
    align-items: center;
  }

  .site-header__identity {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-3);
    align-items: last baseline;
  }

  .site-header__menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-2);
    align-items: center;
  }
}

@media only screen and (min-width: 1010px) {
  .site-header__nav {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: var(--space-3);
    align-items: center;
  }

  .site-header__identity {
    flex-grow: 0.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
    align-items: center;
  }

  .site-header__menu {
    flex-grow: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: var(--space-3);
    align-items: center;
  }

  .site-header__cta {
    flex-grow: 0.25;
  }
}


/* === MAIN === */

.content__section {
    margin: var(--space-6) 0px;
}

.hero__title, .hero__description {
    text-align: center;
}

.section__title, .section__subtitle {
    text-align: center /* center section headings and subheadings */
}

.section__title {
  margin: var(--space-4) 0px;
}

.section__cta {
    display: flex;
    justify-content: center;
    margin: var(--space-4) 0;
}

.card-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-evenly;
  align-items: stretch;
}

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 540px) {
  .card {
    max-width: 45%;
  }
}

@media only screen and (min-width: 880px) {
  .card {
    max-width: 30%;
  }
}

.process__list {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2)
}

@media only screen and (min-width: 750px) {
  .process__list {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);
    justify-content: center;
    align-items: first baseline;
  }

  .process__step {
    width: 20%;
  }

  .process__step-label {
    display: block;
  }
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about__photo {
  display: block;
  width: 240px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin: var(--space-4) auto;
}

@media only screen and (min-width: 880px) {

  .about {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
  }

  .about__description-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: self-start;
  }

  .about__photo {
    width: 140px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 0 var(--space-2) var(--space-2) 0;
  }

  .about__description {
    text-align: left;
    max-width: 500px;
  }

}

.faq__list {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4)
}

@media only screen and (min-width: 600px) {
  .faq__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: first baseline;
    text-align: center;
  }

  .faq__item {
    width: 47%;
  }
}

@media only screen and (min-width: 880px) {
  .faq__item {
    width: 31%;
  }
}

/* === FOOTER === */

.site-footer__inner, .site-footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__column {
  width: 100%;
  text-align: center;
}

.site-footer__list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-1)
}

@media only screen and (min-width: 880px) {

  .site-footer__inner {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: var(--space-2);
      justify-content: space-between;
      align-items: first baseline;
      text-align: center;
  }

  .site-footer__column {
    width: 31%;
  }

}

/* ======================================== */
/* COMPONENT SIZES                          */
/* ======================================== */

.site-header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-5);
}
.site-header__menu-link {
  display: inline-block;
  padding: var(--space-2) var(--space-2);
  width: 100%;
  text-align: center;
}

@media only screen and (min-width: 540px) and (max-width: 1010px) {

  .site-header__title, .site-header__subtitle {
    margin-bottom: 0px;
  }

  .site-header__menu-link {
    padding: var(--space-3) var(--space-2);
  }

}

.site-header__cta-text, .section__cta-text {
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--space-2);
  margin-top: var(--space-2);
}

.hero__title {
  font-size: 28px;
}

.hero__description {
  font-size: 20px;
  font-style: italic;
}

.section__title {
  padding: 0 var(--space-3);
}

.section__subtitle {
  padding: 0 var(--space-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--space-3);
  padding: var(--space-3);

}

.card__title {
  padding: 0 var(--space-5);
}

.card__text {
  padding: 0 var(--space-5);
  flex: 1;
}

@media only screen and (min-width: 540px) {

    .card__title {
      padding: 0 var(--space-3);
    }

    .card__text {
      padding: 0 var(--space-3);
      flex: 1;
    }
    
}

.process__step {
  padding: 0 var(--space-3);
}

.faq__question {
  padding: 0 var(--space-5);
}

.faq__answer {
  padding: 0 var(--space-5);
}

@media only screen and (min-width: 750px) {
  .process__step {
    padding: 0 var(--space-2);
  }

  .faq__question {
    padding: 0 var(--space-2);
  }

  .faq__answer {
    padding: 0 var(--space-2);
  }

}

.site-footer {
  padding-top: var(--space-5);
}

.site-footer__heading {
  padding: var(--space-2) var(--space-6);
}

.site-footer__text, .site-footer__list {
  padding: 0 var(--space-5);
}

/* ======================================== */
/* COLORS & TYPO                            */
/* ======================================== */

.page__header, .page__footer {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

.site-header__subtitle {
  font-style: italic;
  font-size: 14px;
}

.site-header__menu-link,
.site-footer__link {
  color: #fff;
  font-weight: 600;
}

.site-header__menu-link:hover,
.site-footer__link:hover {
  color: var(--color-accent-tint);
}

.site-header__cta-text {
  font-size: 18px;
  font-weight: 600;
  outline: none;
  border: none;
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  transition-duration: 0.2s;
}

.site-header__cta-text:hover {
  box-shadow: 4px 4px 8px rgba(0,0,0,0.6);
  transition-duration: 0.2s;
}

.site-header__cta-text:active{
  box-shadow: 2px 2px 8px rgba(0,0,0,0.6) inset;
  transition-duration: 0.2s;
}

.hero {
  padding: 75px 50px;
  margin: 0;

  background-image:
    linear-gradient(rgba(235, 235, 255, 0.9), rgba(255, 255, 255, 0.9)),
    var(--hero-bg, none); /* uses the injected value, otherwise nothing */
  
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media only screen and (min-width: 540px) {
  .hero {
    padding: 75px 100px;
  }
}

.section__cta-text {
  font-size: 18px;
  font-weight: 600;
  outline: none;
  border: none;
  background-color: var(--color-accent);
  color: var(--color-accent-tint);
  transition-duration: 0.2s;
}

.section__cta-text:hover {
  color: var(--color-accent-tint);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.6);
  transition-duration: 0.2s;
}

.section__cta-text:active {
  color: var(--color-accent-tint);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.6) inset;
  transition-duration: 0.2s;
}

.card {
  background-color: var(--color-accent-tint);
}

.process__list, .faq__list {
  padding: var(--space-4) var(--space-3);
  border-radius: var(--space-2);
  background-color: var(--color-accent-tint);
}

.site-footer {
  font-size: 14px;
}

.site-footer__heading {
  font-size: 20px;
}