/*
  AURA WICK: HOMEPAGE DRAFT 2
  Layout follows the reference site: white nav with centred links, centred section
  headings (small spaced label + serif title), square product tiles with outlined
  buttons, arch shaped category images, full bleed photo grid, split image and text.
  Colours come from the candles: coral, sky blue, blush pink, mint, butter and apricot,
  on warm white and soft peach, with the logo's brown for text.
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white:  #fffdfa;
  --peach:  #fcf0e6;
  --ink:    #3b2010;
  --soft:   #6f5848;
  --coral:  #e0583f;
  --gold:   #c9962a;
  --rule:   #eadfd3;
  --sky:    #cfe6ee;
  --blush:  #f7d5dc;
  --mint:   #d3ead8;
  --butter: #fbe6ae;
  --apricot:#fbd7c0;
  --lilac:  #e5daf1;
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --nav:    84px;
}
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(16px, 4vw, 64px); background: var(--white); box-shadow: 0 1px 14px rgba(59,32,16,.07); }
.logo img { height: 46px; width: auto; }
.links { display: flex; gap: clamp(20px, 3vw, 44px); list-style: none; font-size: .86rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.links a { padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.links a:hover { border-color: var(--gold); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-wa { font-size: .86rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding: 4px 0; transition: border-color .25s; }
.nav-wa:hover { border-color: var(--ink); }
.cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); }
.cart svg { width: 24px; height: 24px; }
.dot { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font: 600 .7rem/1 var(--sans); }
.dot.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 34px; border: 1px solid var(--ink); font: 600 1.05rem/1.2 var(--serif); letter-spacing: .02em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--coral); border-color: var(--coral); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* HERO */
.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: calc(100svh - var(--nav)); background: var(--peach); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 72px); }
.label { font: 500 .8rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.hero .label { opacity: 0; animation: fade .9s var(--ease) .1s forwards; }
.hero h1 { margin: 22px 0 26px; font: 500 clamp(3rem, 5.4vw, 6.2rem)/.96 var(--serif); letter-spacing: -.015em; }
.hero h1 .line { white-space: nowrap; display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; transform: translateY(112%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .2s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .35s; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero p.sub { max-width: 38ch; font-size: 1.08rem; color: var(--soft); opacity: 0; animation: fade .9s var(--ease) .8s forwards; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; animation: fade .9s var(--ease) 1s forwards; }
.hero-media { position: relative; overflow: hidden; background: var(--butter); }
.hero-media img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; transform: scale(1.12); animation: settle 2.6s var(--ease) forwards; will-change: transform; }
.hero-media .par { position: absolute; inset: 0; will-change: transform; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes settle { to { transform: scale(1); } }

/* SECTIONS */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tint { background: var(--peach); }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { margin-top: 16px; font: 500 clamp(2.4rem, 4.4vw, 3.8rem)/1.08 var(--serif); letter-spacing: -.005em; }
.sec-head h2 em { font-style: italic; color: var(--coral); }

/* PRODUCTS */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(18px, 2.2vw, 34px); }
.card { text-align: center; opacity: 0; transform: translateY(44px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.card.in { opacity: 1; transform: none; }
.tile { background: var(--tile, var(--sky)); padding: clamp(10px, 1.3vw, 18px); aspect-ratio: 1 / 1; }
.ph { width: 100%; height: 100%; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .ph img { transform: scale(1.07); }
.cat { margin-top: 22px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.name { margin-top: 4px; font: 500 1.5rem/1.15 var(--serif); }
.price { margin-top: 2px; font: 500 1.2rem/1.3 var(--serif); color: var(--soft); }
.add { margin-top: 18px; padding: 12px 38px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 1.02rem/1.2 var(--serif); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.add:hover { background: var(--ink); color: #fff; }
.add.done, .add.done:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ARCHES */
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4.5vw, 72px); max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.arch { text-align: center; }
.arch-frame { background: var(--c); padding: 14px 14px 0; border-radius: 999px 999px 0 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.arch.in .arch-frame { clip-path: inset(0 0 0 0); }
.arch-img { aspect-ratio: 1 / 1.12; border-radius: 999px 999px 0 0; overflow: hidden; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch:hover .arch-img img { transform: scale(1.06); }
.arch h3 { margin-top: 26px; font: 500 1.7rem/1.1 var(--serif); }
.arch .btn { margin-top: 18px; }

/* PHOTO GRID */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g { position: relative; aspect-ratio: 1 / 1.06; overflow: hidden; background: var(--peach); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.07); }
.g::after { content: ""; position: absolute; inset: 0; background: rgba(59,32,16,0); transition: background .4s; }
.g:hover::after { background: rgba(59,32,16,.14); }

/* SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; background: var(--white); }
.split-img { position: relative; overflow: hidden; }
.split-img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.split-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 120px); }
.split-text h2 { margin: 20px 0 24px; font: 500 clamp(2rem, 3.3vw, 3.1rem)/1.18 var(--serif); letter-spacing: .07em; text-transform: uppercase; }
.split-text p { max-width: 50ch; color: var(--soft); font-size: 1.04rem; }
.split-text p + p { margin-top: 14px; }
.split-text .btn { align-self: flex-start; margin-top: 32px; }

/* FOOTER */
.foot { background: var(--peach); padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 64px) 32px; }
.foot-grid { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot img { height: 64px; width: auto; }
.foot h4 { font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.foot li { list-style: none; margin-bottom: 8px; color: var(--soft); }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .copy { max-width: 1480px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--soft); }

/* BACK TO TOP */
.top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s, transform .4s, background .3s; }
.top.show { opacity: 1; transform: none; pointer-events: auto; }
.top:hover { background: var(--coral); }
.top svg { width: 20px; height: 20px; }

/* FILTERS, DESCRIPTION, MISSING PHOTOS */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; margin: 0 0 clamp(32px, 4vw, 52px); }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 4px 0; font: 500 .82rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); cursor: pointer; transition: color .25s, border-color .25s; }
.filter:hover { color: var(--ink); }
.filter.on { color: var(--ink); border-color: var(--ink); }
.card .specs { margin: 6px auto 0; font-size: .82rem; letter-spacing: .02em; color: var(--ink); opacity: .75; }
.card .desc { margin: 8px auto 0; max-width: 30ch; font-size: .88rem; line-height: 1.5; color: var(--soft); }
.card.fresh { opacity: 1; transform: none; animation: cardIn .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px); } }
.ph, .arch-img, .g { position: relative; }
.noimg::after { content: "Add photo"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 500 1.3rem/1 var(--serif); color: var(--soft); }
.noimg img { visibility: hidden; }
.g.noimg { display: none; }
.nojs { text-align: center; color: var(--soft); }
.gallery-sec { padding-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.btn-full { width: 100%; }

/* CART DRAWER */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(59,32,16,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; top: 0; right: 0; z-index: 70; width: min(440px, 100%); height: 100%; height: 100dvh; display: flex; flex-direction: column; background: var(--white); border-left: 1px solid var(--rule); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font: 500 2rem/1 var(--serif); }
.close { width: 42px; height: 42px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .25s, color .25s; }
.close:hover { background: var(--ink); color: #fff; }
.drawer-items { flex: 1; overflow-y: auto; padding: 0 24px; }
.empty { padding: 48px 0; display: grid; gap: 12px; justify-items: start; color: var(--soft); }
.empty p:first-child { font: 500 1.7rem/1.1 var(--serif); color: var(--ink); }
.empty .btn { margin-top: 12px; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.item .thumb { width: 76px; height: 95px; background: var(--tile, var(--peach)); padding: 5px; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { font: 500 1.35rem/1.15 var(--serif); }
.item .unit { font-size: .86rem; color: var(--soft); }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--rule); }
.qty button { width: 34px; height: 34px; border: 0; background: none; color: var(--ink); font-size: 1.15rem; cursor: pointer; transition: background .2s; }
.qty button:hover { background: var(--peach); }
.qty span { min-width: 1.8rem; text-align: center; font-weight: 500; }
.item-line { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; }
.item-line strong { font-weight: 500; }
.remove { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove:hover { color: var(--ink); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--rule); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font: 500 1.6rem/1 var(--serif); }
.total-row strong { font-weight: 600; }
.note { margin: 10px 0 16px; font-size: .86rem; color: var(--soft); }

/* RESPONSIVE */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  :root { --nav: 72px; }
  .links, .nav-wa { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero-media { height: 86vw; min-height: 320px; }
  .split-img { height: 80vw; min-height: 320px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .arches { grid-template-columns: 1fr; max-width: 420px; gap: 56px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .name { font-size: 1.25rem; } .add { padding: 11px 22px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .hero .label, .hero p.sub, .hero .actions { opacity: 1; }
  .hero h1 .line > span { transform: none; }
  .card { opacity: 1; transform: none; }
  .arch-frame { clip-path: none; }
}
