/* Hedonism The Salon — holding page */

@font-face {
    font-family: "Nunito Sans";
    src: url("../fonts/nunito-sans-latin-wght.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Logo colours */
    --grey:        #666563; /* logo background, used for the hero */
    --ivory:       #E5E1DF; /* logo lettering */
    --silver:      #D1D1D1; /* logo secondary */
    /* Deepened grey for body sections so smaller text keeps strong contrast (6:1+) */
    --grey-deep:   #52504E;
    --line:        rgba(229, 225, 223, 0.28);

    --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--grey-deep);
    color: var(--ivory);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
    outline: 1px solid var(--ivory);
    outline-offset: 4px;
}

/* ---------- Hero ---------- */

.hero {
    /* 80% of the original 88vh spacing, plus an allowance for the content */
    min-height: calc(70.4vh + 2.3rem);
    min-height: calc(70.4svh + 2.3rem);
    display: grid;
    place-items: center;
    padding: 3.2rem var(--gutter);
    background: var(--grey);
    text-align: center;
}

.hero__inner { max-width: 46rem; width: 100%; }

.hero__logo {
    margin: 0 auto;
    width: min(80%, 32rem);
}

.hero__logo img { width: 100%; height: auto; }

.hero__tagline {
    margin: 2.25rem 0 0;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ivory);
}

.hero__note {
    margin: 1rem auto 0;
    max-width: 30rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--ivory);
}

.hero__actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .875rem;
}

.btn {
    display: inline-block;
    padding: .9rem 1.6rem;
    border: 1px solid var(--ivory);
    background: var(--ivory);
    color: #3E3D3B;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

.btn:hover { background: transparent; color: var(--ivory); }

.btn--ghost { background: transparent; color: var(--ivory); }
.btn--ghost:hover { background: var(--ivory); color: #3E3D3B; }

/* ---------- Divider with scissors ---------- */
/* Sits exactly on the edge between the hero and the darker body, so the
   colour change itself is the line being cut. */

.divider {
    position: relative;
    z-index: 1;
    height: 2rem;
    margin: -1rem 0;           /* centre the 2rem track on the colour edge */
    padding: 0 var(--gutter);
    color: var(--ivory);
}

.divider__track {
    position: relative;
    height: 100%;
    --scissors-w: 5rem;       /* shears artwork is 84 x 36 */
}

/* The trail left behind the scissors */
.divider__cut {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: var(--cut-x, 0px);
    background: repeating-linear-gradient(to right,
        rgba(229, 225, 223, .55) 0 6px, transparent 6px 10px);
}

/* Static fallback (reduced motion / no JS): scissors resting mid-edge */
.scissors {
    position: absolute;
    top: calc(50% - var(--scissors-w) * 18 / 84); /* pivot on the colour edge */
    left: calc(50% - var(--scissors-w) / 2);
    width: var(--scissors-w);
    height: calc(var(--scissors-w) * 36 / 84);
    overflow: visible;
    will-change: transform;
}

/* Scroll-driven mode (enabled by site.js) */
.divider.is-live .divider__cut { display: block; }

.divider.is-live .scissors {
    left: 0;
    transform: translateX(var(--scissors-x, 0px));
}

/* ---------- Sections ---------- */

.section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4.5rem var(--gutter) 0;
}

.eyebrow {
    margin: 0 0 1.25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--silver);
}

.services { text-align: center; }

/* Wide screens: one line. Mid widths: 3 + 2, centred. Phones: stacked. */
.services__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2.5rem;
    font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
    font-weight: 300;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Row spacing lives on the items so the break element doesn't double it */
.services__list li { padding: .375rem 0; }

/* Line break after the third service */
.services__list::after { content: ""; flex-basis: 100%; order: 1; }
.services__list li:nth-child(n+4) { order: 2; }

@media (min-width: 1080px) {
    .services__list { gap: 2.75rem; }
    .services__list::after { content: none; }
}

.info {
    display: grid;
    /* Columns sized to their content, with the spare space shared equally between them */
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 3rem;
}

.info__col p { margin: 0 0 .5rem; }

address { font-style: normal; margin-bottom: .75rem; }

.hours { margin: 0; min-width: 17rem; }

.hours__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
}

.hours__row:first-child { padding-top: 0; }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; color: var(--silver); white-space: nowrap; }

.link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
    text-decoration-color: var(--line);
    transition: text-decoration-color .3s var(--ease);
}

.link:hover { text-decoration-color: var(--ivory); }

.link--plain { font-size: 1.25rem; font-weight: 300; letter-spacing: .04em; text-decoration: none; }

.brands { text-align: center; padding-bottom: 1rem; }

.brands__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.5rem;
    font-size: .9375rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--silver);
}

.brands__list li { display: flex; align-items: center; min-height: 2rem; }
.brand-logo { display: flex; color: #FFFFFF; }

/* Logos sit at a shared height; adjust per brand if one looks heavier */
.brand-logo svg { height: var(--logo-h, 1.75rem); width: auto; }

/* ---------- Footer ---------- */

.footer {
    max-width: 64rem;
    margin: 4.5rem auto 0;
    padding: 0 var(--gutter);
    text-align: center;
    font-size: .8125rem;
    letter-spacing: .08em;
    color: var(--silver);
}

.footer p { margin: 0; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); }

/* ---------- Restrained entrance (JS only, reduced-motion aware) ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */

/* The three info columns need ~860px side by side; stack them below that */
@media (max-width: 900px) {
    .info { grid-template-columns: 1fr; justify-content: stretch; gap: 2.75rem; text-align: center; }
    .hours { min-width: 0; max-width: 20rem; margin: 0 auto; }
}

@media (max-width: 760px) {
    .services__list { flex-direction: column; align-items: center; }
    .services__list::after { content: none; }
    .brands__list { flex-direction: column; }
    .hero { min-height: calc(64svh + 3.2rem); }
    .hero__actions .btn { flex: 1 1 14rem; }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
