/* Perspective Dock — theme stylesheet */

/*
 * .pd-slider-card (and any other component below that sets its own
 * `display`) would otherwise silently override the native `hidden`
 * attribute — author-stylesheet `display` rules beat the user-agent
 * stylesheet's `[hidden]{display:none}` regardless of specificity, so
 * main.js's `card.hidden = true/false` toggle in the Fashion & Beauty
 * slider gets ignored and every card renders at once. This guarantees
 * `hidden` always wins, as intended.
 */
[hidden] { display: none !important; }

:root {
	--pd-peach: #AF9677;
	--pd-peach-hover: #947D63;
	--pd-pine: #2D3A3F;
	--pd-pine-hover: #1A2022;
	--pd-cream: #FAF9F7;
	--pd-sand: #EFECE6;
	--pd-dark: #1A2022;
	--pd-body-bg: #F5F5F4;
	--pd-body-text: #3E4543;
	--pd-heading-text: #1E2322;
	--font-sans: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-serif: "Lora", "Playfair Display", ui-serif, Georgia, serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-sans);
	background: var(--pd-body-bg);
	color: var(--pd-body-text);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background-color: var(--pd-peach); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f8f6f2; }
::-webkit-scrollbar-thumb { background: #e3ded5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c7c2b5; }

.pd-container {
	max-width: 1280px;
	margin: 0 auto;
	padding-inline: 1.5rem;
}
.pd-container.pd-narrow { max-width: 900px; }

.pd-aspect-4-5 { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #f5f5f4; }
.pd-aspect-4-3 { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #f5f5f4; }
.pd-aspect-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #f5f5f4; }
.pd-aspect-4-5 img, .pd-aspect-4-3 img, .pd-aspect-video img { width: 100%; height: 100%; object-fit: cover; }

/* Header */
.pd-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(45, 58, 63, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--pd-pine-hover);
	padding: 1.5rem;
}
.pd-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.pd-logo a, .pd-logo { font-family: var(--font-serif); font-weight: 800; color: #FAF6F0; font-size: 1.35rem; }
.pd-logo .pd-accent, .pd-accent { color: var(--pd-peach); }
.pd-logo-mobile { display: none; }
.pd-primary-nav { flex: 1; display: flex; justify-content: center; }
ul.pd-nav-list {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.pd-nav-list a { color: rgba(250, 246, 240, 0.85); transition: color .2s; }
.pd-nav-list a:hover, .pd-nav-list .current-menu-item a, .pd-nav-list .current_page_item a {
	color: var(--pd-peach);
	font-weight: 800;
}
.pd-header-actions { display: flex; align-items: center; gap: 1.5rem; }
.pd-header-actions-right { display: flex; align-items: center; gap: 1.25rem; }
.pd-subscribe-link { display: flex; align-items: center; gap: .5rem; color: rgba(250,246,240,.9); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pd-subscribe-link:hover { color: var(--pd-peach); }

button.pd-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: .4rem;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.pd-menu-toggle span { display: block; width: 22px; height: 2px; background: #FAF6F0; }

.pd-mobile-menu {
	display: none;
	flex-direction: column;
	gap: 1rem;
	position: absolute;
	top: 100%;
	right: 1.5rem;
	width: 260px;
	background: rgba(45, 58, 63, 0.97);
	border: 1px solid var(--pd-pine-hover);
	border-radius: 16px;
	padding: 1.5rem;
	margin-top: .5rem;
	z-index: 50;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.pd-mobile-menu.is-open { display: flex; }
.pd-mobile-menu a { color: #FAF6F0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pd-mobile-menu a:hover { color: var(--pd-peach); }
.pd-mobile-menu-divider { height: 1px; background: rgba(255,255,255,.1); }

.pd-scroll-progress {
	position: absolute;
	bottom: 0; left: 0;
	height: 3px;
	width: 0%;
	background: var(--pd-peach);
	transition: width .1s linear;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-trigger {
	display: flex; align-items: center; gap: .4rem;
	background: none; border: none; color: #FAF6F0; cursor: pointer;
	font-size: .8rem; font-weight: 700;
}
.lang-dropdown {
	display: none;
	position: absolute; top: 100%; right: 0; margin-top: .5rem;
	background: #fff; border: 1px solid var(--pd-sand); border-radius: 10px;
	list-style: none; padding: .4rem; min-width: 150px; z-index: 60;
	box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown li a { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 6px; color: var(--pd-pine); font-size: .8rem; }
.lang-dropdown li a:hover, .lang-dropdown li.lang-active a { background: var(--pd-sand); }

/* Featured grid (homepage) */
.pd-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
	padding-block: 3rem 2rem;
}
.pd-featured-card { display: flex; flex-direction: column; }
.pd-card-eyebrow {
	font-size: .68rem; font-weight: 500; color: #9ca3af;
	text-transform: uppercase; letter-spacing: .12em; margin-top: 1.25rem;
}
.pd-featured-title, h3.pd-featured-title {
	font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
	color: #111827; margin: .5rem 0 0; line-height: 1.25;
}
.pd-featured-card:hover .pd-featured-title { color: var(--pd-peach); }

/* Explore strip */
.pd-explore-strip { background: var(--pd-body-bg); border-block: 1px solid #d6d3d1; padding-block: 1.5rem; margin-bottom: 2rem; }
.pd-explore-strip-inner { display: flex; align-items: center; gap: 2rem; }
.pd-explore-label { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--pd-pine); border-right: 1px solid #d6d3d1; padding-right: 2rem; flex-shrink: 0; }
.pd-explore-items { display: flex; gap: 2rem; overflow-x: auto; flex: 1; }
.pd-explore-item { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.pd-explore-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid #dcd7cd; background: #f5f5f4; flex-shrink: 0; }
.pd-explore-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-explore-title { font-family: var(--font-serif); font-weight: 700; color: #1f2937; }
.pd-explore-item:hover .pd-explore-title { color: var(--pd-peach); }

/* Home sections & article grids */
.pd-home-sections { padding-block: 2rem 3rem; }
.pd-home-section { border-bottom: 1px solid rgba(239,236,230,.6); padding-bottom: 3rem; margin-bottom: 3rem; }
.pd-home-section:last-child { border-bottom: none; }
.pd-home-section-heading { border-bottom: 1px solid var(--pd-sand); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.pd-home-section-heading h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 900; color: var(--pd-pine); margin: 0; }
.pd-home-section-heading-center { text-align: center; border-bottom: none; }
.pd-home-section-heading-center h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 1.15rem; }
.pd-anchor-offset { scroll-margin-top: 5rem; }

.pd-article-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pd-article-grid-3col { grid-template-columns: repeat(3, 1fr); }
.pd-card { display: flex; flex-direction: column; gap: .5rem; }
.pd-card-title, h4.pd-card-title {
	font-family: var(--font-serif); font-size: .95rem; font-weight: 700;
	color: var(--pd-pine); line-height: 1.35; margin: 0;
}
.pd-card:hover .pd-card-title { color: var(--pd-peach); }
.pd-card-excerpt { font-size: .8rem; color: rgba(45,58,63,.6); margin: 0; line-height: 1.4; }
.pd-card .pd-card-eyebrow { color: var(--pd-peach); font-weight: 800; margin-top: 0; }

/* Slider */
.pd-slider-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; min-height: 300px; }
.pd-slider-card { display: flex; gap: 1.25rem; background: #fff; padding: 1.25rem; border-radius: 16px; border: 1px solid rgba(239,236,230,.6); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pd-slider-media { width: 42%; flex-shrink: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.pd-slider-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-slider-content { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; }
.pd-slider-content h4 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--pd-pine); }
.pd-slider-content h4 a:hover { color: var(--pd-peach); }
.pd-slider-content p { font-size: .8rem; color: rgba(45,58,63,.6); line-height: 1.5; margin: 0; }
a.pd-read-more { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pd-pine); display: inline-flex; align-items: center; gap: .4rem; }
a.pd-read-more:hover { color: var(--pd-peach); }
.pd-slider-dots { display: flex; justify-content: center; gap: .6rem; padding-top: 1.5rem; }
button.pd-slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #e5dfda; background: var(--pd-sand); cursor: pointer; padding: 0; }
button.pd-slider-dot.is-active { background: var(--pd-peach); border-color: var(--pd-peach); transform: scale(1.1); }

/* Newsletter block */
.pd-newsletter-block { padding-block: 3rem 4rem; }
.pd-newsletter-card {
	background: var(--pd-pine); border-radius: 24px; padding: clamp(2rem, 5vw, 5rem);
	display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center;
	box-shadow: 0 25px 50px rgba(0,0,0,.2);
}
.pd-newsletter-eyebrow { color: var(--pd-peach); font-family: var(--font-serif); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: .5rem; }
.pd-newsletter-copy h3 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.75rem); color: var(--pd-cream); margin: 0 0 1rem; }
.pd-newsletter-copy p { color: rgba(250,249,247,.8); font-family: var(--font-serif); line-height: 1.6; margin: 0; }
.pd-newsletter-form .wpcf7-form-control-wrap { display: block; }
.pd-newsletter-form input[type=email], .pd-newsletter-form input[type=text] {
	width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
	border-radius: 12px; padding: 1rem 1.25rem; color: #fff; font-family: var(--font-serif);
}
.pd-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.pd-newsletter-form .wpcf7-submit {
	width: 100%; background: var(--pd-peach); color: #1c1917; border: none; border-radius: 12px;
	padding: 1rem; font-family: var(--font-serif); font-weight: 700; text-transform: uppercase;
	letter-spacing: .1em; font-size: .8rem; cursor: pointer; margin-top: 1rem;
}
.pd-newsletter-form .wpcf7-submit:hover { background: var(--pd-peach-hover); }
.pd-newsletter-form label { color: rgba(250,249,247,.6); font-size: .7rem; }
.pd-newsletter-form .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,.3) !important; margin-top: 1rem; }

/* Footer */
.pd-footer { background: var(--pd-dark); color: rgba(250,246,240,.9); padding: 4rem 0 2rem; }
.pd-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .8rem; }
.pd-logo-footer { text-align: center; margin-bottom: 1rem; }
.pd-footer-tagline { color: rgba(250,246,240,.6); font-size: .75rem; line-height: 1.6; }
h5.pd-footer-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .4rem; margin: 0 0 .75rem; display: inline-block; }
ul.pd-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; color: rgba(250,246,240,.7); }
.pd-footer-links a:hover { color: var(--pd-peach); }
.pd-trustpilot-row { display: flex; align-items: center; gap: .5rem; }
.pd-trustpilot-star { width: 28px; height: 28px; fill: #00b67a; }
.pd-trustpilot-word { color: #fff; font-size: 1.2rem; font-weight: 700; }
.pd-trustpilot-stars { display: flex; gap: .25rem; margin-top: .5rem; }
.pd-trustpilot-star-box { width: 28px; height: 28px; background: #00b67a; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.pd-trustpilot-star-box svg { width: 18px; height: 18px; fill: #fff; }
.pd-trustpilot-caption { color: rgba(250,246,240,.4); font-size: .7rem; margin-top: .5rem; }
.pd-app-badges { display: flex; flex-direction: column; gap: .85rem; }
/* Was `a.pd-app-badge` — only matched when a real URL is configured (PHP
   falls back to a bare <span> otherwise), so an unconfigured badge silently
   lost this entire rule: no card background/border/padding. Match both. */
.pd-app-badge { display: flex; flex-direction: column; background: #0f1110; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: .5rem 1rem; max-width: 190px; color: #fff; }
/* SVG has no intrinsic size without this — was rendering at the browser's
   fallback replaced-element size (huge) instead of a small badge icon. */
.pd-app-badge-icon { width: 22px; height: 22px; flex-shrink: 0; margin-bottom: .4rem; }
.pd-app-badge-line1 { font-size: .6rem; text-transform: uppercase; color: rgba(255,255,255,.4); }
.pd-app-badge-line2 { font-size: .8rem; font-weight: 800; }
.pd-footer-bottom { text-align: center; padding-top: 1.5rem; font-size: .68rem; color: rgba(255,255,255,.3); }

/* Single post */
.pd-single { padding-block: 3rem; }
.pd-single-meta { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.pd-single-pill { display: inline-block; background: rgba(175,150,119,.1); color: var(--pd-peach); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .35rem .8rem; border-radius: 999px; }
h1.pd-single-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; color: var(--pd-pine); margin: .75rem 0; line-height: 1.25; }
.pd-single-byline { color: rgba(45,58,63,.5); font-size: .75rem; }
.pd-single-hero { max-width: 900px; margin: 0 auto 2.5rem; }
.pd-single-body { max-width: 720px; margin: 0 auto; font-size: .9rem; line-height: 1.7; }
.pd-single-pullquote { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--pd-pine); border-left: 4px solid var(--pd-peach); padding: .25rem 0 .25rem 1rem; margin: 0 0 1.5rem; }
.pd-single-body p { margin: 0 0 1.25rem; }
.pd-single-inline-image { margin: 2rem 0; }
.pd-single-inline-image img { border-radius: 12px; }
.pd-author-box { display: flex; gap: 1rem; align-items: flex-start; background: rgba(239,236,230,.2); border: 1px solid rgba(239,236,230,.65); border-radius: 16px; padding: 1.5rem; margin-top: 2rem; }
.pd-author-box img { border-radius: 50%; }
.pd-author-box h5 { font-family: var(--font-serif); font-weight: 700; color: var(--pd-pine); margin: 0 0 .25rem; }
.pd-author-role { font-size: .7rem; color: var(--pd-peach); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .35rem; }
.pd-author-bio { font-size: .75rem; color: rgba(30,35,34,.6); margin: 0; }

/* About page */
.pd-about { padding-block: 3rem; }
.pd-about-image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.pd-about-text { max-width: 640px; margin: 0 auto; }
.pd-about-text h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: #111827; margin-bottom: 1.5rem; }
.pd-about-text p { font-family: var(--font-serif); font-size: .9rem; color: #1f2937; line-height: 1.7; margin: 0 0 1.25rem; }

/* Contact page */
.pd-contact { padding-block: 4rem; }
.pd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.pd-contact-image { border-radius: 16px; overflow: hidden; border: 1px solid var(--pd-sand); min-height: 320px; }
.pd-contact-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-contact-form-card { background: rgba(255,255,255,.5); border: 1px solid var(--pd-sand); border-radius: 16px; padding: 2rem; }
.pd-contact-eyebrow { color: var(--pd-peach); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.pd-contact-form-card h3 { font-family: var(--font-serif); font-weight: 700; color: var(--pd-pine); margin: .25rem 0 1.25rem; }
.pd-contact-form-card input, .pd-contact-form-card textarea {
	width: 100%; background: #fdfbfa; border: 1px solid var(--pd-sand); border-radius: 8px;
	padding: .6rem .75rem; font-size: .8rem; margin-bottom: .85rem;
}
.pd-contact-form-card label.wpcf7-text, .pd-contact-form-card .wpcf7-form-control-wrap { display: block; }
.pd-contact-form-card .wpcf7-submit {
	width: 100%; background: var(--pd-pine); color: #faf6f0; border: none; border-radius: 999px;
	padding: .85rem; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
}
.pd-contact-form-card .wpcf7-submit:hover { background: var(--pd-pine-hover); }

/* Legal pages */
.pd-legal-page { padding-block: 3rem; }
h1.pd-legal-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--pd-pine); border-bottom: 1px solid var(--pd-sand); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.pd-legal-body { font-size: .85rem; color: rgba(45,58,63,.8); line-height: 1.7; }
.pd-legal-body h4 { font-family: var(--font-serif); font-weight: 800; color: var(--pd-pine); font-size: 1.05rem; border-bottom: 1px solid rgba(239,236,230,.4); padding-bottom: .5rem; margin-top: 1.5rem; }

/* Search & 404 */
.pd-search-results, .pd-404 { padding-block: 3rem; }
h1.pd-archive-title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 800; color: var(--pd-pine); margin-bottom: 2rem; }
a.pd-btn-pine { display: inline-block; margin-top: 1.5rem; background: var(--pd-pine); color: #fff; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
a.pd-btn-pine:hover { background: var(--pd-pine-hover); }

/* Responsive */
@media (max-width: 900px) {
	.pd-primary-nav { display: none; }
	.pd-logo-desktop { display: none; }
	.pd-logo-mobile { display: inline-flex; }
	.pd-featured-grid,
	.pd-article-grid-3col,
	.pd-about-image-grid,
	.pd-footer-grid { grid-template-columns: 1fr; }
	.pd-newsletter-card { grid-template-columns: 1fr; }
	.pd-contact-grid { grid-template-columns: 1fr; }
	.pd-slider-track { grid-template-columns: 1fr; }
	.pd-slider-card { flex-direction: column; }
	.pd-slider-media { width: 100%; aspect-ratio: 4/3; }
	.pd-header-actions { width: 100%; justify-content: space-between; }
}
