/* Grace Betts Nails — "digicam roll"
   One loud thing: the point-and-shoot in the hero + orange LCD date stamps.
   Everything else stays quiet. Colors live here as tokens. */

@font-face {
  font-family: "DSEG7";
  src: url("/fonts/DSEG7Classic-Bold.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #fff6fa;      /* pale pink-white page */
  --ink: #2a1b33;        /* deep plum text */
  --ink-soft: #6b5873;
  --bubble: #ff5fa2;     /* her hot-pink sets */
  --bubble-deep: #d62f7c;
  --chrome-1: #f4f6f9;   /* camera body highlights */
  --chrome-2: #c4cad3;
  --chrome-3: #8e96a3;
  --stamp: #ff8a1f;      /* the date stamp */
  --aqua: #3ed3c5;
  --line: #ecd3e0;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Gabarito", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--bubble-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem var(--body); color: #fff; text-decoration: none;
  background: var(--bubble);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--bubble-deep), inset 0 2px 0 rgba(255,255,255,.45);
}
.btn:hover { background: #ff4b96; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--bubble-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .95rem; }

/* --- Header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-size: 1.35rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--bubble); }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:not(.btn):hover { color: var(--bubble-deep); }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* --- Hero: the camera ------------------------------------------------------ */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.cam { transform: rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .cam { transform: none; } }
.cam-body {
  position: relative;
  padding: 34px 18px 16px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, var(--chrome-1) 0%, var(--chrome-2) 45%, #e9edf2 60%, var(--chrome-3) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.9),
    inset 0 -3px 6px rgba(60,40,80,.25),
    0 24px 40px -18px rgba(90,30,70,.45);
}
.cam-brand {
  position: absolute; top: 11px; left: 22px;
  font: 700 .7rem/1 var(--body); letter-spacing: .12em; color: #6f7784;
}
.cam-led {
  position: absolute; top: 12px; right: 24px; width: 9px; height: 9px; border-radius: 50%;
  background: #7dff9e; box-shadow: 0 0 8px #7dff9e;
}
.cam-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #111;
  box-shadow: inset 0 0 0 3px #3a3f48, 0 0 0 2px #fff6;
}
.cam-screen img { width: 100%; height: 100%; object-fit: cover; }
.cam-screen::after { /* LCD sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%);
}
.osd { position: absolute; inset: 0; pointer-events: none; color: #fff; font: 600 .8rem/1 var(--body); text-shadow: 0 1px 2px #000a; }
.osd-mode { position: absolute; top: 10px; left: 12px; }
.osd-count { position: absolute; top: 10px; right: 44px; font-variant-numeric: tabular-nums; }
.osd-batt { position: absolute; top: 9px; right: 12px; display: flex; gap: 2px; padding: 2px; border: 1.5px solid #fff; border-radius: 2px; }
.osd-batt i { width: 4px; height: 7px; background: #fff; }
.stamp {
  font-family: "DSEG7", monospace; font-size: clamp(.8rem, 2.2vw, 1.05rem);
  color: var(--stamp); letter-spacing: .06em;
  text-shadow: 0 0 6px rgba(255,138,31,.7), 0 0 1px #ffb36b;
}
.osd .stamp { position: absolute; right: 14px; bottom: 12px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flash.on { animation: none; } }

.cam-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cam-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: .9rem; color: #4b5260;
  background: radial-gradient(circle at 35% 30%, #fff, var(--chrome-2) 70%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.2), 0 1px 0 #fff;
}
.cam-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.cam-caption { flex: 1; text-align: center; font-weight: 600; color: #3e4450; }

.hero-copy h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-copy p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- Sections ------------------------------------------------------------ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head p { margin-top: 10px; color: var(--ink-soft); }

/* Camera roll: prints with date stamps, loosely tossed */
.roll {
  list-style: none; margin: 0; padding: 0;
  columns: 3 240px; column-gap: 18px;
}
.roll li { break-inside: avoid; margin-bottom: 18px; }
.roll button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit;
}
.print { display: block; position: relative; background: #fff; padding: 8px 8px 0; box-shadow: 0 1px 2px rgba(42,27,51,.12), 0 8px 18px -10px rgba(42,27,51,.35); }
.print img { width: 100%; }
.print .stamp { position: absolute; right: 18px; bottom: 14px; }
.roll .meta { display: block; padding: 10px 2px 2px; }
.roll .meta b { font-weight: 600; }
.roll .meta small { display: block; color: var(--ink-soft); font-size: .9rem; }
.roll li:nth-child(3n+1) .print { transform: rotate(-1deg); }
.roll li:nth-child(3n+2) .print { transform: rotate(.8deg); }
.roll button:hover .print { transform: rotate(0) scale(1.01); }
@media (prefers-reduced-motion: reduce) { .roll .print, .roll button:hover .print { transform: none !important; } }

/* Prices: a printed menu, not cards */
.menu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }
.services { margin: 0; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 2px dotted var(--line); }
.svc:first-child { border-top: 2px dotted var(--line); }
.svc dt { font-weight: 700; font-size: 1.15rem; }
.svc .price { font-family: var(--display); font-size: 1.4rem; color: var(--bubble-deep); grid-row: span 2; align-self: center; }
.svc dd { margin: 0; color: var(--ink-soft); grid-column: 1; }
.svc dd small { display: block; font-size: .9rem; }
.addons { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: inset 0 0 0 2px var(--line); }
.addons h3 { font-size: 1.4rem; margin-bottom: 8px; }
.addons dl { margin: 0; }
.addons div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.addons div + div { border-top: 1px solid var(--line); }
.addons dt { font-weight: 500; }
.addons dd { margin: 0; font-weight: 700; color: var(--bubble-deep); white-space: nowrap; }

