/*
Theme Name: The POP Design
Theme URI: https://thepopdesign.com/
Author: The POP Design
Description: Clean architectural theme for POP ceiling and wall design galleries: charcoal header, blueprint-grid page heads, wide 16:9 design cards with room size, lighting and budget tags, a contractor tip on every design, sticky section bar, full-screen viewer and image SEO.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepopdesign
*/

@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(assets/fonts/work-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(assets/fonts/work-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--coal: #23262b; --coal-2: #30343a; --bg: #f4efe8; --card: #fff; --ink: #1f2226; --slate: #62676f;
	--line: #e2dcd2; --terra: #e07a4f; --terra-d: #b9542b; --sand: #fbe9de; --grid: rgba(35, 38, 43, .06);
	--head: "Archivo", "Arial Narrow", Arial, sans-serif;
	--body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.68 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-d); text-underline-offset: 3px; }
a:hover { color: var(--coal); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.12rem; font-weight: 700; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.pd-top { background: var(--coal); color: var(--bg); position: relative; z-index: 30; }
.pd-top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.pd-logo { display: flex; align-items: center; gap: 10px; color: var(--bg); text-decoration: none; flex: none; }
.pd-logo svg { width: 42px; height: 28px; }
.pd-logo span { font: 700 1.18rem/1 var(--head); letter-spacing: .01em; }
.pd-logo b { color: var(--terra); font-weight: 800; margin: 0 1px; }
.pd-links { display: flex; gap: 22px; flex: 1; }
.pd-links a { color: #c9ccd1; text-decoration: none; font-size: .9rem; font-weight: 600; }
.pd-links a:hover { color: #fff; }
.pd-menu { margin-left: auto; }
.pd-menu summary { list-style: none; cursor: pointer; background: var(--terra); color: #fff; font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 3px; }
.pd-menu summary::-webkit-details-marker { display: none; }
.pd-menu[open] summary { background: var(--bg); color: var(--coal); }
.pd-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--coal-2); max-height: 76vh; overflow: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.pd-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 30px; padding: 20px 0 28px; }
.pd-panel h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terra); margin: 14px 0 6px; }
.pd-panel a { display: block; color: #e6e2dc; text-decoration: none; padding: 4px 0; font-size: .94rem; }
.pd-panel a:hover { color: #fff; }

/* page head with blueprint grid */
.pd-plan { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); padding: 20px 0 30px; }
.pd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--slate); margin: 2px 0 12px; }
.pd-crumbs a { color: var(--slate); text-decoration: none; }
.pd-plan h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 16px; max-width: 920px; }
.pd-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pd-stats li { background: var(--coal); color: #f2f2f2; font-size: .8rem; padding: 4px 10px; border-radius: 3px; }
.pd-stats li:first-child { background: var(--terra); }

/* content flow */
.pd-main { padding-bottom: 40px; }
.pd-flow { padding-top: 22px; }
.pd-intro { max-width: 780px; font-size: 1.04rem; }
.pd-jump { position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--bg); padding: 10px 0; margin: 14px 0 6px; border-bottom: 1px solid var(--line); }
.pd-jump::-webkit-scrollbar { display: none; }
.pd-jump a { white-space: nowrap; text-decoration: none; color: var(--coal); background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: .84rem; font-weight: 600; padding: 6px 11px; }
.pd-jump a:hover { border-color: var(--terra); color: var(--terra-d); }
.pd-sec { scroll-margin-top: 64px; }
.pd-sec > h2 { display: flex; align-items: center; gap: 12px; }
.pd-sec > h2::before { content: ""; flex: none; width: 6px; height: 1.05em; background: var(--terra); }
.pd-sec > p { max-width: 820px; }

