/* ============================================================
   Bella Unión Beauty & Barber
   Palette sampled from the badge logo:
   ink #0e0f11 · navy #12275e · deep navy #081432 · silver #c9ccd3
   Display: Cinzel (engraved caps, matches badge lettering)
   Body: Jost
   ============================================================ */

:root {
	--ink:          #0e0f11;   /* exact logo background — seamless blend */
	--ink-raised:   #14161b;
	--navy:         #12275e;
	--navy-deep:    #081432;
	--navy-glow:    #1c3d8f;
	--silver:       #c9ccd3;
	--silver-bright:#eef0f4;
	--steel:        #8b919c;
	--line:         rgba(201, 204, 211, 0.14);

	--font-display: 'Cinzel', 'Times New Roman', serif;
	--font-body:    'Jost', system-ui, sans-serif;

	--max: 1120px;
	--pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--ink);
	color: var(--silver);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--silver-bright); text-decoration: none; transition: color 160ms ease; }
a:hover { color: #fff; }

:focus-visible {
	outline: 2px solid var(--silver-bright);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.muted { color: var(--steel); }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 15, 17, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0.65rem var(--pad);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { border-radius: 50%; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: 0.09em;
	color: var(--silver-bright);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel);
	padding: 0.35rem 0;
	border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--silver-bright); }
.site-nav a.active { color: var(--silver-bright); border-bottom-color: var(--silver-bright); }

.nav-cta {
	border: 1px solid var(--line);
	padding: 0.5rem 1.1rem !important;
	border-radius: 2px;
	color: var(--silver-bright) !important;
	white-space: nowrap;
	transition: border-color 160ms ease, background 160ms ease;
}
.nav-cta:hover { border-color: var(--silver); background: rgba(201,204,211,0.06); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	text-align: center;
	padding: clamp(3rem, 9vh, 6rem) var(--pad) clamp(3.5rem, 10vh, 7rem);
	overflow: hidden;
}

/* Radial navy glow behind the badge — the badge reads as the light source */
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 560px 460px at 50% 34%, rgba(28, 61, 143, 0.38), transparent 68%),
		radial-gradient(ellipse 900px 300px at 50% 30%, rgba(28, 61, 143, 0.12), transparent 75%);
	pointer-events: none;
}

.hero-badge {
	position: relative;
	width: min(370px, 62vw);
	margin: 0 auto 2.4rem;
	display: block;
}

.hero-badge img {
	border-radius: 50%;
	/* halo fuses the badge into the glow; drop-shadow grounds it */
	box-shadow:
		0 0 90px rgba(28, 61, 143, 0.45),
		0 0 200px rgba(28, 61, 143, 0.18),
		0 30px 70px rgba(0, 0, 0, 0.6);
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.9rem, 5vw, 3.1rem);
	letter-spacing: 0.06em;
	color: var(--silver-bright);
	/* engraved metal: subtle vertical silver gradient like the badge lettering */
	background: linear-gradient(180deg, #f4f5f8 0%, #b9bdc7 55%, #e8eaef 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	position: relative;
}

.hero-tag {
	margin-top: 0.9rem;
	font-size: 1.2rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--steel);
	position: relative;
}
.hero-tag em { font-style: normal; color: var(--silver); }

.hero-actions {
	position: relative;
	margin-top: 2.5rem;
	display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.9rem 2.2rem;
	border-radius: 2px;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
	background: linear-gradient(180deg, var(--navy-glow), var(--navy));
	color: #fff;
	border: 1px solid rgba(255,255,255,0.12);
}
.btn-solid:hover { background: linear-gradient(180deg, #2449a5, var(--navy)); color: #fff; }

.btn-ghost {
	border: 1px solid var(--line);
	color: var(--silver-bright);
}
.btn-ghost:hover { border-color: var(--silver); }

/* ---------- Infinity divider — the signature ---------- */

.infinity-divider { display: flex; justify-content: center; padding: 0.5rem 0; }

.infinity { width: 120px; height: 48px; }

.infinity-path {
	fill: none;
	stroke: var(--silver);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 220;
	stroke-dashoffset: 220;
	opacity: 0.85;
}

.in-view .infinity-path,
.site-footer .infinity-path {
	animation: draw-infinity 1.6s ease forwards;
}

@keyframes draw-infinity {
	to { stroke-dashoffset: 0; }
}

/* ---------- Sections ---------- */

.section {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3rem, 8vh, 5.5rem) var(--pad);
}

.eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 0.75rem;
}