/* Press-ons */
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 22px; }
.press .print img { aspect-ratio: 1; object-fit: cover; }
.press h3 { font-size: 1.5rem; margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.press h3 span { font-size: 1.2rem; color: var(--bubble-deep); }
.press p { margin-top: 6px; color: var(--ink-soft); }
.press .btn { margin-top: 12px; }

.sizing { margin-top: 36px; max-width: 64ch; background: #fff; border-radius: 18px; padding: 4px 22px; box-shadow: inset 0 0 0 2px var(--line); }
.sizing summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.sizing ol { margin: 0 0 18px; padding-left: 1.3em; }
.sizing li + li { margin-top: 6px; }

/* Booking form */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: #fff; border-radius: 24px; padding: clamp(20px, 4vw, 36px);
  box-shadow: inset 0 0 0 2px var(--line), 0 20px 40px -30px rgba(90,30,70,.5);
  max-width: 820px;
}
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bubble); background: #fff; }
.field [aria-invalid="true"] { border-color: #d42a4a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: #12806f; }
.form-msg.err { color: #c0213f; }

/* Policies */
.policies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 40px; max-width: 980px; }
.policies li { padding-left: 26px; position: relative; }
.policies li::before { content: "✦"; position: absolute; left: 0; color: var(--bubble); }

/* Footer */
.foot { margin-top: clamp(64px, 9vw, 120px); padding: 40px var(--gutter) 48px; text-align: center; background: var(--ink); color: #f6e7ef; }
.foot .logo { color: #fff; font-size: 2rem; }
.foot p + p { margin-top: 12px; }
.foot a { color: #ffb4d3; margin: 0 10px; display: inline-block; }
.foot .fine { color: #b9a5bf; font-size: .9rem; }

/* Photo viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); }
.viewer::backdrop { background: rgba(42,27,51,.82); }
.viewer figure { margin: 0; }
.viewer .print { padding: 10px 10px 0; }
.viewer img { max-height: 78vh; width: auto; margin: 0 auto; }
.viewer figcaption { color: #fff; text-align: center; padding: 12px; font-weight: 600; }
.viewer-close { position: absolute; top: 6px; right: 6px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1rem; cursor: pointer; }
