/*
Theme Name: Physis
Theme URI: https://physis.cr/
Author: Physis Photo Tours
Description: Child theme of Twenty Twenty-Five for physis.cr. Direction B "Field Journal" approved on 22 Nov 2026: white ground, Newsreader headings, Inter body, Physis logo greens. All pages, posts, categories and tags use native blocks.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.13-live
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: physis
*/

/* Small refinements that theme.json cannot express. Keep this file short. */

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.1875rem;
}

.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: 1.25rem;
}

/* FAQ by Rank Math (keeps its schema), styled to the Physis look */
.wp-block-rank-math-faq-block .rank-math-list-item,
.rank-math-list .rank-math-list-item {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: 1.25rem;
}
.wp-block-rank-math-faq-block .rank-math-list-item:last-child,
.rank-math-list .rank-math-list-item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wp-block-rank-math-faq-block .rank-math-question,
.rank-math-list .rank-math-question {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}
.wp-block-rank-math-faq-block .rank-math-answer,
.rank-math-list .rank-math-answer {
	color: var(--wp--preset--color--ink-muted);
}

.is-style-physis-eyebrow {
	font-size: 0.8125rem !important;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ochre);
}

.is-style-physis-step {
	border-top: 2px solid var(--wp--preset--color--gold);
	padding-top: 1.25rem;
}

/* Header and footer */
.physis-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 1.125rem;
	padding-bottom: 1.125rem;
	gap: 1rem 1.5rem;
}
.physis-brand { gap: 0.875rem; align-items: center; }
.physis-tagline {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #56635B;
}
.physis-nav { gap: 0.5rem 1.625rem; align-items: center; }
.physis-header-textlink { margin: 0; font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.physis-header-cta .wp-block-button__link { padding: 0.75rem 1.25rem; font-size: var(--wp--preset--font-size--small); min-height: 44px; }
.physis-footer {
	padding-top: 3.5rem;
	padding-bottom: 2.5rem;
	color: var(--wp--preset--color--ink-soft);
}
.physis-footer-links { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.physis-footer-links a { color: var(--wp--preset--color--ink-soft); }

/* Dark band links (How it works, closing text links) */
.has-night-background-color a:where(:not(.wp-element-button)) { color: #E7CB8E; }

.wp-block-image.is-style-physis-rounded img,
.physis-rounded img {
	border-radius: 6px;
}

/* Headings: never break words mid-word */
h1, h2, h3, h4, .wp-block-heading, .wp-block-post-title {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
	text-wrap: balance;
}

/* Linked headings (tour cards, archive titles): ink, no underline */
:where(h1, h2, h3, h4) a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration: none;
}
:where(h1, h2, h3, h4) a:where(:not(.wp-element-button)):hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Reviews */
.wp-block-quote { padding-left: 0; }
.wp-block-quote cite { font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-soft); font-style: normal; }

/* Secondary call link ("Let's talk") */
.physis-talk-link a { font-weight: 600; text-underline-offset: 5px; }

/* Mobile header: hide the tagline next to the logo */
@media (max-width: 600px) {
	.physis-tagline { display: none; }
}

/* Transition: keep the Physis header and footer intact on Elementor pages */
body[class*="elementor-kit-"] .physis-header .wp-block-button__link,
body[class*="elementor-kit-"] .physis-header .wp-block-button__link:hover {
	color: var(--wp--preset--color--base);
	font-weight: 600;
}
body[class*="elementor-kit-"] .physis-header a:where(:not(.wp-element-button)),
body[class*="elementor-kit-"] .physis-footer a {
	font-weight: 400;
}
body[class*="elementor-kit-"] .physis-footer p { margin-block-end: 0; }
.physis-elementor-main { margin-top: 0; }
.physis-elementor-main > .wp-block-post-content { margin-top: 0; }

/* Header: side margins, aligned to the wide content width (1280px) */
.physis-header {
	padding-left: max(5vw, 1.25rem, calc((100% - 1280px) / 2)) !important;
	padding-right: max(5vw, 1.25rem, calc((100% - 1280px) / 2)) !important;
	box-sizing: border-box;
}

/* Footer on the dark "night" ground */
.physis-footer {
	background-color: var(--wp--preset--color--night);
	color: var(--wp--preset--color--mist);
	margin-top: 0;
}
.physis-footer h4,
.physis-footer .wp-block-heading { color: var(--wp--preset--color--base); }
.physis-footer a,
.physis-footer-links a,
body[class*="elementor-kit-"] .physis-footer a { color: var(--wp--preset--color--mist); }
.physis-footer a:hover,
.physis-footer-links a:hover { color: var(--wp--preset--color--gold); }

/* Sticky header: menu and "Compose your tour" stay visible while scrolling */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
}
.physis-header { background-color: var(--wp--preset--color--base); }
body.admin-bar .wp-site-blocks > header.wp-block-template-part,
body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part,
	body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part,
	body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; }
}
/* Anchor links land below the sticky header */
html { scroll-padding-top: 6rem; }

/* Mobile: compact one-row sticky header (logo, menu icon, button) */
@media (max-width: 600px) {
	.physis-header {
		flex-wrap: nowrap !important;
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
		gap: 0.75rem;
	}
	.physis-header .wp-block-site-logo img { width: 104px !important; height: auto; }
	.physis-nav { flex-wrap: nowrap !important; gap: 0.5rem; }
	.physis-header-cta .wp-block-button__link {
		padding: 0.55rem 0.95rem;
		font-size: 0.875rem;
		min-height: 40px;
		white-space: nowrap;
	}
}
