/*
Theme Name: Flair
Theme URI: https://flairfashiontn.com
Author: David Walker Designs
Description: Custom theme for Flair — consigned designer fashion & more, Knoxville TN. Forked from wp-starter-theme.
Version: 1.0.0
Text Domain: flair
*/

/* ==========================================================================
   DESIGN TOKENS — from "Flair - Brand Guidelines v2.pdf" (High Res).
   Brand palette is deliberately only black / gold / white; the two neutrals
   below are tints of those, not new brand colours.
   ========================================================================== */
:root {
	--black:  #000000;   /* brand black */
	--gold:   #AA9071;   /* brand gold, PMS 4256 C */
	--white:  #FFFFFF;   /* brand white */

	--cream:  #F7F5F2;   /* alternating section background */
	--ink:    #1A1A1A;   /* body copy — softer than pure black at small sizes */
	--muted:  #6E6A66;
	--rule:   #E2DDD6;
	--gold-soft: rgba(170, 144, 113, 0.35);

	/* Brand fonts are The Seasons Bold (display) + Brother 1816 (body).
	   Jost is the free alternative the guidelines name for Brother 1816.
	   Cormorant Garamond stands in for The Seasons until an Adobe Fonts
	   web kit is available — see README before swapping. */
	--font-display: 'Cormorant Garamond', 'Times New Roman', Times, serif;
	--font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	--max-width: 1200px;
	--track-display: 0.2em;  /* guidelines: 200pt tracking on display headings */
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--ink);
	font-size: 17px;
	line-height: 1.75;
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	margin: 0 0 0.5em;
	line-height: 1.15;
	color: var(--black);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: var(--track-display); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: var(--track-display); text-transform: uppercase; }
h3 { font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; }
h4 { font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Display type is uppercase + widely tracked, which leaves a trailing gap on
   the last letter; the negative margin re-centres optically. */
h1, h2 { margin-right: calc(var(--track-display) * -1); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto;
	clip: auto; background: var(--white); color: var(--black); padding: 12px 18px;
}

/* Eyebrow — small gold caps label above a heading */
.eyebrow {
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}

/* Lion rule — the logo's gold hairline + lion, reused as a section divider */
.lion-rule {
	display: flex; align-items: center; justify-content: center;
	gap: 18px; margin: 26px 0 30px;
}
.lion-rule::before, .lion-rule::after {
	content: ""; height: 1px; background: var(--gold); flex: 0 1 110px;
}
.lion-rule img { width: 26px; height: auto; }
.lion-rule.align-left { justify-content: flex-start; }
.lion-rule.align-left::before { flex: 0 0 46px; }
.lion-rule.align-left::after { flex: 0 0 150px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
	display: inline-block;
	padding: 15px 36px;
	border: 1px solid var(--black);
	color: var(--black);
	background: none;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--black); color: var(--white); }
.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-light:hover, .btn-light:focus-visible { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn-row.center { justify-content: center; }

/* ==========================================================================
   HEADER + NAV
   ========================================================================== */
.site-header { background: var(--black); position: relative; z-index: 30; }
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding-top: 22px; padding-bottom: 22px;
}
.site-logo img { height: 84px; width: auto; }
.site-logo .site-title {
	font-family: var(--font-display); font-size: 1.9rem; color: var(--white);
	letter-spacing: var(--track-display); text-transform: uppercase;
}

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a {
	display: block; padding: 12px 16px;
	color: var(--white);
	font-size: 0.76rem; font-weight: 400;
	letter-spacing: 0.2em; text-transform: uppercase;
	transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--gold); }

.site-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--black); border-top: 1px solid var(--gold-soft);
	box-shadow: 0 14px 34px rgba(0,0,0,0.35); z-index: 40;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 12px 20px; letter-spacing: 0.12em; }

.menu-toggle { display: none; background: none; border: 0; padding: 14px; cursor: pointer; }
.menu-toggle-bars { display: block; width: 26px; height: 18px; position: relative; }
.menu-toggle-bars span {
	display: block; position: absolute; left: 0; width: 100%; height: 1px;
	background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 8px; }
