/*
 Theme Name:   She Brings Food - Divi Child
 Theme URI:    https://shebringsfood.com
 Description:  Divi child theme for She Brings Food. Warm honey & amber palette, Lora + Nunito.
 Author:       Ana
 Author URI:   https://shebringsfood.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  fb-divi-child
*/


/* ==========================================================================
   CSS VARIABLES — BRAND PALETTE
   (matches existing recipe CSS exactly)
   ========================================================================== */

:root {
  /* ── She Brings Food — Warm Honey & Amber ─────────────────────────────
     Header bg : amber honey  #C8832A  — warm, inviting, logo pops white
     Primary   : deep warm brown  #3D2B1F  — headings, dropcap, step nums
     Accent    : amber honey  #C8832A  — links, h2 underlines, buttons
     Tips      : sage green  #5A7A5C  — tips box
  ── */
  --fb-navy: #C8832A;           /* header bg → amber honey                  */
  --fb-navy-light: #A86820;     /* header hover / mobile menu bg → dark amber */
  --fb-rust: #C8832A;           /* accent: links, h2 border, buttons         */
  --fb-rust-dark: #A86820;      /* hover state for accent                    */
  --fb-rust-light: #D9A05A;     /* light accent: subtle highlights           */
  --fb-text: #3A3028;           /* body text — warm charcoal                 */
  --fb-heading: #3D2B1F;        /* headings — deep warm brown                */
  --fb-border: #E0CDB8;         /* card borders — warm taupe                 */
  --fb-cream: #FDF8F2;          /* page background — warm off-white          */
  --fb-smoke: #5A7A5C;          /* tips box title — sage green               */
  --fb-smoke-light: #8FAF92;    /* tips box border                           */
  --fb-smoke-bg: #EEF4EE;       /* tips box background                       */
  --fb-charcoal: #3D2B1F;       /* dark surfaces: footer, cookie banner      */
  --fb-font-serif: 'Lora', Georgia, serif;
  --fb-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --fb-radius: 14px;
  --fb-radius-sm: 10px;
  --fb-card-pad: 26px 28px;
}


/* ==========================================================================
   GLOBAL — BODY & TYPOGRAPHY
   ========================================================================== */

body {
  background-color: var(--fb-cream);
  color: var(--fb-text);
  font-family: var(--fb-font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-font-serif);
  color: var(--fb-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--fb-rust);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--fb-rust-dark);
  text-decoration: underline;
}


/* ==========================================================================
   DIVI OVERRIDES — CLEAN UP DEFAULTS
   ========================================================================== */

#main-content .container:before {
  display: none;
}

.et_pb_post {
  border-bottom: none;
}

.entry-content {
  font-family: var(--fb-font-body);
}

.entry-content a {
  color: var(--fb-rust);
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--fb-rust-dark);
}


/* ==========================================================================
   HEADER — NAVY BAR
   ========================================================================== */

#main-header,
#main-header.et-fixed-header {
  background-color: var(--fb-navy) !important;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.18);
}

#top-menu li a,
.et_nav_text_color_dark #et-top-navigation nav > ul > li > a {
  color: #fff !important;
  font-family: var(--fb-font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#top-menu li a:hover {
  color: #FDF8F2 !important;
  opacity: 0.85;
}

#top-menu li.current-menu-item a,
#top-menu li.current_page_item a {
  color: #fff !important;
  border-bottom: 2px solid rgba(255,255,255,0.6);
}

.mobile_menu_bar:before {
  color: #fff !important;
}

.et_mobile_menu {
  background-color: var(--fb-navy-light) !important;
}

.et_mobile_menu li a {
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

.et_mobile_menu li a:hover {
  color: #FDF8F2 !important;
  opacity: 0.85;
}

#logo {
  max-height: 55px;
}


/* ==========================================================================
   SINGLE POST — TITLE & META
   ========================================================================== */