.section-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.4vw, 2.2rem);
	letter-spacing: 0.05em;
	color: var(--silver-bright);
	margin-bottom: 1rem;
}

.section-intro { max-width: 620px; color: var(--steel); }

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Service menu — Spanish-first, as the shop advertises ---------- */

.service-menu {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;                      /* hairline seams via background */
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 3px;
	overflow: hidden;
	margin-top: 3rem;
}

.service-cell {
	background: var(--ink-raised);
	padding: 1.6rem 1.5rem;
	transition: background 200ms ease;
}
.service-cell:hover { background: #191c23; }

.service-cell .es {
	display: block;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--silver-bright);
}
.service-cell .en {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel);
}

/* ---------- Heritage ---------- */

.heritage {
	background: linear-gradient(180deg, var(--ink) 0%, #0b1226 50%, var(--ink) 100%);
}

.heritage-band {
	background:
		radial-gradient(ellipse 700px 400px at 20% 50%, rgba(18, 39, 94, 0.35), transparent 70%),
		radial-gradient(ellipse 700px 400px at 80% 50%, rgba(18, 39, 94, 0.35), transparent 70%);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.heritage-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.flag-pair {
	display: flex; justify-content: center; align-items: center; gap: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	color: var(--silver);
}
.flag-pair .tie { color: var(--steel); font-family: var(--font-body); font-size: 1.5rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}

.gallery-item {
	aspect-ratio: 1;
	background: var(--ink-raised);
	border: 1px solid var(--line);
	border-radius: 3px;
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	color: var(--steel);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(2rem, 5vw, 4rem);
	margin-top: 2.5rem;
}

.contact-form { display: grid; gap: 1.1rem; }

.field label {
	display: block;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	background: var(--ink-raised);
	border: 1px solid var(--line);
	border-radius: 2px;
	color: var(--silver-bright);
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.75rem 0.9rem;
	transition: border-color 160ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--silver); outline: none; }

.field textarea { min-height: 130px; resize: vertical; }

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: var(--steel); }

.contact-info h3 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	color: var(--silver-bright);
	margin: 1.5rem 0 0.5rem;
}
.contact-info h3:first-child { margin-top: 0; }

.alert {
	padding: 0.9rem 1.1rem;
	border-radius: 2px;
	border: 1px solid;
	font-size: 0.95rem;
}
.alert-ok  { border-color: rgba(120, 190, 140, 0.4); color: #a8d8b4; background: rgba(120, 190, 140, 0.07); }
.alert-err { border-color: rgba(220, 120, 120, 0.4); color: #e2a9a9; background: rgba(220, 120, 120, 0.07); }

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	margin-top: clamp(3rem, 8vh, 5rem);
	padding: 2.5rem var(--pad) 1.5rem;
}

.footer-grid {
	max-width: var(--max);
	margin: 1.5rem auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
}

.footer-title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--silver-bright);
	margin-bottom: 0.75rem;
}

.footer-tag { color: var(--silver); }

address { font-style: normal; color: var(--steel); line-height: 2; }

.hours-list { list-style: none; }
.hours-list li {
	display: flex; justify-content: space-between; gap: 1rem;
	font-size: 0.92rem;
	color: var(--steel);
	padding: 0.18rem 0;
}
.hours-list li span:last-child { color: var(--silver); }

.footer-base {
	max-width: var(--max);
	margin: 2.5rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	font-size: 0.85rem;
	color: var(--steel);
}

.social { display: flex; gap: 1.5rem; }
.social a { color: var(--steel); letter-spacing: 0.08em; }
.social a:hover { color: var(--silver-bright); }

/* ---------- Scroll reveal ---------- */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.infinity-path { stroke-dashoffset: 0; animation: none; }
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.service-menu { grid-template-columns: repeat(2, 1fr); }
	.heritage-grid, .contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
	.service-menu { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.nav-toggle {
		display: flex; flex-direction: column; gap: 5px;
		background: none; border: none; cursor: pointer; padding: 0.5rem;
	}
	.nav-toggle span {
		width: 24px; height: 2px; background: var(--silver-bright);
		transition: transform 200ms ease, opacity 200ms ease;
	}
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(14, 15, 17, 0.98);
		border-bottom: 1px solid var(--line);
		padding: 0.5rem var(--pad) 1rem;
	}
	.site-nav.open { display: flex; }
	.site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
	.nav-cta { margin-top: 0.75rem; text-align: center; border-bottom: 1px solid var(--line) !important; }
}

