/*
 Theme Name:   Divi Child – Dynamic Building Supply
 Theme URI:    https://dynamicbuildingsupply.com/
 Description:  Coral pink & deep teal child theme for Dynamic Building Supply (nail supply).
 Author:       Dynamic Building Supply
 Template:     Divi
 Version:      1.0.1
 Text Domain:  divi-child
*/

/* 1. TOKENS */
:root {
	--b-coral: #E8677A;
	--b-coral-dk: #C94B5F;
	--b-blush: #FDEDEF;
	--b-blush-2: #F9D7DC;
	--b-sand: #FFF7F4;
	--b-teal: #1F3A44;
	--b-teal-dk: #142830;
	--b-text: #4E5D63;
	--b-line: rgba(31, 58, 68, .12);
	--b-radius: 14px;
	--b-shadow: 10px 10px 0 var(--b-blush-2);
	--b-head: 'Fraunces', Georgia, serif;
	--b-body: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

/* 2. BASE */
body, body p, #main-content, .et_pb_text { font-family: var(--b-body); color: var(--b-text); }
body { font-size: 17px; line-height: 1.72; background: #fff; }
h1, h2, h3, h4, h5, h6, .entry-title { font-family: var(--b-head); color: var(--b-teal); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--b-coral-dk); }
a:hover { color: var(--b-teal); }
::selection { background: var(--b-coral); color: #fff; }

/* 3. HEADER */
#top-header { background: var(--b-teal) !important; }
#main-header { background: #fff; box-shadow: 0 1px 0 var(--b-line); }
#main-header .container { width: 92%; max-width: 1280px; }
#logo { max-height: 60%; }
#top-menu li { padding-right: 16px; }
#top-menu a, .et_mobile_menu a { font-family: var(--b-body); font-size: 15px; font-weight: 600; color: var(--b-teal); }
#top-menu li.current-menu-item > a, #top-menu a:hover { color: var(--b-coral) !important; opacity: 1; }
.et_mobile_menu { border-top-color: var(--b-coral); }
.mobile_menu_bar:before, #et_search_icon:before { color: var(--b-teal); }

/* 4. HELPERS */
.dbld-wrap { width: 90%; max-width: 1200px; margin: 0 auto; }
.b-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--b-body); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--b-coral-dk); margin-bottom: 12px; }
.b-kicker:before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--b-coral); }
.b-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; margin-bottom: 12px; }
.b-title em { font-style: italic; color: var(--b-coral); }
.b-lead { font-size: 17.5px; line-height: 1.72; max-width: 640px; }
.b-center { text-align: center; }
.b-center .b-lead { margin: 0 auto; }
.b-center .b-kicker:after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--b-coral); }
.b-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.b-btn { display: inline-block; padding: 14px 26px; border-radius: 10px; background: var(--b-coral); color: #fff !important; font-family: var(--b-body); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 4px 4px 0 var(--b-teal); transition: transform .2s ease, box-shadow .2s ease; }
.b-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--b-teal); }
.b-btn--ghost { background: #fff; color: var(--b-teal) !important; box-shadow: inset 0 0 0 2px var(--b-teal); }
.b-btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--b-teal), 4px 4px 0 var(--b-coral); }
.b-btn--light { background: #fff; color: var(--b-teal) !important; box-shadow: 4px 4px 0 var(--b-teal-dk); }
.b-link { font-family: var(--b-body); font-weight: 700; font-size: 14.5px; color: var(--b-coral-dk); text-decoration: none; }
.b-link:after { content: " \2192"; }
.b-facts, .b-facts li, .b-layers, .b-layers li, .dbld-footer ul, .dbld-footer li { list-style: none !important; }
.b-blocks br, .b-blocks p:empty, .b-block br, .b-block p:empty, .b-swatch br, .b-swatch p:empty, .b-layers br, .b-layers p:empty, .b-notes br, .b-note-body p:empty, .b-facts br, .b-spec br, .b-spec p:empty { display: none; }
.b-blocks > p, .b-block > p, .b-notes > p, .b-note > p, .b-layers > p, .b-facts > p, .b-spec > p { display: contents; }

.b-block a, .b-layers a, .b-swatch .b-link, .b-note .b-link { display: table; margin-top: 6px; }

/* 5. HERO */
.b-hero { background: linear-gradient(90deg, var(--b-sand) 0 58%, var(--b-blush) 58% 100%); padding: 66px 0 70px !important; position: relative; overflow: hidden; }
.b-hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; margin-bottom: 16px; }
.b-hero h1 em { font-style: italic; color: var(--b-coral); }
.b-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 26px; padding: 0 !important; margin: 32px 0 0; }
.b-facts li { border-left: 3px solid var(--b-coral); padding-left: 12px; font-size: 14px; line-height: 1.4; color: var(--b-text); }
.b-facts li b { display: block; font-family: var(--b-head); font-size: 24px; color: var(--b-teal); }
.b-hero-img .et_pb_image_wrap { display: block; border-radius: var(--b-radius); overflow: hidden; box-shadow: 14px 14px 0 var(--b-coral), 28px 28px 0 var(--b-blush-2); }
.b-hero-img img { width: 100%; display: block; }

