/* ==========================================================================
   Chen Piercing — main stylesheet (RTL)
   ========================================================================== */

:root {
	/* Nude-blush palette, matched to Chen's Canva materials */
	--bg: #fcf9f7;
	--bg-alt: #f6eeea;
	--placeholder: #efe3dd;
	--ink: #27282d;
	--ink-soft: #4a4a4f;
	--muted: #807b7a;
	--line: #ecdfd8;
	--gold: #c09a85;
	--cream: #fcf9f7;    /* text on --ink buttons */
	--dark: #f3e8e2;     /* contact section background */
	--on-dark: #27282d;  /* text on --dark */

	--font-display: "Assistant", "Heebo", Arial, sans-serif;  /* same as Chen's Canva designs */
	--font-body: "Assistant", "Heebo", Arial, sans-serif;

	--container: 1180px;
	--gutter: clamp(20px, 4.2vw, 48px);
	--section-y: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	direction: rtl;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; right: 12px; z-index: 1000;
	padding: 10px 16px; background: var(--ink); color: var(--cream);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--ruled { border-top: 1px solid var(--line); }

.section__title {
	font-size: clamp(40px, 5.2vw, 64px);
	margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
	font-size: 14px;
	color: var(--muted);
	letter-spacing: 0.02em;
}

/* ---------- Buttons & links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 34px;
	background: var(--ink);
	color: var(--cream);
	font: 500 16px/1.2 var(--font-body);
	text-decoration: none;
	border: 1px solid var(--ink);
	transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--light { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn--light:hover { background: transparent; color: var(--on-dark); }

.link {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color .2s;
}
.link:hover { color: var(--gold); }

/* ---------- Placeholders (until real images are uploaded) ---------- */

.placeholder {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	background: var(--placeholder);
	color: var(--muted);
	font-size: 13px;
	padding: 18px 20px;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}

.brand {
	font-family: var(--font-display);
	font-size: clamp(18px, 2vw, 22px);
	letter-spacing: .22em;
	text-decoration: none;
	white-space: nowrap;
	direction: ltr;
}
.brand img { max-height: 44px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand .brand__mark { height: 46px; width: auto; }
@media (max-width: 600px) { .brand .brand__mark { height: 38px; } }

.nav__list {
	display: flex;
	gap: clamp(18px, 2.4vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav__list a {
	font-size: 15px;
	text-decoration: none;
	padding-block: 6px;
	background: linear-gradient(var(--gold), var(--gold)) no-repeat right bottom / 0 1px;
	transition: background-size .25s;
}
.nav__list a:hover,
.nav__list .current-menu-item > a { background-size: 100% 1px; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	margin-inline-end: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 26px; height: 2px;
	margin: 6px auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s;
}
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed;
		inset: 72px 0 0 0;
		background: var(--bg);
		padding: 32px var(--gutter);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a {
		display: block;
		padding-block: 16px;
		font-family: var(--font-display);
		font-size: 28px;
		border-bottom: 1px solid var(--line);
		background: none;
	}
}

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

.hero { padding-block: clamp(32px, 4vw, 48px) clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); }
.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.hero__title {
	font-size: clamp(52px, 8.2vw, 116px);
	line-height: 1.02;
	margin: 18px 0 32px;
}
.hero__text {
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--ink-soft);
	max-width: 36ch;
	margin-bottom: 36px;
}
.hero__media {
	display: grid;
	grid-template-columns: 3fr 1fr; /* RTL: main image on the right, small one on the left */
	align-items: end;
	gap: 18px;
}
.hero__img { width: 100%; object-fit: cover; }
.hero__img--main { aspect-ratio: 4 / 5; grid-column: 1; grid-row: 1; }
.hero__img--small { aspect-ratio: 3 / 4; grid-column: 2; grid-row: 1; border: 1px solid var(--line); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { grid-template-columns: 1fr; }
	.hero__img--main { grid-column: 1; }
	.hero__img--small { display: none; }
}

/* ---------- About ---------- */

.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
}
.about__media { order: -1; }
.about__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__body { padding-top: clamp(0px, 4vw, 56px); color: var(--ink-soft); }
.about__body .section__title { color: var(--ink); margin-bottom: 28px; }

@media (max-width: 900px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__body { padding-top: 0; }
	.about__media { order: 1; }
}

/* ---------- Services ---------- */

.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold); }
.service {
	display: grid;
	grid-template-columns: 1.1fr 1.6fr auto;
	align-items: baseline;
	gap: 16px 40px;
	padding-block: 30px;
	border-bottom: 1px solid var(--gold);
}
.service__name { font-size: clamp(24px, 2.4vw, 32px); }
.service__desc { color: var(--ink-soft); margin: 0; }
.service .link { white-space: nowrap; font-size: 16px; }

