/*
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);
}