/* 6. BLUEPRINT (categories) */
.b-blueprint { background: #fff; padding: 84px 0 72px !important; }
.b-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: blk; }
.b-block { counter-increment: blk; position: relative; padding: 26px 24px 22px; border-radius: var(--b-radius); background: #fff; border: 1.5px solid var(--b-line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.b-block:before { content: "Layer 0" counter(blk); display: block; font-family: var(--b-body); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--b-coral-dk); margin-bottom: 10px; }
.b-block:hover { border-color: var(--b-coral); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--b-blush-2); }
.b-block h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; padding-bottom: 0; }
.b-block p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; padding-bottom: 0; }
.b-block a { font-family: var(--b-body); font-weight: 700; font-size: 14px; color: var(--b-teal); text-decoration: none; }
.b-block a:after { content: " \2192"; color: var(--b-coral); }
.b-block a:before { content: ""; position: absolute; inset: 0; }

/* 7. FOUNDATIONS */
.b-found { background: var(--b-blush); padding: 84px 0 !important; }
.b-found-img .et_pb_image_wrap { display: block; border-radius: var(--b-radius); overflow: hidden; box-shadow: -14px 14px 0 var(--b-teal); }
.b-found-img img { width: 100%; display: block; }
.b-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.b-spec div { background: #fff; border-radius: 12px; padding: 16px 18px; }
.b-spec h4 { font-size: 17px; margin-bottom: 2px; padding-bottom: 0; }
.b-spec span { font-size: 14.5px; line-height: 1.5; display: block; }

/* 8. COLOR LAB */
.b-lab { background: #fff; padding: 84px 0 70px !important; }
.b-lab-col .et_pb_image { margin-bottom: 0 !important; }
.b-lab-col .et_pb_image_wrap { display: block; border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-shadow); }
.b-lab-col .et_pb_image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.b-lab-col:hover .et_pb_image img { transform: scale(1.04); }
.b-swatch { padding: 22px 6px 0; }
.b-swatch small { font-family: var(--b-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--b-coral-dk); }
.b-swatch h3 { font-size: 23px; margin: 4px 0 6px; padding-bottom: 0; }
.b-swatch p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; padding-bottom: 0; }

