/*
    SYNOPSIS
        Styles for sweetheartcollective.cc (Nailed by Janelle).

    DESCRIPTION
        One stylesheet for every page. Palette is lifted straight off her actual
        gel colors - oxblood, cherry, blush, pearl - because a nail tech's site
        should look like her nails and not like a SaaS landing page.

    NOTES
        Author:  Zachary Wright
        File:    css/site.css
        Client:  Sweetheart Collective LLC (Nailed by Janelle)
        Purpose: Built for the client's website. Provided as-is.
*/
/* ##xchronusx */

/* #region TOKENS */
:root {
    --oxblood: #3b0a15;
    --oxblood-2: #4a0f1c;
    --cherry: #8c1a2b;
    --blush: #ebc9c1;
    --pearl: #faf3f2;
    --mist: #f2e3df;
    --ink: #2b1217;
    --ink-soft: #6b4a4f;
    --chrome: linear-gradient(115deg, #fbeef1 0%, #eadff5 30%, #def1ef 55%, #f8e7e1 78%, #fbeef1 100%);

    --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

    --step--1: 0.9rem;
    --step-0: 1.0625rem;
    --step-1: 1.4rem;
    --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    --step-3: clamp(2.4rem, 1.4rem + 4vw, 3.9rem);
    --step-4: clamp(3.6rem, 1.5rem + 9.5vw, 9.5rem);

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --maxw: 76rem;
}
/* #endregion */

/* #region BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink);
    background: var(--pearl);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--blush); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: 34em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pearl); color: var(--ink); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* #endregion */

/* #region BUTTONS - glossy like a fresh top coat */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3rem; padding: 0.75rem 1.6rem;
    border-radius: 999px; border: 1px solid transparent;
    font: 600 var(--step--1)/1 var(--sans); letter-spacing: 0.01em;
    text-decoration: none; cursor: pointer;
    transition: background-position 600ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-chrome {
    background: var(--chrome); background-size: 220% 100%; background-position: 0% 50%;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(0,0,0,.25);
}
.btn-chrome:hover { background-position: 100% 50%; text-decoration: none; }
.btn-cherry { background: var(--cherry); color: var(--pearl); }
.btn-cherry:hover { background: #a2223a; text-decoration: none; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(235, 201, 193, 0.12); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* #endregion */

/* #region HEADER */
.site-header { background: var(--oxblood); color: var(--pearl); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand svg { width: 1.9rem; height: auto; color: var(--blush); flex: none; }
.brand span { font: italic 500 1.35rem/1 var(--serif); }
.nav-toggle {
    display: none; background: none; border: 1px solid rgba(235,201,193,.5); color: var(--pearl);
    border-radius: 999px; padding: 0.5rem 1rem; font: 500 var(--step--1)/1 var(--sans); cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--blush); }
.site-nav .btn { min-height: 2.5rem; padding: 0.55rem 1.2rem; }

@media (max-width: 46rem) {
    .nav-toggle { display: inline-block; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--oxblood); border-top: 1px solid rgba(235,201,193,.15); display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
    .site-nav li a:not(.btn) { display: block; padding: 0.85rem 0; font-size: var(--step-0); border-bottom: 1px solid rgba(235,201,193,.12); }
    .site-nav li:last-child { padding-top: 1rem; }
    .site-nav .btn { width: 100%; min-height: 3rem; }
}
/* #endregion */

/* #region HERO - the wordmark + the swatch fan */
.hero { background: var(--oxblood); color: var(--pearl); overflow: hidden; }
.hero .wrap {
    display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: var(--gutter);
    padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.wordmark { font-size: clamp(3.2rem, 1rem + 6.2vw, 6.75rem); font-weight: 400; line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 0.4em; }
.wordmark .line-2 { display: block; font-style: italic; padding-left: 0.4em; color: var(--blush); white-space: nowrap; word-spacing: 0.08em; }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 27em; color: #f1dcd7; margin-bottom: 1.8rem; }

.fan { --tip-w: clamp(9.5rem, 15vw, 14rem); position: relative; height: calc(var(--tip-w) * 1.6 + 3rem); filter: drop-shadow(0 18px 28px rgba(20, 0, 6, .55)); }
.tip {
    position: absolute; bottom: 1rem; left: 50%;
    width: var(--tip-w); aspect-ratio: 100 / 160;
    margin-left: calc(var(--tip-w) / -2);
    /* pivot way below the tips so they fan out like a swatch ring instead of clumping */
    transform-origin: 50% 330%;
    -webkit-mask: url("../img/almond.svg") center / 100% 100% no-repeat;
            mask: url("../img/almond.svg") center / 100% 100% no-repeat;
    background: var(--oxblood-2);
}
.tip img { width: 100%; height: 100%; object-fit: cover; }
/* the shine streak - every good gel set has one */
.tip::after {
    content: ""; position: absolute; top: 14%; left: 22%; width: 13%; height: 46%;
    border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
    filter: blur(1.5px); transform: rotate(-8deg); pointer-events: none;
}
.tip-1 { transform: rotate(-13deg); }
.tip-2 { transform: translateY(-4%); z-index: 2; }
.tip-3 { transform: rotate(13deg); }

@media (prefers-reduced-motion: no-preference) {
    .tip-1 { animation: fan-left 1000ms cubic-bezier(.2,.8,.2,1) 200ms both; }
    .tip-3 { animation: fan-right 1000ms cubic-bezier(.2,.8,.2,1) 200ms both; }
    @keyframes fan-left  { from { transform: rotate(0deg); } to { transform: rotate(-13deg); } }
    @keyframes fan-right { from { transform: rotate(0deg); } to { transform: rotate(13deg); } }
}

@media (max-width: 52rem) {
    .hero .wrap { grid-template-columns: 1fr; }
    .fan { --tip-w: 8.25rem; order: -1; margin-top: 0.5rem; }
}
/* #endregion */

/* #region SECTIONS */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-dark { background: var(--oxblood); color: var(--pearl); }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { margin: 0; color: var(--ink-soft); }

.statement { background: var(--cherry); color: var(--pearl); }
.statement .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.statement p { font: italic 400 var(--step-2)/1.25 var(--serif); margin: 0; max-width: 30em; }
/* #endregion */

/* #region GALLERY */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.6rem, 1.4vw, 1rem); margin: 0; padding: 0; list-style: none; }
.gallery li { grid-column: span 2; margin: 0; }
.gallery li.wide { grid-column: span 4; }
.gallery figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.gallery .frame { flex: 1; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; background: var(--mist); }
.gallery li.half { grid-column: span 3; }
.gallery li.half .frame { aspect-ratio: 2 / 1; }
/* wides take the square's row height so captions line up - img can't be allowed to vote */
.gallery li.wide .frame { aspect-ratio: auto; position: relative; }
.gallery li.wide img { position: absolute; inset: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font: italic 400 0.95rem/1.3 var(--serif); color: var(--ink-soft); padding-top: 0.5rem; }
@media (max-width: 46rem) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
    .gallery li { grid-column: span 1; }
    .gallery li.wide, .gallery li.half { grid-column: span 2; }
    .gallery li.wide .frame { aspect-ratio: 2 / 1; }
    .gallery li.wide img { position: static; }
}
/* #endregion */

