/* ==========================================================================
   stevenyanicke.com
   Two layouts: desktop (min-width: 921px) and mobile (max-width: 920px).
   Mobile content sits in a fixed 328px column, centred.
   ========================================================================== */

:root {
  --green: rgb(17, 60, 52);
  --green-soft: rgb(62, 98, 91);
  --orange: rgb(217, 119, 36);
  --ink: rgb(10, 16, 21);
  --white: #fff;

  --font-heading: "Sora", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --container: 1224px;
  --mobile-column: 328px;
  --header-height: 90px;
  --shadow-button: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-button-hover: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #000;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background-color: var(--green);
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.button:hover {
  background-color: var(--orange);
  box-shadow: var(--shadow-button-hover);
}

.button:focus-visible {
  outline: 2px solid #357df9;
  outline-offset: 2px;
}

.button--dark {
  background-color: #000;
}

.button--dark:hover {
  background-color: rgb(29, 30, 32);
}

/* Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 18;
  background: var(--green);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: 16px;
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 64px;
}

.site-nav__links {
  display: flex;
  gap: 40px;
}

.site-nav__link {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="page"] {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 7px;
}

.social {
  display: flex;
  align-items: center;
}

.social__link {
  display: flex;
  color: var(--white);
  transition: color 0.2s;
}

.social__link:hover {
  color: #727586;
}

.social__link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.site-nav .social {
  gap: 16px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.menu-toggle__bar {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transform-origin: 0;
  transition: transform 0.25s ease-in-out 0.1s, opacity 0.25s ease-in-out 0.1s,
    width 0.25s ease-in-out 0.1s;
}

.menu-toggle__bar:nth-child(1) {
  top: 0;
}

.menu-toggle__bar:nth-child(2) {
  top: 8px;
}

.menu-toggle__bar:nth-child(3) {
  top: 16px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  top: -1px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  width: 0;
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* Hero
   ========================================================================== */

.hero__inner {
  display: grid;
  grid-template-columns: 57.92% 28.27%;
  column-gap: 5.39%;
  align-items: start;
  min-height: 452px;
  padding: 64px 0 48px;
}

.hero__text {
  padding-top: 10px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 31px;
  margin-top: 62px;
}

.hero__actions .button {
  width: min(194px, 15.85vw);
  height: 60px;
  padding-inline: 8px;
}

.hero__note {
  margin-top: 64px;
  color: rgb(13, 31, 27);
}

.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 346 / 340;
  object-fit: cover;
  border-radius: 10px;
}

/* About
   ========================================================================== */

