/*
Theme Name: Permit First
Theme URI: https://permitfirst.com
Description: Child theme of Twenty Twenty-Five for permitfirst.com. Lightweight store theme for carbonless safety permit pads: brand colors, header, footer, home, guide and WooCommerce styling. No page builder, no slider.
Author: SafetyPro.co, LLC
Author URI: https://safetypro.co
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: permitfirst
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.18em; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
.pf-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.pf-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--amber-dark); margin: 0 0 .6rem; }
.pf-dark .pf-eyebrow, .pf-hero .pf-eyebrow { color: var(--wp--preset--color--amber); }
.pf-lead { font-size: 1.15rem; color: var(--wp--preset--color--slate); max-width: 46rem; }
.pf-dark .pf-lead, .pf-hero .pf-lead { color: #D6D1C7; }
.pf-lead { margin-inline: 0; }
.pf-muted { color: var(--wp--preset--color--slate); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Buttons ---------- */
.pf-btn, .wp-element-button, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink) !important;
  font-weight: 800; text-decoration: none; border: 0; border-radius: 6px;
  padding: .8rem 1.25rem; line-height: 1.2; cursor: pointer; transition: background .15s;
}
.pf-btn:hover, .wp-element-button:hover, .wp-block-button__link:hover { background: #E6A100; }
.pf-btn.pf-ghost { background: transparent; color: var(--wp--preset--color--ink) !important; box-shadow: inset 0 0 0 2px var(--wp--preset--color--ink); }
.pf-dark .pf-btn.pf-ghost, .pf-hero .pf-btn.pf-ghost { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.pf-btn.pf-ghost:hover { background: rgba(0,0,0,.06); }
.pf-dark .pf-btn.pf-ghost:hover, .pf-hero .pf-btn.pf-ghost:hover { background: rgba(255,255,255,.08); }
.pf-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Top bar + header ---------- */
.pf-topbar { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); font-size: .85rem; font-weight: 700; text-align: center; padding: .45rem 1rem; }
.pf-topbar a { color: inherit; }
.pf-header { background: var(--wp--preset--color--charcoal); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .pf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pf-header { top: 0; position: relative; } }
.pf-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.pf-logo { display: block; line-height: 0; flex: none; }
.pf-logo img { width: 230px; height: auto; max-width: 52vw; }
.pf-header .wp-block-navigation { color: #fff; font-weight: 700; font-size: .95rem; }
.pf-header .wp-block-navigation a { color: #fff; text-decoration: none; }
.pf-header .wp-block-navigation a:hover { color: var(--wp--preset--color--amber); }
.pf-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--charcoal); color: #fff; padding: 24px; }
.pf-header .wp-block-navigation__responsive-container-open, .pf-header .wp-block-navigation__responsive-container-close { color: #fff; }
.pf-header-actions { display: flex; align-items: center; gap: 14px; }
.pf-header .wc-block-mini-cart__button { color: #fff; }
.pf-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }

/* ---------- Sections ---------- */
.pf-section { padding-block: clamp(48px, 7vw, 88px); }
.pf-section.pf-tight { padding-block: clamp(32px, 5vw, 56px); }
.pf-dark { background: var(--wp--preset--color--charcoal); color: #EDEAE3; }
.pf-dark h1, .pf-dark h2, .pf-dark h3 { color: #fff; }
.pf-paper { background: var(--wp--preset--color--paper); }
.pf-section h2 { margin-top: 0; }

/* Hero */
.pf-hero { background: var(--wp--preset--color--charcoal); color: #EDEAE3; overflow: hidden; }
.pf-hero .pf-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.pf-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.015em; }
.pf-hero h1 span { color: var(--wp--preset--color--amber); }
.pf-hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.pf-hero-points li { display: flex; gap: .6rem; align-items: flex-start; }
.pf-hero-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .2rem; border-radius: 4px; background: var(--wp--preset--color--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pf-hero-art { position: relative; }
.pf-hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
@media (max-width: 860px) { .pf-hero .pf-wrap { grid-template-columns: 1fr; } .pf-hero-art { max-width: 420px; } }

/* Trust strip */
.pf-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); background: #fff; }
.pf-trust div { padding: 18px 20px; border-right: 1px solid var(--wp--preset--color--line); }
.pf-trust div:last-child { border-right: 0; }
.pf-trust b { display: block; font-size: 1rem; color: var(--wp--preset--color--ink); }
.pf-trust span { font-size: .88rem; color: var(--wp--preset--color--slate); }
@media (max-width: 860px) { .pf-trust { grid-template-columns: 1fr 1fr; } .pf-trust div:nth-child(2) { border-right: 0; } .pf-trust div:nth-child(-n+2) { border-bottom: 1px solid var(--wp--preset--color--line); } }

/* Cards */
.pf-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pf-grid.pf-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pf-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.pf-card:hover { border-color: var(--wp--preset--color--amber); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.pf-card h3 { margin: 0; font-size: 1.1rem; color: var(--wp--preset--color--ink); }
.pf-card p { margin: 0; font-size: .95rem; color: var(--wp--preset--color--slate); }
.pf-card .pf-card-meta { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 800; color: var(--wp--preset--color--amber-dark); }
.pf-card .pf-tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: .2rem .6rem; color: var(--wp--preset--color--slate); }
.pf-dark .pf-card { background: #1F1F1F; border-color: #2E2E2E; }
.pf-dark .pf-card h3 { color: #fff; } .pf-dark .pf-card p { color: #BDB8AE; }

/* Steps */
.pf-steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 2rem 0 0; }
.pf-steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 22px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
.pf-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--amber); font-weight: 800; margin-bottom: .7rem; }
.pf-steps b { display: block; margin-bottom: .25rem; }
.pf-steps span { color: var(--wp--preset--color--slate); font-size: .95rem; }

/* Split */
.pf-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .pf-split { grid-template-columns: 1fr; } }
.pf-checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.pf-checks li { padding-left: 1.6rem; position: relative; }
.pf-checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 3px; background: var(--wp--preset--color--amber); }

/* FAQ */
.pf-faq { border-top: 1px solid var(--wp--preset--color--line); margin-top: 1.5rem; }
.pf-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem 0; }
.pf-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--wp--preset--color--ink); }
.pf-faq summary::-webkit-details-marker { display: none; }
.pf-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--wp--preset--color--amber-dark); }
.pf-faq details[open] summary::after { content: "–"; }
.pf-faq details p { margin: .7rem 0 0; color: var(--wp--preset--color--slate); }