.menu-toggle-bars span:nth-child(3) { top: 16px; }
.menu-toggle.is-active .menu-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.submenu-toggle { display: none; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 96px 0; }
.section-tight { padding: 66px 0; }
.section-cream { background: var(--cream); }
.section-black { background: var(--black); color: rgba(255,255,255,0.82); }
.section-black h1, .section-black h2, .section-black h3, .section-black h4 { color: var(--white); }

.section-silk {
	position: relative;
	background: var(--black) url('assets/img/silk-black.jpg') center / cover no-repeat;
	color: rgba(255,255,255,0.85);
}
.section-silk::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.section-silk .container { position: relative; z-index: 1; }
.section-silk h1, .section-silk h2, .section-silk h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 8px; text-align: center; }
.section-head p { color: var(--muted); }
.section-black .section-head p, .section-silk .section-head p { color: rgba(255,255,255,0.72); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
	position: relative;
	min-height: 74vh;
	display: flex; align-items: center;
	background: var(--black) url('assets/img/silk-black.jpg') center / cover no-repeat;
	text-align: center;
	overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero-lion-watermark {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 55%;
	max-width: 620px;
	height: auto;
	opacity: 0.2;
	pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: var(--white); margin-bottom: 0; }
.hero-logo { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 22px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero-sub {
	max-width: 620px; margin: 0 auto;
	color: rgba(255,255,255,0.8); font-size: 1.05rem; font-weight: 300;
}
.hero .lion-rule::before, .hero .lion-rule::after { background: var(--gold); }

/* Page banner — the smaller hero used on interior pages */
.page-banner { min-height: 42vh; }
.page-banner .container { padding-top: 70px; padding-bottom: 70px; }

/* ==========================================================================
   SPLIT — image beside text
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img, .split-media .placeholder-img { width: 100%; }
.split-body h2 { margin-bottom: 0; }

/* Placeholder image slot — swapped for real store photography.
   Deliberately looks unfinished so it can't ship by accident. */
.placeholder-img {
	position: relative;
	background: var(--black) url('assets/img/silk-black.jpg') center / cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 40px;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--gold-soft);
}
.placeholder-img span {
	position: relative; z-index: 1;
	font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--gold);
}
.placeholder-img.wide { aspect-ratio: 3 / 2; }
.placeholder-img.square { aspect-ratio: 1 / 1; }

/* Real photo slot — same footprint as .placeholder-img so swapping one
   for the other never reflows the layout. */
.real-img {
	aspect-ratio: 4 / 5;
	border: 1px solid var(--gold-soft);
	overflow: hidden;
}
.real-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-img.wide { aspect-ratio: 3 / 2; }
.real-img.square { aspect-ratio: 1 / 1; }

/* ==========================================================================
   CATEGORY / CARD GRID
   ========================================================================== */
