/*
Theme Name: Back Forty Laser Works Blog
Theme URI: https://www.backfortylaserworks.com/blog/
Author: Back Forty Laser Works
Author URI: https://www.backfortylaserworks.com/
Description: Custom blog theme for Back Forty Laser Works. Matches the look of backfortylaserworks.com — dark forest-green palette, saddle-brown accents, Oswald/Nunito Sans type, and hard offset shadows. Built to sit at /blog/ while the main site stays hand-coded HTML.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bflw-blog
*/

/* ==========================================================================
   NOTE: Everything below the site stylesheet (marked "WordPress additions")
   styles WordPress-generated markup — post content, comments, pagination,
   captions, and widgets — so it blends into the Back Forty look.
   ========================================================================== */

/* ==========================================================================
   Back Forty Laser Works — Site Stylesheet
   ========================================================================== */

:root {
  --color-text: #E8DCC5;
  --color-btn-bg: #8B5A2B;
  --color-shadow: #121212;
  --color-bg: #1F2A1F;

  --color-bg-alt: #263323;
  --color-border: rgba(232, 220, 197, 0.18);

  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --container-width: 1180px;
  --header-height: 232px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-btn-bg);
  font-weight: 600;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 4px 4px 0 var(--color-shadow);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-shadow);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--color-shadow);
}

.btn-solid {
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  border-color: var(--color-btn-bg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

/* ---------------------------------- Header / Nav ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 0 var(--color-shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 1440px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 207px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transform: translateX(-15px);
}

.brand-name span {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a.nav-link:hover,
.main-nav li.active > a.nav-link {
  background-color: var(--color-btn-bg);
}

.caret {
  font-size: 0.65rem;
  transition: transform 0.15s ease;
}

.has-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--color-shadow);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background-color: var(--color-btn-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.social-icons a:hover {
  background-color: var(--color-btn-bg);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

.social-icons svg.icon-fb {
  width: 21.6px;
  height: 21.6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    margin-top: 4px;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .header-actions .social-icons {
    display: none;
  }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding: 90px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 90, 43, 0.25), transparent 60%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hero .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: var(--color-text);
  opacity: 0.85;
}

.hero .btn-row {
  justify-content: center;
}

/* ---------------------------------- Page Header (interior pages) ---------------------------------- */

.page-header {
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.page-header .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.page-header p.lead {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ---------------------------------- Sections ---------------------------------- */

section {
  padding: 80px 0;
}

#coasters,
#decor-signs,
#hoodies,
#shirts,
#cutting-boards,
#tumblers {
  scroll-margin-top: var(--header-height);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: 10px;
}

/* ---------------------------------- Category / Product Grid ---------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(6, 1fr); }
.grid-3 > .card { grid-column: span 2; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > .card { grid-column: span 1; }
}

@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 > .card { grid-column: span 1; }
}

.card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--color-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--color-shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #14401c33;
  background: linear-gradient(135deg, rgba(139,90,43,0.35), rgba(31,42,31,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}

/* Apparel photos are tall (person wearing the product), so these two
   categories get a taller tile than the rest of the product grid. */
#hoodies .card-media,
#shirts .card-media {
  aspect-ratio: 3 / 4;
}

.ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  padding: 7px 0;
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  flex: 1;
  opacity: 0.85;
  font-size: 0.95rem;
}

.card-body p a {
  color: var(--color-btn-bg);
  text-decoration: underline;
}

.card-body p a:hover {
  color: var(--color-text);
}

.card-body .btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 22px;
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--color-shadow);
}

/* ---------------------------------- Brand Statement ---------------------------------- */

