/*
Theme Name: CBD Oils
Description: Professional WordPress theme for CBD oils e-commerce with performance optimization and schema markup.
Author: CBD Oils Team
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cbdoils
*/

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base typography scale */
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography Scale (from .prompt.md) */
h1 {
    font-size: 2rem; /* 32px */
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

h4, h5, h6 {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
}

/* 8px Spacing Grid System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; /* 2 * 8px */
}

/* Spacing utilities using 8px grid */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Links */
a {
    color: #2c5530;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #1a3d1f;
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c5530;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    background-color: #1a3d1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    color: white;
    outline: none;
}

.btn:active {
    transform: translateY(0);
}

/* Layout Components */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-footer {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 64px;
    border-top: 1px solid #e9ecef;
}

.main-content {
    min-height: 60vh;
    padding: 32px 0;
}

/* Performance: Critical CSS only - Additional styles loaded via functions.php */

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 6px;
    z-index: 999999;
    text-decoration: underline;
}

.skip-link:focus {
    left: 6px;
} 