weedops-theme/style.css
Alex 8eddfee34b Initial commit: Weedops WordPress theme
Includes front-page, strain archive/single templates, header/footer,
functions.php with custom post types, and base styles.
2026-03-23 22:54:38 +00:00

393 lines
11 KiB
CSS

/*
Theme Name: Weedops
Theme URI: https://weedops.site
Author: Weedops Dev Team
Author URI: https://weedops.site
Description: Cannabis industry product management and compliance platform theme. Built for dispensaries, growers, and cannabis brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://weedops.site/license
Text Domain: weedops
Tags: cannabis, dispensary, woocommerce, compliance, inventory
*/
/* ============================================================
WEEDOPS THEME — Cannabis Industry Platform
Brand: Deep green (#1a3d2b), Gold (#c8a951), Off-white (#f5f0e8)
============================================================ */
:root {
--wo-green-dark: #1a3d2b;
--wo-green-mid: #2e6b47;
--wo-green-light: #4a9e68;
--wo-gold: #c8a951;
--wo-gold-light: #e2c97a;
--wo-cream: #f5f0e8;
--wo-white: #ffffff;
--wo-text-dark: #1c1c1c;
--wo-text-muted: #666666;
--wo-border: #d4cfc6;
--wo-error: #c0392b;
--wo-success: #27ae60;
--wo-font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
--wo-font-serif: 'Georgia', 'Times New Roman', serif;
--wo-font-mono: 'JetBrains Mono', 'Courier New', monospace;
--wo-radius: 6px;
--wo-radius-lg: 12px;
--wo-shadow: 0 2px 8px rgba(0,0,0,0.12);
--wo-shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
--wo-transition: 0.2s ease;
}
/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
font-family: var(--wo-font-sans);
color: var(--wo-text-dark);
background-color: var(--wo-cream);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.25;
color: var(--wo-green-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
a { color: var(--wo-green-mid); text-decoration: none; transition: color var(--wo-transition); }
a:hover { color: var(--wo-gold); }
/* ── Layout ───────────────────────────────────────────────── */
.wo-container {
width: 100%;
max-width: 1280px;
margin: 0 auto;
padding: 0 1.5rem;
}
.wo-main {
min-height: calc(100vh - 80px - 160px);
padding: 2.5rem 0;
}
.wo-grid {
display: grid;
gap: 1.5rem;
}
.wo-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wo-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* ── Header ───────────────────────────────────────────────── */
.wo-header {
background-color: var(--wo-green-dark);
border-bottom: 3px solid var(--wo-gold);
position: sticky;
top: 0;
z-index: 100;
box-shadow: var(--wo-shadow);
}
.wo-header__inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 70px;
}
.wo-logo {
display: flex;
align-items: center;
gap: 0.6rem;
color: var(--wo-white);
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.02em;
}
.wo-logo span { color: var(--wo-gold); }
.wo-logo:hover { color: var(--wo-gold-light); }
/* ── Navigation ───────────────────────────────────────────── */
.wo-nav ul {
display: flex;
align-items: center;
gap: 0.25rem;
list-style: none;
}
.wo-nav a {
color: rgba(255,255,255,0.85);
padding: 0.5rem 0.9rem;
border-radius: var(--wo-radius);
font-size: 0.9rem;
font-weight: 500;
transition: background var(--wo-transition), color var(--wo-transition);
}
.wo-nav a:hover,
.wo-nav .current-menu-item > a {
background: rgba(200,169,81,0.2);
color: var(--wo-gold-light);
}
/* ── Buttons ──────────────────────────────────────────────── */
.wo-btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.6rem 1.2rem;
border-radius: var(--wo-radius);
font-size: 0.9rem;
font-weight: 600;
border: 2px solid transparent;
cursor: pointer;
transition: all var(--wo-transition);
text-decoration: none;
line-height: 1;
}
.wo-btn--primary {
background: var(--wo-gold);
color: var(--wo-green-dark);
border-color: var(--wo-gold);
}
.wo-btn--primary:hover {
background: var(--wo-gold-light);
border-color: var(--wo-gold-light);
color: var(--wo-green-dark);
}
.wo-btn--outline {
background: transparent;
color: var(--wo-green-dark);
border-color: var(--wo-green-mid);
}
.wo-btn--outline:hover {
background: var(--wo-green-dark);
color: var(--wo-white);
}
/* ── Cards ────────────────────────────────────────────────── */
.wo-card {
background: var(--wo-white);
border-radius: var(--wo-radius-lg);
border: 1px solid var(--wo-border);
padding: 1.5rem;
box-shadow: var(--wo-shadow);
transition: box-shadow var(--wo-transition), transform var(--wo-transition);
}
.wo-card:hover {
box-shadow: var(--wo-shadow-lg);
transform: translateY(-2px);
}
/* ── Strain / Product badges ──────────────────────────────── */
.wo-badge {
display: inline-flex;
align-items: center;
padding: 0.2rem 0.6rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.wo-badge--indica { background: #3d1a5e; color: #e8ccff; }
.wo-badge--sativa { background: #1a3d1a; color: #ccffcc; }
.wo-badge--hybrid { background: #3d2e1a; color: #ffe0b2; }
.wo-badge--cbd { background: #1a2e3d; color: #b3d9ff; }
/* ── Compliance tags ──────────────────────────────────────── */
.wo-compliance-tag {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.25rem 0.7rem;
border-radius: var(--wo-radius);
font-size: 0.78rem;
font-weight: 600;
border: 1px solid currentColor;
}
.wo-compliance-tag--ok { color: var(--wo-success); }
.wo-compliance-tag--warning { color: var(--wo-gold); }
.wo-compliance-tag--fail { color: var(--wo-error); }
/* ── Footer ───────────────────────────────────────────────── */
.wo-footer {
background: var(--wo-green-dark);
color: rgba(255,255,255,0.7);
padding: 2.5rem 0 1.5rem;
margin-top: auto;
}
.wo-footer__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.wo-footer__brand .wo-logo { font-size: 1.2rem; margin-bottom: 0.75rem; }
.wo-footer p { font-size: 0.85rem; line-height: 1.7; }
.wo-footer h4 {
color: var(--wo-gold);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.75rem;
}
.wo-footer ul { list-style: none; }
.wo-footer ul li { margin-bottom: 0.4rem; }
.wo-footer ul a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.wo-footer ul a:hover { color: var(--wo-gold-light); }
.wo-footer__bottom {
border-top: 1px solid rgba(255,255,255,0.12);
padding-top: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.8rem;
flex-wrap: wrap;
gap: 0.5rem;
}
/* ── Age-gate / Compliance notice ─────────────────────────── */
.wo-age-notice {
background: var(--wo-green-dark);
color: var(--wo-cream);
text-align: center;
padding: 0.5rem 1rem;
font-size: 0.8rem;
border-bottom: 1px solid var(--wo-gold);
}
/* ── Hero (Photography Style) ────────────────────────────── */
.wo-hero {
position: relative;
min-height: 85vh;
display: flex;
align-items: center;
justify-content: center;
background:
url('assets/img/hero-cannabis.jpg')
center center / cover
no-repeat;
overflow: hidden;
}
.wo-hero__overlay {
position: absolute;
inset: 0;
background: linear-gradient(
160deg,
rgba(26, 61, 43, 0.88) 0%,
rgba(26, 61, 43, 0.55) 50%,
rgba(0, 0, 0, 0.40) 100%
);
z-index: 1;
}
.wo-hero__content {
position: relative;
z-index: 2;
max-width: 720px;
padding: 3rem 2rem;
text-align: center;
}
.wo-hero__eyebrow {
display: inline-block;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.18em;
color: var(--wo-gold);
margin-bottom: 1.25rem;
padding: 0.35rem 1rem;
border: 1px solid rgba(200, 169, 81, 0.4);
border-radius: 999px;
}
.wo-hero__title {
font-size: clamp(2rem, 5vw, 3.4rem);
font-weight: 800;
line-height: 1.12;
color: var(--wo-white);
margin-bottom: 1.25rem;
letter-spacing: -0.02em;
}
.wo-hero__subtitle {
font-size: clamp(1rem, 2vw, 1.2rem);
color: rgba(255, 255, 255, 0.85);
line-height: 1.7;
margin-bottom: 2rem;
}
.wo-hero__actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.wo-btn--lg {
padding: 0.85rem 1.8rem;
font-size: 1rem;
}
.wo-btn--ghost {
background: transparent;
color: var(--wo-white);
border-color: rgba(255, 255, 255, 0.5);
}
.wo-btn--ghost:hover {
background: rgba(255, 255, 255, 0.12);
border-color: var(--wo-white);
color: var(--wo-white);
}
/* ── Sections ────────────────────────────────────────────── */
.wo-section { padding: 1rem 0; }
/* ── Utilities ────────────────────────────────────────────── */
.wo-text-center { text-align: center; }
.wo-text-muted { color: var(--wo-text-muted); }
.wo-mt-1 { margin-top: 0.5rem; }
.wo-mt-2 { margin-top: 1rem; }
.wo-mt-3 { margin-top: 1.5rem; }
.wo-mb-2 { margin-bottom: 1rem; }
.wo-mb-3 { margin-bottom: 1.5rem; }
.wo-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
.wo-header__inner { height: 60px; }
.wo-nav { display: none; } /* mobile nav handled by JS toggle */
.wo-footer__bottom { flex-direction: column; text-align: center; }
}