/* ============================================================
   3D depth layer — badge tilt, glare, dust, tile lift
   All GPU-composited transforms; disabled under reduced motion.
   ============================================================ */

.hero { perspective: 1100px; }

.hero-badge {
	transform-style: preserve-3d;
	will-change: transform;
	transition: transform 500ms cubic-bezier(.2,.8,.3,1);
	animation: badge-float 7s ease-in-out infinite;
	position: relative;
}
.hero-badge.tracking { transition: transform 90ms linear; animation-play-state: paused; }

@keyframes badge-float {
	0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
	50%      { transform: translateY(-12px) rotateX(2.5deg) rotateY(-2deg); }
}

.badge-glare {
	position: absolute; inset: 0;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%),
		rgba(255,255,255,0.32), rgba(255,255,255,0.06) 34%, transparent 55%);
	mix-blend-mode: screen;
	opacity: 0;
	transition: opacity 400ms ease;
}
.hero-badge.tracking .badge-glare { opacity: 1; }

.depth-glow {
	position: absolute; left: 50%; top: 34%;
	width: 720px; height: 720px;
	transform: translate(-50%, -50%);
	background:
		radial-gradient(circle, rgba(28,61,143,0.34), transparent 60%),
		radial-gradient(circle at 42% 40%, rgba(120,140,200,0.10), transparent 45%);
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
	z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.dust {
	position: absolute;
	bottom: -8px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(220,224,232,0.9), rgba(220,224,232,0));
	pointer-events: none;
	animation: dust-rise linear infinite;
	z-index: 0;
}
@keyframes dust-rise {
	0%   { transform: translateY(0) translateX(0); opacity: 0; }
	12%  { opacity: var(--o, 0.5); }
	85%  { opacity: var(--o, 0.5); }
	100% { transform: translateY(-92vh) translateX(var(--dx, 20px)); opacity: 0; }
}

.service-menu { perspective: 900px; }
.service-cell {
	transform-style: preserve-3d;
	will-change: transform;
	transition: transform 350ms cubic-bezier(.2,.8,.3,1), background 200ms ease, box-shadow 350ms ease;
}
.service-cell.tilting { transition: transform 80ms linear; }
.service-cell:hover {
	background: #1a1e27;
	box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 30px rgba(28,61,143,0.15);
	z-index: 2;
}
.service-cell .es, .service-cell .en { transform: translateZ(24px); display: block; }

.hero h1 {
	filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5)) drop-shadow(0 12px 24px rgba(28,61,143,0.35));
}

@media (prefers-reduced-motion: reduce) {
	.hero-badge { animation: none; transition: none; }
	.badge-glare, .dust, .depth-glow { display: none; }
	.service-cell { transition: background 200ms ease; }
	.service-cell .es, .service-cell .en { transform: none; }
}

/* ============================================================
   Sticky booking CTA — mobile bottom bar, desktop floating pill
   ============================================================ */

.book-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 60;
	display: flex;
	gap: 1px;
	background: var(--line);
	border-top: 1px solid var(--line);
	transform: translateY(110%);
	transition: transform 380ms cubic-bezier(.2,.8,.3,1);
	padding-bottom: env(safe-area-inset-bottom, 0);
	backdrop-filter: blur(10px);
}
.book-bar.visible { transform: translateY(0); }

.book-bar a {
	flex: 1;
	display: flex; align-items: center; justify-content: center; gap: 0.6rem;
	padding: 1rem 0.75rem;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.book-call { background: linear-gradient(180deg, var(--navy-glow), var(--navy)); }
.book-call:hover { background: linear-gradient(180deg, #2449a5, var(--navy)); color: #fff; }

.book-wa { background: linear-gradient(180deg, #1f9d55, #157a3f); }
.book-wa:hover { background: linear-gradient(180deg, #24b562, #157a3f); color: #fff; }

.book-bar svg { width: 18px; height: 18px; flex: none; }

@media (min-width: 721px) {
	.book-bar {
		left: auto; right: 1.5rem; bottom: 1.5rem;
		border-top: none;
		border-radius: 999px;
		overflow: hidden;
		box-shadow: 0 16px 42px rgba(0,0,0,0.55), 0 0 0 1px var(--line);
		transform: translateY(140%);
	}
	.book-bar.visible { transform: translateY(0); }
	.book-bar a { flex: none; padding: 0.85rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.book-bar { transition: none; }
}