/* design cards */
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin: 16px 0 6px; }
.pd-card { margin: 0; background: var(--card); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(35, 38, 43, .06); display: flex; flex-direction: column; scroll-margin-top: 64px; }
.pd-zoom { display: block; aspect-ratio: 16 / 9; background: #e9e4dc; overflow: hidden; }
.pd-zoom img { width: 100%; height: 100%; object-fit: cover; }
.pd-card figcaption { padding: 12px 14px 14px; font-size: .92rem; }
.pd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.pd-tags li { font-size: .74rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; line-height: 1.5; }
.pd-tags li i { font-style: normal; color: var(--slate); font-weight: 400; margin-right: 4px; }
.pd-card .cap { margin: 0 0 10px; }
.pd-card .tip { margin: 0; background: var(--sand); border-radius: 3px; padding: 8px 10px; font-size: .86rem; }
.pd-card .tip b { color: var(--terra-d); }

/* guides, tables, faq */
.pd-guide { max-width: 860px; }
.pd-guide h2 { padding-top: 14px; border-top: 3px solid var(--coal); }
.table-scroll { overflow-x: auto; margin: 14px 0; background: #fff; border-radius: 4px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--coal); color: #fff; font-family: var(--head); font-weight: 700; }
tbody tr:nth-child(even) td { background: #faf8f4; }
.pd-faq { max-width: 860px; }
.pd-faq details { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 8px; }
.pd-faq summary { list-style: none; cursor: pointer; padding: 12px 44px 12px 14px; position: relative; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary h3 { margin: 0; font-size: 1rem; }
.pd-faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: translateY(-70%) rotate(45deg); }
.pd-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pd-faq details > div { padding: 0 14px 12px; color: var(--slate); }
.pd-ad { margin: 24px 0; min-height: 90px; text-align: center; }

/* tiles */
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pd-tile { position: relative; display: block; border-radius: 4px; overflow: hidden; text-decoration: none; background: var(--coal); }
.pd-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .92; }
.pd-tile span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 12px; color: #fff; }
.pd-tile b { font: 700 1rem/1.25 var(--head); }
.pd-tile small { color: var(--terra); font-weight: 600; font-size: .76rem; white-space: nowrap; }
.pd-tile:hover img { opacity: 1; }
.pd-next { margin-top: 44px; }
.pd-group { padding-top: 12px; scroll-margin-top: 10px; }
.pd-group h2 { font-size: 1.5rem; }
.pd-group h2 span { font: 600 .8rem/1 var(--body); color: var(--slate); margin-left: 8px; }

/* front page */
.pd-front { background: var(--coal); color: #e8e6e2; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 28px 28px; padding: 38px 0 44px; }
.pd-front .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.pd-tag { color: var(--terra); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.pd-front h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; }
.pd-front .lead { margin: 0 0 22px; font-size: 1.05rem; color: #c9ccd1; max-width: 520px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pd-cta a { background: var(--terra); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 3px; }
.pd-cta a.ghost { background: none; border: 1px solid #6b7078; color: #fff; }
.pd-front-img { margin: 0; border-radius: 4px; overflow: hidden; border: 6px solid var(--coal-2); }
.pd-front-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* static pages */
.pd-page { max-width: 780px; padding: 10px 0 30px; }
.pd-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 10px 0 16px; }
.pd-plain { padding-top: 16px; }

/* footer */
.pd-foot { background: var(--coal); color: #b9bdc3; margin-top: 50px; padding: 36px 0 24px; font-size: .9rem; border-top: 6px solid var(--terra); }
.pd-foot a { color: #d6d9dd; text-decoration: none; display: block; padding: 3px 0; }
.pd-foot a:hover { color: var(--terra); }
.pd-foot-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #3c4047; }
.pd-foot-brand { margin: 0; }
.pd-foot-brand b { font: 800 1.3rem/1.4 var(--head); color: #fff; }
.pd-foot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.pd-foot-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; padding: 16px 0; }
.pd-foot h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terra); margin: 14px 0 6px; }
.pd-legal { border-top: 1px solid #3c4047; padding-top: 14px; margin: 0; font-size: .8rem; color: #8a8f96; }

/* viewer */
.pd-view { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #15171a; color: #eee; }
.pd-view[open] { display: grid; grid-template-columns: 52px 1fr 52px; grid-template-rows: auto 1fr auto; }
.pd-view::backdrop { background: rgba(0, 0, 0, .8); }
.pd-view .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: .85rem; }
.pd-view .close { background: var(--terra); border: 0; color: #fff; font-weight: 600; padding: 7px 14px; border-radius: 3px; cursor: pointer; }
.pd-view .stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.pd-view .stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pd-view .nav { background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }
.pd-view .info { grid-column: 1 / -1; padding: 10px 16px 18px; max-width: 780px; margin: 0 auto; text-align: center; }
.pd-view .info p { margin: 0 0 10px; font-size: .92rem; }
.pd-view .act { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pd-view .act a { color: var(--coal); background: #fff; text-decoration: none; font-weight: 600; font-size: .82rem; padding: 7px 13px; border-radius: 3px; }

@media (max-width: 1020px) {
	.pd-links { display: none; }
	.pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.pd-grid { grid-template-columns: 1fr; gap: 18px; }
	.pd-front .wrap, .pd-foot-top { grid-template-columns: 1fr; }
	.pd-front { padding: 26px 0 30px; }
	.pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pd-tile span { flex-direction: column; gap: 2px; padding: 8px 10px; }
	.pd-tile b { font-size: .9rem; }
	h2 { font-size: 1.38rem; }
	.pd-logo span { font-size: 1.05rem; }
	.pd-view[open] { grid-template-columns: 32px 1fr 32px; }
}
