/*
Theme Name: DLR Management
Theme URI: https://www.dlrmanagement.com/
Author: Kennedy Media Group
Author URI: https://kennedymedia.com/
Description: Custom, builder-free theme for DLR Consulting & Management Group and DLR Equipment & Service. Replaces Divi. Service Divisions and Artists are managed as custom post types.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: Proprietary
Text Domain: dlr
*/

/* ---------- Tokens (colors are overridden from the Customizer) ---------- */
:root {
	--c-dark: #0f1b2d;
	--c-dark-2: #16263d;
	--c-accent: #d4a017;
	--c-accent-ink: #0f1b2d;
	--c-light: #f4f5f7;
	--c-text: #2b2f36;
	--c-muted: #6b7280;
	--c-white: #ffffff;
	--c-line: rgba(15, 27, 45, 0.12);
	--f-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--radius: 6px;
	--shadow: 0 10px 30px rgba(15, 27, 45, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.7; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .6em; color: var(--c-dark); letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-transform: uppercase; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--c-white); color: var(--c-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--dark { background: var(--c-dark); color: rgba(255,255,255,.86); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-white); }
.section--light { background: var(--c-light); }
.eyebrow { display: inline-block; font-family: var(--f-head); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: .8em; }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 64px; height: 4px; background: var(--c-accent); border: 0; margin: 0 0 1.4em; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; padding: 14px 30px; border-radius: var(--radius); border: 2px solid var(--c-accent); background: var(--c-accent); color: var(--c-accent-ink); transition: background .2s, color .2s, transform .2s; }
.btn:hover, .btn:focus { text-decoration: none; background: transparent; color: var(--c-accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--c-white); color: var(--c-dark); border-color: var(--c-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-dark); box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.site-logo img { max-height: 58px; width: auto; }
.site-logo .site-title { font-family: var(--f-head); font-weight: 800; color: var(--c-white); font-size: 1.2rem; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--c-white); border-radius: var(--radius); padding: 8px 12px; font: 700 .85rem var(--f-head); letter-spacing: .1em; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 14px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.primary-nav a:hover, .primary-nav a:focus, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--c-accent); text-decoration: none; }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--c-dark-2); padding: 8px 0; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 500; padding: 8px 18px; }
.header-call { white-space: nowrap; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.header-call { display: none; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--c-dark); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
	.primary-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.primary-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; }
	.primary-nav .sub-menu { display: flex; position: static; box-shadow: none; background: transparent; padding: 0 0 0 14px; min-width: 0; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(ellipse at 70% 20%, var(--c-dark-2) 0%, var(--c-dark) 65%); color: var(--c-white); padding: clamp(70px, 11vw, 140px) 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--c-accent); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { color: var(--c-white); }
.hero h4 { color: var(--c-accent); font-size: 1.2rem; margin-bottom: 1em; }
.hero p { color: rgba(255,255,255,.82); max-width: 640px; }
.hero__logo { justify-self: center; max-width: 420px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }
.page-hero { padding: clamp(60px, 9vw, 110px) 0; }
.page-hero h1 { margin-bottom: .3em; }
@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; text-align: center; }
	.hero p { margin-left: auto; margin-right: auto; }
	.hero .btn-row { justify-content: center; }
	.hero__logo { max-width: 260px; order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--c-white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--c-accent); height: 100%; }
.card h3, .card h4 { margin-bottom: .5em; }
.card ul { padding-left: 1.1em; }
.card li { margin-bottom: .25em; }
.section--dark .card { background: var(--c-dark-2); box-shadow: none; color: rgba(255,255,255,.85); }
.card--link { display: block; color: inherit; transition: transform .2s, box-shadow .2s; }
.card--link:hover, .card--link:focus { transform: translateY(-4px); text-decoration: none; box-shadow: 0 16px 40px rgba(15,27,45,.2); }
.card__more { font-family: var(--f-head); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px; border-left: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); transform: rotate(-45deg); }
.checks--cols { columns: 2; column-gap: 40px; }
.checks--cols li { break-inside: avoid; }
@media (max-width: 640px) { .checks--cols { columns: 1; } }

/* ---------- Services page ---------- */
.service-index { background: var(--c-dark-2); padding: 44px 0 50px; }
.service-index__group + .service-index__group { margin-top: 34px; }
.service-index__title { font-size: .85rem; letter-spacing: .18em; color: var(--c-accent); margin: 0 0 14px; }
.service-index__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.service-index__list a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--c-accent); border-radius: var(--radius); color: var(--c-white); font: 600 .9rem/1.35 var(--f-head); transition: background .2s, border-color .2s; }
.service-index__list a:hover, .service-index__list a:focus { background: rgba(255,255,255,.06); border-color: var(--c-accent); text-decoration: none; }
.service-index__num { font-weight: 800; font-size: .8rem; color: var(--c-accent); flex: 0 0 auto; }
@media (max-width: 520px) { .service-index__list { grid-template-columns: 1fr; } }
.division { padding: clamp(48px, 7vw, 84px) 0; border-bottom: 1px solid var(--c-line); }
.division:nth-of-type(even) { background: var(--c-light); }
.division__head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; margin-bottom: 30px; }
.division__head .lead { margin: 0; }
.division__num { font-family: var(--f-head); font-weight: 800; color: var(--c-accent); font-size: .9rem; letter-spacing: .14em; }
@media (max-width: 860px) { .division__head { grid-template-columns: 1fr; gap: 10px; } }
.brand-band { background: linear-gradient(120deg, var(--c-dark) 0%, var(--c-dark-2) 100%); color: var(--c-white); padding: clamp(56px, 8vw, 96px) 0; border-top: 6px solid var(--c-accent); }
.brand-band h2 { color: var(--c-white); }
.brand-band .tagline { font-family: var(--f-head); font-weight: 600; color: var(--c-accent); letter-spacing: .06em; font-size: clamp(.9rem, 1.6vw, 1.05rem); }

/* ---------- Artists ---------- */
.artist { background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.artist__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--c-dark); }
.artist__body { padding: 24px; }
.artist__body h3 { margin-bottom: .4em; }
.artist-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.artist-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.artist-list strong { color: var(--c-white); font-family: var(--f-head); }
@media (max-width: 760px) { .artist-list { grid-template-columns: 1fr; } }

/* ---------- Contact band / footer ---------- */
.contact-band { background: var(--c-accent); color: var(--c-accent-ink); padding: 54px 0; }
.contact-band h2, .contact-band h3 { color: var(--c-accent-ink); margin: 0; }
.contact-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-band .btn { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-white); }
.contact-band .btn:hover, .contact-band .btn:focus { background: transparent; color: var(--c-dark); }
.contact-band .phone-big { font: 800 clamp(1.5rem, 3vw, 2.2rem) var(--f-head); color: var(--c-accent-ink); }
.site-footer { background: var(--c-dark); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.site-footer h2, .site-footer h4 { color: var(--c-white); }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover, .site-footer a:focus { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { max-width: 220px; margin-bottom: 18px; }
.footer-contact { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.footer-contact img { width: 44px; height: 44px; flex: 0 0 44px; }
.footer-contact h4 { margin: 0 0 .2em; font-size: 1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: .4em; }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.social-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Generic content ---------- */
.entry-content { max-width: 820px; }
.entry-content > * + * { margin-top: 0; }
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: var(--wrap); }
.post-card { padding: 24px 0; border-bottom: 1px solid var(--c-line); }

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