.single-post .entry-title,
.single-post h1.entry-title {
  font-family: var(--fb-font-serif);
  color: var(--fb-navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.single-post .post-meta,
.single-post .et_post_meta_wrapper .post-meta {
  color: #999;
  font-size: 0.85rem;
  font-family: var(--fb-font-body);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--fb-border);
}

.single-post .post-meta a {
  color: var(--fb-rust);
}

.single-post .et_featured_image {
  border-radius: var(--fb-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}


/* ==========================================================================
   FB RECIPE CARD SYSTEM
   (Recipe card styles)
   ========================================================================== */

.fb-recipe {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.fb-recipe p {
  margin-bottom: 16px;
  color: var(--fb-text);
  line-height: 1.7;
}

.fb-recipe h2 {
  font-family: var(--fb-font-serif);
  font-size: 28px;
  color: var(--fb-heading);
  margin: 42px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fb-rust);
  display: inline-block;
}

.fb-recipe strong {
  color: var(--fb-heading);
}

.fb-recipe a {
  color: var(--fb-rust);
  font-weight: 600;
  text-decoration: none;
}

.fb-recipe a:hover {
  text-decoration: underline;
}

/* --- Intro --- */
.fb-intro {
  border-left: 4px solid var(--fb-navy);
  padding: 0 0 0 24px;
  margin-bottom: 36px;
  font-size: 19px;
}

.fb-intro p {
  margin-bottom: 14px;
}

.fb-dropcap {
  font-family: var(--fb-font-serif);
  font-size: 64px;
  float: left;
  line-height: 0.8;
  margin: 4px 12px 0 0;
  color: var(--fb-navy);
  font-weight: bold;
}

/* --- Cards shared base --- */
.fb-ingr-card,
.fb-step-card,
.fb-faq-card {
  background: #fff;
  border: 1px solid var(--fb-border);
}

.fb-ingr-card {
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.fb-step-card {
  border-radius: var(--fb-radius);
  padding: var(--fb-card-pad);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.fb-faq-card {
  border-radius: var(--fb-radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}

/* --- Cards h3 --- */
.fb-ingr-card h3,
.fb-step-card h3,
.fb-faq-card h3,
.fb-serving h3 {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  color: var(--fb-rust);
  margin: 0 0 12px;
  padding: 0;
}

.fb-ingr-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

/* --- Cards small text --- */
.fb-step-card p,
.fb-faq-card p {
  margin: 0;
  font-size: 15px;
  color: var(--fb-text);
  line-height: 2.2;
}

/* --- Ingredients --- */
.fb-ingr-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fb-ingr-card li {
  padding: 5px 0;
  font-size: 15px;
  color: var(--fb-text);
  border-bottom: 1px dotted var(--fb-border);
}

.fb-ingr-card li:last-child {
  border-bottom: none;
}

/* --- Steps --- */
.fb-step-watermark {
  position: absolute;
  top: -10px;
  right: -5px;
  font-family: var(--fb-font-serif);
  font-size: 100px;
  font-weight: bold;
  color: #F0EDE8;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.fb-step-card h3 {
  position: relative;
}

.fb-step-num {
  display: inline-block;
  background: var(--fb-heading);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 13px;
  font-family: sans-serif;
  margin-right: 10px;
  flex-shrink: 0;
}

/* --- Tips Box --- */
.fb-tips-box {
  background: var(--fb-smoke-bg);
  border: 1px solid var(--fb-smoke-light);
  border-radius: var(--fb-radius);
  padding: var(--fb-card-pad);
  margin: 36px 0;
}

.fb-tips-box h2 {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  color: var(--fb-smoke);
  margin: 0 0 16px;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

.fb-tips-box p {
  padding: 6px 0 6px 22px;
  color: var(--fb-text);
  font-size: 15px;
  position: relative;
  margin: 0;
}

/* --- Variations Box --- */
.fb-variations-box {
  background: linear-gradient(135deg, #F5EDE4 0%, var(--fb-cream) 100%);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: var(--fb-card-pad);
  margin: 36px 0;
}

.fb-variations-box h2 {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  color: var(--fb-rust-dark);
  margin: 0 0 16px;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

.fb-variations-box h3 {
  font-family: var(--fb-font-serif);
  font-size: 17px;
  color: var(--fb-heading);
  margin: 0 0 10px;
}

.fb-variations-box p {
  margin-bottom: 12px;
  position: relative;
}

/* --- Storage --- */
.fb-storage h3 {
  font-family: var(--fb-font-serif);
  font-size: 24px;
  color: var(--fb-heading);
  margin: 0 0 16px;
  border: none;
  display: block;
  padding: 0;
}

/* --- Links Box --- */
.fb-links-box {
  background: #fff;
  border: 2px solid var(--fb-navy);
  border-radius: var(--fb-radius);
  padding: var(--fb-card-pad);
  margin: 36px 0;
  text-align: center;
}

.fb-links-box h3 {
  font-family: var(--fb-font-serif);
  font-size: 24px;
  color: var(--fb-heading);
  margin: 0 0 16px;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
}

.fb-links-box a {
  text-decoration: underline;
}

/* --- Quick Info Bar --- */
.fb-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
}

.fb-quick-info-item {
  background: var(--fb-cream);
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  flex: 1 1 130px;
  min-width: 100px;
}

.fb-qi-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
}

.fb-qi-value {
  font-family: var(--fb-font-serif);
  font-size: 16px;
  color: var(--fb-heading);
  font-weight: bold;
}


/* ==========================================================================
   HUB PAGE CARDS
   ========================================================================== */

.fb-hub-hcard {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.fb-hub-hcard:hover {
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.1);
}

.fb-hub-hcard:nth-child(even) {
  flex-direction: row-reverse;
}

.fb-hub-hcard-img {
  flex: 0 0 40%;
  max-width: 40%;
  overflow: hidden;
}

.fb-hub-hcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-hub-hcard-body {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fb-hub-hcard-body h3 {
  font-family: var(--fb-font-serif);
  font-size: 20px;
  color: var(--fb-heading);
  margin: 0 0 8px;
}

.fb-hub-hcard-body p {
  font-size: 14px;
  color: var(--fb-text);
  margin: 0 0 12px;
  line-height: 1.6;
}

.fb-hub-hcard-body .fb-btn {
  display: inline-block;
  background: var(--fb-rust);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center;
  transition: background 0.2s ease;
}

.fb-hub-hcard-body .fb-btn:hover {
  background: var(--fb-rust-dark);
  text-decoration: none;
}

/* Hub card — meta bar */
.fb-hub-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fb-hub-card-meta span {
  font-size: 13px;
  color: #999;
}

/* Hub card — View Recipe link */
.fb-hub-hcard-btn {
  display: inline-block;
  color: var(--fb-rust) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  letter-spacing: 0.5px;
}

.fb-hub-hcard-btn:hover {
  text-decoration: underline !important;
}

.fb-hub-hcard-noimg {
  border-left: 4px solid var(--fb-navy);
}

.fb-hub-hcard-noimg .fb-hub-hcard-body {
  padding: 20px 24px;
}

.fb-hub-hcard-noimg h3 {
  color: var(--fb-rust);
}


/* ==========================================================================
   SIDEBAR — BIO WIDGET
   ========================================================================== */

.fb-bio-widget {
  background: #fff;
  border: 1px solid var(--fb-border);
  border-top: 4px solid var(--fb-navy);
  border-radius: var(--fb-radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.fb-bio-widget img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--fb-border);
  margin-bottom: 1rem;
}

.fb-bio-widget h4 {
  font-family: var(--fb-font-serif);
  color: var(--fb-navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fb-bio-widget p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6B6B6B;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.fb-btn,
.et_pb_button {
  background-color: var(--fb-rust) !important;
  color: #fff !important;
  border: 2px solid var(--fb-rust) !important;
  border-radius: 6px !important;
  font-family: var(--fb-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.7rem 1.8rem !important;
  transition: all 0.25s ease;
}

.fb-btn:hover,
.et_pb_button:hover {
  background-color: var(--fb-rust-dark) !important;
  border-color: var(--fb-rust-dark) !important;
  color: #fff !important;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

#main-footer {
  background-color: var(--fb-charcoal) !important;
}

#footer-info,
#footer-bottom {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

#footer-bottom a {
  color: var(--fb-rust-light);
}

.footer-widget h4 {
  color: #fff !important;
  font-family: var(--fb-font-serif);
}

.footer-widget,
.footer-widget li,
.footer-widget p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-widget a {
  color: var(--fb-rust-light) !important;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .fb-recipe {
    padding: 0 10px;
  }

  .fb-dropcap {
    font-size: 48px;
  }

  .fb-step-watermark {
    font-size: 72px;
  }

  .fb-intro {
    font-size: 17px;
    padding-left: 18px;
  }

  .fb-ingr-card,
  .fb-step-card,
  .fb-tips-box,
  .fb-variations-box {
    padding: 18px 20px;
  }

  .fb-recipe h2 {
    font-size: 22px;
  }

  .fb-hub-hcard,
  .fb-hub-hcard:nth-child(even) {
    flex-direction: column;
  }

  .fb-hub-hcard-img {
    flex: none;
    max-width: 100%;
  }

  .fb-hub-hcard-img img {
    aspect-ratio: 16 / 9;
  }

  .fb-hub-hcard-body {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .fb-dropcap {
    font-size: 40px;
  }

  .fb-step-num {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 11px;
  }

  .fb-hub-hcard-body h3 {
    font-size: 17px;
  }

  .fb-hub-hcard-body p {
    font-size: 14px;
  }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .fb-links-box,
  .fb-tips-box,
  .fb-variations-box,
  .fb-hub-hcard,
  #main-header,
  #main-footer,
  .et_pb_sidebar {
    display: none !important;
  }

  .fb-recipe {
    max-width: 100%;
  }

  .fb-step-card,
  .fb-ingr-card,
  .fb-faq-card,
  .fb-storage {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}


/* ==========================================================================
   PINTEREST-STYLE MASONRY FEED — HOMEPAGE & CATEGORY
   ========================================================================== */

/* --- Filter Bar --- */
.fb-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem 1.5rem;
  flex-wrap: wrap;
  background: var(--fb-cream);
  border-bottom: 1px solid var(--fb-border);
}

.fb-filter-btn {
  background: #fff;
  border: 1px solid var(--fb-border);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  font-family: var(--fb-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fb-text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fb-filter-btn:hover {
  background: var(--fb-heading);
  color: #fff;
  border-color: var(--fb-navy);
}

.fb-filter-btn.active {
  background: var(--fb-rust);
  color: #fff;
  border-color: var(--fb-rust);
}

/* --- Masonry Grid --- */
.fb-feed {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  columns: 4;
  column-gap: 1.2rem;
}

/* --- Pin Card --- */
.fb-pin {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
}

.fb-pin:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.15);
}

.fb-pin a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Image */
.fb-pin-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.fb-pin-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* No-image placeholder — padding trick for masonry compatibility */
.fb-pin-placeholder {
  width: 100% !important;
  padding-top: 150% !important; /* 2:3 ratio */
  position: relative !important;
  background: linear-gradient(135deg, #5C4033 0%, #7A5C48 100%) !important;
}

.fb-pin-placeholder::after {
  content: '🍽';
  font-size: 3rem;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fb-pin:hover .fb-pin-img img {
  transform: scale(1.05);
}

/* Hover Overlay */
.fb-pin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fb-pin:hover .fb-pin-overlay {
  opacity: 1;
}

.fb-pin-category {
  display: inline-block;
  background: var(--fb-rust);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  align-self: center;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease 0.05s;
}

.fb-pin:hover .fb-pin-category {
  transform: translateY(0);
  opacity: 1;
}

.fb-pin-title {
  font-family: var(--fb-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease 0.1s;
}

.fb-pin:hover .fb-pin-title {
  transform: translateY(0);
  opacity: 1;
}

/* No-image pins — show title + category without hover */
.fb-pin-placeholder ~ .fb-pin-overlay {
  opacity: 1;
  background: transparent;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

.fb-pin-placeholder ~ .fb-pin-overlay .fb-pin-category {
  opacity: 1;
  transform: translateY(0);
}

.fb-pin-placeholder ~ .fb-pin-overlay .fb-pin-title {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fb-pin-placeholder ~ .fb-pin-overlay .fb-pin-excerpt {
  display: none;
}

.fb-pin:hover .fb-pin-placeholder ~ .fb-pin-overlay {
  background: rgba(27, 42, 74, 0.5);
}

.fb-pin:hover .fb-pin-placeholder ~ .fb-pin-overlay .fb-pin-excerpt {
  display: block;
}


/* Load more */
.fb-load-more {
  text-align: center !important;
  padding: 3rem 0 4rem !important;
  display: block !important;
  width: 100%;
  clear: both;
}

.fb-load-more button,
.fb-load-more #fb-load-more-btn {
  margin: 0 auto !important;
  display: block !important;
}

.fb-load-more button {
  background: var(--fb-heading);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2.5rem;
  font-family: var(--fb-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.2);
}

.fb-load-more button:hover {
  background: var(--fb-rust-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.3);
}

/* Stagger animation */
@keyframes pinFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-pin {
  animation: pinFadeIn 0.5s ease forwards;
}

/* Mobile: always show overlay (no hover on touch) */
@media (hover: none) {
  .fb-pin-overlay {
    opacity: 1;
    background: rgba(27, 42, 74, 0.7);
  }
  .fb-pin-category,
  .fb-pin-title,
  
}

/* Feed responsive */
@media (max-width: 1200px) {
  .fb-feed { columns: 3; }
}

@media (max-width: 900px) {
  .fb-feed { columns: 2; column-gap: 1rem; padding: 1rem; }
  .fb-pin-title { font-size: 1rem; }
}

@media (max-width: 600px) {
  .fb-feed { columns: 2; column-gap: 0.7rem; padding: 0.7rem; }
  .fb-pin { border-radius: 12px; margin-bottom: 0.7rem; }
  .fb-pin-overlay { padding: 1rem; }
  .fb-pin-title { font-size: 0.85rem; }
  .fb-pin-category { font-size: 0.55rem; }
  
  .fb-filter-bar { padding: 1rem 0.5rem; gap: 0.4rem; }
  .fb-filter-btn { padding: 0.35rem 0.9rem; font-size: 0.72rem; }
}

/* --- Pin Excerpt (inside overlay) --- */
.fb-pin-excerpt {
  font-family: var(--fb-font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-top: 0.4rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-pin:hover .fb-pin-excerpt {
  transform: translateY(0);
  opacity: 1;
}

@media (hover: none) {
  .fb-pin-excerpt {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .fb-pin-excerpt {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    -webkit-line-clamp: 2;
  }
}


/* ==========================================================================
   PAGE STYLES — About, Contact, Legal
   ========================================================================== */

.fb-page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.fb-page-content {
  font-family: var(--fb-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fb-text);
}

.fb-page-content h2 {
  font-family: var(--fb-font-serif);
  color: var(--fb-heading);
  font-size: 1.6rem;
  margin: 2rem 0 0.8rem;
}

.fb-page-content p {
  margin-bottom: 1rem;
}

/* About — author image */
.fb-about-img {
  text-align: center;
  margin: 0 0 2rem;
}

.fb-about-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--fb-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact — form */
.fb-contact-form {
  max-width: 560px;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--fb-cream);
  border: 1px solid var(--fb-border);
  border-radius: 12px;
}

.fb-contact-field {
  margin-bottom: 1.2rem;
}

.fb-contact-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--fb-heading);
  margin-bottom: 4px;
}

.fb-contact-field input,
.fb-contact-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--fb-border);
  border-radius: 8px;
  font-family: var(--fb-font-body);
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.fb-contact-field input:focus,
.fb-contact-field textarea:focus {
  border-color: var(--fb-rust);
  outline: none;
}

.fb-contact-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--fb-rust);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--fb-font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.fb-contact-submit:hover {
  background: var(--fb-rust-dark);
}

.fb-contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Legal pages */
.fb-legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: var(--fb-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fb-text);
}

.fb-legal-wrap h2 {
  font-family: var(--fb-font-serif);
  color: var(--fb-heading);
  font-size: 1.5rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--fb-border);
}

.fb-legal-wrap h3 {
  color: var(--fb-heading);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.fb-legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14px;
}

.fb-legal-wrap th {
  background: var(--fb-charcoal);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.fb-legal-wrap td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--fb-border);
}

.fb-legal-wrap tr:nth-child(even) td {
  background: var(--fb-cream);
}

.fb-legal-wrap ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.fb-legal-wrap li {
  margin-bottom: 0.4rem;
}

.fb-legal-wrap .highlight-box {
  background: var(--fb-smoke-bg);
  border-left: 4px solid var(--fb-smoke);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 15px;
}

.fb-legal-wrap .btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--fb-rust);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
}

.fb-legal-wrap .btn:hover {
  background: var(--fb-rust-dark);
}

.fb-legal-wrap a {
  color: var(--fb-rust);
  text-decoration: underline;
}

.fb-legal-wrap a:hover {
  color: var(--fb-rust-dark);
}


/* Contact form — success message */
.fb-contact-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.fb-contact-success h3 {
  font-family: var(--fb-font-serif);
  color: var(--fb-smoke);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.fb-contact-success p {
  color: var(--fb-text);
  font-size: 16px;
}


/* ==========================================================================
   COMPLIANZ COOKIE BANNER — themed to fb- brand
   All rules use !important to override Complianz defaults
   ========================================================================== */

/* Container */
.cmplz-cookiebanner {
  font-family: var(--fb-font-body) !important;
  background: var(--fb-charcoal) !important;
  color: #fff !important;
  border-top: 3px solid var(--fb-rust-light) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
}

/* Logo */
.cmplz-cookiebanner .cmplz-logo {
  max-height: 40px !important;
}

/* Title */
.cmplz-cookiebanner .cmplz-title {
  font-family: var(--fb-font-serif) !important;
  color: #fff !important;
  font-size: 1.1rem !important;
}

/* Close icon */
.cmplz-cookiebanner .cmplz-close {
  color: rgba(255,255,255,0.6) !important;
}

.cmplz-cookiebanner .cmplz-close:hover {
  color: #fff !important;
}

/* Message */
.cmplz-cookiebanner .cmplz-message {
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* All buttons */
.cmplz-buttons .cmplz-btn {
  font-family: var(--fb-font-body) !important;
  border-radius: 6px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}

/* Accept button */
.cmplz-btn.cmplz-accept {
  background: var(--fb-rust) !important;
  color: #fff !important;
  border: none !important;
}

.cmplz-btn.cmplz-accept:hover {
  background: var(--fb-rust-dark) !important;
}

/* Deny button */
.cmplz-btn.cmplz-deny {
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.cmplz-btn.cmplz-deny:hover {
  border-color: #fff !important;
  color: #fff !important;
}

/* Save preferences button */
.cmplz-btn.cmplz-save-preferences {
  background: #5C4033 !important;
  color: #fff !important;
  border: none !important;
}

.cmplz-btn.cmplz-save-preferences:hover {
  background: var(--fb-rust) !important;
}

/* View preferences button */
.cmplz-btn.cmplz-view-preferences {
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

.cmplz-btn.cmplz-view-preferences:hover {
  border-color: #fff !important;
  color: #fff !important;
}

/* Document hyperlinks */
.cmplz-links .cmplz-documents {
  color: var(--fb-rust-light) !important;
  text-decoration: underline !important;
}

.cmplz-links .cmplz-documents:hover {
  color: #fff !important;
}

/* Categories */
.cmplz-cookiebanner .cmplz-category {
  border-color: rgba(255,255,255,0.15) !important;
}

.cmplz-cookiebanner .cmplz-category-title {
  color: #fff !important;
  font-family: var(--fb-font-body) !important;
  font-weight: 600 !important;
}

/* Category toggles */
.cmplz-cookiebanner input:checked + .cmplz-slider {
  background: var(--fb-rust) !important;
}

/* Manage consent tab */
#cmplz-manage-consent .cmplz-manage-consent {
  color: var(--fb-text) !important;
  font-size: 13px !important;
  font-family: var(--fb-font-body) !important;
}

#cmplz-manage-consent .cmplz-manage-consent:hover {
  color: var(--fb-rust) !important;
}

/* Soft cookie wall */
.cmplz-soft-cookiewall {
  background: rgba(0,0,0,0.7) !important;
}

/* Placeholder button - Per category */
.cmplz-blocked-content-container .cmplz-blocked-content-notice {
  font-family: var(--fb-font-body) !important;
  background: var(--fb-cream) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: 8px !important;
  color: var(--fb-text) !important;
}

/* Per service accept button */
button.cmplz-accept-service {
  background: var(--fb-rust) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--fb-font-body) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}

button.cmplz-accept-service:hover {
  background: var(--fb-rust-dark) !important;
}

/* AMP notice */
#cmplz-consent-ui,
#cmplz-post-consent-ui {
  font-family: var(--fb-font-body) !important;
  background: var(--fb-charcoal) !important;
  color: #fff !important;
}

#cmplz-consent-ui .cmplz-consent-message {
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px !important;
}

#cmplz-consent-ui button,
#cmplz-post-consent-ui button {
  background: var(--fb-rust) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

#cmplz-consent-ui button:hover,
#cmplz-post-consent-ui button:hover {
  background: var(--fb-rust-dark) !important;
}


/* About — avatar placeholder (initials) */
.fb-avatar-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--fb-charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb-font-serif);
  font-size: 72px;
  font-weight: 700;
  margin: 0 auto;
  border: 4px solid var(--fb-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