.about {
  padding: 42px 0 50px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.about__inner {
  max-width: min(1014px, 82.9%);
}

.about p + p {
  margin-top: 8px;
}

/* Classes ("Upcoming Classes")
   One banner: class list, graphic, call to action. main.js adds .classes--tabbed
   and switches panels; without it every panel is shown, stacked.
   ========================================================================== */

.classes {
  padding: 32px 0 64px;
  background: var(--green-soft);
  color: var(--white);
}

.classes__title {
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.classes__list {
  display: none;
}

.classes--tabbed .classes__banner {
  display: grid;
  grid-template-columns: 26% 1fr;
  column-gap: 40px;
  align-items: center;
}

.classes--tabbed .classes__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.classes__tab {
  padding: 20px 16px 20px 20px;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  color: var(--white);
  background: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.classes__tab:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.classes__tab[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--orange);
  color: var(--green);
  background-color: var(--white);
}

.classes__tab:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.classes__panels {
  display: grid;
}

.class-panel {
  display: grid;
  grid-template-columns: 55% 1fr;
  column-gap: 40px;
  align-items: center;
}

.class-panel + .class-panel {
  margin-top: 48px;
}

/* Panels share one grid cell so the banner keeps the height of the tallest. */
.classes--tabbed .class-panel {
  grid-area: 1 / 1;
  margin-top: 0;
  visibility: hidden;
}

.classes--tabbed .class-panel.is-active {
  visibility: visible;
}

.class-panel__graphic {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
}

.class-panel__cta {
  padding-right: 16px;
}

.class-panel__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.class-panel__cta p {
  margin-top: 12px;
}

.class-panel__details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.class-panel__provider {
  font-size: 14px;
}

.class-panel__cta .button {
  margin-top: 28px;
  color: var(--green);
  background-color: var(--white);
}

.class-panel__cta .button:hover {
  color: var(--white);
  background-color: var(--orange);
}

.class-panel__cta .button:focus-visible {
  outline-color: var(--white);
}

/* Audiences ("You Might Be Here Because...")
   ========================================================================== */

.audiences {
  padding: 32px 0 126px;
}

.audiences__title,
.audience__title {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
  text-align: center;
}

.audiences__title {
  font-size: 48px;
  margin-bottom: 22px;
}

.audience + .audience {
  margin-top: 38px;
}

.audience__title {
  font-size: 32px;
  margin-bottom: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cards--single .card {
  grid-column: 2;
}

.card {
  min-height: 184px;
  padding: 40px min(46px, 3.76vw) 26px;
  color: var(--white);
  background: var(--green-soft);
}

.card__title {
  margin-bottom: 13px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.card__soon {
  font-size: 14px;
}

/* The next two modifiers reproduce spacing from the original Hostinger build,
   where these cards were positioned slightly differently from the rest. */
.card--inset {
  padding: 38px min(34px, 2.78vw) 26px;
}

.card--roomy .card__title {
  margin-bottom: 30px;
}

/* Footer
   ========================================================================== */

.site-footer {
  padding: 24px 0 37px;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__accent {
  width: 56px;
  height: 3px;
  background: var(--orange);
}

.site-footer .social {
  margin-top: 17px;
}

.site-footer .social__link {
  padding-inline: 21px;
}

.site-footer__rule {
  width: 65.37%;
  height: 1px;
  margin-top: 16px;
  background: var(--orange);
}

.site-footer__copy {
  margin-top: 23px;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__copy strong {
  font-weight: 900;
}

/* Contact page
   ========================================================================== */

.contact {
  color: var(--ink);
}

.contact__column {
  max-width: 606px;
  margin-inline: auto;
}

.contact-intro {
  min-height: 254px;
  padding-top: 42px;
}

.contact-intro__title {
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.contact-form-section {
  min-height: 526px;
  padding-top: 40px;
}

.contact-alt {
  min-height: 102px;
  padding-top: 24px;
}

.form {
  display: grid;
  gap: 22px;
}

.form__label {
  display: block;
  color: rgb(26, 26, 26);
}

.form__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 16px;
  border: 0 solid #000;
  border-radius: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: rgb(136, 136, 136);
  background-color: rgb(241, 241, 241);
  -webkit-appearance: none;
  appearance: none;
}

.form__input::placeholder {
  color: rgb(136, 136, 136);
  opacity: 0.5;
}

.form__input:focus-visible {
  outline: 2px solid #357df9;
}

textarea.form__input {
  height: 96px;
  resize: none;
}

.form__field--invalid .form__input {
  border-width: 1px;
  border-color: #fc5185;
}

.form__error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #d63163;
}

/* Spam trap: hidden from people, filled in by bots. */
.form__trap {
  position: absolute;
  left: -9999px;
}

.form__submit {
  justify-self: center;
  margin-top: 8px;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  display: none;
}

.form-status:target,
.form-status.is-visible {
  display: block;
}

.form-status:target ~ .form,
.form-status--success.is-visible ~ .form {
  display: none;
}

.form-status--error {
  margin-bottom: 22px;
  color: #d63163;
}

/* Mobile layout
   ========================================================================== */

@media (max-width: 920px) {
  :root {
    --header-height: 78px;
  }

  .container {
    width: calc(100% - 32px);
    max-width: var(--mobile-column);
  }

  /* Header */
  .site-header__inner {
    padding-inline: 32px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding: 24px 16px;
    overflow-y: auto;
    background: var(--green);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: flex-end;
    gap: 64px;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Hero */
  .hero__inner {
    display: block;
    min-height: 0;
    padding: 40px 0 25px;
  }

  .hero__text {
    padding-top: 0;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.1;
  }

  .hero__tagline {
    margin-top: 7px;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 16px;
  }

  .hero__actions .button {
    flex: 1;
    width: auto;
    height: 48px;
    padding-inline: 4px;
    font-size: 12px;
  }

  .hero__note {
    margin-top: 32px;
  }

  .hero__photo {
    margin-top: 30px;
    aspect-ratio: 328 / 437;
  }

  /* About */
  .about__inner {
    max-width: var(--mobile-column);
  }

  .about {
    padding: 40px 0 88px;
    font-size: 16px;
    line-height: 1.65;
  }

  /* Classes */
  .classes {
    padding: 24px 0 56px;
  }

  .classes__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .classes--tabbed .classes__banner {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .classes__tab {
    padding: 14px 12px 14px 16px;
    font-size: 16px;
  }

  .class-panel {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .class-panel__cta {
    padding-right: 0;
    text-align: center;
  }

  .class-panel__title {
    font-size: 20px;
  }

  .class-panel__cta .button {
    width: 100%;
    margin-top: 20px;
  }

  /* Audiences */
  .audiences {
    padding: 24px 0 80px;
  }

  .audiences__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .audience + .audience {
    margin-top: 40px;
  }

  .audience__title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards--single .card {
    grid-column: auto;
  }

  .card,
  .card--inset {
    min-height: 160px;
    padding: 18px 13px 0;
  }

  .card__title {
    margin-bottom: 25px;
    font-size: 16px;
  }

  .card--soon,
  .card--roomy {
    padding-top: 22px;
  }

  .card--soon .card__title {
    margin-bottom: 15px;
  }

  .card--roomy .card__title {
    margin-bottom: 19px;
  }

  .card__soon {
    font-size: inherit;
  }

  /* Footer */
  .site-footer {
    padding: 32px 0 24px;
  }

  .site-footer__accent,
  .site-footer__rule {
    width: 100%;
  }

  .site-footer .social {
    margin-top: 25px;
  }

  .site-footer .social__link {
    padding-inline: 17px;
  }

  .site-footer__rule {
    margin-top: 14px;
  }

  .site-footer__copy {
    margin-top: 15px;
  }

  /* Contact page */
  .contact-intro {
    min-height: 276px;
    padding-top: 31px;
  }

  .contact-intro__title {
    font-size: 40px;
  }

  .contact-form-section {
    min-height: 556px;
  }

  .contact-alt {
    min-height: 317px;
    padding-top: 0;
  }

  .form__submit {
    padding: 12px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
