:root {
    --primary-purple: #7489ff;
    --secondary-black: #010101;
    --tertiary-white: #e8f0e9;
    --text-color: #010101;
    --highlight-color: #7489ff;

    /* type scale; every text size on the site should come from one of these */
    --fs-hero: clamp(2.75rem, 8vw, 7rem);
    --fs-display: clamp(2.5rem, 7vw, 6rem);
    --fs-title: clamp(1.35rem, 2.3vw, 2.15rem);
    --fs-lead: clamp(1.08rem, 1.5vw, 1.35rem);
    --fs-body: 1rem;
    --fs-small: .875rem;
}

/* selection color for text */
::selection {
    background-color: var(--highlight-color);
    color: var(--tertiary-white);
}

.page-section--services ::selection,
.page-section--accent ::selection {
    background-color: var(--tertiary-white);
    color: var(--secondary-black);
}

/* keeps headings clear of the sticky navbar when jumping to a section */
html {
    scroll-padding-top: 4rem;
}

/* smooth scrolling for in-page links on every page */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@font-face {
    font-family: baseFont;
    src: url(assets/BricolageGrotesqueFont/BricolageGrotesque.ttf);
}

body {
    padding: 0px;
    margin: 0px;
    background-color: var(--tertiary-white);
    color: var(--text-color);

    font-family: baseFont;
}

nav {
    position: sticky;
    top: 0;

    z-index: 10000;
    
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 0px;
    padding: 10px;

    background-color: var(--secondary-black);

    border-bottom: 1px solid color-mix(in srgb, var(--tertiary-white) 22%, transparent);
}


/* * page-section is a generic class for all sections of the page. Each section has a unique class for styling */
.page-section {
    width: 100%;
    box-sizing: border-box;
}

.page-section--dark {
    background-color: var(--secondary-black);
    color: var(--tertiary-white);
    padding: 100px 0px 100px;
}

/* first section fills the rest of the screen under the navbar, so no white gap shows on tall screens.
   3rem is a bit less than the navbar's height, so it runs slightly past the fold instead of leaving a gap */
#top {
    min-height: calc(100vh - 3rem);
    min-height: calc(100svh - 3rem);
    position: relative;
}

/* "scroll for more" link, sits centered in the bottom padding of #top */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;

    color: var(--tertiary-white);
    text-decoration: none;
    font-size: var(--fs-small);
    opacity: .6;
    transition: opacity .2s;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint span {
    font-size: 1.25rem;
}

.page-section--about {
    background-color: var(--tertiary-white);
    color: var(--text-color);
    padding: clamp(5rem,10vw,10rem);
}

.page-section--services {
    background-color: var(--primary-purple);
    color: var(--text-color);
    padding: clamp(5rem,10vw,10rem);
}

.page-section--process {
    background-color: var(--secondary-black);
    color: var(--tertiary-white);
    padding: clamp(5rem,10vw,10rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10%;
    align-items: center;
}

.page-section--tagline {
    background-color: var(--tertiary-white);
    color: var(--text-color);
    padding: clamp(5rem,10vw,10rem);
}

/* plain bands for the subpages. no side padding, .section-content sets the width */
.page-section--light {
    background-color: var(--tertiary-white);
    color: var(--text-color);
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.page-section--accent {
    background-color: var(--primary-purple);
    color: var(--text-color);
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.section-content {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
}


/* * subpage hero, used by services and process.
   * headline across the full width, lead + links underneath */
.page-hero h1 {
    margin: 0px;
    font-size: var(--fs-hero);
    line-height: 1;
}

.page-hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(2rem, 8vw, 8rem);
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--tertiary-white) 22%, transparent);
}

.page-hero-lead {
    max-width: 520px;
    margin: 0px;
    font-size: var(--fs-lead);
    line-height: 1.5;
    opacity: .76;
}

/* link list next to the lead; negative margin lines the first link up with the lead */
.page-links {
    list-style: none;
    margin: -.75rem 0 0;
    padding: 0px;
}

.page-links a {
    display: flex;
    justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--tertiary-white) 22%, transparent);
    color: var(--tertiary-white);
    text-decoration: none;
    font-size: var(--fs-lead);
    transition: color .2s ease;
}

.page-links span {
    display: inline-block;
    transition: transform .2s ease;
}

.page-links a:hover,
.page-links a:focus-visible {
    color: var(--primary-purple);
}

