/* ==========================================================================
   Rodmell theme — gallery-white, type-led, artwork first.
   ========================================================================== */

:root {
	--paper: #f7f5f0;
	--wall: #efece5;
	--ink: #1c1b19;
	--ink-soft: #4a4740;
	--muted: #7a766c;
	--line: #dcd7cc;
	--accent: #c8102e; /* from the AR logo red, darkened for text contrast */
	--sold: #b3261e;
	--ok: #2f6b3f;

	--display: "Cinzel", "Trajan Pro", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--space: clamp(64px, 9vw, 128px);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 300 17px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: .02em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.eyebrow {
	font: 500 .75rem/1 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1.2em;
}

.screen-reader-text, .hp-field {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

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

/* Buttons ------------------------------------------------------------------ */

.button, button[type=submit] {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font: 500 .78rem/1 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease);
}
.button:hover, button[type=submit]:hover { background: transparent; color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow, .link-back {
	font: 500 .78rem/1 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-soft);
}
.link-arrow { white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .25s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }

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

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 76px;
}

.site-title {
	font: 500 1.25rem/1 var(--display);
	letter-spacing: .02em;
	text-decoration: none;
}
.site-title { display: inline-flex; align-items: center; gap: 14px; }
.site-logo { height: 44px; width: auto; }

