/* Coco Beauty homepage — 03 layout.
   Phone to 599: one column, 20px gutter. Tablet 600–1023: 40px, 6 columns.
   Desktop: 64px, 12 columns, content held at 1120.
   Breakpoints are container queries on .pg, so the same page renders
   correctly at 390 and at 1440 without a device in the loop. */

.pg{width:100%;min-height:100vh;background:var(--ivory);color:var(--ink);
	container-type:inline-size;container-name:pg}

.wrap{max-width:1120px;margin:0 auto;padding-left:64px;padding-right:64px}
.sec{padding-top:var(--s-120)}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px;align-items:center}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-24)}
.g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s-20)}
/* Homepage - hours: four columns on one desktop row, each carrying its own
   24px top and bottom padding. The last one is a white card, so its padding
   is an inside edge and stays. */
.hcol{padding:var(--s-24) 4px}
.hcol--card{padding:var(--s-24);border-radius:var(--r-image)}
.salon{display:grid;grid-template-columns:2fr 1fr 1fr;gap:var(--s-16)}
/* Homepage - the salon: the wide frame sets the row height; the two side
   frames take their WIDTH from the column and their height from that row, so
   all three bottoms line up and both gaps are the same 16px. They used to
   carry an inline 4/5, which made them 256px wide inside a 240px track and
   ate the gap between the second and the third. */
.salon > *{min-width:0;min-height:0;border-radius:var(--r-card)}
.salon-a{aspect-ratio:3/2}
.salon-b{width:100%;height:100%}
/* Homepage - hero practice areas: four, in 2x2 at every width. Two columns,
   so the column is set by the longest label (身体淋巴排毒) and no label
   ever wraps away from its icon. */
.areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}
.form2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-20)}

/* Heading sizes travel with the breakpoint, 02 Type */
.h1{font-size:40px;line-height:1.25}
.h2{font-size:36px;line-height:1.3}
.h3{font-size:20px;line-height:1.35}
.cat-en{font-size:20px;line-height:1.2}

/* Three header rows on desktop; on phone the closure line, then the
   wordmark, 预约 and the menu. */
.topbar{background:var(--beige)}
.topbar__inner{min-height:40px;display:flex;align-items:center;justify-content:space-between;
	gap:var(--s-16);font-size:15px}
.topl{display:flex;align-items:center;gap:var(--s-8);color:var(--mocha);flex:1;white-space:nowrap;min-width:0;overflow:hidden}
.sitehead{background:var(--white);border-bottom:1px solid var(--hairline)}
.wm--head{font-size:18px}
.sitehead__inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:var(--s-24)}
.navrow{display:block;border-top:1px solid var(--hairline)}
.navrow__inner{height:52px;display:flex;align-items:center;justify-content:center;gap:36px;
	font-size:14px;font-weight:500}
.navrow a{text-decoration:none}
.menub{display:none;width:48px;height:48px;align-items:center;justify-content:center}
.hidesm{display:flex}