/* #region SERVICE LIST */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(43,18,23,.18); }
.menu > li {
    display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr 7.5rem; gap: 0.5rem 2.5rem; align-items: baseline;
    padding-block: 1.4rem; border-bottom: 1px solid rgba(43,18,23,.18);
}
.menu h3 { font-size: var(--step-1); }
.menu p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.menu .price { font: 500 var(--step-1)/1 var(--serif); white-space: nowrap; color: var(--cherry); text-align: right; }
.menu .price:empty { display: none; }
.menu .price small { font: 400 var(--step--1)/1 var(--sans); color: var(--ink-soft); margin-left: 0.25em; }
.menu-compact > li { grid-template-columns: minmax(10rem, 1fr) 2fr; padding-block: 1.1rem; }
@media (max-width: 46rem) {
    .menu > li, .menu-compact > li { grid-template-columns: 1fr; }
    .menu .price { text-align: left; }
}
/* #endregion */

/* #region STEPS - booking is an actual sequence, so it gets numbers */
.steps { list-style: none; counter-reset: step; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { counter-increment: step; border-top: 1px solid rgba(235,201,193,.35); padding-top: 1.2rem; }
.steps li::before { content: counter(step); display: block; font: italic 400 3rem/1 var(--serif); color: var(--blush); margin-bottom: 0.75rem; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: #e9d3ce; }
@media (max-width: 46rem) { .steps { grid-template-columns: 1fr; } }
/* #endregion */

/* #region PAGE HEADERS (inner pages) */
.page-head { background: var(--oxblood); color: var(--pearl); }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: var(--step-3); font-weight: 400; margin-bottom: 0.5em; }
.page-head h1 em { color: var(--blush); }
.page-head p { color: #f1dcd7; max-width: 32em; font-size: 1.15rem; margin: 0; }
/* #endregion */

/* #region ABOUT */
.about-grid { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait {
    width: 100%; aspect-ratio: 100 / 160;
    -webkit-mask: url("../img/almond.svg") center / 100% 100% no-repeat;
            mask: url("../img/almond.svg") center / 100% 100% no-repeat;
    background: var(--mist);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: sepia(.15); }
.prose { font-size: 1.15rem; line-height: 1.7; }
.prose p { max-width: 34em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid rgba(43,18,23,.18); }
.facts dt { font: italic 500 1.05rem/1.5 var(--serif); color: var(--cherry); }
.facts dd { margin: 0; }
@media (max-width: 46rem) {
    .about-grid { grid-template-columns: 1fr; }
    .portrait { width: 10rem; }
    .facts { grid-template-columns: 1fr; gap: 0.15rem; }
    .facts dd { margin-bottom: 0.75rem; }
}
/* #endregion */

/* #region BOOKING */
.book-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.policies { margin: 0; padding: 0; list-style: none; }
.policies li { padding: 0.9rem 0 0.9rem 1.6rem; border-bottom: 1px solid rgba(43,18,23,.14); position: relative; }
.policies li::before {
    content: ""; position: absolute; left: 0.1rem; top: 1.45rem; width: 0.55rem; height: 0.85rem;
    background: var(--cherry);
    -webkit-mask: url("../img/almond.svg") center / 100% 100% no-repeat;
            mask: url("../img/almond.svg") center / 100% 100% no-repeat;
}
.policies strong { color: var(--cherry); }
.pay { background: var(--oxblood); color: var(--pearl); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.25rem); position: sticky; top: 1.5rem; }
.pay h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.pay dl { margin: 0; display: grid; gap: 1rem; }
.pay dt { font: italic 500 1.1rem/1.3 var(--serif); color: var(--blush); }
.pay dd { margin: 0.2rem 0 0; color: #f1dcd7; }
.pay dd a { color: var(--pearl); }
@media (max-width: 52rem) {
    .book-grid { grid-template-columns: 1fr; }
    .pay { position: static; }
}

.agree {
    margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: 4px; background: var(--mist);
    display: flex; gap: 0.9rem; align-items: flex-start; cursor: pointer; font-weight: 500;
}
.agree input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--cherry); flex: none; cursor: pointer; }

.booking-slot { margin-top: 2rem; }
.booking-slot[hidden] { display: none; }
.booking-slot iframe { width: 100%; min-height: 760px; border: 0; border-radius: 4px; background: #fff; }
.booking-fallback { background: var(--mist); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.booking-fallback h3 { margin-bottom: 0.5rem; }
.booking-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.75rem; }
.policies-close { margin-top: 1.5rem; color: var(--ink-soft); font-style: italic; max-width: 36em; }
.pay dl > div + div { border-top: 1px solid rgba(235,201,193,.18); padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
    .booking-slot:not([hidden]) { animation: slot-in 420ms ease both; }
    @keyframes slot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
/* #endregion */

/* #region CTA BAND + FOOTER */
.cta-band { text-align: left; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: #e9d3ce; margin-bottom: 1.6rem; max-width: 30em; }

.site-footer { background: #2a0610; color: #e9d3ce; font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer .brand span { font-size: 1.6rem; color: var(--pearl); }
.footer-note { margin: 0.9rem 0 0; max-width: 22em; }
.cta-band .steps { margin-top: 2.25rem; }
.site-footer h2 { font: 500 1rem/1.4 var(--sans); color: var(--pearl); margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(235,201,193,.15); padding-top: 1.25rem; margin: 0; color: #bf9d9f; }
@media (max-width: 46rem) { .site-footer .wrap { grid-template-columns: 1fr; } }
/* #endregion */

/* ##xchronusx */