.site-nav__list { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
	font: 400 .8rem/1 var(--sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: border-color .25s;
}
.site-nav__list a:hover { border-bottom-color: var(--accent); }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { border-bottom-color: var(--accent); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
	.nav-toggle {
		display: grid; gap: 6px; place-content: center;
		width: 44px; height: 44px; margin-right: -10px;
		background: none; border: 0; cursor: pointer;
	}
	.nav-toggle__bar { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
	.nav-toggle[aria-expanded=true] .nav-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
	.nav-toggle[aria-expanded=true] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

	.site-nav {
		position: absolute; inset: 76px 0 auto 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
	.site-nav__list a { display: block; padding: 16px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
}

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

.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 400; margin-bottom: .4em; }
.hero__intro { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.hero__art { margin: 0; }
.hero__art img {
	width: 100%; max-height: 78vh; object-fit: contain; object-position: right center;
	box-shadow: 0 30px 60px -30px rgba(28, 27, 25, .35);
}
.hero__art figcaption {
	margin-top: 14px; text-align: right;
	font: 400 .8rem/1.3 var(--display); letter-spacing: .08em; color: var(--muted);
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__art { order: -1; }
	.hero__art img { max-height: 60vh; object-position: center; margin: 0 auto; }
	.hero__art figcaption { text-align: center; }
}

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

.section { padding: var(--space) 0; }
.section--tight { padding-top: 0; }

.section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: clamp(32px, 5vw, 56px);
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}
.section__head h2 { margin: 0; }

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { margin-bottom: .3em; }
.page-head__intro { max-width: 60ch; color: var(--ink-soft); }
.page-head--center { text-align: center; padding-bottom: var(--space); }

.empty { color: var(--muted); padding: 48px 0; }

/* Artwork grid --------------------------------------------------------------
   Works are never cropped: each sits on a common baseline inside a square frame,
   like paintings hung along a wall. */

.artwork-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}

.artwork-card__link { display: block; text-decoration: none; }
.artwork-card__frame {
	aspect-ratio: 1;
	display: flex; align-items: flex-end; justify-content: center;
}
.artwork-card__frame img {
	max-width: 100%; max-height: 100%;
	width: auto; height: auto;
	box-shadow: 0 18px 36px -22px rgba(28, 27, 25, .45);
	transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.artwork-card__link:hover .artwork-card__frame img {
	transform: translateY(-6px);
	box-shadow: 0 30px 50px -26px rgba(28, 27, 25, .5);
}
.artwork-card__caption { padding-top: 20px; text-align: center; }
.artwork-card__title { font-size: 1.05rem; margin: 0 0 6px; }
.artwork-card__meta { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.artwork-card__price { font-size: .9rem; margin: 0; }

.availability { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.availability--sold, .availability--nfs { color: var(--muted); }
.red-dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--sold);
	display: inline-block;
}

.img-placeholder {
	width: 100%; height: 100%; min-height: 240px;
	display: grid; place-items: center;
	background: repeating-linear-gradient(135deg, var(--wall) 0 14px, #e8e4dc 14px 28px);
	color: var(--muted);
	font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.hero__art .img-placeholder { aspect-ratio: 4 / 5; }
.about__photo .img-placeholder { aspect-ratio: 4 / 5; }

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

.filters {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
	margin-top: 32px; padding-top: 20px;
	border-top: 1px solid var(--line);
}
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__group a, .filters__toggle {
	font: 400 .78rem/1 var(--sans);
	letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none;
}
.filters__group a {
	padding: 10px 16px;
	border: 1px solid var(--line); border-radius: 99px;
	transition: border-color .2s, background .2s;
}
.filters__group a:hover { border-color: var(--ink); }
.filters__group a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.filters__toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.filters__switch {
	width: 34px; height: 20px; border-radius: 99px;
	background: var(--line); position: relative; transition: background .2s;
}
.filters__switch::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 14px; height: 14px; border-radius: 50%; background: #fff;
	transition: transform .2s var(--ease);
}
.filters__toggle[aria-pressed=true] .filters__switch { background: var(--ink); }
.filters__toggle[aria-pressed=true] .filters__switch::after { transform: translateX(14px); }

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

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

.about { background: var(--wall); }
.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 7vw, 112px);
	align-items: center;
}
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text .prose { font-size: 1.05rem; color: var(--ink-soft); max-width: 58ch; }

@media (max-width: 900px) {
	.about__inner { grid-template-columns: minmax(0, 1fr); }
	.about__photo { max-width: 440px; }
}

/* CTA ---------------------------------------------------------------------- */

.cta__inner { text-align: center; max-width: 720px; }
.cta__inner p { color: var(--ink-soft); margin-bottom: 2em; }

/* Single artwork ------------------------------------------------------------ */

.artwork-single { padding: clamp(32px, 5vw, 72px) 0 var(--space); }
.artwork-single__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.artwork-single__image {
	margin: 0;
	position: sticky; top: 100px;
	background: var(--wall);
	padding: clamp(20px, 4vw, 56px);
	display: flex; justify-content: center;
}
.artwork-single__image img {
	max-height: 76vh; width: auto;
	box-shadow: 0 30px 60px -30px rgba(28, 27, 25, .45);
	cursor: zoom-in;
}
.artwork-single__title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.link-back { display: inline-block; margin-bottom: 40px; }

.details { margin: 28px 0; border-top: 1px solid var(--line); }
.details > div {
	display: grid; grid-template-columns: 120px 1fr; gap: 16px;
	padding: 12px 0; border-bottom: 1px solid var(--line);
	font-size: .95rem;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; }

.artwork-single__price { font: 500 1.35rem/1.2 var(--display); margin: 0 0 28px; }
.artwork-single__price .availability--available { color: var(--ink); }
.artwork-single__actions { margin-top: 32px; }

.artwork-nav {
	display: flex; justify-content: space-between; gap: 24px;
	margin-top: var(--space); padding-top: 24px;
	border-top: 1px solid var(--line);
	font: 400 .95rem/1.3 var(--display); letter-spacing: .04em;
}
.artwork-nav a { text-decoration: none; }
.artwork-nav span:last-child { text-align: right; }

@media (max-width: 900px) {
	.artwork-single__inner { grid-template-columns: minmax(0, 1fr); }
	.artwork-single__image { position: static; }
	.artwork-single__image img { max-height: 70vh; }
	.link-back { margin-bottom: 20px; }
}

/* Lightbox ----------------------------------------------------------------- */

.lightbox {
	border: 0; padding: 0; background: transparent;
	max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(20, 19, 17, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.lightbox__close {
	position: fixed; top: 16px; right: 20px;
	width: 48px; height: 48px;
	background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* Pages, prose, contact ------------------------------------------------------ */

.page-narrow { max-width: 760px; }
.page-split {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 6vw, 88px); align-items: start;
}
@media (max-width: 900px) { .page-split { grid-template-columns: minmax(0, 1fr); } }

.page-photo { margin: 0; }
.page-photo img { width: 100%; }

.prose > *:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; }
.prose blockquote {
	margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--ink);
	font: 400 1.25rem/1.5 var(--display);
}

.contact-card {
	background: var(--wall);
	padding: clamp(24px, 4vw, 40px);
	position: sticky; top: 100px;
}
.contact-card p { margin: 0 0 20px; display: flex; flex-direction: column; }
.contact-card p:last-child { margin: 0; }
.contact-card__label {
	font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 8px;
}
@media (max-width: 900px) { .contact-card { position: static; } }

.contact-form { margin-top: 40px; }
.contact-form form p { margin: 0 0 20px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .form-row--split { grid-template-columns: minmax(0, 1fr); } }

.contact-form label {
	display: block; margin-bottom: 8px;
	font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink-soft);
}
.contact-form .optional { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: 300 1rem/1.5 var(--sans);
	color: var(--ink);
	transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; }
.contact-form textarea { resize: vertical; min-height: 160px; }

.form-notice { padding: 16px 20px; margin-bottom: 24px; border-left: 3px solid; background: #fff; }
.form-notice p { margin: 0; }
.form-notice--success { border-color: var(--ok); }
.form-notice--error { border-color: var(--sold); }

.post-summary { padding: 32px 0; border-bottom: 1px solid var(--line); }

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

.site-footer { background: var(--ink); color: #d8d4cb; padding: 64px 0 40px; }
.site-footer a { color: #f1eee7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #9a958a; }
.site-footer__inner {
	display: grid; grid-template-columns: 1fr auto; gap: 32px;
}
.site-footer__name { font: 400 1.4rem/1 var(--display); color: #fff; margin-bottom: 10px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; font-size: .9rem; }
.site-footer__copy {
	grid-column: 1 / -1;
	margin: 24px 0 0; padding-top: 24px;
	border-top: 1px solid #3a3833; font-size: .8rem;
}
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); } }

/* Scroll reveal (only when JS is running) ------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Block editor alignment helpers */
.alignwide { max-width: var(--wrap); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Latest works carousel ------------------------------------------------------
   A horizontal scroll-snap strip; main.js auto-advances it and loops. */

.section__tools { display: flex; align-items: center; gap: 24px; }
.carousel__controls { display: flex; gap: 8px; }
.carousel__btn {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: transparent; color: var(--ink);
	font-size: 1.1rem; line-height: 1; cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.carousel__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.carousel { position: relative; }
.carousel__track {
	--per-view: 3;
	--gap: clamp(24px, 4vw, 56px);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-top: 8px; /* room for the hover lift */
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }

@media (max-width: 1100px) { .carousel__track { --per-view: 2; } }
@media (max-width: 640px) {
	.carousel__track { --per-view: 1.25; }
	.section__tools .link-arrow { display: none; }
}

/* WhatsApp -------------------------------------------------------------------- */

:root { --wa: #187a43; --wa-dark: #11603a; }

.icon-wa { flex: none; vertical-align: middle; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.button--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.button--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.button--ghost.button--wa { background: transparent; color: var(--wa); border-color: var(--wa); }
.button--ghost.button--wa:hover { background: var(--wa); color: #fff; }

.wa-panel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px 32px;
	padding: clamp(24px, 4vw, 40px);
	background: #fff;
	border: 1px solid var(--line);
	border-left: 4px solid var(--wa);
}
.wa-panel__icon {
	width: 72px; height: 72px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wa); color: #fff;
}
.wa-panel .eyebrow { margin-bottom: .6em; }
.wa-panel__number {
	font: 500 clamp(1.5rem, 3.4vw, 2.3rem)/1.1 var(--display);
	letter-spacing: .04em;
	text-decoration: none;
	white-space: nowrap;
}
.wa-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
	.wa-panel { grid-template-columns: auto minmax(0, 1fr); }
	.wa-panel__actions { grid-column: 1 / -1; }
	.wa-panel__icon { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
	.wa-panel__actions .button { flex: 1 1 100%; }
}

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wa); color: #fff;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
	transition: transform .25s var(--ease), background .25s;
}
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: scale(1.06); }

.site-footer__wa { display: inline-flex; align-items: center; gap: 8px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.artwork-single__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Map --------------------------------------------------------------------------- */

.map-section { padding-top: 0; }
.map-embed {
	aspect-ratio: 16 / 7;
	min-height: 320px;
	background: var(--wall);
	border: 1px solid var(--line);
}
.map-embed iframe {
	width: 100%; height: 100%; border: 0; display: block;
	filter: grayscale(1) contrast(.95);
	transition: filter .4s;
}
.map-embed:hover iframe, .map-embed:focus-within iframe { filter: none; }
.map-section__note { margin-top: 12px; font-size: .9rem; }

/* Brand ----------------------------------------------------------------------- */

.site-footer__logo { height: 56px; width: auto; margin-bottom: 16px; }
@media (max-width: 420px) {
	.site-logo { height: 36px; }
	.site-title { gap: 10px; font-size: 1.05rem; }
}

.prose .signature {
	font: 500 1.2rem/1.2 var(--display);
	letter-spacing: .06em;
	color: var(--accent);
	margin-top: 1.6em;
}
.about__more { margin-top: 28px; }
/* Keep the last footer line clear of the floating WhatsApp button on phones. */
@media (max-width: 700px) { .site-footer { padding-bottom: 96px; } }