.hero-img{aspect-ratio:4/5;border-radius:var(--r-arch);max-height:620px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
.item{border-bottom:1px solid var(--hairline)}
.item__btn{padding:22px 0;display:flex;flex-direction:column;gap:var(--s-12)}
.item__open{background:var(--beige);border-radius:var(--r-panel);padding:var(--s-20);
	margin-bottom:22px;display:flex;flex-direction:column;gap:18px}
.tiers{display:grid;grid-template-columns:1fr auto auto;column-gap:28px;font-size:17px}
.tiers > span{padding:10px 0;border-bottom:1px solid var(--hairline)}
.tiers > span.th{font-size:15px;color:var(--mocha);padding:6px 0}
.tiers > span.ta{text-align:right}

@container pg (max-width:1023px){
	.wrap{padding-left:40px;padding-right:40px}
	.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
	/* Once the four columns stack, their own padding doubles up across the
	   gap — 24 ＋ 20 ＋ 24 between every pair. The plain columns drop it and
	   the row gap sets the rhythm instead; the card keeps its inside edge. */
	.g4{column-gap:var(--s-20);row-gap:var(--s-32)}
	.hcol:not(.hcol--card){padding-top:0;padding-bottom:0}
	.navrow{display:none}
	.menub{display:flex}
}
@container pg (max-width:899px){
	.g2{grid-template-columns:1fr;gap:var(--s-32)}
	.g3{grid-template-columns:1fr}
	.items{grid-template-columns:1fr}
	.form2{grid-template-columns:1fr}
	/* Phone type scale, taken from missamara.com.au at 375 — their numbers,
	   not an interpolation of ours. The hierarchy lives in the RATIO:
	   h2 26 over body 16 is 1.6x, so the headings stay big while the body
	   and the labels carry the reduction. Roles they have no equivalent for
	   (h3, service name) sit on the step between. */
	.h1{font-size:30px}			/* theirs: hero h1 30 */
	.h2{font-size:26px}			/* theirs: section h2 26 */
	.h3{font-size:18px}
	.cat-en{font-size:16px}			/* interpolated */
	.t-lead{font-size:16px}		/* theirs: body 16 */
	.t-body{font-size:16px}		/* theirs: body 16 */
	.t-meta{font-size:14px}		/* theirs: secondary 13–14 */
	.t-card{font-size:14px}		/* theirs: card copy 14 */
	.t-name{font-size:16px}		/* interpolated, theirs 14–15 */
	.t-price{font-size:16px}
	.t-en{font-size:13px}
	.t-label{font-size:12px}	/* theirs: meta 12 */
	.btn{font-size:15px}
	.navrow__inner{font-size:14px}
	.sec{padding-top:var(--s-64)}
	.salon{grid-template-columns:1fr 1fr}
	.salon-a{grid-column:span 2}
	.salon-b{height:auto;aspect-ratio:4/5}
	.topl{display:none}
}
@container pg (max-width:599px){
	.wrap{padding-left:var(--s-20);padding-right:var(--s-20)}
	/* 02 Type: on phone the hero and enquiry buttons run full width;
	   everywhere else they size to their label. */
	#top .btn,#enquiry form .btn{width:100%}
	/* 02 Type: the wordmark drops to its 18px phone-header minimum, so the
	   mark, 预约 and the menu button all fit on one row at 375. */
	.wm--head{font-size:16px}
	.g4{grid-template-columns:1fr}
	.hidesm{display:none}
	.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
	.wipe{aspect-ratio:4/5 !important}
}

/* An empty slot still claims a flex gap; collapse it. */
#cat-note:empty,#cat-hair:empty,#cat-items:empty{display:none}

/* 03 Imagery. Warm, low light, shadows brown rather than black. These are the
   mood references from the guidelines board, so they keep the board's own
   "not licensed" watermark until the salon's own photography is shot. */

/* Once a real photograph is behind the frame, the board's full-bleed
   watermark becomes a small corner mark: the licensing warning stays,
   the picture stays judgeable. Drop .ph--* to get the plain sand frame back. */
.ph[class*="ph--"] .phw{inset:auto auto 12px 12px;transform:none;display:block;
	background:rgba(80,16,8,0.62);color:var(--ivory);border-radius:var(--r-pill);
	padding:3px 12px;text-shadow:none}
.ph[class*="ph--"] .phw b{display:none}
.ph[class*="ph--"] .phw span{font-size:15px;letter-spacing:0.04em}

/* The treatment marquee — one oxblood band under the hero. */
.mq{overflow:hidden;white-space:nowrap;background:var(--ink);color:var(--ivory);margin-top:56px}
.mq-track{display:inline-flex;gap:48px;padding-left:48px;height:52px;align-items:center;
	font-size:16px;font-weight:500;letter-spacing:0.06em;animation:mq 70s linear infinite}
.mq:hover .mq-track{animation-play-state:paused}
.mq-track span.dot{width:6px;height:6px;border-radius:50%;background:var(--sand);display:inline-block}
.mq-track > span{display:inline-flex;align-items:center;gap:48px}
@keyframes mq{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.mq-track{animation:none}}

/* Signature cards: hover on desktop, tap on phone. */
.flip{perspective:1400px;height:440px}
.flip-in{position:relative;width:100%;height:100%;transition:transform .8s ease;transform-style:preserve-3d}
.flip:hover .flip-in,.flip.on .flip-in{transform:rotateY(180deg)}
.face{position:absolute;inset:0;border-radius:var(--r-card);backface-visibility:hidden;
	-webkit-backface-visibility:hidden}
.face--front{background:var(--beige);padding:0;display:flex;flex-direction:column;
	align-items:stretch;text-align:left;overflow:hidden}
.face--back{background:var(--ink);color:var(--ivory);padding:28px;display:flex;
	flex-direction:column;gap:14px;transform:rotateY(180deg)}
.face--back .hairline{border-top-color:rgba(249,246,242,0.25)}
.flip-tier{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;
	border-bottom:1px solid rgba(249,246,242,0.25);font-size:16px}

/* Before and after: one picture, wiped. */
.wipe{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--r-card);
	overflow:hidden;cursor:ew-resize;user-select:none}
.wipe__after{position:absolute;inset:0;background:var(--beige);display:flex;align-items:flex-end;
	justify-content:flex-end;padding:var(--s-24);font-size:15px;color:var(--mocha);text-align:right}
.wipe__before{position:absolute;inset:0;background:var(--sand);display:flex;align-items:flex-end;
	padding:var(--s-24);font-size:15px;color:var(--mocha)}
.wipe__line{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--white)}
.wipe__knob{position:absolute;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;
	background:var(--white);display:flex;align-items:center;justify-content:center;gap:2px}
.wipe__range{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.wipe__tag{position:absolute;top:var(--s-20);border-radius:var(--r-pill);padding:4px 14px;
	font-size:15px;font-weight:500}
