/*
Theme Name: Apart Creators
Theme URI: https://apartcreators.com
Author: Apart Creators
Description: Dark editorial block theme for Apart Creators, a content creator agency. Gold accent, Bricolage Grotesque headlines.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apart-creators
*/

:root {
	--ac-ink: #0F0F0D;
	--ac-surface: #1A1A17;
	--ac-ph: #1E1E1B;
	--ac-line: #2E2D29;
	--ac-line-strong: #4A4842;
	--ac-muted: #B9B6AC;
	--ac-soft: #D6D3CA;
	--ac-faint: #8F8C83;
	--ac-paper: #F4F2EC;
	--ac-gold: #E2B13C;
	--ac-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
	--ac-pad: clamp(20px, 4vw, 40px);
}

body { margin: 0; background: var(--ac-ink); color: var(--ac-paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ac-paper); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

/* Reset block spacing inside theme sections; gaps come from flex/grid below */
[class*="ac-"] > * { margin-block: 0; }

.ac-container { max-width: 1360px; margin-inline: auto; padding-inline: var(--ac-pad); box-sizing: border-box; }
.ac-accent { color: var(--ac-gold); }
.ac-muted { color: var(--ac-muted); }

/* ---------- Header ---------- */
.ac-header { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ac-logo { font-family: var(--ac-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.ac-logo a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.ac-logo a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ac-gold); }
.ac-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-nav .wp-block-navigation-item__content { padding: 12px 16px; font-size: 15px; font-weight: 500; text-decoration: none; }
.ac-nav .current-menu-item > .wp-block-navigation-item__content,
.ac-nav [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ac-gold); text-decoration-thickness: 2px; text-underline-offset: 6px; font-weight: 600; }
.ac-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--ac-ink); color: var(--ac-paper); }
.ac-nav .wp-block-navigation__responsive-container-open,
.ac-nav .wp-block-navigation__responsive-container-close { color: var(--ac-paper); min-width: 44px; min-height: 44px; }

/* ---------- Buttons ---------- */
.ac-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-btn .wp-block-button__link,
.ac-btn-ghost .wp-block-button__link,
.ac-btn-dark .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; box-sizing: border-box;
	border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1;
}
.ac-btn .wp-block-button__link { background: var(--ac-gold); color: var(--ac-ink); border: 1px solid var(--ac-gold); }
.ac-btn .wp-block-button__link:hover { background: #EDC25A; color: var(--ac-ink); }
.ac-btn-ghost .wp-block-button__link { background: transparent; color: var(--ac-paper); border: 1px solid var(--ac-line-strong); }
.ac-btn-ghost .wp-block-button__link:hover { border-color: var(--ac-paper); color: #fff; }
.ac-btn-dark .wp-block-button__link { background: var(--ac-ink); color: var(--ac-paper); border: 1px solid var(--ac-ink); }
.ac-btn-sm .wp-block-button__link { min-height: 44px; padding: 0 22px; font-size: 15px; }
.ac-btn .wp-block-button__link::after,
.ac-btn-dark .wp-block-button__link::after,
.ac-arrow a::after { content: "\2192"; font-size: 1.1em; }
.ac-btn-sm .wp-block-button__link::after { content: none; }
.ac-arrow a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

/* ---------- Type ---------- */
.ac-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac-muted); }
.ac-display { font-family: var(--ac-display); font-weight: 800; font-size: clamp(56px, 10.5vw, 172px); line-height: 0.92; letter-spacing: -0.045em; }
.ac-display--page { font-size: clamp(56px, 9vw, 144px); }
.ac-display--long { font-size: clamp(48px, 7.5vw, 120px); line-height: 0.95; max-width: 1180px; }
.ac-h2 { font-family: var(--ac-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.ac-h2--cta { font-size: clamp(48px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.04em; max-width: 1100px; }
.ac-h2--band { font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.04em; max-width: 820px; }
.ac-h3 { font-family: var(--ac-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.ac-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ac-soft); max-width: 540px; }
.ac-body-lg { font-size: 19px; color: var(--ac-soft); max-width: 500px; }

/* ---------- Layout helpers ---------- */
.ac-section { padding-block: clamp(72px, 10vw, 136px); }
.ac-section--tight-top { padding-top: 0; }
.ac-section--tight-bottom { padding-bottom: 0; }
.ac-hero { padding-block: clamp(48px, 9vw, 120px) clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 40px; }
.ac-page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 28px; }
.ac-stack { display: flex; flex-direction: column; gap: 40px; }
.ac-stack-sm { display: flex; flex-direction: column; gap: 20px; }
.ac-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; }
.ac-rule-top { border-top: 1px solid var(--ac-line); }
.ac-rule-y { border-block: 1px solid var(--ac-line); }

/* ---------- Service list (home) ---------- */
.ac-service-list { border-top: 1px solid var(--ac-line); }
.ac-service-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px; padding-block: 28px; border-bottom: 1px solid var(--ac-line); }
.ac-num { font-family: var(--ac-display); font-weight: 600; font-size: 15px; color: var(--ac-gold); width: 40px; }
.ac-service-title { font-family: var(--ac-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; flex: 1 1 360px; }
.ac-service-title a { text-decoration: none; }
.ac-service-desc { color: var(--ac-muted); flex: 1 1 280px; max-width: 420px; }

/* ---------- Grids & cards ---------- */
.ac-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ac-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 24px; }
.ac-grid-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }
.ac-card { display: flex; flex-direction: column; gap: 16px; }
.ac-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.ac-card-title { font-family: var(--ac-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.ac-card-tag { font-size: 14px; color: var(--ac-muted); }

.ac-ph, .ac-card .wp-block-image img, .ac-split .wp-block-image img, .ac-media .wp-block-image img {
	border-radius: 20px;
}
.ac-ph {
	aspect-ratio: 4 / 3; background: var(--ac-ph); border: 1px dashed var(--ac-line-strong);
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; box-sizing: border-box;
	color: var(--ac-faint); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ac-ph--portrait { aspect-ratio: 4 / 5; }
.ac-ph--square { aspect-ratio: 1 / 1; }
.ac-ph--wide { aspect-ratio: 5 / 4; }
.ac-card .wp-block-image, .ac-split .wp-block-image, .ac-media .wp-block-image { margin: 0; }
.ac-card .wp-block-image img, .ac-split .wp-block-image img, .ac-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ac-grid-3 .ac-card .wp-block-image img { aspect-ratio: 4 / 5; }
.ac-grid-team .ac-card .wp-block-image img { aspect-ratio: 1 / 1; }

/* ---------- Stats ---------- */
.ac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-block: clamp(56px, 8vw, 96px); }
.ac-stat { display: flex; flex-direction: column; gap: 8px; }
.ac-stat-num { font-family: var(--ac-display); font-weight: 800; font-size: clamp(64px, 8vw, 112px); line-height: 0.9; letter-spacing: -0.04em; }
.ac-stat-label { color: var(--ac-muted); }

/* ---------- CTA ---------- */
.ac-cta { padding-block: clamp(80px, 11vw, 152px); display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.ac-band-gold { background: var(--ac-gold); color: var(--ac-ink); }
.ac-band-gold .ac-row { padding-block: clamp(64px, 9vw, 112px); }
.ac-band-gold a { color: var(--ac-ink); }

/* ---------- Services page ---------- */
.ac-split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ac-line); }
.ac-split--reverse { flex-wrap: wrap-reverse; }
.ac-split > * { flex: 1 1 420px; min-width: 0; }
.ac-num--lg { font-size: 16px; width: auto; }
.ac-h2--service { font-size: clamp(36px, 4.6vw, 68px); }

/* ---------- About ---------- */
.ac-about { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); align-items: flex-start; }
.ac-about > .ac-media, .ac-about > .ac-ph { flex: 1 1 460px; }
.ac-about > .ac-stack-sm { flex: 1 1 420px; }
.ac-team-name { font-family: var(--ac-display); font-weight: 600; font-size: 22px; }
.ac-team-role { font-size: 15px; color: var(--ac-muted); }