.brand-statement {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.brand-statement h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.brand-statement p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------------------------------- Instagram Feed ---------------------------------- */

.instagram-handle {
  text-align: center;
  margin-bottom: 36px;
}

.instagram-handle a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-btn-bg);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.instagram-grid a {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139,90,43,0.4), rgba(31,42,31,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.instagram-grid a svg {
  width: 26px;
  height: 26px;
  fill: var(--color-text);
  opacity: 0.6;
}

.instagram-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.instagram-grid a:hover img {
  transform: scale(1.05);
}

@media (max-width: 980px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------- CTA Banner ---------------------------------- */

.cta-banner {
  text-align: center;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-banner h2 {
  margin-bottom: 18px;
}

.cta-banner .btn-row {
  justify-content: center;
}

/* ---------------------------------- Forms ---------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--color-text);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-btn-bg);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ---------------------------------- Contact Info Blocks ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-btn-bg);
  margin-bottom: 4px;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--color-shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------- Blog ---------------------------------- */

.blog-empty {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
}

/* Index cards on blog.html — reuses .grid/.card, adds a date/category line */

.blog-card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 8px;
}

/* Individual post page (blog/post-template.html and copies made from it) */

.post-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.post-back:hover {
  opacity: 1;
}

.post-meta {
  margin-top: 18px;
  opacity: 0.65;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

/* ---------------------------------- Legal Pages ---------------------------------- */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content .updated {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal-content p {
  opacity: 0.9;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 10px;
  opacity: 0.9;
}

.legal-content li strong {
  color: var(--color-text);
  opacity: 1;
}

.legal-content a {
  color: var(--color-btn-bg);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-text);
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  opacity: 0.8;
  font-size: 0.92rem;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--color-btn-bg);
}

.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"] {
  color: var(--color-btn-bg);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-bottom .policy-links {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------------------------------- WhatsApp Chat Button ---------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   WordPress additions
   ========================================================================== */

/* ---- Post content (the_content) ---------------------------------------- */
/* Reuses .post-body for width/typography; these rules cover markup that the
   WordPress editor emits (images, lists, quotes, embeds, etc.). */

.post-body img {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 5px 5px 0 var(--color-shadow);
  margin: 8px 0 24px;
}

.post-body a {
  color: var(--color-btn-bg);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--color-text);
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.post-body li {
  margin-bottom: 10px;
  opacity: 0.9;
}

.post-body h3 {
  margin-top: 32px;
  margin-bottom: 14px;
}

.post-body h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.post-body blockquote {
  margin: 28px 0;
  padding: 4px 24px;
  border-left: 4px solid var(--color-btn-bg);
  background-color: var(--color-bg-alt);
  border-radius: 0 6px 6px 0;
  font-size: 1.05rem;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body pre {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.post-body code {
  background-color: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
}

.post-body th,
.post-body td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.post-body th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background-color: var(--color-bg-alt);
}

/* WordPress core image alignment + captions */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright  { float: right; margin: 8px 0 20px 24px; max-width: 50%; }
.alignleft   { float: left;  margin: 8px 24px 20px 0; max-width: 50%; }
.wp-caption,
.wp-block-image figcaption,
figcaption {
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 8px;
}
.wp-block-image img { margin-bottom: 0; }

@media (max-width: 620px) {
  .alignright, .alignleft { float: none; max-width: 100%; margin: 8px 0 20px; }
}

/* Sticky-header offset so in-page anchors don't hide behind the header */
.post-body :target { scroll-margin-top: 120px; }

/* ---- Blog index cards: make the whole card a flex column ---------------- */
/* On the static site each card is an <a>. In WordPress the card is an <article>
   with the link on the title/image, so give it the same hover lift. */

.card.post-card { text-decoration: none; }
.card.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--color-shadow);
}
.card.post-card .card-body h3 a { color: var(--color-text); }
.card.post-card .card-body h3 a:hover { color: var(--color-btn-bg); }

/* ---- Pagination -------------------------------------------------------- */

.bflw-pagination {
  max-width: var(--container-width);
  margin: 56px auto 0;
  padding: 0 24px;
}

.bflw-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.bflw-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.bflw-pagination a.page-numbers:hover {
  background-color: var(--color-btn-bg);
}

.bflw-pagination .page-numbers.current {
  background-color: var(--color-btn-bg);
  border-color: var(--color-btn-bg);
}

.bflw-pagination .page-numbers.dots {
  border-color: transparent;
}

/* ---- Comments ---------------------------------------------------------- */

.comments-area {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.comment-list li {
  margin-bottom: 24px;
}

.comment-list .comment-body {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 4px 4px 0 var(--color-shadow);
}

.comment-list .children {
  list-style: none;
  margin: 24px 0 0;
  padding-left: 28px;
}

.comment-author {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

.comment-metadata {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 12px;
}

.comment-metadata a { color: inherit; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-respond {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 5px 5px 0 var(--color-shadow);
}

.comment-form label {
  margin-top: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  margin-bottom: 16px;
}

.comment-form .form-submit .submit,
.comment-form input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid var(--color-btn-bg);
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--color-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: auto;
}

.comment-form .form-submit .submit:hover,
.comment-form input[type="submit"]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-shadow);
}

.comment-notes,
.comment-form-cookies-consent label,
.logged-in-as {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
}

.comment-form-cookies-consent input { width: auto; }

/* ---- Search form ------------------------------------------------------- */

.bflw-search-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.bflw-search-form .search-field { flex: 1; }

.bflw-search-form .search-submit {
  width: auto;
  white-space: nowrap;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 12px 22px;
  border: 2px solid var(--color-btn-bg);
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--color-shadow);
}

/* ---- Sticky footer so short posts don't leave a gap -------------------- */

body.bflw-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.bflw-body main { flex: 1 0 auto; }
body.bflw-body .site-footer { flex-shrink: 0; }

/* WordPress admin bar spacing for the sticky header */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
