/*
Theme Name: Blocksy Child Theme for FEBTECH LLC
Theme URI: https://febtech.net
Description: Custom child theme for FEBTECH LLC B2B MSP website, utilizing Blocksy as parent.
Author: Francisco Nava
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Custom Global Styles & Layout Tweaks for FEBTECH LLC
   ========================================================================== */

/* 1. Brand Variables */
:root {
  --brand-blue: #1f4aa0;
  --brand-accent: #3b82f6;
  --brand-success: #10b981;
}

/* 2. Floating WhatsApp Button - Optimized for Core Web Vitals */
.febtech-wa-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.febtech-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
}

.febtech-wa-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Ensure no visual blocking on mobile viewports */
@media (max-width: 768px) {
  .febtech-wa-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  .febtech-wa-icon {
    width: 26px;
    height: 26px;
  }
}

/* 3. Case Studies Page / Archive layout styling overrides */
.post-type-archive-success-stories .entries-grid,
.tax-success-story-category .entries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .post-type-archive-success-stories .entries-grid,
  .tax-success-story-category .entries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.success-story-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.success-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: rgba(31, 74, 160, 0.2);
}

.success-story-meta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(31, 74, 160, 0.06);
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* 4. Speed & layout fixes for Gutenberg Blocksy compatibility */
.entry-content .wp-block-buttons {
  margin-top: 24px;
}
.wp-block-button__link {
  transition: all 0.2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
}