@media (max-width: 700px) {
	.service { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
}

/* ---------- Works gallery ---------- */

.works__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 32px;
	margin-bottom: clamp(28px, 3vw, 40px);
}
.works__head .section__title { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
	min-height: 44px;
	padding: 8px 20px;
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font: 400 15px/1 var(--font-body);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.filter:hover { background: var(--bg-alt); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.works__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.work { margin: 0; overflow: hidden; }
.work[hidden] { display: none; }
.work img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform .6s ease;
}
.work:hover img { transform: scale(1.03); }
.works__empty { color: var(--muted); }

@media (max-width: 1000px) { .works__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
	.works__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.filters { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
	.filter { flex: none; }
}

/* ---------- Blog ---------- */

.posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; }
.post-card__title { font-size: clamp(22px, 2vw, 27px); line-height: 1.3; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { color: var(--ink-soft); font-size: 16px; margin: 0; }

@media (max-width: 900px) { .posts { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Testimonials ---------- */

.testimonials { max-width: 880px; margin-inline: auto; }
.quote { margin: 0; }
.quote[hidden] { display: none; }
.quote__text {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.3;
	margin: 20px 0 28px;
}
.quote__text p { margin: 0; }
.quote__name { font-style: normal; color: var(--muted); }

.dots { display: flex; gap: 10px; margin-top: 32px; }
.dot {
	width: 12px; height: 12px;
	padding: 0;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.dot[aria-current="true"] { background: var(--ink); }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; margin-inline: auto; }
.faq__list { border-top: 1px solid var(--gold); }
.faq__item { border-bottom: 1px solid var(--gold); }
.faq__item summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 24px;
	font-size: clamp(18px, 1.8vw, 21px);
	cursor: pointer;
	list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
	content: "";
	flex: none;
	width: 0; height: 0;
	border-block: 6px solid transparent;
	border-inline-start: 10px solid var(--ink);
	transition: transform .25s;
}
.faq__item[open] summary::before { transform: rotate(-90deg); }
.faq__answer { padding: 0 24px 24px 0; color: var(--ink-soft); }
.faq__answer > :last-child { margin-bottom: 0; }

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

.contact {
	background: var(--dark);
	border-top: 1px solid var(--line);
	color: var(--on-dark);
	padding-block: var(--section-y) 40px;
}
.contact__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px 64px;
	align-items: start;
}
.contact__title {
	font-size: clamp(44px, 6vw, 84px);
	margin-bottom: 36px;
}
.contact__details { list-style: none; margin: 0; padding: 0; font-size: 17px; }
.contact__details li { margin-bottom: 14px; }
.contact__details a { color: var(--on-dark); }
.contact__details a:hover { color: var(--gold); }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(56px, 8vw, 96px);
	padding-top: 24px;
	border-top: 1px solid color-mix(in srgb, var(--on-dark) 15%, transparent);
	font-size: 14px;
	color: color-mix(in srgb, var(--on-dark) 75%, transparent);
}
.site-footer__bottom a { color: inherit; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 22px;
	background: var(--ink);
	color: var(--cream);
	border: 1px solid var(--gold);
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(39, 40, 45, .16);
	transition: background-color .2s, color .2s;
}
.wa-float:hover { background: var(--gold); color: var(--ink); }
.wa-float svg { width: 18px; height: 18px; }

/* ---------- Inner pages (posts, pages, archive) ---------- */

.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-head__title { font-size: clamp(40px, 5.6vw, 72px); }
.page-head .eyebrow { display: block; margin-bottom: 14px; }

.entry {
	max-width: 760px;
	margin-inline: auto;
	padding-bottom: var(--section-y);
	font-size: 18px;
	color: var(--ink-soft);
}
.entry h2, .entry h3 { color: var(--ink); margin: 1.6em 0 .6em; }
.entry h2 { font-size: 34px; }
.entry h3 { font-size: 26px; }
.entry a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.entry img { margin-block: 1.5em; }
.entry ul, .entry ol { padding-inline-start: 1.2em; }
.entry blockquote {
	margin: 1.6em 0;
	padding-inline-start: 24px;
	border-inline-start: 2px solid var(--gold);
	font-family: var(--font-display);
	font-size: 24px;
	color: var(--ink);
}
.entry__thumb { max-width: 1000px; margin: 0 auto clamp(32px, 5vw, 56px); }
.entry__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry__cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; gap: 12px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; text-decoration: none; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Fixes after live test ---------- */

/* Logged-in admins: keep the sticky header below the WP admin bar. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Leave room so the floating WhatsApp button never covers the footer's last line. */
.contact { padding-bottom: 96px; }

/* ---------- Divider ornament (line with a small diamond, as in Chen's Canva designs) ---------- */
.section__title::after,
.contact__title::after {
	content: "";
	display: block;
	width: 96px;
	height: 9px;
	margin-top: 18px;
	background: var(--gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 9'%3E%3Crect y='4' width='42' height='1'/%3E%3Crect x='54' y='4' width='42' height='1'/%3E%3Cpath d='M48 0l4.5 4.5L48 9l-4.5-4.5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 9'%3E%3Crect y='4' width='42' height='1'/%3E%3Crect x='54' y='4' width='42' height='1'/%3E%3Cpath d='M48 0l4.5 4.5L48 9l-4.5-4.5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
