/*
Theme Name: Darvas Box Hunter
Theme URI: https://darvasboxhunter.app
Author: Richard Struck
Author URI: https://darvasboxhunter.app
Description: Calm, dark one-page marketing site for the Darvas Box Hunter iPhone app. Every section is made of standard blocks and is editable in the Site Editor. Settings for the App Store, books and legal links live under Appearance → Darvas Box Hunter.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: darvas-box-hunter
Tags: one-column, full-site-editing, block-patterns, dark, custom-colors
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a:focus-visible, .wp-element-button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Sections */
.dbh-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.dbh-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand) !important;
	margin-bottom: 0.75rem;
}
.dbh-muted { color: var(--wp--preset--color--muted) !important; }
.dbh-small { font-size: 0.8125rem !important; }

/* Cards */
.dbh-card {
	background: var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	padding: var(--wp--preset--spacing--50);
	height: 100%;
}
.dbh-card h3 { margin-top: 0; }
.dbh-card--featured { border-color: var(--wp--preset--color--brand); box-shadow: 0 0 0 1px var(--wp--preset--color--brand) inset; }
.dbh-price { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.25rem, 5vw, 3rem) !important; line-height: 1; margin: 0.5rem 0 !important; }
.dbh-pill {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.14);
	color: var(--wp--preset--color--brand) !important;
}

/* Images */
.dbh-phone img { max-width: 320px; width: 100%; height: auto; margin-inline: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); }
.dbh-shots .wp-block-column img { max-width: 260px; width: 100%; height: auto; margin-inline: auto; display: block; border-radius: 36px; }
.dbh-illustration img { width: 100%; height: auto; border-radius: 20px; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid var(--wp--preset--color--line-strong); color: var(--wp--preset--color--ink); background: transparent; }
.dbh-disabled-btn { opacity: 0.6; cursor: default; pointer-events: none; }

/* FAQ */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 1.1rem 0;
}
.wp-block-details summary { cursor: pointer; font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 1.0625rem; }
.wp-block-details[open] summary { color: var(--wp--preset--color--brand); }
.wp-block-details p { color: var(--wp--preset--color--muted); margin-top: 0.75rem; }

/* Footer */
.dbh-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.dbh-footer a:hover { color: var(--wp--preset--color--ink); }

/* Fade-in (respects reduced motion; JS only adds the class when motion is allowed) */
.dbh-js .dbh-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.dbh-js .dbh-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dbh-js .dbh-reveal { opacity: 1; transform: none; transition: none; }
}