/* ↓ nudges down for in-page links, ↗ nudges up and right for links to other pages */
.page-links a:hover span,
.page-links a:focus-visible span {
    transform: translateY(3px);
}

.page-links a[href$=".html"]:hover span,
.page-links a[href$=".html"]:focus-visible span {
    transform: translate(3px, -3px);
}



/* * section heading + lead for the subpages, matches the h2s on the homepage */
.section-intro h2,
.cta-content h2 {
    max-width: 900px;
    margin: 0px;
    font-size: var(--fs-display);
    line-height: .98;
}

.section-intro p,
.cta-copy p {
    max-width: 560px;
    margin: 2rem 0 0;
    font-size: var(--fs-lead);
    line-height: 1.45;
}



/* * three columns, each with a title and a short text. used by services and about */
.column-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.column-item {
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(1, 1, 1, .55);
}

.column-item h3 {
    margin: 0px;
    font-size: var(--fs-title);
    line-height: 1.05;
}

.column-item p {
    max-width: 360px;
    margin: .65rem 0 0;
    font-size: var(--fs-body);
    line-height: 1.4;
}



/* * closing call to action for the subpages; heading on the left, text + button on the right */
.cta-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
}

.cta-copy p {
    margin-top: 0px;
}

/* overrides the centered placement further down */
.cta-copy #goodbye-button {
    margin: 2rem 0 0;
}


/* * welcome div (before we switched to section format) */
.welcome-div-container {
    margin-top: 0px;
}

.welcome-text,
#welcome-text {
    font-size: clamp(40px, 10vw, 140px);
}

.welcome-text p {
    font-size: 1em;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
}

#blue {
    color: var(--primary-purple);
    margin-top: -0.25em;
}

.welcome-text p:nth-child(3) {
  margin-top: -0.25em;
}

#welcome-div {
    gap: 200px;

    display: flex;
    justify-content: space-around;
    text-align: left;
}
#smallText {
    margin-top: 20px;
    max-width: 500px;
    font-size: var(--fs-lead);
    line-height: 1.5;
    font-weight: normal;
    color: var(--tertiary-white);
    opacity: .76;
}

/* book call button for welcome section. the process buttons on the homepage, the services FAQ, the end of the process page and the portfolio placeholder share the look */
#welcome-button,
#process-button,
#faq-button,
#start-button {
    padding: 15px 30px;
    font-size: var(--fs-body);
    font-weight: bold;
    background-color: var(--tertiary-white);
    border: 1px solid var(--tertiary-white);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
#welcome-button:hover,
#process-button:hover,
#faq-button:hover,
#start-button:hover {
    background-color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
    transform: translateY(-4px);
}

#welcome-button {
    margin-top: 30px;
}

#welcome-button p,
#process-button p,
#faq-button p,
#start-button p {
    text-align: center;
    font-family: baseFont;
}

/* no margin on the label, so the padding alone sets the height like #goodbye-button */
#process-button p,
#faq-button p,
#start-button p {
    margin: 0px;
}

#welcome-button span,
#process-button span,
#faq-button span,
#start-button span {
    margin-left: 10px;
}


/* services section button */
#services-button {
    display: block;
    margin: 60px auto 0;
    padding: 10px 30px;
    font-size: var(--fs-body);
    font-weight: bold;
    background-color: var(--secondary-black);
    border: 1px solid var(--secondary-black);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
#services-button:hover {
    background-color: var(--tertiary-white);
    border: 1px solid var(--tertiary-white);
    transform: translateY(-4px);
}

#services-button p {
    text-align: center;
    text-decoration: none;
    font-family: baseFont;
    color: var(--tertiary-white);
}
#services-button:hover p {
    color: var(--secondary-black);
}

#services-button span {
    margin-left: 10px;
}

/* * navbar-logo = text, logo = icon */
.navbar-logo {
    line-height: 0.5;
    text-decoration: none;
    font-size: 15px;
    margin-left: 30px;

    color: var(--tertiary-white);

    display: flex;

    align-items: center;

    gap: 15px;
}

.logo {
    width: 30px;
}

#landing-logo {
    width: clamp(72px, 12vw, 300px);
    margin: 0px 120px 0px 0px;
}

/* * more section styling, tbh idk why it is split from the prior */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr .8fr;
    gap: 10%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.services-content {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
    gap: clamp(3rem, 9vw, 9rem);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 10%;
    width: 100%;
    max-width: 1050px;
    margin: 0;
    gap: 2rem;
}

