/*
Theme Name: Frits Bits (Storefront Child)
Theme URI: https://fritsbits.com
Description: Custom child theme for Frits Bits freeze-dried fruit snacks, built on Storefront. Recreates the brand's original green/leaf identity with Poppins headings and a geometric-sans body font.
Author: Frits Bits
Template: storefront
Version: 1.0.0
Text Domain: fritsbits-child
*/

/* ==========================================================================
   FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Questrial&display=swap');

:root {
  --fb-green: #3c5a3e;
  --fb-green-dark: #2b4230;
  --fb-lime: #9acb57;
  --fb-text: #1a1a1a;
  --fb-text-light: #8a8a8a;
  --fb-bg: #ffffff;
  --fb-footer-bg: #3c5a3e;
  --fb-footer-heading: #d7e5f0;
  --fb-footer-text: #f3f3f3;
  --fb-heading-font: 'Poppins', sans-serif;
  --fb-body-font: 'Century Gothic', 'Questrial', sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
body {
  font-family: var(--fb-body-font);
  color: var(--fb-text);
  background: var(--fb-bg);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.site-title, .widget-title, .storefront-product-section .section-title {
  font-family: var(--fb-heading-font);
  color: var(--fb-green);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

a {
  color: var(--fb-green);
}
a:hover {
  color: var(--fb-green-dark);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.site-branding .site-title a,
.site-branding .site-title a:hover {
  color: var(--fb-green);
  font-family: var(--fb-heading-font);
  font-weight: 800;
}

.site-header .custom-logo-link img {
  max-width: 220px;
  height: auto;
}

.main-navigation ul li a {
  font-family: var(--fb-heading-font);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-green);
}

.main-navigation ul li a:hover {
  color: var(--fb-lime);
}

/* Announcement-style bar (optional, added via Customizer > Additional CSS trigger class) */
.fb-announcement-bar {
  background: #ffffff;
  color: var(--fb-text);
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  font-family: var(--fb-heading-font);
  letter-spacing: 0.02em;
  border-bottom: 1px solid #eee;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button {
  background-color: var(--fb-green) !important;
  color: #ffffff !important;
  border-radius: 30px;
  font-family: var(--fb-heading-font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  transition: background-color 0.2s ease;
}

.button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--fb-green-dark) !important;
}

/* ==========================================================================
   HERO / HOMEPAGE SECTIONS
   ========================================================================== */
.fb-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: left;
}
.fb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.fb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 8%;
}
.fb-hero-content h1 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 16px;
}
.fb-hero-content p {
  font-size: 18px;
  margin-bottom: 24px;
}

.fb-section {
  padding: 70px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.fb-mission {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}
.fb-mission img {
  flex: 1 1 400px;
  max-width: 480px;
  border-radius: 12px;
}
.fb-mission-text {
  flex: 1 1 350px;
}
.fb-mission-text h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
.fb-mission-text p {
  font-size: 17px;
  color: var(--fb-text);
}

.fb-overlay-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 90px 5%;
  border-radius: 12px;
  overflow: hidden;
}
.fb-overlay-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.fb-overlay-section .fb-overlay-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.fb-overlay-section h2 {
  color: #fff;
  font-size: 30px;
}
.fb-overlay-section p {
  font-size: 17px;
}

.fb-products-heading {
  text-align: center;
  margin-bottom: 40px;
}
.fb-products-heading h2 {
  font-size: 30px;
}

/* Product cards */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fb-heading-font);
  color: var(--fb-green);
  text-transform: uppercase;
  font-size: 15px;
}
ul.products li.product .price {
  color: var(--fb-text);
  font-weight: 600;
}
ul.products li.product .price ins {
  color: var(--fb-green);
}

/* ==========================================================================
   FAQ ACCORDION (simple, no plugin needed)
   ========================================================================== */
.fb-faq-category {
  font-family: var(--fb-heading-font);
  color: var(--fb-green);
  text-transform: uppercase;
  font-size: 20px;
  margin: 40px 0 12px;
  border-bottom: 2px solid var(--fb-lime);
  padding-bottom: 8px;
}
.fb-faq-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.fb-faq-item summary {
  font-family: var(--fb-heading-font);
  font-weight: 600;
  cursor: pointer;
  color: var(--fb-text);
  font-size: 16px;
}
.fb-faq-item p {
  margin-top: 10px;
  color: var(--fb-text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#colophon.site-footer {
  background-color: var(--fb-footer-bg);
  color: var(--fb-footer-text);
}
#colophon.site-footer .widget-title {
  color: var(--fb-footer-heading);
}
#colophon.site-footer a {
  color: var(--fb-footer-text);
}
#colophon.site-footer a:hover {
  color: var(--fb-lime);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .fb-hero { min-height: 380px; }
  .fb-hero-content { margin-left: 6%; max-width: 90%; }
  .fb-hero-content h1 { font-size: 30px; }
  .fb-mission { flex-direction: column; }
}
