/*
Theme Name: Steve Base
Theme URI: https://rifedigital.com
Author: Steve
Author URI: https://rifedigital.com
Description: A clean, minimal, and secure WordPress base theme for Steve projects.
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steve-base
Tags: e-commerce, custom-colors, custom-menu
*/

/* ==========================================================================
   DESIGN SYSTEM - CSS VARIABLES (TOKENS)
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0F172A; /* Slate 900 - Dark Professional Blue */
    --color-secondary: #468f3f; /* Light Blue */
    --color-accent: #468f3f; /* Sky Blue - CTA */
    
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    --color-text-main: #334155;
    --color-text-muted: #64748B;
    --color-text-light: #F8FAFC;
    
    --color-bg-body: #F8FAFC; /* Slate 50 */
    --color-bg-card: #FFFFFF;
    --color-border: #E2E8F0;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Barlow', 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-xxl: 3rem;    /* 48px */
    --spacing-section: 5rem; /* 80px */

    /* Layout */
    --container-width: 1280px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --box-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1440px) {
    :root {
        --container-width: 1320px;
    }
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

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

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    border-radius: 50px; /* Pill shape for premium feel */
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-success, #58ad51) 0%, #43923c 100%);
    color: var(--color-text-light, #ffffff);
    box-shadow: 0 4px 14px rgba(88, 173, 81, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #468f3f 0%, #377631 100%);
    color: var(--color-text-light, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(88, 173, 81, 0.45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #377631 100%);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #0284C7 0%, #377631 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.4);
}

/* Cards */
.card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2); /* secondary color with opacity */
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES (GLOBAL)
   ========================================================================== */
.woocommerce .button,
.woocommerce-page .button {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #377631 100%) !important;
    color: var(--color-text-light) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.woocommerce-page .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4) !important;
}

/* Logo Styling */
.site-branding .custom-logo {
    height: 72px;
    max-height: 75px;
    max-width: 260px;
    width: auto;
    display: block;
    object-fit: contain;
}

:root {
    --brand-green: #58ad51;
    --brand-green-hover: #468f3f;
    --brand-green-light: #eaf6ea;
    --brand-navy: #415161;
    --brand-dark: #1e293b;
    --brand-title: #334155;
    --brand-muted: #64748b;
    --brand-light: #f8fafc;
    --brand-border: #e2e8f0;
    --brand-card-bg: #ffffff;
    --brand-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --brand-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* === RETYNE COLOR OVERRIDES === */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #4b7f52;
    --color-accent: #d4af37;
}

/* Footer green background */
.footer-top {
    background-color: #4b7f52 !important;
}

/* Back-to-top button */
.progress-ring-circle-bg { stroke: rgba(75, 127, 82, 0.2) !important; }
.progress-ring-circle { stroke: #4b7f52 !important; }

/* Submenu styling - opens to right */
.main-navigation ul li { position: relative; }
.main-navigation ul ul {
    position: absolute; top: 100%; left: 0; z-index: 99999;
    display: none; background: #fff; min-width: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 3px solid #4b7f52;
}
.main-navigation ul li:hover > ul { display: block; }
.main-navigation ul ul ul { top: 0; left: 100%; border-top: none; border-left: 3px solid #4b7f52; }
.main-navigation ul ul li a {
    padding: 10px 20px; display: block; color: #333;
    border-bottom: 1px solid #eee; font-size: 0.9rem;
}
.main-navigation ul ul li a:hover { background: #f0fdf4; color: #4b7f52; }

/* Post/Page image cleanup */
.entry-content img {
    max-width: 100%; height: auto;
    border-radius: 8px; margin: 15px 0;
}
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin-right: 20px; }
.entry-content .alignright { float: right; margin-left: 20px; }

/* Single post content */
.entry-content { max-width: 100%; margin: 0 auto; padding: 0; line-height: 1.8; box-sizing: border-box; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: #4b7f52; margin-top: 30px; }
.entry-content p { margin-bottom: 15px; }
.entry-content ul, .entry-content ol { padding-left: 25px; margin-bottom: 15px; }

/* Conditions module styling */
.retyne-conditions-module {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 50px 20px; margin: 40px 0; border-radius: 12px;
}
.rcm-container { max-width: 1100px; margin: 0 auto; text-align: center; }
.rcm-title { color: #4b7f52; font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.rcm-subtitle { color: #555; font-size: 1rem; margin-bottom: 35px; }
.rcm-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; margin-bottom: 35px;
}
.rcm-card {
    background: #fff; padding: 25px; border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04); border-top: 4px solid #4b7f52;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rcm-card:hover { transform: translateY(-4px); box-shadow: 0 15px 25px rgba(0,0,0,0.08); }
.rcm-icon { font-size: 2.2rem; color: #4b7f52; margin-bottom: 18px; }
.rcm-card h3 { color: #1f2937; font-size: 1.2rem; margin-bottom: 12px; }
.rcm-card p { color: #6b7280; font-size: 0.95rem; line-height: 1.5; }
.btn-primary-retyne {
    display: inline-block; background: #d4af37; color: #fff;
    padding: 12px 30px; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: background 0.3s;
}
.btn-primary-retyne:hover { background: #b8962e; color: #fff; }