/* * logo(s) placed in the process section. 
! Currently being occupied by the SVG styling for our logo as a placeholder */
#process-logos {
    gap: 10%;
    max-width: 1050px;
    width: 100%;
    margin: 0;
}

#process-logos svg {
    display: block;
    width: 100%;
    height: auto;
}
.cls-1 {
    fill: var(--tertiary-white);
    fill-rule: evenodd;
    stroke: none;
    stroke-linejoin: round;
    stroke-width: 0;
}
.cls-2 {
    fill: var(--tertiary-white);
}

/* * display flex and its accomplices are commented out as they were interfering with the text alignment, 
   * may be changed in the future as this is scuffed */
.tagline-content {
    /* display: flex;
    justify-content: center;
    align-items: center; */
    text-align: center;
    /* gap: 10%; */
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.tagline-content h2 {
    max-width: 760px;
    margin: 0px;
    font-size: var(--fs-display);
    /* line-height: 0.98; */
    display: inline;
}

.services-content h2 {
    max-width: 760px;
    margin: 0px;
    font-size: var(--fs-display);
    line-height: 0.98;
}

.about-content h2 {
    max-width: 760px;
    margin: 0px;
    font-size: var(--fs-display);
    line-height: 0.98;
}

.process-content h2 {
    max-width: 760px;
    margin: 0px;
    font-size: var(--fs-display);
    line-height: 0.98;
}

/* process + portfolio buttons, side by side under the heading */
.process-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* outlined so it reads as the second choice next to the filled process button */
#portfolio-button {
    padding: 15px 30px;
    font-size: var(--fs-body);
    font-weight: bold;
    background-color: transparent;
    border: 1px solid rgb(150, 150, 150);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
#portfolio-button:hover {
    background-color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
    transform: translateY(-4px);
}

#portfolio-button p {
    margin: 0px;
    text-align: center;
    font-family: baseFont;
    color: var(--tertiary-white);
}
#portfolio-button:hover p {
    color: var(--secondary-black);
}

#portfolio-button span {
    margin-left: 10px;
}

.about-copy {
    grid-column: 2;
    max-width: 560px;
}

.about-copy p {
    margin-top: 20px;
    font-size: var(--fs-lead);
}

.services-copy {
    grid-column: 2;
    max-width: 560px;
}

.services-copy p {
    margin-top: 20px;
    font-size: var(--fs-lead);
}

.services-intro {
    align-self: start;
    position: sticky;
    top: 100px;
}

.services-lead {
    max-width: 360px;
    margin: 2rem 0 0;
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.service-list {
    border-top: 1px solid rgba(1, 1, 1, .55);
}

.service-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 2rem;
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 0 1.65rem;
    border-bottom: 1px solid rgba(1, 1, 1, .55);
    transition: background-color .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-item:hover {
        background-color: rgba(232, 240, 233, .16);
        transform: translateX(.35rem);
    }
}

.service-number {
    padding-top: .35rem;
    font-size: var(--fs-small);
    font-weight: bold;
    opacity: .62;
}

.service-details h3 {
    margin: 0;
    font-size: var(--fs-title);
    line-height: 1.05;
}

.service-details p {
    max-width: 520px;
    margin: .65rem 0 0;
    font-size: var(--fs-body);
    line-height: 1.4;
}

.process-copy {
    grid-column: 2;
    max-width: 560px;
}

.process-copy p {
    margin-top: 20px;
    font-size: var(--fs-lead);
}


