/*
 Theme Name:   Divi Child – Dynamic Nail Supply Info
 Theme URI:    https://dynamicnailsupply.info/
 Description:  Apricot & aubergine handbook-style child theme for Dynamic Nail Supply Info (nail supply).
 Author:       Dynamic Nail Supply Info
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/

/* 1. TOKENS */
:root {
	--h-apri: #E9825E;
	--h-apri-dk: #C9623F;
	--h-peach: #FCE6DA;
	--h-cream: #FFF7F2;
	--h-aub: #3A2645;
	--h-aub-2: #4B3358;
	--h-mist: #F1EAF4;
	--h-text: #5B5060;
	--h-line: rgba(58, 38, 69, .12);
	--h-radius: 16px;
	--h-shadow: 0 22px 40px -28px rgba(58, 38, 69, .55);
	--h-head: 'Merriweather', Georgia, serif;
	--h-body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* 2. BASE */
body, body p, #main-content, .et_pb_text { font-family: var(--h-body); color: var(--h-text); }
body { font-size: 16.5px; line-height: 1.75; background: #fff; }
h1, h2, h3, h4, h5, h6, .entry-title { font-family: var(--h-head); color: var(--h-aub); font-weight: 700; letter-spacing: -.005em; }
a { color: var(--h-apri-dk); }
a:hover { color: var(--h-aub); }
::selection { background: var(--h-apri); color: #fff; }

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

/* 4. HELPERS */
.dnsi-wrap { width: 90%; max-width: 1200px; margin: 0 auto; }
.h-pill { display: inline-block; font-family: var(--h-body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--h-apri-dk); background: var(--h-peach); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.h-title { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.24; margin-bottom: 12px; }
.h-title em { font-style: italic; color: var(--h-apri-dk); }
.h-lead { font-size: 17px; line-height: 1.75; max-width: 640px; }
.h-center { text-align: center; }
.h-center .h-lead { margin: 0 auto; }
.h-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.h-btn { display: inline-block; padding: 14px 26px; border-radius: 12px; background: var(--h-apri-dk); color: #fff !important; font-family: var(--h-body); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.h-btn:hover { background: var(--h-aub); transform: translateY(-2px); }
.h-btn--soft { background: var(--h-mist); color: var(--h-aub) !important; }
.h-btn--soft:hover { background: var(--h-aub); color: #fff !important; }
.h-btn--white { background: #fff; color: var(--h-aub) !important; }
.h-btn--white:hover { background: var(--h-aub); color: #fff !important; }
.h-link { display: table; margin-top: 6px; font-family: var(--h-body); font-weight: 700; font-size: 14.5px; color: var(--h-apri-dk); text-decoration: none; }
.h-link:after { content: " \2192"; }
.h-chapters, .h-chapters li, .h-steps, .h-steps li, .h-topics, .h-topics li, .dnsi-footer ul, .dnsi-footer li { list-style: none !important; }
.h-chapters br, .h-chapters p:empty, .h-file br, .h-file p:empty, .h-steps br, .h-steps p:empty, .h-answers br, .h-answer-body p:empty, .h-topics br, .h-qa br, .h-qa p:empty { display: none; }
.h-chapters > p, .h-chapters li > p, .h-answers > p, .h-answer > p, .h-steps > p, .h-steps li > p, .h-topics > p, .h-qa > p, .h-qa div > p { display: contents; }

/* 5. HERO */
.h-hero { background: radial-gradient(circle at 12% 18%, var(--h-peach) 0, transparent 42%), radial-gradient(circle at 92% 88%, var(--h-mist) 0, transparent 40%), var(--h-cream); padding: 66px 0 70px !important; }
.h-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.16; margin-bottom: 16px; }
.h-hero h1 em { font-style: italic; color: var(--h-apri-dk); }
.h-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 !important; margin: 28px 0 0; }
.h-topics li:first-child { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-aub); margin-right: 4px; }
.h-topics a { display: inline-block; background: #fff; border: 1px solid var(--h-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--h-aub); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.h-topics a:hover { border-color: var(--h-apri); color: var(--h-apri-dk); }
.h-hero-img .et_pb_image_wrap { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--h-shadow); border: 6px solid #fff; }
.h-hero-img img { width: 100%; display: block; }

/* 6. CHAPTERS */
.h-chap-sec { background: #fff; padding: 84px 0 72px !important; }
.h-chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; padding: 0 !important; margin: 36px 0 0; counter-reset: ch; }
.h-chapters li { counter-increment: ch; position: relative; padding: 22px 24px 22px 104px; border-radius: var(--h-radius); background: var(--h-cream); border: 1px solid var(--h-line); min-height: 112px; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.h-chapters li:hover { background: var(--h-peach); border-color: var(--h-apri); transform: translateY(-3px); }
.h-chapters li:before { content: "Ch." counter(ch); position: absolute; left: 20px; top: 22px; width: 64px; height: 64px; border-radius: 14px; background: var(--h-aub); color: #fff; display: grid; place-items: center; font-family: var(--h-head); font-size: 17px; font-weight: 700; }
.h-chapters h3 { font-size: 19px; line-height: 1.3; margin-bottom: 4px; padding-bottom: 0; }
.h-chapters p { font-size: 15px; line-height: 1.6; margin: 0 0 6px; padding-bottom: 0; }
.h-chapters a { display: table; font-weight: 700; font-size: 14px; color: var(--h-apri-dk); text-decoration: none; }
.h-chapters a:after { content: " \2192"; }
.h-chapters a:before { content: ""; position: absolute; inset: 0; }

/* 7. COLOR FILES */
.h-files { background: var(--h-mist); padding: 84px 0 70px !important; }
.h-file-col .et_pb_image { margin-bottom: 0 !important; }
.h-file-col .et_pb_image_wrap { display: block; border-radius: var(--h-radius) var(--h-radius) 0 0; overflow: hidden; }
.h-file-col .et_pb_image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.h-file-col:hover .et_pb_image img { transform: scale(1.04); }
.h-file { background: #fff; border-radius: 0 0 var(--h-radius) var(--h-radius); padding: 20px 22px 24px; box-shadow: var(--h-shadow); }
.h-file small { font-family: var(--h-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--h-apri-dk); }
.h-file h3 { font-size: 21px; margin: 4px 0 6px; padding-bottom: 0; }
.h-file p { font-size: 15px; line-height: 1.6; margin-bottom: 8px; padding-bottom: 0; }
.h-file .h-best { display: block; font-size: 13.5px; color: var(--h-aub); background: var(--h-cream); border-left: 3px solid var(--h-apri); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-bottom: 10px; }

/* 8. STILETTO Q&A */
.h-tipqa { background: #fff; padding: 86px 0 !important; }
.h-tip-img .et_pb_image_wrap { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--h-shadow); }
.h-tip-img img { width: 100%; display: block; }
.h-qa { margin-top: 22px; }
.h-qa div { border: 1px solid var(--h-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: var(--h-cream); }
.h-qa b { display: block; font-family: var(--h-head); font-size: 16.5px; color: var(--h-aub); margin-bottom: 2px; }
.h-qa b:before { content: "Q. "; color: var(--h-apri-dk); }
.h-qa span { display: block; font-size: 15px; line-height: 1.6; }

/* 9. HOW TO USE (dark) */
.h-how { background: var(--h-aub); padding: 84px 0 !important; }
.h-how .h-title { color: #fff; }
.h-how .h-title em { color: var(--h-peach); }
.h-how .h-lead { color: rgba(255, 255, 255, .8); }
.h-how .h-pill { background: rgba(255, 255, 255, .1); color: var(--h-peach); }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 !important; margin: 36px 0 0; counter-reset: hs; }
.h-steps li { counter-increment: hs; position: relative; padding: 26px 24px 22px; border-radius: var(--h-radius); background: var(--h-aub-2); }
.h-steps li:before { content: "Step " counter(hs); display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--h-aub); background: var(--h-apri); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.h-steps h3 { color: #fff; font-size: 19px; margin-bottom: 6px; padding-bottom: 0; }
.h-steps p { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 0 0 8px; padding-bottom: 0; }
.h-steps a { display: table; color: var(--h-peach); font-weight: 700; font-size: 14px; text-decoration: none; }
.h-steps a:after { content: " \2192"; }

/* 10. LATEST ANSWERS */
.h-latest { background: var(--h-cream); padding: 84px 0 !important; }
.h-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.h-answer { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--h-radius); overflow: hidden; border: 1px solid var(--h-line); transition: transform .25s ease, box-shadow .25s ease; }
.h-answer:hover { transform: translateY(-4px); box-shadow: var(--h-shadow); }
.h-answer img { width: 100%; height: auto !important; aspect-ratio: 16 / 11; object-fit: cover; display: block; }
.h-answer-body { padding: 18px 20px 20px; }
.h-answer-body span { font-family: var(--h-body); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--h-apri-dk); }
.h-answer h3 { font-size: 17.5px; line-height: 1.45; margin: 6px 0 8px; padding-bottom: 0; }
.h-answer .h-link:before { content: ""; position: absolute; inset: 0; }

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

/* 12. FOOTER */
#main-footer { display: none !important; }
.dnsi-footer { background: #fff; border-top: 4px solid var(--h-apri); padding: 64px 0 0; font-size: 15.5px; }
.dnsi-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr .9fr; gap: 40px; padding-bottom: 46px; }
.dnsi-footer-logo img { width: 230px; height: auto; display: block; margin-bottom: 16px; }
.dnsi-footer p { color: var(--h-text); }
.dnsi-footer h4 { font-family: var(--h-head); font-size: 18px; color: var(--h-aub); margin-bottom: 14px; padding-bottom: 0; }
.dnsi-footer ul { padding: 0 !important; margin: 0; }
.dnsi-footer li { margin-bottom: 9px; line-height: 1.45; }
.dnsi-footer a { color: var(--h-aub); text-decoration: none; }
.dnsi-footer a:hover { color: var(--h-apri-dk); }
.dnsi-footer-bottom { background: var(--h-aub); 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(--h-apri-dk); }
.post-meta a { color: var(--h-apri-dk); }

/* 14. RESPONSIVE */
@media (max-width: 1100px) {
	.dnsi-footer-grid { grid-template-columns: 1fr 1fr; }
	#top-menu li { padding-right: 11px; }
	#top-menu a { font-size: 13.5px; }
}
@media (max-width: 980px) {
	.h-hero-img { margin-top: 40px; }
	.h-chapters { grid-template-columns: 1fr; }
	.h-answers, .h-steps { grid-template-columns: 1fr 1fr; }
	.h-chap-sec, .h-files, .h-tipqa, .h-how, .h-latest { padding: 58px 0 !important; }
	.h-file-col { margin-bottom: 28px !important; }
	.h-tip-text { margin-top: 34px; }
}
@media (max-width: 640px) {
	.h-answers, .h-steps { grid-template-columns: 1fr; }
	.h-chapters li { padding: 92px 20px 20px; }
	.h-chapters li:before { top: 20px; width: 56px; height: 56px; font-size: 15px; }
	.dnsi-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
