/*

Stylesheet name
Author: Lee Frankis
Copyright: 2025 Idearium

*/

/****************************************************************************************************/
/* Custom root styles */

@font-face {
    font-family: "Inter";
    src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf');
    font-display: swap;
}

@font-face {
    font-family: "SourceSerif4";
    src: url('assets/fonts/SourceSerif4-VariableFont_opsz,wght.ttf');
    font-display: swap;
}

:root {
    --gap: 8px;
    --gap-2x: calc(var(--gap) * 2);
    --gap-3x: calc(var(--gap) * 3);
    --gap-4x: calc(var(--gap) * 4);
    --gap-6x: calc(var(--gap) * 6);
    --gap-8x: calc(var(--gap) * 8);
    --gap-12x: calc(var(--gap) * 12);
    --white: #ffffff;
    --black: #2E2E2E;
    --green: #4F6F5D;
    --earth: #C9A27E;
    --beige: #F3EDE3;
    --warm-white: #FAF8F5;
    --padding-x: 48px;
    --padding-y: 96px;
    --radius: 12px;
    --card-padding: 32px;
}

/****************************************************************************************************/
/* Idearium default styles */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 16px; /* root em */
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    color: var(--black);
}

button {
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
    text-align: inherit;
    font: inherit;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* flex utilities */

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-ctr {
    justify-content: center;
    align-items: center;
}

.flex-start {
    align-items: flex-start;
}

.align-items-ctr {
    align-items: center;
}

.justify-ctr {
    justify-content: center;
}

.flex-right {
    margin-left: auto;
}

.fill-width {
    width: 100%;
}

.space-between {
    justify-content: space-between;
}

.push-bottom {
    margin-top: auto;
}

.push-right {
    margin-left: auto;
}



/* gap */
.gap {
    gap: var(--gap);
}

.gap-2x {
    gap: var(--gap-2x);
}

.gap-3x {
    gap: var(--gap-3x);
}

.gap-4x {
    gap: var(--gap-4x);
}

.gap-6x {
    gap: var(--gap-6x);
}

.gap-8x {
    gap: var(--gap-8x);
}

.gap-12x {
    gap: var(--gap-12x);
}



/* animated menu icon  */

.menu-icon-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

.menu-icon {
    width: 24px;
    height: 12px;
    margin: auto;
    z-index: 10;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.menu-icon span {
    position: absolute;
    display: block;
    height: 3px;
    width: 24px;
    background-color: var(--black);
    transform: rotate(0);
    transition: all 200ms cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.menu-icon span.one {
    top: 0px;
}

.menu-icon span.two {
    top: 8px;
}

.clicked .one {
    transform: translateY(4px) rotate(45deg);
}

.clicked .two {
    transform: translateY(-4px) rotate(-45deg);
}

/* hide / show */
.hidden-sm {
    display: flex;
}

.visible-sm {
    display: none;
}

/* fonts */
h1, h2, h3, h4, h5, p {
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    max-width: 75ch;
}

.h1, .h2, .h3, .h4, .h5 {
    font-family: "SourceSerif4", serif;
    line-height: 1.2;
    font-weight: 400;
}


.h1 {
    font-size: 3rem;
}

.h2 {
    font-size: 2rem;
}

.h3 {
    font-size: 1.5rem;
}

.h4 {
    font-size: 1.25rem;
}

.p {
    font-size: 1rem;
    line-height: 1.4;
}

.small {
    font-size: 0.75rem;
}

.large {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}

.no-limit {
    max-width: 100%;
}

.max-25ch {
    max-width: 25ch;
}

.max-50ch {
    max-width: 50ch;
}

.faded {
    opacity: 0.6;
}

.rotate-90 {
    transform: rotate(-90deg);
}

.basic-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basic-list a,
.unstyled-list a {
    color: inherit;
}

.unstyled-list {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style-type: none;
}

/* images */
.img-holder {
    background-color: #f0f0f0;
    border-radius: var(--radius);
    overflow: hidden;
}

.img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-2-1 {
    aspect-ratio: 2 / 1;
}

.aspect-ratio-4-5 {
    aspect-ratio: 4 / 5;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* buttons */
.btn-primary {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    border: 1px solid var(--green);
    background-color: var(--green);
    color: var(--white);
    width: fit-content;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    color: var(--green);
    background-color: transparent;
}

.btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: inherit;
    white-space: nowrap;
    text-decoration: underline;
}

.btn-header {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    border: 1px solid var(--green);
    background-color: var(--green);
    color: var(--white);
    width: fit-content;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-header:hover {
    color: var(--green);
    background-color: transparent;
}

.btn-card {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 var(--radius) var(--radius);
    background-color: var(--green);
    color: var(--white);
    width: 100%;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.basic-link {
    color: var(--green);
    font-weight: 500;
}

/* page */
.page-width {
    width: 100%;
    max-width: 1440px;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
    margin: 0 auto;
}

.section-padding {
    padding-top: var(--padding-y);
    padding-bottom: var(--padding-y);
}

.section-layers {
    position: relative;
}




/* colors */
.bg-beige {
    background-color: var(--beige);
}

.bg-warm-white {
    background-color: var(--warm-white);
}

.bg-white {
    background-color: var(--white);
}

.color-green {
    color: var(--green);
}

.color-earth {
    color: var(--earth);
}

/* columns */
.col-50 {
    width: 50%;
}

/* hr */
.shorty {
    border: none;
    height: 1px;
    background: var(--black);
    width: 80px;
}

/* cards */
.card-50 {
    flex: 1 1 calc((100% - (1 * 24px)) / 2);
    max-width: calc((100% - (1 * 24px)) / 2);
}

/* svg */
svg {
  flex-shrink: 0;
}

/****************************************************************************************************/
/* Custom stylesheet start */

/* header */
header {
    padding-top: 16px;
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.nav-link {
    color: var(--green);
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

/* hero */
.hero {
    background: linear-gradient(90deg, #FAF8F5 32.69%, rgba(255, 255, 255, 0.00) 100%), url("assets/images/marietta-wong-acupuncture-pickering.jpg") lightgray 392.452px -81.652px / 100% 119.078% no-repeat;
    background-size: cover;
    background-position: right;
}

/* reviews */
.reviews-card {
    border-radius: var(--radius);
    padding: var(--card-padding);
    background-color: var(--warm-white);
}

/* benefits */
.benefits {
    background: linear-gradient(90deg, #FAF8F5 32.69%, rgba(255, 255, 255, 0.00) 100%), url("assets/images/pexels-olly-3764568.jpg") lightgray 392.452px -81.652px / 100% 119.078% no-repeat;
    background-size: cover;
    background-position: center;
}

/* first visit */
.card {
    border-radius: var(--radius);
    padding: var(--card-padding);
}

/* pricing */
.pricing-card {
    border-radius: var(--radius);
    background-color: var(--warm-white);
    width: 100%;
}

.pricing-card .content {
    padding: var(--card-padding);
}

/* faqs */
.faq-item {
    padding: var(--card-padding);
    background-color: var(--white);
    border-radius: var(--radius);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 16px;
}

.icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.icon-minus {
  opacity: 0;
}

.faq details[open] .icon-plus {
  opacity: 0;
}

.faq details[open] .icon-minus {
  opacity: 1;
}

/* contact */
.map-container {
  position: relative;
  width: 100%;          /* fills parent div width */
  padding-bottom: 70%;
  height: 0;             /* forces aspect ratio */
  overflow: hidden;      /* hides overflow */
  border-radius: var(--radius);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* footer */
footer {
    background-color: var(--green);
    color: white;
    padding-top: 20px;
    padding-bottom: 20px;
}


/****************************************************************************************************/
/* media queries */

/* Large screens */
@media screen and (max-width: 1590px) {}

/* Medium screens */
@media screen and (max-width: 800px) {
    :root {
        --padding-x: 20px;
        --padding-y: 48px;
        --card-padding: 20px;
    }
    .card-50, .card-33 {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .flex-col-md {
        flex-direction: column;
    }
    .gap-3x-md {
        gap: var(--gap-3x);
    }
    .gap-2x-md {
        gap: var(--gap-2x);
    }
    .col-50 {
        width: 100%;
    }
    .order-1-md {
        order: 1;
    }
    .order-2-md {
        order: 2;
    }
}

/* Small screens */
@media screen and (max-width: 679px) {
    .flex-col-sm {
        flex-direction: column;
    }
    .hidden-sm {
        display: none;
    }
    .btn-header {
        font-size: 13px;
    }
    .header-sm {
        font-size: 15px;
    }
    .aspect-ratio-1-1-sm {
        aspect-ratio: 1 / 1;
    }
    .order-1-sm {
        order: 1;
    }
    .order-2-sm {
        order: 2;
    }
    .h1 {
        font-size: 2.5rem;
    }
    
}

/* Tiny screens */
@media screen and (max-width: 390px) {}