.grid { display: grid; gap: 30px; margin-top: 52px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { text-align: center; }
.card .card-media { margin-bottom: 20px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* Numbered steps (Consign page) */
.steps { counter-reset: step; display: grid; gap: 34px; margin-top: 52px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 58px; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	position: absolute; top: 0; left: 0;
	font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
	color: var(--gold); letter-spacing: 0.06em;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}
.step h3 { font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.section-black .step p, .section-silk .step p { color: rgba(255,255,255,0.72); }

/* Split rate table (Consign page) */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--gold-soft); }
.rate { background: var(--white); padding: 38px 24px; text-align: center; }
.rate .rate-band { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.1em; color: var(--black); }
.rate .rate-split { display: block; margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ==========================================================================
   INFO / CONTACT DETAILS
   ========================================================================== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.info-block h4 { color: var(--gold); font-size: 0.76rem; letter-spacing: 0.24em; margin-bottom: 14px; }
.section-black .info-block h4, .section-silk .info-block h4 { color: var(--gold); }
.info-block p, .info-block address { font-style: normal; font-size: 1rem; line-height: 1.9; }
.info-block a:hover { color: var(--gold); }

.hours-list { font-size: 1rem; line-height: 1.9; }
.hours-list li { display: flex; justify-content: space-between; gap: 20px; max-width: 360px; }
.hours-list .day { color: inherit; white-space: nowrap; }
.hours-list .time { color: var(--gold); white-space: nowrap; }

.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; display: block; filter: grayscale(1) contrast(1.05); }

/* Location photo flush against the map — no gap between them, no gutter
   around either, both stretching to the same height. .fill drops the
   .real-img border/aspect-ratio so the photo can stretch to match. */
.map-split { display: grid; grid-template-columns: 1fr 3fr; }
@media (max-width: 780px) { .map-split { grid-template-columns: 1fr; } }
.map-split .real-img.fill { aspect-ratio: auto; border: 0; }

.map-wrap { min-height: 340px; height: 100%; background: var(--cream); }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-wrap { background: var(--white); padding: 46px; border: 1px solid var(--rule); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { margin-bottom: 22px; }
.form-field label {
	display: block; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em;
	text-transform: uppercase; margin-bottom: 8px; color: var(--muted);
}
.req { color: var(--gold); }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; padding: 13px 14px;
	border: 1px solid var(--rule); border-radius: 0; background: var(--white);
	font-family: var(--font-body); font-weight: 300; font-size: 1rem; color: var(--ink);
	transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	outline: none; border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.contact-form button.btn { width: 100%; }
.form-success { border: 1px solid var(--gold); padding: 26px; text-align: center; }
.form-success h3 { color: var(--gold); }
.form-errors { border: 1px solid #C2544A; color: #9A3324; padding: 18px 22px; margin-bottom: 24px; }
.form-errors p { margin: 4px 0; font-size: 0.94rem; }
/* Honeypot — must stay visually hidden but not display:none (bots skip those) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--black); color: rgba(255,255,255,0.68); padding: 76px 0 0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 52px; align-items: start; }
.footer-logo img { width: 260px; margin-bottom: 24px; }
.footer-grid h4 { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.24em; margin-bottom: 16px; }
.footer-grid li { line-height: 2; }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.25);
	transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
	margin-top: 66px; border-top: 1px solid rgba(255,255,255,0.12);
	padding: 24px 0 28px; display: flex; justify-content: space-between;
	flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* WordPress core content styles (for editor-managed pages) */
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.15em; }
.entry-content ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.entry-content li { margin-bottom: 0.4em; }
.alignleft { float: left; margin: 0 28px 20px 0; }
.alignright { float: right; margin: 0 0 20px 28px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
	.split { grid-template-columns: 1fr; gap: 44px; }
	.split.reverse .split-media { order: 0; }
	.grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.info-grid { grid-template-columns: 1fr; gap: 36px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.site-header .container { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
	.site-logo img { height: 62px; }
	.menu-toggle { display: block; margin-right: -14px; }

	.site-nav { display: none; width: 100%; order: 3; padding-bottom: 10px; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

	/* Submenus become inline expandable panels, not hover flyouts. */
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: none; }
	.site-nav .sub-menu { position: static; box-shadow: none; min-width: 0; border-top: 0; background: rgba(255,255,255,0.05); }
	/* !important is deliberate — inherited from wp-starter-theme, where a
	   specificity-only override proved unreliable. Retest the mobile submenu
	   toggle before removing. */
	.menu-item-has-children.submenu-open > .sub-menu { display: block !important; }
	.menu-item-has-children { display: flex; flex-wrap: wrap; }
	.menu-item-has-children > a { flex: 1; }
	.menu-item-has-children > .sub-menu { flex-basis: 100%; }
	.site-nav .sub-menu a { padding-left: 18px; }
	.submenu-toggle {
		display: block; background: none; border: 0; color: var(--white);
		padding: 14px 6px; font-size: 0.7rem; cursor: pointer;
	}
	.submenu-toggle span:first-child { display: inline-block; transition: transform 0.2s ease; }
	.menu-item-has-children.submenu-open .submenu-toggle span:first-child { transform: rotate(180deg); }

	.section { padding: 68px 0; }
	.section-tight { padding: 52px 0; }
	.hero { min-height: 62vh; }
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.rates { grid-template-columns: 1fr; }
	.form-wrap { padding: 30px; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.btn { width: 100%; text-align: center; }
	.btn-row { flex-direction: column; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.footer-bottom span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
