/*
Theme Name: Point Footage
Author: Point Footage
Description: Custom block theme for pointfootage.com. Open Road identity: gum green, paperbark and ochre.
Version: 0.57.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pointfootage
*/

/* Colours, fonts and sizes live in theme.json. This file holds only what theme.json cannot express. */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
:where(a) { text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--wp--preset--color--red-earth); outline-offset: 3px; }

/* ---------- Header ---------- */
.pf-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.pf-header__bar { min-height: 76px; gap: 8px 24px; }
.pf-logo { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.pf-logo svg { display: block; width: clamp(142px, 14vw, 176px); height: auto; }
.pf-header .wp-block-navigation { font-size: 15px; font-weight: 500; }
.pf-header .wp-block-navigation .wp-block-navigation__container { gap: 0 28px; }
.pf-header .wp-block-navigation .wp-block-navigation-item__content { padding: 14px 0; text-decoration: none; }
.pf-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--red-earth); }
.pf-header__actions { gap: 8px; flex: 0 0 auto; }
.pf-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--gum-green); border-radius: 50%; color: var(--wp--preset--color--gum-green); }
.pf-search:hover { background: var(--wp--preset--color--gum-green); color: var(--wp--preset--color--paperbark); }
.pf-header .wp-block-navigation__responsive-container-open { align-items: center; line-height: 1; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--wp--preset--color--gum-green); color: var(--wp--preset--color--paperbark); font-family: inherit; font-size: 15px; font-weight: 600; }

/* The menu collapses at 860px (WordPress's own breakpoint is 600px). */
.pf-header .wp-block-navigation .pf-nav-sub { display: none; }
@media (max-width: 859px) {
	.pf-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
	.pf-header .wp-block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pf-header .pf-header__bar { justify-content: flex-start; gap: 8px; }
	.pf-header .pf-header__bar > .wp-block-navigation { order: 3; flex: 0 0 auto; }
	.pf-header .pf-header__bar > .pf-header__actions { order: 2; margin-left: auto; }
	.pf-header .pf-header__actions .wp-block-buttons { display: none; }
}
.pf-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--shell); color: var(--wp--preset--color--gum-green); padding: 16px clamp(20px, 5vw, 64px) 24px; }
.pf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 60px; }
.pf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { width: 100%; align-items: stretch; gap: 0; font-size: 18px; }
.pf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item { display: block; width: 100%; border-top: 1px solid var(--wp--preset--color--line); }
.pf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { display: block; width: 100%; padding: 13px 0; color: var(--wp--preset--color--gum-green); }
.pf-header .wp-block-navigation__responsive-container.is-menu-open .pf-nav-sub { display: block; font-weight: 600; }
.pf-header .wp-block-navigation__responsive-container-close { top: 16px; right: 0; color: var(--wp--preset--color--gum-green); font-family: inherit; font-size: 15px; font-weight: 600; }

/* ---------- Shared pieces ---------- */
.pf-eyebrow, .pf-eyebrow a { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--red-earth); text-decoration: none; }
.pf-meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--grey); }
.pf-card .wp-block-post-featured-image img { background: var(--wp--preset--color--paperbark); }
.pf-card .wp-block-post-title a { text-decoration: none; }
.pf-card .wp-block-post-title a:hover { color: var(--wp--preset--color--red-earth); }
.wp-block-post-featured-image:empty { display: none; }
.wp-block-search__input { border: 1px solid var(--wp--preset--color--gum-green); border-radius: 0; padding: 12px 14px; font: inherit; background: #fff; }

/* ---------- Footer ---------- */
.pf-footer { border-top: 1px solid var(--wp--preset--color--line); }
.pf-footer__bar { gap: 12px 40px; padding: 24px 0 40px; }
.pf-roundel { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wp--preset--color--gum-green); flex: 0 0 auto; }
.pf-roundel svg { display: block; width: 30px; height: 30px; }
.pf-footer nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 14px; font-weight: 500; }
.pf-footer nav a { padding: 14px 0; text-decoration: none; color: inherit; }
.pf-footer nav a:hover { color: var(--wp--preset--color--red-earth); }
.pf-footer__bar { align-items: flex-start; }
.pf-footer__links { flex: 1 1 420px; display: flex; flex-direction: column; }
.pf-footer .pf-footer__social { font-weight: 400; opacity: 0.85; }
.pf-footer .pf-footer__social a { padding: 10px 0; }
.pf-footer .pf-meta { padding-top: 16px; }

/* An article that has an interactive itinerary links to it above and below the text. */
.pf-guide-map { margin: 0 0 1.4em; padding: 14px 18px; background: var(--wp--preset--color--paperbark); font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 600; }
.pf-guide-map a { text-decoration: underline; }


/* Newsletter forms: the note shown when a form is used before an email service is connected. */
.pf-news__note { margin: 4px 0 0; font-family: var(--wp--preset--font-family--body); font-size: 14px; line-height: 1.4; color: inherit; }
