/*
Theme Name: Art Origins NYC
Description: Wall label theme for Art Origins NYC. Page layouts are block patterns, so all text is edited in the normal WordPress editor.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: artorigins
*/

:root {
	--ao-ink: #1a1c1e;
	--ao-text: #33373a;
	--ao-muted: #55595d;
	--ao-line: #d5d8da;
	--ao-line-soft: #e7e9ea;
	--ao-ground: #fbfbfa;
	--ao-white: #ffffff;
	--ao-field: #8a9095;
	--ao-shadow: 0 24px 48px -24px rgba(26, 28, 30, 0.35);
}

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

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ao-ink);
	background: var(--ao-ground);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--ao-ink); }
a:hover { color: var(--ao-muted); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ao-ink); }
p { margin: 0; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ao-skip:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 12px 16px; background: var(--ao-ink); color: var(--ao-white);
}

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

.ao-header { background: var(--ao-ground); }
.ao-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 8px 12px 8px 20px; min-height: 64px; border-bottom: 1px solid var(--ao-line);
}
.ao-logo {
	font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	text-decoration: none; padding: 14px 0;
}
.ao-menu-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px;
	background: transparent; border: 0; font: inherit; font-size: 14px; font-weight: 500;
	color: var(--ao-ink); cursor: pointer;
}
.ao-menu-btn .ao-icon-close { display: none; }
.ao-logo { display: inline-flex; align-items: center; gap: 10px; }
.ao-logo__mark { width: 30px; height: 30px; flex: none; display: block; }
.ao-header.is-open .ao-menu-btn .ao-icon-open { display: none; }
.ao-header.is-open .ao-menu-btn .ao-icon-close { display: block; }

.ao-nav { display: none; padding: 8px 20px 24px; border-bottom: 1px solid var(--ao-line); }
.ao-header.is-open .ao-nav { display: flex; flex-direction: column; gap: 20px; }
.ao-nav ul {
	list-style: none; margin: 0; padding: 0; background: var(--ao-white);
	border: 1px solid var(--ao-line); display: flex; flex-direction: column;
}
.ao-nav li a {
	display: flex; align-items: center; justify-content: space-between; min-height: 56px;
	padding: 0 20px; border-bottom: 1px solid var(--ao-line-soft); text-decoration: none; font-size: 18px;
}
.ao-nav li:last-child a { border-bottom: 0; }
.ao-nav li.current-menu-item a,
.ao-nav li.current_page_item a { font-weight: 600; }
.ao-nav li.current-menu-item a::after,
.ao-nav li.current_page_item a::after {
	content: "You are here"; font-size: 12px; font-weight: 400; color: var(--ao-muted);
}
.ao-nav__extra { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; color: var(--ao-text); }
.ao-nav__extra .ao-button { align-self: stretch; justify-content: center; margin-bottom: 8px; }
.ao-nav__extra a.ao-tel { padding: 12px 0; }
.ao-nav__extra span { font-size: 13px; color: var(--ao-muted); }

@media (min-width: 768px) {
	.ao-header { max-width: 1080px; margin: 0 auto; padding: 32px 32px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
	.ao-header__bar { border: 0; padding: 0; min-height: 0; }
	.ao-logo { font-size: 14px; letter-spacing: 0.22em; padding: 0; }
	.ao-menu-btn { display: none; }
	.ao-nav, .ao-header.is-open .ao-nav { display: block; padding: 0; border: 0; }
	.ao-nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 36px; background: transparent; border: 0; }
	.ao-nav li a { min-height: 0; padding: 14px 0; border: 0; font-size: 14px; }
	.ao-nav li.current-menu-item a, .ao-nav li.current_page_item a { text-decoration: underline; }
	.ao-nav li.current-menu-item a::after, .ao-nav li.current_page_item a::after { content: none; }
	.ao-nav li.ao-home-link { display: none; }
	.ao-nav__extra { display: none; }
}

/* ---------- Content frame ---------- */

.ao-main > * {
	max-width: 760px; margin-left: auto; margin-right: auto;
	padding-left: 32px; padding-right: 32px; margin-top: 0; margin-bottom: 24px;
}
.ao-main > .elementor { max-width: none; padding: 0; margin-bottom: 0; }
.ao-main h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.ao-main h2 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.ao-main h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.ao-main p, .ao-main li { color: var(--ao-text); }
.ao-main ul, .ao-main ol { margin: 0; padding-left: 18px; }

