/* REVOLAX™ — Beauty Unveiled · shared tokens & base
   Brand: Signature Teal #159DA3 (Pantone 7710 C) · Fine Mint #A8D5C5 · Aqua #66C7C5
   Sub-Q Blue #0F486E · Clean White #FFFFFF · Soft Grey #F2F4F6
   Type: Montserrat (primary) × Cormorant Garamond (secondary) */

:root {
  --teal: #159DA3;
  --teal-deep: #0E7378;
  --mint: #A8D5C5;
  --aqua: #66C7C5;
  --navy: #0F486E;
  --night: #0A2733;
  --night-2: #0E3241;
  --white: #FFFFFF;
  --grey: #F2F4F6;
  --grey-2: #E6EAED;
  --ink: #0A2733;
  --ink-soft: #3C5866;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --m: clamp(20px, 3.4vw, 48px);           /* outer margin */
  --gap-section: clamp(104px, 13vw, 200px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-silk: cubic-bezier(.7, 0, .2, 1);

  --t-body: 17px;
  --t-small: 14px;
  --t-lead: clamp(19px, 1.5vw, 22px);
  --t-h3: clamp(26px, 2.4vw, 34px);
  --t-h2: clamp(40px, 5.6vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--teal); color: var(--white); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

h2.big, .big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
h3 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; }
.note { font-size: var(--t-small); color: var(--ink-soft); }

/* Wordmark — set like the pack: wide-tracked Montserrat caps */
.mark { font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.mark sup { font-size: .45em; letter-spacing: 0; vertical-align: super; font-weight: 500; }

/* Navigation — plain bar */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--m);
  color: var(--white);
}
.nav .mark { font-size: 17px; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .86; transition: opacity .25s; }
.nav ul a:hover { opacity: 1; }
.nav.on-light { color: var(--ink); }

/* Buttons — square, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  background: var(--teal); color: var(--white);
  font: 600 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: scale(.98); }
.btn.light { background: var(--white); color: var(--night); }
.btn.light:hover { background: var(--mint); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--night); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 3px; }
.text-link:hover { background-size: 100% 2px; }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 0; border-radius: 0;
  padding: 15px 16px; min-height: 52px; width: 100%;
  transition: background .25s;
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 0; }

/* Footer */
.foot { background: var(--night); color: var(--white); padding: clamp(80px, 10vw, 140px) var(--m) 32px; overflow: hidden; }
.foot .giant { font-family: var(--sans); font-weight: 600; letter-spacing: .06em; font-size: clamp(64px, 15.6vw, 260px); line-height: .82; margin-left: -.04em; white-space: nowrap; }
.foot .giant sup { font-size: .22em; vertical-align: top; position: relative; top: .35em; letter-spacing: 0; font-weight: 500; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: 64px; font-size: 15px; color: #C9DADF; }
.foot-cols strong { color: var(--white); font-weight: 600; display: block; margin-bottom: 8px; }
.foot-cols a { text-decoration: none; display: block; padding: 4px 0; }
.foot-cols a:hover { color: var(--white); }
.foot-base { margin-top: 56px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: #8FB0BA; }
.foot .serif-line { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; color: var(--mint); margin-top: 28px; }

/* Reveal — content visible without JS */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-silk); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv-img.in { clip-path: inset(0 0 0 0); }

@media (max-width: 860px) {
  .nav ul li.hide-m { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .nav ul li:not(.keep) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv-img { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Cart button in nav ---------- */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; background: transparent; border: 0; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease); }
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--aqua); color: var(--night); font: 600 12px/20px var(--sans); text-align: center; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Cart drawer ---------- */
.cart-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(6,24,32,.55); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(520px, 100vw); background: var(--white); color: var(--ink); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px rgba(6,24,32,.25); outline: none; }
.cart-open .cart-scrim { opacity: 1; pointer-events: auto; }
.cart-open .cart { transform: none; }
.cart { box-shadow: none; }
.cart-open .cart { box-shadow: -30px 0 60px rgba(6,24,32,.25); }
.cart-open body { overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; background: var(--night); color: var(--white); }
.cart-head h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; }
.cart-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--white); font-size: 30px; cursor: pointer; }
.cart-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0; margin: 0; counter-reset: s; background: var(--grey); }
.cart-steps li { padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-soft); background: var(--grey); }
.cart-steps li.on { background: var(--teal); color: var(--white); }
.cart-steps li.done { background: var(--mint); color: var(--night); }
.cart-body { flex: 1; overflow: auto; padding: 24px 28px; }
.cart-items { display: grid; gap: 4px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 14px; align-items: center; background: var(--grey); padding: 10px 14px 10px 10px; }
.ci img { width: 64px; height: 80px; object-fit: cover; grid-row: span 2; background: #011B26; }
.ci-t b { display: block; font-size: 15px; }
.ci-t span { display: block; font-size: 13px; color: var(--ink-soft); }
.ci-t .ci-p { color: var(--teal-deep); font-weight: 600; margin-top: 2px; }
.ci-q { display: flex; align-items: center; gap: 2px; }
.ci-q button { width: 34px; height: 34px; border: 0; background: var(--night); color: var(--white); font: 600 18px/1 var(--sans); cursor: pointer; }
.ci-q output { min-width: 34px; text-align: center; font-weight: 600; }
.ci-rm { grid-column: 3; justify-self: end; border: 0; background: none; color: var(--ink-soft); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; }
.cart-empty { padding: 28px 0; color: var(--ink-soft); }
.cart-tier { margin-top: 14px; font-size: 14px; color: var(--teal-deep); font-weight: 500; }
.cart-form { display: grid; gap: 14px; }
.cart-form .field input, .cart-form .field select, .cart-body textarea { background: var(--grey); }
.cart-body textarea { width: 100%; border: 0; padding: 12px 14px; font: 400 16px/1.4 var(--sans); }
.cart-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.pay { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.pay legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.pay-opt { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 16px; background: var(--grey); cursor: pointer; transition: background .25s; }
.pay-opt:has(input:checked) { background: #DDF0EF; outline: 2px solid var(--teal); outline-offset: -2px; }
.pay-opt input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 2px; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt span { font-size: 13px; color: var(--ink-soft); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.cart-done { text-align: left; }
.done-code { display: inline-block; background: var(--night); color: var(--aqua); padding: 6px 12px; font-weight: 600; letter-spacing: .04em; }
.cart-done h3 { margin-top: 16px; font-size: 32px; }
.cart-done > p { margin-top: 10px; color: var(--ink-soft); }
.done-sum { margin-top: 18px; background: var(--grey); padding: 16px; font-size: 14px; display: grid; gap: 4px; }
.cart-foot { padding: 18px 28px 22px; background: var(--grey); }
.cart-total { display: grid; gap: 6px; margin: 0 0 14px; }
.cart-total div { display: flex; justify-content: space-between; font-size: 15px; }
.cart-total .grand { padding-top: 8px; font-size: 18px; font-weight: 600; }
.cart-total .grand dd { font-family: var(--serif); font-size: 28px; color: var(--night); }
.cart-actions { display: flex; gap: 8px; }
.cart-actions .btn { flex: 1; }
.btn.ghost { background: transparent; color: var(--night); outline: 2px solid var(--night); outline-offset: -2px; flex: 0 0 auto !important; }
.btn.ghost:hover { background: var(--night); color: var(--white); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.cart-note { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 520px) { .cart-form .two { grid-template-columns: 1fr; } .cart-body, .cart-foot, .cart-head { padding-left: 18px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { .cart { transition: none; } }
[hidden] { display: none !important; }
