/*
Theme Name: Simplicity Formulations - Astra Child
Theme URI: https://simplicityformulations.com
Description: Custom child theme for Simplicity Formulations brand
Author: Simplicity Team
Author URI: https://simplicityformulations.com
Template: astra
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: simplicity-astra-child
*/

/* Custom styles for Simplicity Formulations */

/* ====================
   SIMPLICITY FORMULATIONS BRAND DESIGN SYSTEM
   Swiss precision • Clean typography • Purposeful color
   ==================== */

/* CSS Variables - Brand Colors */
:root {
    /* Primary Brand Colors */
    --sf-navy: rgb(0, 41, 95);
    --sf-blue-accent: rgb(30, 103, 171);
    --sf-light-blue: rgb(81, 153, 212);
    
    /* Gray-Blue Tones */
    --sf-gray-blue: rgb(86, 112, 134);
    --sf-slate: rgb(123, 148, 167);
    
    /* Warm Accents */
    --sf-copper: rgb(201, 142, 113);
    --sf-rust: rgb(177, 92, 50);
    
    /* Gradients */
    --sf-gradient-cool: linear-gradient(135deg, rgb(208, 219, 232) 0%, rgb(116, 136, 161) 100%);
    --sf-gradient-neutral: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(184, 184, 184) 100%);
    
    /* Typography - Swiss Style */
    --sf-font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --sf-line-height: 1.6;
    --sf-letter-spacing: -0.01em;
}

/* Swiss Grid Base */
body {
    font-family: var(--sf-font-primary);
    line-height: var(--sf-line-height);
    letter-spacing: var(--sf-letter-spacing);
    color: var(--sf-navy);
}

/* Primary Navigation */
.main-header-bar,
.site-header {
    background: white;
    border-bottom: 1px solid var(--sf-slate);
}

/* Links & CTAs */
a {
    color: var(--sf-blue-accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sf-light-blue);
}

/* Buttons - Primary */
.button,
.ast-button,
.wp-block-button__link,
button[type="submit"] {
    background: var(--sf-navy);
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.button:hover,
.ast-button:hover {
    background: var(--sf-blue-accent);
    transform: translateY(-1px);
}

/* Buttons - Secondary */
.button-secondary {
    background: var(--sf-copper);
}

.button-secondary:hover {
    background: var(--sf-rust);
}

/* Headings - Swiss Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sf-font-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--sf-navy);
    line-height: 1.2;
}

/* Hero Sections */
.hero-section,
.wp-block-cover {
    background: var(--sf-gradient-cool);
}

/* Product Cards */
.woocommerce ul.products li.product,
.product-card {
    border: 1px solid var(--sf-slate);
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--sf-blue-accent);
    box-shadow: 0 8px 24px rgba(0, 41, 95, 0.12);
}

/* Footer */
.site-footer {
    background: var(--sf-navy);
    color: white;
}

.site-footer a {
    color: var(--sf-light-blue);
}

/* Utility Classes */
.bg-navy { background-color: var(--sf-navy); }
.bg-blue-accent { background-color: var(--sf-blue-accent); }
.text-navy { color: var(--sf-navy); }
.text-blue-accent { color: var(--sf-blue-accent); }

/* Mobile-First Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ====================
   TYPOGRAPHY OVERRIDES – BRAND FONTS
   ==================== */

:root {
    --sf-font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sf-font-display: 'Gillius', 'Inter', sans-serif;
}

/* Body */
body {
    font-family: var(--sf-font-primary);
}

/* Headings */
h1, h2, h3 {
    font-family: var(--sf-font-display);
    font-weight: 700;
}

h4, h5, h6 {
    font-family: var(--sf-font-primary);
    font-weight: 600;
}

/* Quotes / Emphasis */
blockquote,
.quote {
    font-family: var(--sf-font-display);
    font-style: italic;
}

/* =========================================================
   Simplicity Formulations – SVG Utility Classes + Helpers
   Folder: /wp-content/themes/astra-child/assets/svg/
   Use in Elementor: Advanced → CSS Classes
   Add TWO classes (svg + helper), separated by a space.
   Example: sf-bg-light-hex-pattern sf-svg-bg--repeat
   ========================================================= */