.ao-page-title { padding-top: 88px; padding-bottom: 24px; text-align: center; }
.ao-prose > * + * { margin-top: 20px; }
.ao-prose { padding-bottom: 96px; }
.ao-post-meta { font-size: 13px; color: var(--ao-muted); text-align: center; }
.ao-post-list { list-style: none; padding: 0 32px 96px; display: flex; flex-direction: column; gap: 24px; }
.ao-post-list li { background: var(--ao-white); border: 1px solid var(--ao-line); padding: 24px; }
.ao-post-list h2 { font-size: 22px; margin-bottom: 8px; }
.ao-post-list h2 a { text-decoration: none; }

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

.ao-main > .ao-intro {
	max-width: 824px; padding-top: 88px; padding-bottom: 80px; margin-bottom: 0;
	display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center;
}
.ao-intro p { font-size: 18px; line-height: 1.6; max-width: 680px; text-wrap: pretty; }
.ao-intro .ao-eyebrow { font-size: 14px; }

.ao-main > .ao-section {
	max-width: 1080px; padding-bottom: 112px; margin-bottom: 0;
	display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.ao-main > .ao-section.ao-narrow { max-width: 824px; align-items: stretch; }
.ao-section > * { margin: 0; width: 100%; }

.ao-main > .ao-band {
	max-width: none; padding: 96px 32px; margin-bottom: 112px;
	background: var(--ao-white); border-top: 1px solid var(--ao-line); border-bottom: 1px solid var(--ao-line);
}
.ao-band > * { max-width: 1016px; margin: 0 auto; }
.ao-band > .ao-narrow { max-width: 656px; display: flex; flex-direction: column; gap: 24px; }
.ao-band > * + * { margin-top: 48px; }
.ao-band .ao-card { background: var(--ao-ground); }

.ao-main .ao-eyebrow {
	font-size: 14px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	line-height: 1.4; text-align: center; color: var(--ao-ink);
}
.ao-lead { font-size: 18px; line-height: 1.6; text-align: center; max-width: 680px; margin-left: auto !important; margin-right: auto !important; text-wrap: pretty; }
.ao-statement { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ao-ink) !important; text-wrap: pretty; }
.ao-center { text-align: center; }
.ao-small { font-size: 13px; line-height: 1.55; color: var(--ao-muted) !important; }
.ao-big { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ao-ink) !important; }
.ao-updated { font-size: 13px; color: var(--ao-muted) !important; text-align: center; }

