/*
Theme Name: Tattoos by Char
Theme URI: https://brainybearmedia.com
Template: hello-elementor
Author: Brainy Bear Media
Author URI: https://brainybearmedia.com
Description: Hello Elementor child theme for Char McGaughy, a fully custom Dallas tattoo artist (realism, black and grey, color, fine line, trash polka). Every page is an Elementor layout; booking runs on WPForms. Includes Elementor global colors and fonts, a YouTube video hero, and local SEO schema. Run Appearance → Char Site Setup after activating.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tattoos-by-char
*/

/*
 * Colors and fonts live in Elementor → Site Settings (set by Char Site Setup).
 * This file only adds what Elementor's panels can't: the header/footer,
 * grid layouts, serif accent words, cards and small details.
 */
:root {
	--tbc-paper: var(--e-global-color-tbc_paper, #ffffff);
	--tbc-paper-2: var(--e-global-color-tbc_paper2, #f6f3ee);
	--tbc-line: var(--e-global-color-tbc_line, #e7e2d9);
	--tbc-ink: var(--e-global-color-primary, #141210);
	--tbc-body: var(--e-global-color-text, #4a443c);
	--tbc-muted: var(--e-global-color-tbc_muted, #6b645a);
	--tbc-gold: var(--e-global-color-secondary, #806222);
	--tbc-gold-light: var(--e-global-color-tbc_gold_light, #e4c47a);
	--tbc-red: var(--e-global-color-tbc_red, #b8231b);
	--tbc-display: "Big Shoulders Display", "Oswald", Impact, sans-serif;
	--tbc-serif: "Instrument Serif", Georgia, serif;
	--tbc-sans: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { background: var(--tbc-paper); color: var(--tbc-body); font-family: var(--tbc-sans); }
a { color: var(--tbc-gold); }
:focus-visible { outline: 2px solid var(--tbc-gold); outline-offset: 3px; }

/* Heading sizes by tag (Elementor's global Primary font sets the face) */
.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; text-wrap: balance; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1; text-wrap: balance; }
.elementor-widget-heading h3.elementor-heading-title { font-size: clamp(1.5rem, 2.6vw, 1.8rem); line-height: 1; }

/* Serif accent words inside headings: <span class="tbc-accent">…</span> */
.tbc-accent { font-family: var(--tbc-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tbc-gold); }
.tbc-dark .tbc-accent, .tbc-hero .tbc-accent { color: var(--tbc-gold-light); }

/* Layout helpers: put the class on an Elementor container */
.tbc-grid-4, .tbc-grid-4 > .e-con-inner { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tbc-grid-2, .tbc-grid-2 > .e-con-inner { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tbc-grid-4 > .e-con, .tbc-grid-2 > .e-con, .tbc-grid-4 > .e-con-inner > .e-con, .tbc-grid-2 > .e-con-inner > .e-con { width: auto !important; min-width: 0; }
@media (max-width: 1024px) { .tbc-grid-4, .tbc-grid-4 > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.tbc-grid-4, .tbc-grid-4 > .e-con-inner, .tbc-grid-2, .tbc-grid-2 > .e-con-inner { grid-template-columns: 1fr; }
}

/* Style cards (the grid draws hairlines with a 1px gap on a line-colored ground) */
.tbc-cards { background: var(--tbc-line); border: 1px solid var(--tbc-line); gap: 1px !important; }
.tbc-card { background: var(--tbc-paper); text-decoration: none; transition: background .25s; }
.tbc-card:hover { background: var(--tbc-paper-2); }
.tbc-card--polka h3.elementor-heading-title { color: var(--tbc-red) !important; }

/* Process steps */
.tbc-step { border-top: 2px solid var(--tbc-gold-light); padding-top: 16px; }

/* Facts list (label / value rows) */
.tbc-facts ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d9d2c5; }
.tbc-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #d9d2c5; }
.tbc-facts li span:first-child { color: var(--tbc-muted); }
.tbc-facts li span:last-child { font-weight: 600; text-align: right; color: var(--tbc-ink); }

/* Review */
.tbc-review blockquote { margin: 0; border-left: 3px solid var(--tbc-gold); padding: 4px 0 4px 28px; font: italic clamp(1.6rem, 3.4vw, 2.4rem)/1.3 var(--tbc-serif); color: var(--tbc-ink); }
.tbc-review cite { display: block; margin: 16px 0 0 31px; font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tbc-muted); }

/* Portrait */
.tbc-portrait img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }

/* Shortcode output */
.areas { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { border: 1px solid #d9d2c5; background: var(--tbc-paper); padding: 7px 12px; font-size: .9rem; color: var(--tbc-body); }
.nap { font-style: normal; color: var(--tbc-body); line-height: 1.8; }
.nap strong { color: var(--tbc-ink); }
.faq details { border-bottom: 1px solid var(--tbc-line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 1.3rem/1.25 var(--tbc-display); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--tbc-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tbc-gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* Elementor accordion (FAQ page) */
.elementor-accordion .elementor-tab-title { font-family: var(--tbc-display); text-transform: uppercase; font-size: 1.3rem; }
.elementor-accordion .elementor-accordion-item { border-color: var(--tbc-line); }

/* Long-form text on style pages */
.tbc-prose h2 { font-family: var(--tbc-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--tbc-ink); margin: 1.4em 0 .5em; }
.tbc-prose ul { padding-left: 1.2em; }
.tbc-prose li { margin-bottom: .4em; }

/* WPForms */
.tbc-form { background: var(--tbc-paper-2); border: 1px solid var(--tbc-line); }
.wpforms-container .wpforms-field-label { color: var(--tbc-ink); font-weight: 600; }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container input[type=tel], .wpforms-container select, .wpforms-container textarea { background: var(--tbc-paper) !important; border: 1px solid #d9d2c5 !important; border-radius: 0 !important; color: var(--tbc-ink) !important; }
.wpforms-container button[type=submit] { background: var(--tbc-ink) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; padding: 16px 26px !important; font: 700 13px/1 var(--tbc-sans) !important; letter-spacing: .16em; text-transform: uppercase; }

/* Header */
.site-header.tbc-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tbc-line); padding: 0; max-width: none; }
.admin-bar .site-header.tbc-header { top: 32px; }
.tbc-header .tbc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.tbc-wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(16px, 4vw); }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 8px; color: var(--tbc-ink); }
.brand__name { font: 800 1.85rem/1 var(--tbc-display); text-transform: uppercase; letter-spacing: .02em; }
.brand__by { font: italic 1.4rem/1 var(--tbc-serif); color: var(--tbc-gold); }
.custom-logo { max-height: 56px; width: auto; }
.tbc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.tbc-nav a { color: var(--tbc-ink); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tbc-nav a:hover, .tbc-nav .current-menu-item > a { color: var(--tbc-gold); }
.tbc-btn-head { background: var(--tbc-ink); color: #fff !important; text-decoration: none; padding: 14px 24px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.tbc-btn-head:hover { background: var(--tbc-gold); }
.nav-toggle { display: none; background: none; border: 1px solid #d9d2c5; color: var(--tbc-ink); min-height: 44px; padding: 10px 14px; font: 600 .75rem var(--tbc-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1020px) {
	.nav-toggle { display: inline-block; }
	.tbc-nav { position: absolute; inset: 76px 0 auto; background: var(--tbc-paper); border-bottom: 1px solid var(--tbc-line); display: none; }
	.tbc-nav.is-open { display: block; }
	.tbc-nav ul { flex-direction: column; align-items: flex-start; padding: 18px max(16px, 4vw) 26px; gap: 16px; }
	.tbc-btn-head { display: none; }
}

/* Footer */
.tbc-footer { border-top: 1px solid var(--tbc-line); padding-block: 64px 32px; color: var(--tbc-body); font-size: .95rem; background: var(--tbc-paper-2); }
.tbc-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.tbc-footer-grid > * { min-width: 0; }
.tbc-footer h4 { font: 800 1.1rem/1 var(--tbc-display); text-transform: uppercase; letter-spacing: .08em; color: var(--tbc-gold); margin: 0 0 14px; }
.tbc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tbc-footer a { color: var(--tbc-body); text-decoration: none; }
.tbc-footer a:hover { color: var(--tbc-gold); }
.tbc-footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #d9d2c5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.tbc-footer-bottom ul { display: flex; gap: 16px; }
@media (max-width: 860px) { .tbc-footer-grid { grid-template-columns: 1fr; } }

/* Blog (Hello Elementor templates) */
.site-main .page-header .entry-title, .site-main .entry-title { font-family: var(--tbc-display); text-transform: uppercase; color: var(--tbc-ink); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
	.tbc-hero .elementor-background-video-container { display: none; }
}
