* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Neue Haas Grotesk', sans-serif;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.5rem;
  background-color: var(--background-yellow);
}

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

:root {
  --accent-yellow: #FDCA20;
  --background-yellow: #FFFAEB;
  --blue-1: #EAF0FB;
  --blue-2: #BFD3F3;
  --blue-3: #94B6EB;
  --blue-4: #191E52;
}

@font-face {
  font-family: 'Portrait';
  src: url('assets/fonts/Portrait-RegularNo2-Web.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-55Roman-Web.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-56Italic-Web.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-65Medium-Web.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-66MediumItalic-Web.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-75Bold-Web.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('assets/fonts/NeueHaasGroteskText-76BoldItalic-Web.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

::selection {
    background-color: var(--accent-yellow);
    color: black;
}

section:not(.hero-section) {
    padding: 5rem 4rem;
}

h1, h2, h3 {
    font-family: 'Portrait', serif;
    font-weight: normal;
}

h1 {
    font-size: 1.25rem;
    line-height: 1.25rem;
    letter-spacing: -2%;
    font-weight: normal;
    margin: 0;
}

h2 {
    font-size: 3rem;
    line-height: 3.1rem;
    letter-spacing: -3%;
}

h3 {
    font-size: 2rem;
    line-height: 2.25rem;
    letter-spacing: -2%;
}

.subheadline {
    text-align: center;
    max-width: 504px;
    margin: 0 auto;
}

.number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Nav */
nav {
    padding: .75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 100;
    background-color: var(--background-yellow);
    width: 100%;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: .875rem;
}

nav a:hover {
    color: var(--blue-3);
}

.brand {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.secondary-cta {
    padding: .375rem 1.25rem;
    border: 1px solid black;
    border-radius: 1rem;
    white-space: nowrap;
}

.primary-cta {
    padding: .5rem 1.5rem;
    background-color: var(--accent-yellow);
    border-radius: 1rem;
    text-decoration: none;
    color: black;
    font-weight: 500;   
    white-space: nowrap;
}

.primary-cta:hover {
    background-color: var(--blue-1);
}

.secondary-cta:hover {
    background-color: var(--blue-1);
    color: black;
}

@media screen and (min-width: 991px) {
    .hamburger-menu {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

@media screen and (max-width: 990px) {
    nav ul {
        display: none;
    }

    section:not(.hero-section) {
    padding: 5rem 1.25rem;
}
}

@media screen and (max-width: 771px) {
    .about-me-card, .testimonials-container, .approach-container {
        flex-direction: column;
    }

    .about-me-card div, .testimonials-container div, .approach-container div {
        width: 100%;
    }

    .about-me-image {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    footer {
        flex-direction: column;
        align-items: start;
        gap: .5rem!important;
    }    

    .footer-quote {
        order: 1;
    }

    .copyright {
        order: 2;
    }
}

@media screen and (max-width: 846px) {
    footer {
        gap: 1rem!important;
    }
}

@media screen and (max-width: 445px) {
    .form-field {
        flex-direction: column;
    }
}

.mobile-menu {
    gap: 1.5rem;
    position: absolute;
    top: 3rem;
    right: 0;
    background-color: var(--background-yellow);
    padding: 1.5rem;
    height: 100vh;
    display: none;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-4);
    min-height: 78vh;
    position: relative;
}

.hero-video {
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    z-index:1;
}

.hero-container {
    max-width: 22.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: absolute;
    bottom: 5rem;
    z-index: 2;
}

.hero-headline {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.hero-headline h2:last-child {
    transform: translateX(30px) translateY(-8px);
}

.hero-description {
    font-weight: 500;
    margin-bottom: 1rem;
}


/* About Me Section */

.about-me-card {
    background-color: var(--blue-2);
    display: flex;
    max-width: 890px;
    margin: 0 auto;
    align-items: stretch;
}

.about-me-card-text {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 50%;
}

.about-me-image {
    width: 50%;
    overflow: hidden;
}

.about-me-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

/* Testimonials Section */

section#testimonials h2 {
    text-align: center;
}

.testimonials-container {
    display: flex;
    max-width: 1200px;
    margin: 5rem auto 0;
}

.testimonial {
    padding: 3rem 2.5rem;
    width: 50%;
}

.testimonial h3 {
    margin-bottom: 1.25rem;
}

/* .testimonial p {
    font-weight: 500;
} */

.quoted {
    font-weight: 700;
    margin-top: 1.25rem;
}

.testimonial:first-child {
    background-color: var(--blue-2);
}

.testimonial:last-child {
    background-color: var(--blue-4);
    color: white;
}

/* Approach Section */

#approach h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.approach-container {
    display: flex;
    max-width: 1200px;
    margin: 5rem auto 0;
}

.approach-card {
    width: 33.33%;
    padding: 1.5rem;
}

.approach-card:nth-child(1) {
    background-color: var(--blue-1);
}

.approach-card:nth-child(2) {
    background-color: var(--blue-2);
}

.approach-card:nth-child(3) {
    background-color: var(--blue-3);
}

.approach-card h3 {
    margin: 1.5rem 0 1rem 0;
}

/* How It Works Section */
#how-it-works h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.how-it-works-container {
    max-width: 760px;
    margin: 5rem auto 0;
}

.how-it-works-card {
    padding: 2.5rem;   
}

.how-it-works-card:nth-child(1) {
    background-color: var(--blue-1);
}

.how-it-works-card:nth-child(2) {
    background-color: var(--blue-2);
}

.how-it-works-card:nth-child(3) {
    background-color: var(--blue-3);
}

.how-it-works-card:nth-child(4) {
    background-color: var(--blue-4);
    color: white;
}

.how-it-works-card:nth-child(4) .number {
    border-color: white;
}

.how-it-works-card h3 {
    margin-top: 20;
}

.number-and-headline {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

/* Let's connect section */
#lets-connect h2 {
    text-align: center;
    margin: 0 auto 1rem;
}

.contact-form {
    margin: 5rem auto 0;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: var(--blue-2);
    padding: 2.5rem;
}

.form-field {
    width: 100%;
    display: flex;
    gap: .5rem;
}

.form-field.vertical {
    flex-direction: column;
}

.form-field input {
    flex: 1 1 0;
}

input, textarea {
    font-weight: 700;
}

input {
    padding: 0 0 .25rem .25rem;
}

textarea {
    width: 100%;
}

input, textarea {
    border: 0;
    background-color: transparent;
    border-bottom: 1px solid black;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom: 1px dashed black;
}

button.primary-cta {
    border: none;
    cursor: pointer;
}


/* Footer */
footer {
    padding: 1.5rem .5rem;
    display: flex;
    justify-content: space-between;
    gap: 5rem;
}

footer p {
    margin: 0;
}

.copyright {
    font-family: 'Portrait', serif;
    font-size: 1rem;
}

.footer-quote {
    font-size: .75rem;
    font-weight: 500;
}


.copyright {
    display: flex;
    gap: .5rem;
}

.copyright a {
    color: black;
    text-decoration: underline;
}

.copyright a:hover {
    text-decoration: none;
}

.show-on-hover {
    display: none;
}

.site-credits:hover {
    cursor: pointer;
}

.site-credits:hover .show-on-hover {
    display: block;
}

.site-credits:hover .hide-on-hover {
    display: none;
}