/* Photo with a wall label beside it */
.ao-hang {
	max-width: 1080px; display: flex; flex-wrap: wrap; gap: 24px 40px;
	align-items: flex-end; justify-content: center;
}
.ao-main > .ao-hang { padding-bottom: 112px; margin-bottom: 0; }
.ao-hang > * { margin: 0; }
.ao-hang > .wp-block-image { flex: 1 1 480px; max-width: 620px; min-width: 0; }
.ao-hang > .wp-block-image img, .ao-photo img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--ao-shadow);
}
.ao-placeholder {
	flex: 1 1 480px; max-width: 620px; min-height: 340px; background: var(--ao-line-soft);
	box-shadow: var(--ao-shadow); display: flex; align-items: flex-end; padding: 20px; font-size: 14px;
}
.ao-label {
	flex: 0 1 320px; background: var(--ao-white); border: 1px solid var(--ao-line); padding: 24px;
	display: flex; flex-direction: column; gap: 12px;
}
.ao-hang-pair { align-items: center; }
.ao-label-stack { flex: 0 1 320px; display: flex; flex-direction: column; gap: 24px; }
.ao-label-stack > .ao-label { flex: none; }
.ao-label > * { margin: 0; }
.ao-main .ao-label h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ao-label p { font-size: 15px; line-height: 1.55; }
.ao-label ul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.ao-label .ao-price { padding-top: 12px; border-top: 1px solid var(--ao-line-soft); }
.ao-label .ao-more { font-size: 15px; font-weight: 500; padding-top: 12px; }
.ao-card .ao-more { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 500; }
.ao-cta-row { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ao-cta-row > * { margin: 0; }
.ao-stack { display: flex; flex-direction: column; gap: 72px; }
.ao-stack > * { margin: 0; }

/* Card grids */
.ao-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.ao-grid > * { margin: 0; }
.ao-card {
	background: var(--ao-white); border: 1px solid var(--ao-line); padding: 24px;
	display: flex; flex-direction: column; gap: 8px;
}
.ao-card > * { margin: 0; }
.ao-grid--photos { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.ao-card--photo > .wp-block-image { margin: -24px -24px 8px; }
.ao-card--photo > .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ao-card p { font-size: 15px; line-height: 1.55; }
.ao-main .ao-card h3 { font-size: 20px; }
.ao-card .ao-value { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--ao-ink); }
.ao-step { border-top: 1px solid var(--ao-ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ao-step > * { margin: 0; }
.ao-step p { font-size: 15px; line-height: 1.55; }
.ao-main .ao-step h3 { font-size: 20px; }
.ao-main .ao-quote { min-height: 200px; justify-content: space-between; gap: 16px; }
.ao-quote p { font-size: 17px; line-height: 1.5; color: var(--ao-ink); }

/* Table */
.ao-table { margin: 0; overflow-x: auto; background: var(--ao-white); border: 1px solid var(--ao-line); }
.ao-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; text-align: left; table-layout: auto; }
.ao-table th, .ao-table td { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--ao-line-soft); vertical-align: top; }
.ao-table thead th { border-bottom: 1px solid var(--ao-ink); font-weight: 600; }
.ao-table tbody tr:last-child td { border-bottom: 0; }
.ao-table tbody td:first-child { font-size: 13px; font-weight: 500; color: var(--ao-muted); }

/* FAQ */
.ao-faq { display: flex; flex-direction: column; }
.ao-faq > * { margin: 0; }
.ao-faq-item { padding: 24px 0; border-top: 1px solid var(--ao-line); display: flex; flex-direction: column; gap: 8px; }
.ao-faq-item > * { margin: 0; }
.ao-faq-item p { font-size: 16px; line-height: 1.6; }

/* Gallery */
.ao-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 72px 40px; align-items: end; }
.ao-gallery > .wp-block-image { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ao-gallery figcaption, .ao-gallery .wp-element-caption {
	align-self: flex-start; margin: 0; background: var(--ao-white); border: 1px solid var(--ao-line);
	padding: 14px 16px; max-width: 260px; font-size: 13px; line-height: 1.5; color: var(--ao-text); text-align: left;
}
.ao-gallery figcaption strong { display: block; font-size: 15px; font-weight: 600; color: var(--ao-ink); margin-bottom: 4px; }

/* Client list */
.ao-list-rows { display: flex; flex-direction: column; }
.ao-list-rows > p { margin: 0; padding: 18px 0; border-top: 1px solid var(--ao-line); font-size: 16px; }

/* Buttons */
.ao-button, .ao-main .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 0;
	background: var(--ao-ink); color: var(--ao-white); text-decoration: none; font: inherit; font-weight: 500;
	font-size: 16px; line-height: 1.2; cursor: pointer;
}
.ao-button:hover, .ao-main .wp-block-button__link:hover { background: #33373a; color: var(--ao-white); }
.ao-label .wp-block-button__link { min-height: 48px; padding: 0 20px; font-size: 15px; }
:focus-visible { outline: 2px solid #1f5fa8; outline-offset: 2px; }

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

.ao-main > .ao-contact {
	max-width: 1080px; padding-bottom: 104px; margin-bottom: 0;
	display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; justify-content: center;
}
.ao-contact > * { margin: 0; }
.ao-form-card { flex: 1 1 480px; max-width: 620px; background: var(--ao-white); border: 1px solid var(--ao-line); padding: 32px; }
.ao-side { flex: 0 1 320px; display: flex; flex-direction: column; gap: 24px; }
.ao-side > * { margin: 0; flex: none; }
.ao-form { display: flex; flex-direction: column; gap: 20px; }
.ao-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.ao-field { display: flex; flex-direction: column; gap: 8px; }
.ao-field label { font-size: 14px; font-weight: 500; }
.ao-field label span { font-weight: 400; color: var(--ao-muted); }
.ao-field input, .ao-field select, .ao-field textarea {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--ao-field);
	background: var(--ao-ground); font: inherit; font-size: 16px; color: var(--ao-ink); border-radius: 0;
}
.ao-field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ao-form .ao-button { align-self: flex-start; }
.ao-hp { position: absolute; left: -9999px; }
.ao-notice { padding: 16px 20px; border: 1px solid var(--ao-line); background: var(--ao-ground); font-size: 15px; }
.ao-notice--ok { border-color: #2e7d4f; }
.ao-notice--error { border-color: #b3261e; }

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

.ao-footer { background: var(--ao-white); border-top: 1px solid var(--ao-line); }
.ao-footer__cta {
	max-width: 1080px; margin: 0 auto; padding: 88px 32px 40px;
	display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center;
}
.ao-footer__cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.ao-footer__links {
	max-width: 1080px; margin: 0 auto; padding: 16px 32px 48px;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; font-size: 15px; color: var(--ao-text);
}
.ao-footer__proof {
	max-width: 720px; margin: 0 auto; padding: 8px 32px 16px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.ao-footer--plain .ao-footer__proof { padding-top: 40px; }
.ao-proof {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
	padding: 20px 24px; background: var(--ao-ground); border: 1px solid var(--ao-line); text-decoration: none; color: var(--ao-ink);
}
.ao-proof:hover { border-color: var(--ao-ink); }
.ao-proof__stars { color: #e8a400; font-size: 22px; letter-spacing: 3px; line-height: 1; padding-bottom: 4px; }
.ao-proof__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 22px; padding-bottom: 4px; }
.ao-proof__main { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ao-proof__sub { font-size: 14px; color: var(--ao-muted); }
.ao-footer__links > * { padding: 12px 0; }
.ao-footer--plain .ao-footer__links { padding-top: 32px; }

@media (max-width: 600px) {
	.ao-main > * { padding-left: 20px; padding-right: 20px; }
	.ao-main > .ao-intro { padding-top: 56px; padding-bottom: 48px; }
	.ao-main > .ao-section, .ao-main > .ao-hang { padding-bottom: 72px; }
	.ao-main > .ao-band { padding: 64px 20px; margin-bottom: 72px; }
	.ao-form-card { padding: 20px; }
	.ao-stack { gap: 48px; }
	.ao-gallery { gap: 48px 24px; }
	.ao-footer__cta { padding: 64px 20px 24px; }
	.ao-footer__proof { padding: 8px 20px 8px; }
}

/* ---------- Painterly logo in the top-left background (added) ---------- */
@media (min-width: 900px) {
	body { position: relative; }
	body::before {
		content: ""; position: absolute; top: 18px; left: 28px; width: 169px; height: 166px;
		background: url("https://artorigins.nyc/wp-content/uploads/2026/12/Art-Origins-Painterly-Transparent-Logo-300x295.png") no-repeat center / contain;
		opacity: .55; pointer-events: none; z-index: 50;
	}
	body.admin-bar::before { top: 50px; }
}


/* ---------- Consultation buttons in dark purple (added) ---------- */
a.ao-button[href$="/contact/"], .wp-block-button__link[href$="/contact/"] { background-color: #4a1a6b !important; border-color: #4a1a6b !important; color: #fff !important; }
a.ao-button[href$="/contact/"]:hover, a.ao-button[href$="/contact/"]:focus-visible, .wp-block-button__link[href$="/contact/"]:hover, .wp-block-button__link[href$="/contact/"]:focus-visible { background-color: #351050 !important; border-color: #351050 !important; }

/* ---------- Refined styling (added) ---------- */
:root { --ao-orange: #e0552b; --ao-mustard: #e3b23c; --ao-sky: #7fa8cf; --ao-cream: #f3e6c4; }
.ao-main h1, .ao-main h2:not(.ao-eyebrow), .ao-main h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -0.005em; }
.ao-main .ao-intro h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; }
.ao-main .ao-intro h1::after { content: ""; display: block; width: 84px; height: 4px; margin: 22px auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--ao-orange) 0 33%, var(--ao-mustard) 33% 66%, var(--ao-sky) 66% 100%); }
.ao-main .ao-eyebrow { position: relative; display: inline-block; padding-bottom: 10px; }
.ao-main .ao-eyebrow::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 36px; height: 2px; background: var(--ao-orange); }
.ao-main .ao-section:nth-of-type(3n+2) .ao-eyebrow::after { background: var(--ao-mustard); }
.ao-main .ao-section:nth-of-type(3n) .ao-eyebrow::after { background: var(--ao-sky); }
.ao-main .ao-card { transition: transform .35s ease, box-shadow .35s ease; border-radius: 6px; overflow: hidden; }
.ao-main .ao-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26, 28, 30, .10); }
.ao-main .ao-card figure { overflow: hidden; margin: 0; }
.ao-main .ao-card img { transition: transform .6s ease; display: block; }
.ao-main .ao-card:hover img { transform: scale(1.05); }
.ao-main .wp-block-gallery figure { overflow: hidden; }
.ao-main .wp-block-gallery img { transition: transform .6s ease; }
.ao-main .wp-block-gallery figure:hover img { transform: scale(1.04); }
.ao-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.ao-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ao-reveal { opacity: 1; transform: none; transition: none; } .ao-main .ao-card, .ao-main .ao-card img { transition: none; } }

/* Sticky logo only on wide screens, where it sits in the empty margin (added) */
@media (min-width: 1320px) { body::before { position: fixed; } }
/* Quote form button matches the purple consultation buttons (added) */
.ao-form button[type="submit"], .ao-form input[type="submit"] { background-color: #4a1a6b; border-color: #4a1a6b; color: #fff; transition: background-color .2s ease; }
.ao-form button[type="submit"]:hover, .ao-form input[type="submit"]:hover { background-color: #351050; border-color: #351050; }
