/*
Theme Name: Frogmouth 2026
Theme URI: https://frogmouthponds.com.au
Author: Sidequest
Author URI: https://sidequest.au
Description: A clean, code-first classic WordPress theme for Frogmouth Ponds, a small apiary selling honey, beeswax skincare, and beekeeping courses. WooCommerce-ready. Built to be edited in code, not the Site Editor.
Version: 0.1.2
Requires PHP: 8.3
Requires at least: 6.5
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frogmouth-2026
Tags: classic, woocommerce, custom-menu, featured-images, threaded-comments, translation-ready
WC requires at least: 8.0
WC tested up to: 10.8.1
*/

/* ==========================================================================
   Frogmouth 2026 — base styles
   Minimal skeleton. Full branded design comes later.
   ========================================================================== */

:root {
  --fg-honey: #e0a323;
  --fg-honey-dark: #b87d12;
  --fg-ink: #2b2118;
  --fg-paper: #fffdf7;
  --fg-muted: #6b5d4a;
  --fg-line: #e8ddc8;
  --fg-maxwidth: 72rem;
  --fg-readwidth: 42rem;

  /* Provenance product-card palette — shared so .fp-card / .fp-eyebrow render
     on every page (homepage, blog posts, anywhere the carousel appears), not
     just where a view-scoped sheet redeclares these tokens locally. */
  --fp-ink: #1c2419;
  --fp-olive: #7a6a2e;
  --fp-green-soft: #5a6650;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--fg-ink);
  background: var(--fg-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--fg-honey-dark);
}

/* Content-link hover/focus colour. Excludes .fp-btn buttons: they're <a>s that
   own their own colour via component/Tailwind classes, and this global rule was
   leaking ink onto them on :focus (button text went dark and stuck after a
   click, until focus moved elsewhere). */
a:hover:not(.fp-btn),
a:focus:not(.fp-btn) {
  color: var(--fg-ink);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg-ink);
  color: var(--fg-paper);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-container {
  max-width: var(--fg-maxwidth);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 3px solid var(--fg-honey);
  padding: 1.25rem 0;
}

.site-header .site-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a {
  color: var(--fg-ink);
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  color: var(--fg-ink);
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--fg-honey-dark);
}

/* Content */
.site-content {
  padding: 2.5rem 0;
}

.entry-title {
  line-height: 1.2;
}

.entry-content {
  max-width: var(--fg-readwidth);
}

article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fg-line);
}

.entry-meta {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* Buttons / WooCommerce accents */
.button,
/* Gutenberg block buttons in post/page content (Stewart edits in the block
   editor). Class-targeted — kept intentionally. The bare `button` and
   `input[type="submit"]` ELEMENT selectors that used to share this rule were
   removed (epic 01, Phase 1): they leaked into every <button> in the theme and
   caused the FAQ/size-selector amber-block-on-hover bugs. Real buttons are now
   styled by their own component CSS or Tailwind utilities. */
.wp-block-button__link {
  background: var(--fg-honey);
  color: var(--fg-ink);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--fg-honey);
  padding: 2rem 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Accessibility helper */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--fg-paper);
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 100000;
}

/* ==========================================================================
   Brand lockup — logo mark beside the wordmark (shared site header)
   ========================================================================== */
.fp-site-header__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  line-height: 1;
  text-decoration: none;
}

/* The wordmark is a link but must never underline, in any state. */
.fp-site-header__wordmark:hover,
.fp-site-header__wordmark:focus {
  text-decoration: none;
}

/* Scoped to the wordmark parent so this beats WooCommerce's
   `.woocommerce img { height:auto }` on shop/category/product pages. */
.fp-site-header__wordmark .fp-brand-mark {
  display: block;
  width: auto;
  height: 2.1em; /* scales with the wordmark's font-size */
  margin-bottom: 4px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* ==========================================================================
   Shared site header — ship bar + unified nav (template-parts/site-header.php)
   ONE header across every template; only bg + text colour change by variant.
   The nav markup comes from wp_nav_menu(), so its <ul>/<li>/<a> are styled here
   (no per-link class hook to hang Tailwind utilities on). Ships in style.css
   (loaded globally) so the header renders on every page type. Matches the
   homepage nav exactly: 12px, uppercase, 0.16em tracking, weight 500.
   Link colour is inherited from the header's Tailwind text colour (cream on the
   overlay variant, ink on the solid variant); hover is the brand gold. Font is
   the brand sans so the wordmark + nav read identically on every page type. */