/* * styling for mobile devices and small screens */
@media (max-width: 700px) {
    #welcome-div {
        flex-direction: column;
        gap: 60px;
    }

    /* the logo would land under the text once the hero stacks, so it is dropped */
    #landing-logo {
        display: none;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .services-intro {
        position: static;
    }

    .services-lead {
        margin-top: 1.5rem;
    }

    .service-item {
        grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
        gap: .75rem;
        padding: 1.25rem 0 1.4rem;
    }

    /* navbar: logo + book button on the first row, the page links spread out on a row underneath.
       right-area is flattened so its links and button can be ordered around the line break (nav::after).
       the nav prefix is needed because the desktop .right-area rules come later in this file */
    html {
        scroll-padding-top: 7rem;
    }

    nav {
        flex-wrap: wrap;
        padding: 8px 16px 0;
    }

    nav::after {
        content: "";
        order: 2;
        flex-basis: 100%;
    }

    .navbar-logo {
        margin-left: 0px;
        gap: 8px;
    }

    .right-area {
        display: contents;
    }

    nav .right-area button {
        order: 1;
        margin: 0 0 0 auto;
        padding: 6px 2px;
    }

    nav .right-area a {
        order: 3;
        flex: 1;
        margin-top: 8px;
        padding: 10px 0;
        border-top: 1px solid color-mix(in srgb, var(--tertiary-white) 22%, transparent);
        text-align: center;
        font-size: var(--fs-small);
    }

    /* process band: logo above the text, side padding comes from .process-content instead */
    .page-section--process {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: 0;
        padding-right: 0;
    }

    #process-logos {
        max-width: 280px;
        margin: 0 auto;
    }

    /* About & process: switch to single column and prevent overflow */
    .about-content,
    .process-content {
        display: block;
        grid-template-columns: none;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 2rem;
        box-sizing: border-box;
    }

    /* block layout drops the flex gap, so the buttons get their own spacing */
    .process-buttons {
        margin: 1.5rem 0;
    }

    .about-copy,
    .process-copy {
        grid-column: auto;
        max-width: 100%;
    }

    /* make sure headings and paragraphs break instead of overflowing */
    .about-content h2,
    .process-content h2,
    .services-content h2,
    .tagline-content h2 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .about-copy p,
    .process-copy p,
    .service-details p,
    .services-lead,
    #smallText {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* shared subpage components stack into one column */
    .page-hero-bottom,
    .cta-content,
    .column-list {
        grid-template-columns: 1fr;
    }

    .page-links {
        margin-top: 0px;
    }

    /* footer: stack on mobile and scale image responsively */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-left img {
        max-width: 48px;
        height: auto;
        width: auto;
    }
}


/* the smallest phones: shrink the wordmark and the book button so they still share the first navbar row */
@media (max-width: 360px) {
    .navbar-logo {
        font-size: 12px;
    }

    nav .navbar-book p {
        margin: 2px 6px;
        font-size: var(--fs-small);
    }
}


/* * uses negative margin to cancel out padding from inherited */
.navbar-book p {
    margin: 2px 10px;

    color: white;

    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    font-family: baseFont;
    font-size: 15px;
}

/* navbar stuff */
.navbar-book span {
    margin-left: 8px;
}

.left-area {
    margin: 0px 0px;
}

.right-area a {
    color: var(--tertiary-white);
    text-decoration: none;
    padding-right: 30px;
    font-size: 15px;
    transition: color .2s ease;
}
.right-area a:hover {
    color: var(--primary-purple);
}

/* marks the current page in the navbar */
.right-area a[aria-current="page"] {
    color: var(--primary-purple);
}

/* navbar button hover effects */
.right-area button {
    background-color: transparent;
    border: 1px solid rgb(150, 150, 150);
    display: inline-flex;
    padding: 10px;
    margin-right: 30px;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.right-area button:hover p {
    color: var(--secondary-black);
    text-decoration: none;
}
.right-area button:hover {
    border: 1px solid var(--primary-purple);
    background-color: var(--primary-purple);
}

/* This is where the text lives */
.text-area {
    background-color: var(--tertiary-white);
}

.info-area-text {
    width: 80%;

    margin: 0 auto;

    gap: 200px;

    display: flex;

    text-align: left;
}

/* end-of-page book a call button */
#goodbye-button {
    display: block;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 3rem;
    padding: 15px 30px;
    font-size: var(--fs-body);
    font-weight: bold;
    background-color: var(--secondary-black);
    border: 1px solid var(--secondary-black);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
#goodbye-button:hover {
    background-color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
    transform: translateY(-4px);
}
#goodbye-button a {
    text-align: center;
    text-decoration: none;
    font-family: baseFont;
    color: var(--tertiary-white);
}
#goodbye-button:hover a {
    color: var(--secondary-black);
}
#goodbye-button span {
    margin-left: 10px;
}

/* the line separates the footer from a light last section */
footer {
    border-top: 1px solid color-mix(in srgb, var(--secondary-black) 22%, transparent);
}

.footer-content {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-left img {
    max-height: 2rem;
    height: auto;
    width: auto;
    max-width: 100%;
}