/* CTA band */
.pf-cta { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }
.pf-cta .pf-wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: clamp(32px, 5vw, 48px); }
.pf-cta h2 { margin: 0; color: var(--wp--preset--color--ink); font-size: clamp(1.5rem, 3vw, 2rem); }
.pf-cta p { margin: .3rem 0 0; }
.pf-cta .pf-btn { background: var(--wp--preset--color--charcoal); color: #fff !important; }
.pf-cta .pf-btn:hover { background: #000; }

/* Guide / article */
.pf-article { max-width: 760px; margin-inline: auto; }
.pf-article h2 { margin-top: 2.4rem; }
.pf-article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2rem 0; }
.pf-article th, .pf-article td { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.pf-article th { background: var(--wp--preset--color--paper); }
.pf-callout { background: var(--wp--preset--color--paper); border-left: 4px solid var(--wp--preset--color--amber); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.pf-callout p:first-child { margin-top: 0; } .pf-callout p:last-child { margin-bottom: 0; }
.pf-product-box { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--wp--preset--color--charcoal); color: #EDEAE3; border-radius: 12px; padding: 1.4rem 1.6rem; margin: 2rem 0; }
.pf-product-box b { color: #fff; font-size: 1.1rem; display: block; }
.pf-crumbs { font-size: .85rem; color: var(--wp--preset--color--slate); margin-bottom: 1rem; }
.pf-crumbs a { color: inherit; }

/* ---------- WooCommerce ---------- */
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--charcoal) !important; }
.wc-block-components-product-price, .wc-block-grid__product-price, .price { color: var(--wp--preset--color--ink); font-weight: 800; }
.wp-block-woocommerce-product-collection .wc-block-product, .wc-block-product-template .wc-block-product { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 14px 14px 18px; }
.wc-block-product img, .wc-block-components-product-image img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; }
.wp-block-post-title a, .wc-block-components-product-name { text-decoration: none; color: var(--wp--preset--color--ink); }
.onsale, .wc-block-components-product-sale-badge { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; }
.single-product .product_meta { font-size: .9rem; color: var(--wp--preset--color--slate); }
.woocommerce-tabs .tabs { border-bottom: 1px solid var(--wp--preset--color--line); }
.pf-specs { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.pf-specs th, .pf-specs td { border-bottom: 1px solid var(--wp--preset--color--line); padding: .55rem .2rem; text-align: left; }
.pf-specs th { width: 40%; color: var(--wp--preset--color--slate); font-weight: 600; }
.variations select, .wc-block-components-select select { min-height: 44px; border-radius: 6px; }

/* ---------- Footer ---------- */
.pf-footer { background: #0E0E0E; color: #BDB8AE; font-size: .93rem; }
.pf-footer a { color: #E7E2D8; text-decoration: none; }
.pf-footer a:hover { color: var(--wp--preset--color--amber); }
.pf-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.pf-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.pf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pf-footer-bottom { border-top: 1px solid #262626; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .pf-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pf-footer-grid { grid-template-columns: 1fr; } }