/* ---------- Helpers (the “second class”) ---------- */
.sf-svg-bg{
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sf-svg-bg--contain{
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.sf-svg-bg--repeat{
  background-position: center;
  background-repeat: repeat;
  background-size: auto;
}

/* For subtle repeating patterns without screaming */
.sf-svg-bg--repeat-soft{
  background-position: center;
  background-repeat: repeat;
  background-size: 260px 260px;
  opacity: 1;
}

/* Overlay helper: pattern sits on top of a section background color/image */
.sf-svg-overlay{
  position: relative;
  overflow: hidden;
}
.sf-svg-overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: repeat;
  background-size: 260px 260px;
  opacity: 0.16;            /* adjust if needed */
  pointer-events: none;
  z-index: 0;
}
.sf-svg-overlay > *{
  position: relative;
  z-index: 1;
}

/* ---------- SVG Background Classes (1 per file) ---------- */
/* Backgrounds */
.sf-bg-dark-hex-pattern{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-bg-dark-hex-pattern.svg"); }
.sf-bg-dark-outline-hex{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-bg-dark-outline-hex.svg"); }
.sf-bg-light-fade-hex{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-bg-light-fade-hex.svg"); }
.sf-bg-light-hex-pattern{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-bg-light-hex-pattern.svg"); }

/* UI / Sections */
.sf-callout-label{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-callout-label.svg"); }
.sf-card-glass{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-card-glass.svg"); }
.sf-divider{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-divider.svg"); }
.sf-divider-hex{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-divider-hex.svg"); }
.sf-feature-tile{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-feature-tile.svg"); }
.sf-header-bar{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-header-bar.svg"); }
.sf-hex-button-metallic{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-button-metallic.svg"); }

/* Patterns */
.sf-hex-pattern{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern.svg"); }
.sf-hex-pattern-dark{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-dark.svg"); }
.sf-hex-pattern-dark-overlay-v2{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-dark-overlay-v2.svg"); }
.sf-hex-pattern-light{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-light.svg"); }
.sf-hex-pattern-light-v2{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-light-v2.svg"); }

/* Plates / Strips / Cards */
.sf-hex-plate{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-plate.svg"); }
.sf-kpi-strip{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-kpi-strip.svg"); }
.sf-pricing-trio{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-pricing-trio.svg"); }
.sf-product-card{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-product-card.svg"); }
.sf-transition-light-to-dark{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-transition-light-to-dark.svg"); }

/* UI bundles */
.sf-ui-buttons{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-ui-buttons.svg"); }
.sf-ui-nav-header{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-ui-nav-header.svg"); }

/* Logos (best used with contain) */
.sf-logo-fullv{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-logo-fullv.svg"); }
.sf-logo-hex{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-logo-hex.svg"); }
.sf-logo-nohex{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-logo-nohex.svg"); }

/* ---------- Overlay presets (use these combos for patterns) ---------- */
/* Put THIS class on the section instead of the base pattern class if you want overlay behavior */
.sf-overlay-hex-light::before{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-light.svg"); }
.sf-overlay-hex-light-v2::before{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-light-v2.svg"); }
.sf-overlay-hex-dark::before{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-dark.svg"); }
.sf-overlay-hex-dark-v2::before{ background-image: url("/wp-content/themes/astra-child/assets/svg/sf-hex-pattern-dark-overlay-v2.svg"); }


/* Positional Helpers */
.sf-svg-bg--top {
  background-position: center top;
}

.sf-svg-bg--bottom {
  background-position: center bottom;
}


/* Advanced Blend Mode Helpers */
.sf-svg-bg--soft {
  background-blend-mode: multiply;
  opacity: 1;
}

.sf-svg-overlay-dark {
  background-color: rgba(0,0,0,0.18);
  background-blend-mode: multiply;
}

.sf-svg-overlay-light {
  background-color: rgba(255,255,255,0.18);
  background-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════════════════
   SF SCROLL MARKER (Hex + Line) - Fixed Floating Indicator
   Requires:
   - HTML element with id="sf-scroll-marker"
   - Child elements: .sf-marker-line and .sf-marker-hex
   - JS to update .sf-marker-hex top position on scroll
═══════════════════════════════════════════════════════════════ */

#sf-scroll-marker{
  position: fixed;
  right: 48px;
  top: 120px;
  height: calc(100vh - 180px);
  width: 90px;
  pointer-events: none;
  z-index: 9999;

  /* default (for DARK sections) */
  --sf-marker-opacity: 0.85;
  --sf-hex-opacity: 0.95;

  /* If you want a slightly stronger look (less “fainting”), bump these:
     --sf-marker-opacity: 0.95;
     --sf-hex-opacity: 1;
  */
}

/* The vertical line (SVG asset) */
#sf-scroll-marker .sf-marker-line{
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  width: 10px;

  background-image: url("/wp-content/themes/astra-child/assets/svg/sf-ui-marker-line.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  opacity: var(--sf-marker-opacity);
}

/* The moving hex (SVG asset) */
#sf-scroll-marker .sf-marker-hex{
  position: absolute;
  right: 0;
  top: 0;

  width: 56px;
  height: 56px;

  background-image: url("/wp-content/themes/astra-child/assets/svg/sf-ui-marker-hex.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  /* “alive” motion */
  animation: sfFloat 3.2s ease-in-out infinite;

  /* premium shadow */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));

  opacity: var(--sf-hex-opacity);

  /* smooth follow when JS updates top */
  transition: top 0.1s ease-out;
}

/* Gentle floating */
@keyframes sfFloat{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* LIGHT section mode toggle:
   Add class "sf-marker-on-light" to <body> when marker sits on light sections.
   (Optional, only if you implement that body class switch later.)
*/
body.sf-marker-on-light #sf-scroll-marker{
  --sf-marker-opacity: 0.55;
  --sf-hex-opacity: 0.9;
}

/* Hide on mobile */
@media (max-width: 768px){
  #sf-scroll-marker{ display: none; }
}

/* Tablet tweak (optional) */
@media (max-width: 1024px) and (orientation: landscape){
  #sf-scroll-marker{
    right: 24px;
    width: 60px;
  }
  #sf-scroll-marker .sf-marker-hex{
    width: 40px;
    height: 40px;
  }
}