/* ---------- Contact ---------- */
.ac-contact { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; padding-block: clamp(48px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.ac-contact-intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; }
.ac-contact-card { flex: 1.3 1 480px; min-width: 0; background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-sizing: border-box; }
.ac-info { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid var(--ac-line); }
.ac-info-label { font-size: 14px; color: var(--ac-muted); }
.ac-info-value { font-size: 20px; font-weight: 600; }
.ac-form-note { color: var(--ac-muted); }

/* Contact Form 7 / WPForms / generic form styling inside the card */
.ac-contact-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ac-contact-card input[type="text"],
.ac-contact-card input[type="email"],
.ac-contact-card input[type="tel"],
.ac-contact-card input[type="url"],
.ac-contact-card select,
.ac-contact-card textarea {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border-radius: 12px;
	border: 1px solid var(--ac-line-strong); background: var(--ac-ink); color: var(--ac-paper); font: 400 16px/1.5 Inter, system-ui, sans-serif;
}
.ac-contact-card textarea { min-height: 140px; resize: vertical; }
.ac-contact-card input:focus, .ac-contact-card textarea:focus, .ac-contact-card select:focus { outline: 2px solid var(--ac-gold); outline-offset: 1px; border-color: transparent; }
.ac-contact-card ::placeholder { color: var(--ac-faint); }
.ac-contact-card p { margin: 0 0 20px; }
.ac-contact-card input[type="submit"], .ac-contact-card button[type="submit"] {
	min-height: 56px; padding: 0 32px; border-radius: 999px; border: 0; background: var(--ac-gold); color: var(--ac-ink);
	font: 600 17px Inter, system-ui, sans-serif; cursor: pointer;
}
.ac-contact-card .wpcf7-list-item { margin: 0 16px 8px 0; }

/* ---------- Footer ---------- */
.ac-footer-wrap { border-top: 1px solid var(--ac-line); }
.ac-footer { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; }
.ac-footer .ac-logo { font-size: 20px; }
.ac-footer .ac-logo a::before { width: 12px; height: 12px; }
.ac-footer-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.ac-footer-links a { display: inline-block; padding: 12px; }
.ac-footer-copy { color: var(--ac-muted); }

/* ---------- Generic pages (privacy, blog posts, etc.) ---------- */
.ac-prose { max-width: 760px; margin-inline: auto; padding: 0 var(--ac-pad) clamp(72px, 10vw, 128px); }
.ac-prose > * + * { margin-top: 1.2em; }
.ac-prose h2, .ac-prose h3 { margin-top: 1.8em; letter-spacing: -0.02em; }
.ac-prose a { color: var(--ac-gold); }

.ac-post-list .wp-block-post { padding-block: 28px; border-bottom: 1px solid var(--ac-line); }
.ac-post-list .wp-block-post-title { font-family: var(--ac-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 0 0 8px; }
.ac-post-list .wp-block-post-title a { text-decoration: none; }
.ac-post-list .wp-block-post-date { color: var(--ac-muted); font-size: 14px; }

@media (max-width: 600px) {
	.ac-header { padding-block: 20px; }
	.ac-service-row { padding-block: 22px; }
}
