Salon — Day Spa Landing
A serene, full marketing landing for Verdé Day Spa, dressed in a soft sage, sand, and bronze wellness palette with airy whitespace and Cormorant Garamond display type over Inter. It pairs a translucent sticky nav and active-link scroll spy with a calm serif hero, count-up stats, a six-ritual services menu, a dark how-a-visit-flows three-step band, a tranquil mosaic gallery, an interactive gift-card builder with live totals and validation, a live open or closed hours indicator, and gentle reveal-on-scroll throughout.
MCP
Código
/* ============================================================
Verdé Day Spa — Landing
Palette override: sage + sand + bronze (serene, wellness)
============================================================ */
:root {
--sage: #9bb39b;
--sage-d: #6f8a6f;
--sand: #e7ddca;
--bronze: #a9824f;
--bronze-d: #8a6839;
--ink: #2f352c;
--ink-2: #50584a;
--muted: #847d6e;
--bg: #f6f2e9;
--cream: #efe9da;
--white: #ffffff;
--line: rgba(47, 53, 44, 0.1);
--line-2: rgba(47, 53, 44, 0.18);
--ok: #5f8a6b;
--warn: #c08a3e;
--danger: #b3503e;
--r-sm: 8px;
--r-md: 14px;
--r-lg: 22px;
--shadow-sm: 0 1px 2px rgba(47, 53, 44, 0.05), 0 2px 8px rgba(47, 53, 44, 0.04);
--shadow-md: 0 6px 24px rgba(47, 53, 44, 0.08), 0 2px 6px rgba(47, 53, 44, 0.05);
--shadow-lg: 0 24px 60px rgba(47, 53, 44, 0.12);
--serif: "Cormorant Garamond", Georgia, serif;
--sans: "Inter", system-ui, -apple-system, sans-serif;
--wrap: 1140px;
--pad: clamp(20px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: var(--sans);
font-size: 16px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }
a { color: inherit; text-decoration: none; }
img, figure { display: block; }
.skip {
position: absolute;
left: -9999px;
top: 0;
background: var(--ink);
color: var(--bg);
padding: 10px 16px;
border-radius: var(--r-sm);
z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.eyebrow {
font-family: var(--sans);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--bronze);
margin: 0 0 14px;
}
.eyebrow--light { color: var(--sand); }
/* ===== BUTTONS ===== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: var(--sans);
font-size: 0.92rem;
font-weight: 600;
letter-spacing: 0.01em;
padding: 11px 22px;
border-radius: 999px;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--bronze); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze); }
.btn--lg { padding: 14px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
/* ===== NAV ===== */
.nav {
position: sticky;
top: 0;
z-index: 100;
background: rgba(246, 242, 233, 0.78);
backdrop-filter: saturate(140%) blur(14px);
-webkit-backdrop-filter: saturate(140%) blur(14px);
border-bottom: 1px solid transparent;
transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
border-bottom-color: var(--line);
box-shadow: 0 6px 24px rgba(47, 53, 44, 0.05);
}
.nav__inner {
max-width: var(--wrap);
margin: 0 auto;
padding: 14px var(--pad);
display: flex;
align-items: center;
gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border-radius: 50%;
background: linear-gradient(145deg, var(--sage), var(--sage-d));
color: var(--white);
font-family: var(--serif);
font-size: 1.3rem;
font-weight: 700;
box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.brand__name {
font-family: var(--serif);
font-size: 1.4rem;
font-weight: 700;
letter-spacing: 0.01em;
line-height: 1;
display: flex;
flex-direction: column;
}
.brand__sub {
font-family: var(--sans);
font-size: 0.56rem;
font-weight: 600;
letter-spacing: 0.32em;
text-transform: uppercase;
color: var(--muted);
margin-top: 3px;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
font-size: 0.9rem;
font-weight: 500;
color: var(--ink-2);
position: relative;
padding: 4px 0;
transition: color 0.2s ease;
}
.nav__links a::after {
content: "";
position: absolute;
left: 0; bottom: -2px;
width: 0; height: 1.5px;
background: var(--bronze);
transition: width 0.25s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; gap: 10px; }
.nav__toggle {
display: none;
flex-direction: column;
gap: 5px;
width: 42px;
height: 42px;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
cursor: pointer;
}
.nav__toggle span {
display: block;
width: 18px;
height: 1.5px;
background: var(--ink);
transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__mobile {
display: flex;
flex-direction: column;
gap: 4px;
padding: 10px var(--pad) 22px;
border-top: 1px solid var(--line);
}
.nav__mobile a { padding: 12px 4px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.nav__mobile a.btn { margin-top: 12px; border-bottom: none; color: var(--bg); justify-content: center; }
/* ===== SECTION SHELL ===== */
.section { padding: clamp(64px, 9vw, 120px) var(--pad); }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head--light { color: var(--cream); }
.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.01em; }
.section__title em { font-style: italic; color: var(--bronze); }
.section__lede { color: var(--muted); font-size: 1.05rem; margin: 16px 0 0; line-height: 1.65; }
.section__head--light .section__lede { color: rgba(255, 255, 255, 0.7); }
/* ===== HERO ===== */
.hero {
position: relative;
overflow: hidden;
padding: clamp(80px, 12vw, 150px) var(--pad) clamp(70px, 9vw, 120px);
}
.hero__glow {
position: absolute;
inset: -20% -10% auto -10%;
height: 720px;
background:
radial-gradient(620px 420px at 22% 18%, rgba(155, 179, 155, 0.42), transparent 70%),
radial-gradient(520px 380px at 82% 8%, rgba(231, 221, 202, 0.6), transparent 72%),
radial-gradient(480px 360px at 60% 70%, rgba(169, 130, 79, 0.12), transparent 70%);
filter: blur(6px);
z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.hero__title {
font-size: clamp(3.2rem, 10vw, 6.6rem);
font-weight: 500;
letter-spacing: -0.02em;
margin: 0 0 22px;
}
.hero__title em { font-style: italic; color: var(--bronze); }
.hero__lede {
max-width: 480px;
font-size: 1.15rem;
color: var(--ink-2);
line-height: 1.7;
margin: 0 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: clamp(28px, 5vw, 60px);
margin: clamp(48px, 7vw, 76px) 0 0;
padding: 30px 0 0;
border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.stat { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat__label {
font-size: 0.74rem;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--muted);
}
/* ===== SERVICES ===== */
.svc-grid {
max-width: var(--wrap);
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}
.svc {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: 32px 30px;
position: relative;
overflow: hidden;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.svc::before {
content: "";
position: absolute;
left: 0; top: 0;
width: 100%; height: 3px;
background: linear-gradient(90deg, var(--sage), var(--bronze));
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.svc:hover, .svc:focus-visible {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
border-color: transparent;
}
.svc:hover::before, .svc:focus-visible::before { transform: scaleX(1); }
.svc__icon {
display: inline-grid;
place-items: center;
width: 50px; height: 50px;
border-radius: 50%;
background: var(--cream);
color: var(--sage-d);
font-size: 1.4rem;
margin-bottom: 20px;
}
.svc__name { font-size: 1.55rem; margin-bottom: 10px; }
.svc__copy { color: var(--muted); font-size: 0.96rem; line-height: 1.6; margin: 0 0 22px; }
.svc__meta {
display: flex;
align-items: baseline;
justify-content: space-between;
padding-top: 16px;
border-top: 1px solid var(--line);
font-size: 0.84rem;
color: var(--muted);
letter-spacing: 0.02em;
}
.svc__price { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
/* ===== FLOW BAND ===== */
.flow {
background:
radial-gradient(900px 500px at 80% -10%, rgba(169, 130, 79, 0.18), transparent 70%),
linear-gradient(160deg, #3a4338, #2c332a);
color: var(--cream);
}
.flow__inner { max-width: var(--wrap); margin: 0 auto; }
.flow__steps {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
}
.flow__step {
position: relative;
padding: 6px 6px 6px 0;
}
.flow__step + .flow__step { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.flow__num {
font-family: var(--serif);
font-size: 2.6rem;
font-weight: 500;
color: var(--sage);
display: block;
margin-bottom: 12px;
}
.flow__name { font-size: 1.7rem; color: var(--white); margin-bottom: 10px; }
.flow__step p { color: rgba(255, 255, 255, 0.72); line-height: 1.7; margin: 0; font-size: 0.98rem; }
/* ===== GALLERY ===== */
.gallery { background: var(--cream); }
.gal-grid {
max-width: var(--wrap);
margin: 0 auto;
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: 150px;
gap: 16px;
}
.gal {
position: relative;
border-radius: var(--r-md);
overflow: hidden;
margin: 0;
box-shadow: var(--shadow-sm);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gal:hover { transform: scale(1.012); box-shadow: var(--shadow-md); }
.gal figcaption {
position: absolute;
left: 16px; bottom: 14px;
z-index: 2;
color: var(--white);
font-family: var(--serif);
font-size: 1.2rem;
font-weight: 600;
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.gal::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgba(34, 40, 31, 0.5));
z-index: 1;
}
.gal--a { grid-column: span 3; grid-row: span 2; background: linear-gradient(150deg, #8ba98b, #5f7a5f); }
.gal--b { grid-column: span 3; background: linear-gradient(150deg, #c9b48a, #a9824f); }
.gal--c { grid-column: span 2; background: linear-gradient(150deg, #aebfa6, #738a72); }
.gal--d { grid-column: span 1; background: linear-gradient(150deg, #e0d4b8, #b8a173); }
.gal--e { grid-column: span 3; background: linear-gradient(150deg, #9fb9b3, #5e8079); }
/* ===== GIFT ===== */
.gift__card {
max-width: var(--wrap);
margin: 0 auto;
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--r-lg);
box-shadow: var(--shadow-md);
overflow: hidden;
display: grid;
grid-template-columns: 1fr 1fr;
}
.gift__copy {
padding: clamp(36px, 5vw, 56px);
background:
radial-gradient(420px 320px at 0% 100%, rgba(155, 179, 155, 0.22), transparent 70%),
var(--cream);
}
.gift__copy .section__title { text-align: left; }
.gift__copy .section__lede { margin-top: 12px; }
.gift__perks {
list-style: none;
margin: 26px 0 0;
padding: 0;
display: grid;
gap: 12px;
}
.gift__perks li {
position: relative;
padding-left: 26px;
color: var(--ink-2);
font-size: 0.95rem;
}
.gift__perks li::before {
content: "✓";
position: absolute;
left: 0; top: 0;
color: var(--sage-d);
font-weight: 700;
}
.gift__form { padding: clamp(32px, 4vw, 48px); display: grid; gap: 18px; }
.gift__amounts { border: none; margin: 0; padding: 0; }
.amount-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip {
border: 1px solid var(--line-2);
background: var(--white);
color: var(--ink);
font-family: var(--sans);
font-weight: 600;
font-size: 0.95rem;
padding: 10px 18px;
border-radius: 999px;
cursor: pointer;
transition: all 0.18s ease;
}
.chip:hover { border-color: var(--bronze); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--custom { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; }
.chip--custom span { color: var(--muted); }
.chip--custom input {
width: 64px;
border: none;
background: transparent;
font: inherit;
color: var(--ink);
outline: none;
}
.chip--custom:focus-within { border-color: var(--bronze); }
.field { display: grid; gap: 7px; }
.field__label {
font-size: 0.76rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-2);
}
.field__opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
font-family: var(--sans);
font-size: 0.98rem;
color: var(--ink);
background: var(--bg);
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
padding: 12px 14px;
width: 100%;
resize: vertical;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus {
outline: none;
border-color: var(--bronze);
background: var(--white);
box-shadow: 0 0 0 3px rgba(169, 130, 79, 0.12);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }
.field__hint { font-size: 0.76rem; color: var(--muted); justify-self: end; }
.gift__total {
display: flex;
align-items: baseline;
justify-content: space-between;
padding: 14px 0 4px;
border-top: 1px solid var(--line);
font-size: 0.82rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
.gift__total strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
/* ===== HOURS ===== */
.hours { background: var(--cream); }
.hours__inner {
max-width: var(--wrap);
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 0.9fr;
gap: clamp(32px, 6vw, 80px);
align-items: center;
}
.hours__intro .section__title { text-align: left; }
.hours__intro .section__lede { margin-top: 12px; }
.hours__status {
display: inline-flex;
align-items: center;
gap: 9px;
margin: 22px 0 24px;
font-weight: 600;
font-size: 0.92rem;
}
.hours__status .dot {
width: 9px; height: 9px;
border-radius: 50%;
background: var(--muted);
box-shadow: 0 0 0 4px rgba(132, 125, 110, 0.15);
}
.hours__status.is-open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 138, 107, 0.2); }
.hours__status.is-closed .dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(179, 80, 62, 0.18); }
.hours__list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hours__list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 22px;
border-bottom: 1px solid var(--line);
font-size: 0.96rem;
}
.hours__list li:last-child { border-bottom: none; }
.hours__list li.is-today { background: var(--bg); font-weight: 600; }
.hours__list .day { color: var(--ink); }
.hours__list .time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours__list li.is-today .time { color: var(--bronze); }
.hours__badge {
margin-left: 10px;
font-size: 0.64rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--bronze);
border: 1px solid var(--line-2);
border-radius: 999px;
padding: 2px 8px;
}
/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 56px var(--pad) 40px; }
.footer__inner {
max-width: var(--wrap);
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 24px 40px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin: 0; }
.footer__tag { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin: 2px 0 0; }
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__links a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--white); }
.footer__legal { width: 100%; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin: 8px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* ===== TOAST ===== */
.toast {
position: fixed;
left: 50%;
bottom: 28px;
transform: translateX(-50%) translateY(20px);
background: var(--ink);
color: var(--bg);
padding: 14px 22px;
border-radius: var(--r-md);
box-shadow: var(--shadow-lg);
font-size: 0.92rem;
font-weight: 500;
z-index: 300;
max-width: calc(100vw - 40px);
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before { content: "✦ "; color: var(--sage); }
/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
.svc-grid { grid-template-columns: repeat(2, 1fr); }
.flow__steps { grid-template-columns: 1fr; gap: 0; }
.flow__step + .flow__step { padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 28px; margin-top: 28px; }
.gift__card { grid-template-columns: 1fr; }
.hours__inner { grid-template-columns: 1fr; }
.hours__intro .section__title, .gift__copy .section__title { text-align: left; }
}
@media (max-width: 760px) {
.nav__links, .nav__cta { display: none; }
.nav__toggle { display: flex; }
}
@media (max-width: 520px) {
body { font-size: 15px; }
.svc-grid { grid-template-columns: 1fr; }
.gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
.gal--a { grid-column: span 2; grid-row: span 1; }
.gal--b, .gal--c, .gal--e { grid-column: span 2; }
.gal--d { grid-column: span 2; }
.hero__stats { gap: 24px 36px; }
.hero__cta .btn { flex: 1; }
.amount-row { gap: 8px; }
.chip { padding: 9px 15px; font-size: 0.9rem; }
.footer__links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.reveal { opacity: 1; transform: none; transition: none; }
* { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}
/* Visibility guard: honor the [hidden] attribute over base display */
.nav__mobile[hidden] {
display: none;
}/* ============================================================
Verdé Day Spa — Landing interactions (vanilla JS)
============================================================ */
(function () {
"use strict";
var $ = function (sel, ctx) { return (ctx || document).querySelector(sel); };
var $$ = function (sel, ctx) { return Array.prototype.slice.call((ctx || document).querySelectorAll(sel)); };
/* ---------- Toast ---------- */
var toastEl = $("#toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.hidden = false;
// force reflow so transition runs
void toastEl.offsetWidth;
toastEl.classList.add("is-visible");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("is-visible");
setTimeout(function () { toastEl.hidden = true; }, 320);
}, 3200);
}
/* ---------- Year ---------- */
var yearEl = $("#year");
if (yearEl) yearEl.textContent = String(new Date().getFullYear());
/* ---------- Sticky nav state ---------- */
var nav = $(".nav");
function onScroll() {
if (nav) nav.classList.toggle("is-scrolled", window.scrollY > 8);
}
window.addEventListener("scroll", onScroll, { passive: true });
onScroll();
/* ---------- Mobile nav ---------- */
var toggle = $("#navToggle");
var mobileNav = $("#mobileNav");
function setMenu(open) {
if (!toggle || !mobileNav) return;
toggle.setAttribute("aria-expanded", String(open));
toggle.setAttribute("aria-label", open ? "Close menu" : "Open menu");
mobileNav.hidden = !open;
}
if (toggle) {
toggle.addEventListener("click", function () {
setMenu(toggle.getAttribute("aria-expanded") !== "true");
});
$$("a", mobileNav).forEach(function (a) {
a.addEventListener("click", function () { setMenu(false); });
});
}
/* ---------- Active link on scroll ---------- */
var sections = ["services", "flow", "gallery", "gift", "hours"];
var linkFor = {};
$$(".nav__links a").forEach(function (a) {
var id = (a.getAttribute("href") || "").replace("#", "");
if (id) linkFor[id] = a;
});
if ("IntersectionObserver" in window) {
var spy = new IntersectionObserver(function (entries) {
entries.forEach(function (e) {
var link = linkFor[e.target.id];
if (!link) return;
if (e.isIntersecting) {
$$(".nav__links a").forEach(function (l) { l.classList.remove("is-active"); });
link.classList.add("is-active");
}
});
}, { rootMargin: "-45% 0px -50% 0px", threshold: 0 });
sections.forEach(function (id) {
var el = document.getElementById(id);
if (el) spy.observe(el);
});
}
/* ---------- Reveal on scroll ---------- */
var reveals = $$(".reveal");
if ("IntersectionObserver" in window) {
var ro = new IntersectionObserver(function (entries, obs) {
entries.forEach(function (e) {
if (e.isIntersecting) {
var group = e.target.parentElement ? $$(".reveal", e.target.parentElement) : [e.target];
// stagger siblings that share a parent grid/list
var idx = group.indexOf(e.target);
e.target.style.transitionDelay = (idx > 0 ? Math.min(idx, 5) * 70 : 0) + "ms";
e.target.classList.add("is-in");
obs.unobserve(e.target);
}
});
}, { threshold: 0.12, rootMargin: "0px 0px -8% 0px" });
reveals.forEach(function (el) { ro.observe(el); });
} else {
reveals.forEach(function (el) { el.classList.add("is-in"); });
}
/* ---------- Animated stat counters ---------- */
function animateStat(el) {
var target = parseFloat(el.getAttribute("data-count") || "0");
var decimals = parseInt(el.getAttribute("data-decimals") || "0", 10);
var suffix = el.getAttribute("data-suffix") || "";
var start = performance.now();
var dur = 1400;
function frame(now) {
var p = Math.min((now - start) / dur, 1);
var eased = 1 - Math.pow(1 - p, 3);
var val = target * eased;
el.textContent = val.toFixed(decimals) + suffix;
if (p < 1) requestAnimationFrame(frame);
else el.textContent = target.toFixed(decimals) + suffix;
}
requestAnimationFrame(frame);
}
var stats = $$(".stat");
if ("IntersectionObserver" in window) {
var so = new IntersectionObserver(function (entries, obs) {
entries.forEach(function (e) {
if (e.isIntersecting) { animateStat(e.target); obs.unobserve(e.target); }
});
}, { threshold: 0.6 });
stats.forEach(function (s) { so.observe(s); });
} else {
stats.forEach(animateStat);
}
/* ---------- Gift card form ---------- */
var giftForm = $("#giftForm");
var amountRow = $("#amountRow");
var customAmount = $("#customAmount");
var totalEl = $("#giftTotal");
var noteEl = $("#giftNote");
var noteCount = $("#noteCount");
var selectedAmount = 150;
function fmt(n) {
return "$" + n.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
}
function renderTotal() {
if (totalEl) totalEl.textContent = fmt(selectedAmount);
}
function clearActiveChips() {
$$(".chip[data-amount]", amountRow).forEach(function (c) {
c.classList.remove("is-active");
c.setAttribute("aria-pressed", "false");
});
}
if (amountRow) {
$$(".chip[data-amount]", amountRow).forEach(function (chip) {
chip.addEventListener("click", function () {
clearActiveChips();
chip.classList.add("is-active");
chip.setAttribute("aria-pressed", "true");
if (customAmount) customAmount.value = "";
selectedAmount = parseFloat(chip.getAttribute("data-amount"));
renderTotal();
});
});
}
if (customAmount) {
customAmount.addEventListener("input", function () {
var v = parseFloat(customAmount.value);
if (!isNaN(v) && v > 0) {
clearActiveChips();
selectedAmount = v;
renderTotal();
}
});
}
if (noteEl && noteCount) {
noteEl.addEventListener("input", function () {
noteCount.textContent = String(noteEl.value.length);
});
}
renderTotal();
function markInvalid(el, invalid) {
if (el) el.classList.toggle("is-invalid", invalid);
}
if (giftForm) {
giftForm.addEventListener("submit", function (e) {
e.preventDefault();
var to = $("#giftTo");
var email = $("#giftEmail");
var emailRe = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
var ok = true;
if (!to.value.trim()) { markInvalid(to, true); ok = false; } else markInvalid(to, false);
if (!emailRe.test(email.value.trim())) { markInvalid(email, true); ok = false; } else markInvalid(email, false);
if (selectedAmount < 25) {
markInvalid(customAmount, true); ok = false;
toast("Gift cards start at $25.");
return;
} else markInvalid(customAmount, false);
if (!ok) {
toast("Please check the highlighted fields.");
var firstBad = $(".is-invalid");
if (firstBad) firstBad.focus();
return;
}
toast(fmt(selectedAmount) + " gift card on its way to " + to.value.trim() + " ✦");
giftForm.reset();
clearActiveChips();
selectedAmount = 150;
var def = $('.chip[data-amount="150"]', amountRow);
if (def) { def.classList.add("is-active"); def.setAttribute("aria-pressed", "true"); }
if (noteCount) noteCount.textContent = "0";
renderTotal();
});
}
/* ---------- Hours + live open/closed ---------- */
// hours[dayIndex] = [openMinutes, closeMinutes] or null if closed. JS: 0 = Sunday.
var schedule = [
{ day: "Sunday", open: 9 * 60 + 30, close: 17 * 60 },
{ day: "Monday", open: null, close: null },
{ day: "Tuesday", open: 9 * 60, close: 19 * 60 },
{ day: "Wednesday", open: 9 * 60, close: 19 * 60 },
{ day: "Thursday", open: 9 * 60, close: 20 * 60 },
{ day: "Friday", open: 9 * 60, close: 20 * 60 },
{ day: "Saturday", open: 8 * 60 + 30, close: 18 * 60 }
];
function toClock(mins) {
var h = Math.floor(mins / 60);
var m = mins % 60;
var ampm = h >= 12 ? "PM" : "AM";
var h12 = h % 12 === 0 ? 12 : h % 12;
return h12 + (m ? ":" + String(m).padStart(2, "0") : "") + " " + ampm;
}
var hoursList = $("#hoursList");
var now = new Date();
var todayIdx = now.getDay();
var nowMins = now.getHours() * 60 + now.getMinutes();
if (hoursList) {
schedule.forEach(function (s, i) {
var li = document.createElement("li");
if (i === todayIdx) li.classList.add("is-today");
var label = s.open === null ? "Closed" : toClock(s.open) + " – " + toClock(s.close);
var badge = i === todayIdx ? '<span class="hours__badge">Today</span>' : "";
li.innerHTML = '<span class="day">' + s.day + badge + '</span><span class="time">' + label + "</span>";
hoursList.appendChild(li);
});
}
var statusWrap = $("#status");
var statusText = $("#statusText");
var today = schedule[todayIdx];
if (statusWrap && statusText) {
var isOpen = today.open !== null && nowMins >= today.open && nowMins < today.close;
if (isOpen) {
statusWrap.classList.add("is-open");
var leftMin = today.close - 30;
statusText.textContent = nowMins >= leftMin
? "Open now · closing soon at " + toClock(today.close)
: "Open now · until " + toClock(today.close) + " today";
} else {
statusWrap.classList.add("is-closed");
// find next opening day
var nextOpen = null;
for (var step = 0; step < 7; step++) {
var idx = (todayIdx + step) % 7;
var s = schedule[idx];
if (s.open === null) continue;
if (step === 0 && nowMins < s.open) { nextOpen = "today at " + toClock(s.open); break; }
if (step > 0) { nextOpen = (step === 1 ? "tomorrow" : s.day) + " at " + toClock(s.open); break; }
}
statusText.textContent = nextOpen ? "Closed · opens " + nextOpen : "Closed today";
}
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Home · Verdé Day Spa</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip" href="#gift">Skip to gift cards</a>
<!-- ===== NAV ===== -->
<header class="nav" id="top">
<div class="nav__inner">
<a class="brand" href="#top" aria-label="Verdé Day Spa, home">
<span class="brand__mark" aria-hidden="true">V</span>
<span class="brand__name">Verdé<span class="brand__sub">day spa</span></span>
</a>
<nav class="nav__links" aria-label="Primary">
<a href="#services">Services</a>
<a href="#flow">Your Visit</a>
<a href="#gallery">Spaces</a>
<a href="#gift">Gift Cards</a>
<a href="#hours">Hours</a>
</nav>
<div class="nav__cta">
<a class="btn btn--ghost" href="tel:+13105550148">Call</a>
<a class="btn btn--solid" href="#gift">Reserve</a>
</div>
<button class="nav__toggle" id="navToggle" aria-expanded="false" aria-controls="mobileNav" aria-label="Open menu">
<span></span><span></span><span></span>
</button>
</div>
<div class="nav__mobile" id="mobileNav" hidden>
<a href="#services">Services</a>
<a href="#flow">Your Visit</a>
<a href="#gallery">Spaces</a>
<a href="#gift">Gift Cards</a>
<a href="#hours">Hours</a>
<a class="btn btn--solid" href="#gift">Reserve</a>
</div>
</header>
<main>
<!-- ===== HERO ===== -->
<section class="hero" id="hero">
<div class="hero__glow" aria-hidden="true"></div>
<div class="hero__inner reveal">
<p class="eyebrow">Verdé · Sage Hills Wellness Retreat</p>
<h1 class="hero__title">Pause.<br />Breathe.<br /><em>Renew.</em></h1>
<p class="hero__lede">
A quiet sanctuary in the foothills — where slow mornings, warm stone,
and botanical care give the day back to you. Step away from the noise.
</p>
<div class="hero__cta">
<a class="btn btn--solid btn--lg" href="#gift">Gift a day of calm</a>
<a class="btn btn--ghost btn--lg" href="#services">Explore rituals</a>
</div>
<ul class="hero__stats" aria-label="At a glance">
<li><span class="stat" data-count="14">0</span><span class="stat__label">treatment rooms</span></li>
<li><span class="stat" data-count="9" data-decimals="1" data-suffix="">0</span><span class="stat__label">years of care</span></li>
<li><span class="stat" data-count="100" data-suffix="%">0</span><span class="stat__label">botanical formulas</span></li>
</ul>
</div>
</section>
<!-- ===== SERVICES ===== -->
<section class="section services" id="services">
<div class="section__head reveal">
<p class="eyebrow">The Menu</p>
<h2 class="section__title">Rituals for the body & mind</h2>
<p class="section__lede">
Each treatment is unhurried and personalised. Choose a single ritual or
let our therapists shape a half-day journey just for you.
</p>
</div>
<div class="svc-grid">
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">☉</span>
<h3 class="svc__name">Therapeutic Massage</h3>
<p class="svc__copy">Deep-tissue, lomi-lomi, or warm basalt stone — tension eased breath by breath.</p>
<div class="svc__meta"><span>60–90 min</span><span class="svc__price">$140+</span></div>
</article>
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">✿</span>
<h3 class="svc__name">Botanical Facials</h3>
<p class="svc__copy">Cold-pressed plant actives and a lymphatic gua sha finish for luminous, calm skin.</p>
<div class="svc__meta"><span>75 min</span><span class="svc__price">$165</span></div>
</article>
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">❀</span>
<h3 class="svc__name">Body & Wraps</h3>
<p class="svc__copy">Sea-clay detox, sand-salt polish, and herbal cocoon wraps that leave skin renewed.</p>
<div class="svc__meta"><span>90 min</span><span class="svc__price">$185</span></div>
</article>
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">♨</span>
<h3 class="svc__name">Sauna & Thermal</h3>
<p class="svc__copy">Cedar sauna, eucalyptus steam, and a cool plunge — a full contrast bathing circuit.</p>
<div class="svc__meta"><span>2 hr access</span><span class="svc__price">$60</span></div>
</article>
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">❤</span>
<h3 class="svc__name">Couples Suite</h3>
<p class="svc__copy">Side-by-side massage in a private suite with tea service and a garden view.</p>
<div class="svc__meta"><span>90 min</span><span class="svc__price">$320</span></div>
</article>
<article class="svc reveal" tabindex="0">
<span class="svc__icon" aria-hidden="true">☀</span>
<h3 class="svc__name">Half-Day Retreat</h3>
<p class="svc__copy">Massage, facial, thermal circuit, and a nourishing lunch on the terrace.</p>
<div class="svc__meta"><span>4 hr</span><span class="svc__price">$420</span></div>
</article>
</div>
</section>
<!-- ===== FLOW BAND ===== -->
<section class="section flow" id="flow">
<div class="flow__inner">
<div class="section__head section__head--light reveal">
<p class="eyebrow eyebrow--light">The Experience</p>
<h2 class="section__title">How a visit flows</h2>
</div>
<ol class="flow__steps">
<li class="flow__step reveal">
<span class="flow__num">01</span>
<h3 class="flow__name">Arrive & settle</h3>
<p>Trade your shoes for slippers, sip a botanical tonic, and soften into the lounge before your therapist greets you.</p>
</li>
<li class="flow__step reveal">
<span class="flow__num">02</span>
<h3 class="flow__name">Your ritual</h3>
<p>An unhurried, fully tailored treatment in a warm, quiet room — your therapist reads the day and adjusts the pressure, scent, and pace.</p>
</li>
<li class="flow__step reveal">
<span class="flow__num">03</span>
<h3 class="flow__name">Linger</h3>
<p>Stay as long as you like in the relaxation garden with herbal tea, the thermal circuit, and absolutely nowhere to be.</p>
</li>
</ol>
</div>
</section>
<!-- ===== GALLERY ===== -->
<section class="section gallery" id="gallery">
<div class="section__head reveal">
<p class="eyebrow">Our Spaces</p>
<h2 class="section__title">Calm, by design</h2>
<p class="section__lede">Sage walls, raw linen, river stone, and a great deal of soft light.</p>
</div>
<div class="gal-grid reveal">
<figure class="gal gal--a"><figcaption>Relaxation garden</figcaption></figure>
<figure class="gal gal--b"><figcaption>Cedar sauna</figcaption></figure>
<figure class="gal gal--c"><figcaption>Treatment suite</figcaption></figure>
<figure class="gal gal--d"><figcaption>Tea lounge</figcaption></figure>
<figure class="gal gal--e"><figcaption>Thermal pools</figcaption></figure>
</div>
</section>
<!-- ===== GIFT CTA ===== -->
<section class="section gift" id="gift">
<div class="gift__card reveal">
<div class="gift__copy">
<p class="eyebrow">Give the gift of stillness</p>
<h2 class="section__title">A Verdé gift card</h2>
<p class="section__lede">
Choose an amount, add a note, and we will send a beautifully presented
digital card — redeemable on any ritual, any time.
</p>
<ul class="gift__perks">
<li>Delivered instantly by email</li>
<li>Valid for 24 months, never expires unused</li>
<li>Redeemable on every treatment & retail item</li>
</ul>
</div>
<form class="gift__form" id="giftForm" novalidate>
<fieldset class="gift__amounts" aria-label="Choose an amount">
<legend class="field__label">Amount</legend>
<div class="amount-row" id="amountRow">
<button type="button" class="chip" data-amount="75">$75</button>
<button type="button" class="chip is-active" data-amount="150" aria-pressed="true">$150</button>
<button type="button" class="chip" data-amount="250">$250</button>
<button type="button" class="chip" data-amount="420">$420</button>
<label class="chip chip--custom">
<span>$</span>
<input type="number" id="customAmount" min="25" max="2000" step="5" placeholder="Other" aria-label="Custom amount" />
</label>
</div>
</fieldset>
<label class="field">
<span class="field__label">Recipient name</span>
<input type="text" id="giftTo" name="giftTo" autocomplete="name" placeholder="Aria Vance" required />
</label>
<label class="field">
<span class="field__label">Recipient email</span>
<input type="email" id="giftEmail" name="giftEmail" autocomplete="email" placeholder="[email protected]" required />
</label>
<label class="field">
<span class="field__label">A short note <span class="field__opt">(optional)</span></span>
<textarea id="giftNote" name="giftNote" rows="2" maxlength="140" placeholder="Take a whole day for yourself — you've earned it."></textarea>
<span class="field__hint"><span id="noteCount">0</span>/140</span>
</label>
<div class="gift__total">
<span>Total</span>
<strong id="giftTotal">$150.00</strong>
</div>
<button type="submit" class="btn btn--solid btn--lg btn--block">Send gift card</button>
</form>
</div>
</section>
<!-- ===== HOURS ===== -->
<section class="section hours" id="hours">
<div class="hours__inner">
<div class="hours__intro reveal">
<p class="eyebrow">Visit Us</p>
<h2 class="section__title">Hours & location</h2>
<p class="section__lede">
142 Cedar Hollow Lane<br />Sage Hills, CA 90291
</p>
<p class="hours__status" id="status" aria-live="polite">
<span class="dot" aria-hidden="true"></span>
<span id="statusText">Checking hours…</span>
</p>
<div class="hours__cta">
<a class="btn btn--ghost" href="tel:+13105550148">Call (310) 555-0148</a>
</div>
</div>
<ul class="hours__list reveal" id="hoursList" aria-label="Opening hours"></ul>
</div>
</section>
</main>
<!-- ===== FOOTER ===== -->
<footer class="footer">
<div class="footer__inner">
<div class="footer__brand">
<span class="brand__mark" aria-hidden="true">V</span>
<div>
<p class="footer__name">Verdé Day Spa</p>
<p class="footer__tag">Sage Hills, California · est. 2017</p>
</div>
</div>
<nav class="footer__links" aria-label="Footer">
<a href="#services">Services</a>
<a href="#flow">Your Visit</a>
<a href="#gift">Gift Cards</a>
<a href="#hours">Hours</a>
</nav>
<p class="footer__legal">© <span id="year">2026</span> Verdé Day Spa. A fictional sanctuary for demo purposes.</p>
</div>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
<script src="script.js"></script>
</body>
</html>Day Spa Landing
A complete marketing landing for the fictional Verdé Day Spa, tuned for stillness rather than spectacle. The palette trades the library’s default rose-gold for a soft sage, warm sand, and muted bronze, with light serif Cormorant Garamond headings floating over a clean Inter UI and a great deal of unhurried whitespace. A translucent sticky nav blurs the page beneath it, gains a hairline on scroll, and quietly underlines the active section as you move down. The hero opens with a low-contrast serif headline — Pause. Breathe. Renew. — over a diffuse botanical glow, two calls to action, and a row of stats that count up the first time they enter view.
Below the fold, a six-card menu lays out the spa’s rituals — massage, botanical facials, body wraps, the sauna and thermal circuit, a couples suite, and a half-day retreat — each card lifting and revealing a sage-to-bronze top rule on hover or focus. A dark how-a-visit-flows band walks guests through arriving, their ritual, and lingering, followed by a tranquil mosaic gallery of the spa’s spaces. The gift-card section is genuinely interactive: pick a preset or type a custom amount, add an optional note with a live character count, and watch the total update before a validated submit confirms with a tasteful toast.
The closing hours block renders the full week, marks today, and shows a live open or closed indicator that computes whether the spa is open right now and, if not, when it next opens. Every section reveals on scroll with a gentle stagger via IntersectionObserver, the mobile nav collapses into an accessible toggle, and reduced-motion preferences are respected. It is pure vanilla HTML, CSS, and JavaScript — no frameworks, no build step — responsive down to 360px.