.fp-site-header {
  --fp-sh-gold: #e7c98a;
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fp-site-header__menu {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.fp-site-header__menu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-site-header__menu a:hover,
.fp-site-header__menu a:focus,
.fp-site-header__menu .current-menu-item > a {
  color: var(--fp-sh-gold);
}

@media (max-width: 720px) {
  .fp-site-header__menu {
    gap: 18px;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
}

.fp-brand-name {
  display: inline-block;
  line-height: 1;
  /* Inherit the wordmark link's colour so it's cream on the dark hero and
     ink on light headers (cat / pdp) — never hard-coded white on light. */
  color: inherit;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

/* ==========================================================================
   Footer "connect" band — newsletter (Flodesk) + social links
   Shared by all five footer renderers via template-parts/footer-connect.php.
   Loaded globally (style.css ships on every page) so the block looks
   consistent in every footer context. Provenance tokens mirrored locally so
   it renders the same whether or not a view-scoped stylesheet is present.
   ========================================================================== */
.fp-connect {
  --fp-connect-amber: #d99a2b;
  --fp-connect-cream: #f1ebdb;
  --fp-connect-muted: #cfc8b3;

  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  width: 100%;
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fp-connect__newsletter {
  flex: 1 1 22rem;
  min-width: 0;
}

.fp-connect__heading {
  margin: 0 0 0.35rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.fp-connect__subtext {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* The Flodesk form styles itself; just give its container breathing room. */
.fp-connect__newsletter [id^="fd-form-"] {
  margin-top: 0.5rem;
}

.fp-connect__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.fp-connect__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fp-connect__social-link:hover,
.fp-connect__social-link:focus {
  color: var(--fp-connect-amber);
  border-color: var(--fp-connect-amber);
}

.fp-connect__social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* On the near-bare .site-footer (light background) the inherited dark text and
   a faint divider read better than the white-on-dark band defaults above. */
.site-footer .fp-connect {
  border-bottom-color: var(--fg-line);
}

.site-footer .fp-connect__social-link {
  border-color: var(--fg-line);
}

@media (max-width: 600px) {
  .fp-connect {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-connect__social {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Form pages — "Provenance" chrome + self-contained forms
   Used by page-wholesale.php, page-contact-us.php, page-refund_returns.php and
   the chrome-form-* partials. All `.fp-page` / `.fp-form` styles ship in
   style.css (loaded globally) so these pages render without a view-scoped sheet.
   Tokens mirror the Provenance palette used across the homepage / category / PDP.
   ========================================================================== */
.fp-page {
  --fp-amber: #d99a2b;
  --fp-ink: #2b2118;
  --fp-cream: #fffdf7;
  --fp-muted: #6b5d4a;
  --fp-line: #e8ddc8;
  --fp-dark: #1c1813;

  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fp-ink);
  background: var(--fp-cream);
}

/* Header — the form / policy page header (ship bar + nav) now renders through
   the shared partial template-parts/site-header.php (via
   template-parts/chrome-form-header.php); its CSS is the .fp-site-header* block
   above. */

/* Hero */
.fp-page__hero {
  max-width: var(--fg-maxwidth);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.fp-page__hero-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fp-amber);
  margin-bottom: 0.9rem;
}

.fp-page__hero-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
}

.fp-page__hero-tagline {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--fp-muted);
  margin: 0 auto;
  max-width: 38rem;
}

/* Body container */
.fp-page__body {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.fp-page__body--split {
  max-width: var(--fg-maxwidth);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .fp-page__body--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.fp-page__section {
  margin-bottom: 2.75rem;
}

.fp-page__section-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-amber);
  margin-bottom: 0.5rem;
}

.fp-page__section-title {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 1.1rem;
}

.fp-page__range,
.fp-page__reasons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-page__range li,
.fp-page__reasons li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--fp-line);
  line-height: 1.5;
}

.fp-page__range li::before,
.fp-page__reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--fp-amber);
  border-radius: 50%;
}

/* Prose (returns policy) */
.fp-page__prose h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}

.fp-page__prose p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--fp-muted);
}