/* 9. BUILD LAYERS (dark) */
.b-build { background: var(--b-teal); padding: 86px 0 !important; }
.b-build .b-title { color: #fff; }
.b-build .b-title em { color: var(--b-blush-2); }
.b-build .b-lead { color: rgba(255, 255, 255, .8); }
.b-build .b-kicker { color: var(--b-blush-2); }
.b-layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 !important; margin: 38px 0 0; counter-reset: ly; }
.b-layers li { counter-increment: ly; position: relative; padding: 24px 22px; border-radius: var(--b-radius); background: rgba(255, 255, 255, .06); border-top: 4px solid var(--b-coral); }
.b-layers li:before { content: counter(ly); display: block; font-family: var(--b-head); font-size: 40px; line-height: 1; color: var(--b-coral); margin-bottom: 12px; }
.b-layers h3 { color: #fff; font-size: 20px; margin-bottom: 6px; padding-bottom: 0; }
.b-layers p { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 0 0 10px; padding-bottom: 0; }
.b-layers a { color: var(--b-blush-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.b-layers a:after { content: " \2192"; }

/* 10. BUILD NOTES (posts) */
.b-notes-sec { background: var(--b-sand); padding: 84px 0 !important; }
.b-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.b-note { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--b-radius); overflow: hidden; border: 1.5px solid var(--b-line); transition: transform .2s ease, box-shadow .2s ease; }
.b-note:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--b-coral); }
.b-note img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.b-note-body { padding: 18px 20px 20px; }
.b-note-body span { font-family: var(--b-body); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b-coral-dk); }
.b-note h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 10px; padding-bottom: 0; }
.b-note .b-link:before { content: ""; position: absolute; inset: 0; }

/* 11. CTA */
.b-cta { background: var(--b-coral); padding: 62px 0 !important; }
.b-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.b-cta-box h2 { color: #fff; font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 6px; }
.b-cta-box p { color: rgba(255, 255, 255, .95); max-width: 620px; }

/* 12. FOOTER */
#main-footer { display: none !important; }
.dbld-footer { background: #fff; border-top: 4px solid var(--b-coral); padding: 64px 0 0; font-size: 15.5px; }
.dbld-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr .9fr; gap: 40px; padding-bottom: 46px; }
.dbld-footer-logo img { width: 215px; height: auto; display: block; margin-bottom: 16px; }
.dbld-footer p { color: var(--b-text); }
.dbld-footer h4 { font-family: var(--b-head); font-size: 19px; color: var(--b-teal); margin-bottom: 14px; padding-bottom: 0; }
.dbld-footer ul { padding: 0 !important; margin: 0; }
.dbld-footer li { margin-bottom: 9px; line-height: 1.45; }
.dbld-footer a { color: var(--b-teal); text-decoration: none; }
.dbld-footer a:hover { color: var(--b-coral-dk); }
.dbld-footer-bottom { background: var(--b-teal); color: rgba(255, 255, 255, .82); padding: 16px 0; text-align: center; font-size: 13.5px; }

/* 13. BLOG */
.et_pb_post .entry-title a:hover { color: var(--b-coral); }
.post-meta a { color: var(--b-coral-dk); }

/* 14. RESPONSIVE */
@media (max-width: 1100px) {
	.dbld-footer-grid { grid-template-columns: 1fr 1fr; }
	.b-layers { grid-template-columns: 1fr 1fr; }
	#top-menu li { padding-right: 11px; }
	#top-menu a { font-size: 14px; }
}
@media (max-width: 980px) {
	.b-hero { background: var(--b-sand); }
	.b-hero-img { margin-top: 40px; }
	.b-blocks, .b-notes { grid-template-columns: 1fr 1fr; }
	.b-blueprint, .b-found, .b-lab, .b-build, .b-notes-sec { padding: 58px 0 !important; }
	.b-lab-col { margin-bottom: 28px !important; }
	.b-found-text { margin-top: 34px; }
}
@media (max-width: 640px) {
	.b-blocks, .b-notes, .b-layers, .b-spec { grid-template-columns: 1fr; }
	.b-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
	.b-hero-img .et_pb_image_wrap { box-shadow: 8px 8px 0 var(--b-coral); }
	.b-found-img .et_pb_image_wrap { box-shadow: -8px 8px 0 var(--b-teal); }
	.dbld-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
