/* === FONTS === */
@font-face {
    font-family: "Host Grotesk Variable";
    src: url("fonts/HostGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cal Sans";
    src: url("fonts/CalSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === VARIABLES === */
:root {
    --font-heading: "Cal Sans", sans-serif;
    --font-body: "Host Grotesk Variable", sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --color-white: #F0F0F0;
    --color-black: #1F1F1F;
    --color-accent: #4180D1;
    --height-nav: 5rem;
}

/* === TYPOGRAPHY === */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

p {
    font-family: var(--font-body);
    font-size: 1.4rem;
}

a {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    text-decoration: none;
}

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

/* === BODY === */
body {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* === COMPONENTS === */
.link-contact {
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    background-color: var(--color-accent);
    color: var(--color-black);
    border: 0;
    border-radius: 4px;
    padding: 0.6rem 0.6rem;
    transition: transform 0.1s ease;
    width: fit-content;
}

.link-contact:hover {
    transform: scale(0.94);
}

/* === NAVBAR === */
nav {
    display: flex;
    position: fixed;
    top: 0rem;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: var(--height-nav);
    padding: 0.5rem 2rem;
    background-color: transparent;
    color: var(--color-white);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

nav.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

nav a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

nav img {
    position: relative;
    top: 4px;
    filter: brightness(0) invert(1);
}

nav.scrolled a {
    color: var(--color-black);
}

nav.scrolled img {
    filter: none;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* === CONTAINER BASE === */
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 3rem;
    gap: 4rem;
}

.container h2 {
    text-align: center;
}

/* === HERO SECTION === */
.hero {
    padding-top: calc(var(--height-nav) * 3);
    padding-bottom: 16rem;
    background-image: url("assets/hero_bg.webp");
    background-size: cover;
    background-position: left;
    color: var(--color-white);
}

.hero .container {
    margin: 0;
    gap: 8rem;
}

/* === HOW IT WORKS SECTION === */
.how-it-works {
    padding: 8rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.step-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--color-accent);
    line-height: 1;
}

.step h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.step p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 22ch;
}

/* === PRACTICES SECTION === */
.practices {
    padding: 8rem 0;
    background-color: var(--color-white);
    color: var(--color-black);
}

.practices-card {
    display: flex;
    flex-direction: row;
    height: 24rem;
    border: solid;
    border-radius: 12px;
}

.practices-card--reverse {
    flex-direction: row-reverse;
}

.practices-card-text {
    display: flex;
    flex-direction: column;
    padding: 4rem;
    gap: 1rem;
}

.practices-card img {
    width: 40%;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    padding: 3rem;
}

/* === PRICING SECTION === */
.pricing {
    padding: 8rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.pricing-card-display {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 6rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    min-width: 16rem;
    min-height: 32rem;
    border: solid;
    border-radius: 12px;
    padding: 2rem 5rem;
    gap: 1rem;
    position: relative;
}

.badge {
    font-family: var(--font-body);
    font-weight: bold;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.pricing-card h3 {
    text-align: center;
}

.pricing-card li {
    font-family: var(--font-body);
}

.pricing-card-price {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-align: center;
}

.card-popular {
    margin-top: -12px;
    box-shadow: color-mix(in srgb, var(--color-accent) 40%, transparent) -5px 5px, color-mix(in srgb, var(--color-accent) 30%, transparent) -10px 10px, color-mix(in srgb, var(--color-accent) 20%, transparent) -15px 15px, color-mix(in srgb, var(--color-accent) 10%, transparent) -20px 20px, color-mix(in srgb, var(--color-accent) 5%, transparent) -25px 25px;
}

/* === FAQ SECTION === */
.faq {
    padding: 8rem 0;
    background-color: var(--color-white);
    color: var(--color-black);
}

.faq-list {
    display: flex;
    flex-direction: column;
    max-width: 60rem;
    width: 100%;
    align-self: center;
}

details {
    border-bottom: 1px solid var(--color-black);
    padding: 1.5rem 0;
}

details:first-child {
    border-top: 1px solid var(--color-black);
}

summary {
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: var(--font-weight-regular);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 70ch;
}

/* === CONTACT SECTION === */
.contact {
    padding: 8rem 0;
}

.contact .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* === FOOTER === */
footer {
    padding: 2rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    font-family: var(--font-body);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.footer-email {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white);
    font-weight: normal;
}

.footer-copyright {
    opacity: 0.4;
}

/* === MOBILE SIZE OVERWRITES === */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.5rem;
        gap: 2.5rem;
    }

    /* Navbar */
    #nav-pricing { display: none; }

    /* How it works */
    .steps {
        flex-direction: column;
        gap: 2.5rem;
    }

    .step-divider {
        width: 2px;
        height: 2rem;
        margin-top: 0;
        align-self: flex-start;
        margin-left: 2rem;
    }

    .step p {
        max-width: 100%;
    }

    /* Practices */
    .practices-card {
        flex-direction: column;
        height: auto;
        align-items: center;
        text-align: center;
    }

    .practices-card--reverse {
        flex-direction: column;
    }

    .practices-card img {
        display: none;
    }

    .practices-card-text {
        padding: 2rem;
        align-items: center;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-copyright {
        font-size: 1rem;
}