.fp-page__prose ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.fp-page__prose li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  line-height: 1.6;
  color: var(--fp-muted);
  border-bottom: 1px solid var(--fp-line);
}

.fp-page__prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--fp-amber);
  border-radius: 50%;
}

.fp-page__prose li strong {
  color: var(--fp-ink);
}

.fp-page__prose a {
  color: var(--fp-honey-dark, #b87d12);
  text-decoration: underline;
}

.fp-page__prose a:hover,
.fp-page__prose a:focus {
  color: var(--fp-amber);
}

/* About — "Frogmouth Standard" feature grid */
.fp-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.fp-about__card {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  padding: 1.5rem;
}

.fp-about__card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--fp-ink);
}

.fp-about__card p {
  margin: 0;
  line-height: 1.6;
  color: var(--fp-muted);
}

/* Address + map (contact) */
.fp-page__address {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.fp-page__address a {
  color: var(--fp-honey-dark, #b87d12);
  text-decoration: none;
}

.fp-page__address a:hover,
.fp-page__address a:focus {
  color: var(--fp-amber);
}

.fp-page__map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  background: #f1ebdb;
  border: 1px dashed var(--fp-line);
  border-radius: 6px;
}

.fp-page__map-note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-muted);
}

/* ---- Form ---- */
.fp-page__formwrap {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  padding: 2rem;
}

.fp-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fp-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  border: 0;
  padding: 0;
}

.fp-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fp-form__req {
  color: var(--fp-amber);
}

.fp-form__input,
.fp-form__select,
.fp-form__textarea {
  width: 100%;
  font: inherit;
  color: var(--fp-ink);
  background: var(--fp-cream);
  border: 1px solid var(--fp-line);
  border-radius: 5px;
  padding: 0.65rem 0.75rem;
}

.fp-form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.fp-form__input:focus,
.fp-form__select:focus,
.fp-form__textarea:focus {
  outline: none;
  border-color: var(--fp-amber);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.18);
}

.fp-form__fieldset .fp-form__label {
  margin-bottom: 0.25rem;
}

.fp-form__checks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fp-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.92rem;
}

.fp-form__check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--fp-amber);
}

.fp-form__actions {
  margin-top: 0.5rem;
}

.fp-form__submit {
  background: var(--fp-ink);
  color: var(--fp-cream);
  border: none;
  border-radius: 5px;
  padding: 0.8rem 1.6rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fp-form__submit:hover,
.fp-form__submit:focus {
  background: var(--fp-amber);
  color: var(--fp-ink);
}

/* Honeypot — visually hidden but present in the DOM for bots to trip on. */
.fp-form__hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status banners */
.fp-form__banner {
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.fp-form__banner--ok {
  background: #eef6e9;
  border: 1px solid #b8d8a3;
  color: #2f5320;
}

.fp-form__banner--err {
  background: #fdeceb;
  border: 1px solid #e8b4af;
  color: #7a2820;
}

/* ---- Footer ----
   Form pages now render the shared site footer (template-parts/site-footer.php),
   styled by Tailwind utilities (tw.css) + the global .fp-connect rules above.
   The old .fp-page__footer* rules were retired with that markup. */

/* ==========================================================================
   Shared product card — "Provenance" .fp-card
   --------------------------------------------------------------------------
   Migrated to Tailwind utilities (epic 01, Phase 1 — see
   template-parts/product-card.php). The card's appearance now lives in utility
   classes on the markup; only its surface tokens (--color-fp-card*) are defined,
   in tw-input.css's @theme. View-scoped layout (homepage grids, the carousel
   track widths in carousel.css) still keys off the .fp-card hook class.
   ========================================================================== */

/* Shared eyebrow label (moved from front-page.css for the same reason). */
.fp-eyebrow {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--fp-olive);
}
