/*
Theme Name: TattooCloud Studio
Theme URI: https://tattoocloud.com
Author: Stealth Industries
Author URI: https://stealth.industries
Description: Lean, builder-free site for tattoo artists. Portfolio from TattooCloud AI; everything else edited from the Studio screen.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: tattoocloud-studio
*/

/* ── Tokens (the "skin") ─────────────────────────────────────────────── */
:root {
	--bg: #f3f3f1;
	--surface: #ffffff;
	--ink: #111111;
	--ink-soft: #3d3d3d;
	--muted: #6b6b68;
	--line: #d9d9d4;
	--accent: #111111;
	--accent-ink: #ffffff;
	--band: #111111;
	--band-ink: #f3f3f1;
	--open: #2f9e5b;
	--closed: #b4442f;

	--font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 999px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--gap: 6px;
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0 0 1em; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.muted { color: var(--muted); }
.multiply { mix-blend-mode: multiply; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(48px, 8vw, 110px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.page-top { height: clamp(8px, 2vw, 24px); }

/* ── Type ────────────────────────────────────────────────────────────── */
.page-title { font-size: clamp(30px, 4.4vw, 48px); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .8em; }
.display { font-size: clamp(44px, 6.5vw, 76px); font-weight: 900; letter-spacing: -.02em; margin-bottom: .45em; }
.eyebrow-title { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.prose p:last-child { margin-bottom: 0; }
.prose--center { text-align: center; }
.link-arrow { font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ── Buttons & chips ─────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 52px; padding: 0 28px;
	background: var(--accent); color: var(--accent-ink);
	border: 1px solid var(--accent); border-radius: var(--radius);
	font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn--small { min-height: 42px; padding: 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.btn--light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--block { width: 100%; }
.btn.is-static:hover { transform: none; opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
	display: inline-flex; align-items: center; gap: .45em;
	padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius);
	background: transparent; color: var(--ink); cursor: pointer;
	font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover, .chip.is-active { background: var(--ink); color: var(--bg); }
.chip.is-active span, .chip:hover span { color: #bdbdb8; }
.chip--small { padding: 5px 12px; font-size: 11px; }
.chip.is-static { cursor: default; border-color: var(--line); }
.chip.is-static:hover { background: transparent; color: var(--ink); }
.chips--static { margin-top: 28px; }

.follow { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.follow__inner { display: grid; justify-items: center; gap: 14px; }
.follow__title { font-size: clamp(28px, 4vw, 40px); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.follow__text { max-width: 460px; margin: 0; color: var(--ink-soft); }
.follow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.follow__btn { gap: 10px; }
.follow__btn svg { width: 20px; height: 20px; }
.social { display: flex; gap: 10px; }
.social--center { justify-content: center; margin: 28px 0; }
.social__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.social__btn svg { width: 22px; height: 22px; }
.social--light .social__btn { background: var(--band-ink); color: var(--band); }

.status-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--closed); box-shadow: 0 0 0 4px color-mix(in srgb, var(--closed) 25%, transparent); }
.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px color-mix(in srgb, var(--open) 25%, transparent); }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.brand { display: block; text-decoration: none; font-weight: 700; }
.brand img { width: auto; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: 16px; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
	.site-header__inner { min-height: 76px; }
	.brand img { height: 50px; }
	.nav-toggle {
		display: grid; gap: 6px; place-content: center;
		width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer;
	}
	.nav-toggle > span:not(.sr) { width: 18px; height: 2px; background: var(--bg); transition: transform .2s ease; }
	.nav-open .nav-toggle > span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
	.nav-open .nav-toggle > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 16px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 20px; }
}

/* ── Home hero ───────────────────────────────────────────────────────── */
.hero { padding: clamp(32px, 9vw, 140px) 0 clamp(40px, 9vw, 150px); }
.hero__mark { margin: 0; }
.hero__mark img { width: min(100%, 1000px); margin: 0 auto; filter: contrast(.75) brightness(1.55); mix-blend-mode: multiply; }

/* ── About ───────────────────────────────────────────────────────────── */
.about { padding-top: 0; }
.page-top + .about { padding-top: clamp(32px, 6vw, 80px); }
.about__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: start; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.about__text { padding-top: clamp(0px, 2vw, 24px); font-size: 18px; color: var(--ink-soft); }
.about__text .display { color: var(--ink); }
@media (max-width: 800px) { .about__inner { grid-template-columns: 1fr; } }

/* ── Grids ───────────────────────────────────────────────────────────── */
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.grid { display: grid; gap: var(--gap); }
.grid--home { grid-template-columns: repeat(6, 1fr); }
.grid--portfolio { grid-template-columns: repeat(auto-fill, minmax(min(180px, 45vw), 1fr)); padding: 0 var(--gap); }
@media (max-width: 1000px) { .grid--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid--home { grid-template-columns: repeat(2, 1fr); } }
.tile { display: block; position: relative; overflow: hidden; background: #ddd; aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.tile:hover img { transform: scale(1.04); }
.tile[hidden] { display: none; }

/* ── Portfolio ───────────────────────────────────────────────────────── */
.portfolio { padding-bottom: clamp(48px, 8vw, 100px); }
.marquee { overflow: hidden; padding: clamp(28px, 6vw, 90px) 0 clamp(20px, 4vw, 48px); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-size: clamp(56px, 10vw, 128px); line-height: 1; text-transform: uppercase; white-space: nowrap; padding-right: .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.portfolio .chips { margin-bottom: 28px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ── Single tattoo ───────────────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.tattoo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.pager { display: flex; align-items: center; gap: 8px; }
.pager__btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px;
	border: 1px solid var(--ink); border-radius: var(--radius); font-size: 12px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s;
}
.pager__btn:hover { background: var(--ink); color: var(--bg); }
.pager__count { min-width: 64px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tattoo { padding-top: clamp(20px, 3vw, 40px); }
.tattoo__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tattoo__image { margin: 0; background: #e6e6e2; }
.tattoo__image img { width: 100%; max-height: 86vh; object-fit: contain; }
.tattoo__panel { position: sticky; top: 124px; display: grid; gap: 22px; background: var(--surface); padding: clamp(22px, 3vw, 36px); }
.tattoo__title { font-size: 22px; font-weight: 500; line-height: 1.3; }
.details { display: grid; gap: 16px; margin: 0; }
.details dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.details dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.status-pill--dark { margin: 0; }
@media (max-width: 900px) { .tattoo__inner { grid-template-columns: 1fr; } .tattoo__panel { position: static; } }
@media (max-width: 600px) { .pager { width: 100%; } .pager__btn { flex: 1; justify-content: center; } }

/* ── Booking band ────────────────────────────────────────────────────── */
.band { background: var(--band); color: var(--band-ink); padding: clamp(40px, 6vw, 72px) 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band__title { font-size: clamp(30px, 4vw, 46px); text-transform: uppercase; margin-bottom: 8px; }
.band .muted { color: #a9a9a4; max-width: 520px; margin: 0; }
.band__message { font-size: clamp(18px, 2vw, 22px); max-width: 640px; }

/* ── Booking page ────────────────────────────────────────────────────── */
.booking__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.booking__inner.is-closed { grid-template-columns: 1fr; max-width: 680px; }
.booking__info { text-align: center; }
.booking__info .prose { font-size: 15.5px; color: var(--ink-soft); max-width: 420px; margin: 0 auto; }
.booking__inner.is-closed .prose { font-size: 20px; max-width: none; }
.booking__badge img { width: min(100%, 300px); margin: 12px auto 0; }
@media (max-width: 860px) { .booking__inner { grid-template-columns: 1fr; } }

/* Gravity Forms, matched to the site's pill style. */
.booking__form .gform_wrapper.gravity-theme .gfield_label,
.booking__form .gform_wrapper .gfield_label { font-size: 15px; font-weight: 400; }
.booking__form .gfield_required { color: var(--muted); font-size: 12px; }
.booking__form input[type=text], .booking__form input[type=email], .booking__form input[type=tel],
.booking__form input[type=number], .booking__form select, .booking__form textarea {
	width: 100%; padding: 12px 18px !important; border: 1px solid var(--ink) !important; border-radius: 24px !important;
	background: transparent !important; font: inherit !important; font-size: 15px !important; color: var(--ink);
}
.booking__form textarea { border-radius: 18px !important; min-height: 120px; }
.booking__form .gfield_description, .booking__form .gform_fileupload_rules { font-size: 13px; color: var(--muted); }
.booking__form .gform_drop_area { border: 1px dashed var(--ink) !important; border-radius: 18px !important; background: transparent !important; }
.booking__form .gform_button, .booking__form .gform_next_button, .booking__form .gform_previous_button, .booking__form .gform_button_select_files {
	background: var(--accent) !important; color: var(--accent-ink) !important; border: 0 !important;
	border-radius: var(--radius) !important; padding: 14px 30px !important; font-size: 13px !important;
	font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 100px); align-items: start; }
/* Sticky creates a stacking context, so it needs its own background for
   the emblem's multiply blend to knock out the white. */
.split__aside { position: sticky; top: 140px; background: var(--bg); }
.split__emblem { width: min(100%, 280px); margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } .split__emblem { width: 140px; } }
.accordion { border-top: 1px solid var(--ink); margin-top: 28px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
	padding: 20px 0; cursor: pointer; list-style: none;
	font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; text-transform: uppercase; letter-spacing: .01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s ease; flex: none; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .prose { padding: 0 0 24px; color: var(--ink-soft); max-width: 640px; }
.after-accordion { margin-top: 32px; color: var(--muted); }

/* ── Aftercare ───────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: step; display: grid; gap: 16px; }
.steps__item { counter-increment: step; background: var(--surface); padding: clamp(22px, 3vw, 36px); position: relative; }
.steps__item::before { content: "0" counter(step); display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); margin-bottom: 8px; }
.steps__item h2 { font-size: 22px; font-weight: 500; margin-bottom: 12px; text-transform: uppercase; }
.steps__item .prose { color: var(--ink-soft); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #ebebe8; }
.site-footer__inner { display: grid; grid-template-columns: 1.1fr .6fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.site-footer__name { font-size: 30px; margin-bottom: 8px; }
.site-footer__id p { margin-bottom: 6px; }
.site-footer__id a { text-decoration: none; }
.site-footer__id .social { margin-top: 16px; }
.site-footer__emblem img { width: 130px; margin: 0 auto; }
.site-footer__artists { display: grid; justify-items: center; gap: 10px; text-align: center; }
.site-footer__lead { font-size: 22px; line-height: 1.2; margin-bottom: 8px; max-width: 320px; }
.site-footer__artists .btn { min-width: 240px; }
.site-credits { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.site-credits .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-credits a { text-decoration: none; }
.site-credits a:hover { color: var(--ink); }
@media (max-width: 860px) {
	.site-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.site-footer__id .social { justify-content: center; }
	.site-credits .wrap { justify-content: center; text-align: center; }
}
