Rocky_Mountain_Vending/app/globals.css
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

355 lines
10 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
--background: #fff8eb; /* Updated background to warm cream color #FFF8EB */
--foreground: oklch(0.178 0.014 275.627); /* Main text color (dark black) */
--card: oklch(1 0 0);
--card-foreground: oklch(0.178 0.014 275.627);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.178 0.014 275.627);
--primary: #29A047; /* Primary brand color (green from logo) */
--primary-foreground: oklch(0.989 0.003 106.423);
--secondary: #54595F; /* Secondary color (gray) */
--secondary-foreground: oklch(1 0 0);
--muted: oklch(0.961 0.004 106.423);
--muted-foreground: oklch(0.556 0.014 275.627);
--accent: #C4142C; /* Accent color (red - matches link hover) */
--accent-foreground: oklch(1 0 0);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.985 0 0);
--border: oklch(0.922 0.004 106.423);
--input: oklch(0.922 0.004 106.423);
--ring: #29A047; /* Primary color for focus rings */
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--radius: 0.5rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
/* Link Colors - Master Style Guide */
--link-color: var(--foreground);
--link-hover-color: #c4142c; /* Red: rgb(196, 20, 44) */
--link-hover-color-dark: #a01020; /* Darker red for gradients and hover states */
--link-hover-bg: rgba(196, 20, 44, 0.1);
--header-bg: #ffffff;
--footer-bg: #fef3e0;
--shadow: 0 2px 4px rgba(0,0,0,0.05);
/* Custom brand colors */
--yellow: #FCBA09;
--orange: #F79611;
--mountain-bubbles: #FCBA0924; /* Yellow with transparency */
/* Increased spacing variables */
--spacing-xs: 0.75rem;
--spacing-sm: 1.25rem;
}
.dark {
--background: oklch(0.145 0.01 275.627);
--foreground: oklch(0.989 0.003 106.423);
--card: oklch(0.178 0.014 275.627);
--card-foreground: oklch(0.989 0.003 106.423);
--popover: oklch(0.178 0.014 275.627);
--popover-foreground: oklch(0.989 0.003 106.423);
--primary: oklch(0.454 0.106 145.826);
--primary-foreground: oklch(0.989 0.003 106.423);
--secondary: oklch(0.269 0.014 275.627);
--secondary-foreground: oklch(0.989 0.003 106.423);
--muted: oklch(0.226 0.014 275.627);
--muted-foreground: oklch(0.708 0.01 275.627);
--accent: oklch(0.289 0.087 275.945);
--accent-foreground: oklch(0.989 0.003 106.423);
--destructive: oklch(0.396 0.141 25.723);
--destructive-foreground: oklch(0.637 0.237 25.331);
--border: oklch(0.269 0.014 275.627);
--input: oklch(0.269 0.014 275.627);
--ring: oklch(0.439 0.087 275.945);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(0.269 0 0);
--sidebar-ring: oklch(0.439 0 0);
/* Link Colors - Dark Mode */
--link-color: var(--foreground);
--link-hover-color: #ff4d6d; /* Lighter red for dark mode visibility */
--link-hover-color-dark: #ff6b8a; /* Darker red variant for dark mode gradients */
--link-hover-bg: rgba(255, 77, 109, 0.15);
}
@theme inline {
--font-sans: var(--font-inter), "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
--font-mono: var(--font-geist-mono), "Geist Mono", "Geist Mono Fallback", monospace;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
font-family: var(--font-inter), "Inter", system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html {
scroll-behavior: smooth; /* Added smooth scroll behavior for Apple-like experience */
}
/* Global Link Styling - Master Style Guide */
/* All hyperlinks should highlight in red on hover */
a {
color: var(--link-color);
text-decoration: none;
transition: color 0.2s ease, background-color 0.2s ease;
}
a:hover,
a:focus {
color: var(--link-hover-color);
background-color: var(--link-hover-bg);
}
a:active {
color: var(--link-hover-color);
}
/* Next.js Link components inherit the same styling */
a[href] {
color: var(--link-color);
transition: color 0.2s ease, background-color 0.2s ease;
}
a[href]:hover,
a[href]:focus {
color: var(--link-hover-color);
background-color: var(--link-hover-bg);
}
/* Hide Next.js dev tools portal */
nextjs-portal,
nextjs-portal * {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* WordPress content styling */
.prose strong,
article strong,
.wordpress-content strong {
font-weight: 600;
color: var(--foreground);
}
.prose em,
article em,
.wordpress-content em {
font-style: italic;
}
.prose ul,
.prose ol,
article ul,
article ol,
.wordpress-content ul,
.wordpress-content ol {
margin-top: 1rem;
margin-bottom: 1rem;
padding-left: 1.5rem;
}
.prose li,
article li,
.wordpress-content li {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
/* WordPress content wrapper styling */
.wordpress-content {
@apply text-lg leading-relaxed;
}
/* Brand hover utility class for buttons and non-link elements */
.hover-brand {
transition: color 0.2s ease;
}
.hover-brand:hover {
color: var(--link-hover-color);
}
.wordpress-content h1,
.wordpress-content h2,
.wordpress-content h3,
.wordpress-content h4,
.wordpress-content h5,
.wordpress-content h6 {
@apply font-bold mb-4 mt-8 first:mt-0;
color: var(--foreground);
}
.wordpress-content h2 {
@apply text-3xl md:text-4xl;
}
.wordpress-content h3 {
@apply text-2xl md:text-3xl;
}
.wordpress-content h4 {
@apply text-xl md:text-2xl;
}
.wordpress-content p {
@apply mb-6 text-muted-foreground leading-relaxed;
}
.wordpress-content img {
@apply rounded-lg shadow-md my-6 max-w-full h-auto;
max-width: 600px;
width: 100%;
height: auto;
}
.wordpress-content > div img,
.wordpress-content figure img {
@apply mx-auto block;
max-width: 500px;
}
.wordpress-content section {
@apply mb-12 last:mb-0;
}
.wordpress-content > div {
@apply space-y-6;
}
/* Visual Separation for Page Sections */
section {
@apply relative;
}
/* Main content wrapper for visual separation from header */
main {
@apply relative;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
background: var(--background);
}
/* Improved spacing and readability */
p {
line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
letter-spacing: -0.02em;
line-height: 1.2;
color: var(--foreground);
}
/* Footer Styling - Only apply to top-level footer, not article footers */
body > div > footer {
background: var(--footer-bg);
box-shadow: var(--shadow);
}
/* Chat Widget Styling - Ensure it doesn't interfere with header */
/* Target common chat widget containers */
[id*="chat-widget"],
[id*="leadconnector"],
[class*="chat-widget"],
[class*="lc-widget"],
iframe[src*="leadconnector"],
iframe[src*="chat-widget"] {
z-index: 30 !important;
}
/* Ensure chat widget buttons/containers are below header but above content */
body > div > [id*="chat"],
body > div > [class*="chat"] {
z-index: 30 !important;
position: fixed !important;
}
/* Hide scrollbar for horizontal scrolling galleries */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
/* Focus visible styling for keyboard navigation - Following Vercel Web Design Guidelines */
*:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 2px;
}
/* Remove default focus outline for mouse users - focus-visible handles this */
*:focus:not(:focus-visible) {
outline: none;
}
}