/* =========================================================================
   OLSEN RESTORATION — BASE / ISOLATION LAYER
   -------------------------------------------------------------------------
   Loaded first (dependency of every widget stylesheet) and re-enqueued after
   Elementor's frontend CSS at priority 999. Defines the brand color system as
   CSS custom properties and a hard reset that prevents the Hello theme /
   Elementor / any page builder from overriding plugin colors & typography.

   COLOR SYSTEM — sampled from the Olsen logo:
     • Near-black background        (#0a0a0a)
     • Brushed-steel / chrome grays (#1a1a1e → #c7c7cc → #e8e8ec)
     • Blood-red accent             (#c1272d, hi #e0353b, dark #7a1418)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS  (single source of truth — never hardcode a color)
   ---------------------------------------------------------------------- */
:root,
.olsenllc-wrapper {
	/* --- Brand: blood red --- */
	--olsenllc-red:          #c1272d;
	--olsenllc-red-bright:   #e0353b;
	--olsenllc-red-dark:     #7a1418;
	--olsenllc-red-glow:     rgba(193, 39, 45, 0.45);

	/* --- Brand: chrome / steel --- */
	--olsenllc-silver:       #c7c7cc;
	--olsenllc-silver-light: #e8e8ec;
	--olsenllc-silver-dark:  #8a8a90;

	/* --- Neutrals: near-black to steel --- */
	--olsenllc-black:        #0a0a0a;
	--olsenllc-steel-900:    #121214;
	--olsenllc-steel-800:    #1a1a1e;
	--olsenllc-steel-700:    #26262b;
	--olsenllc-steel-600:    #3a3a40;

	/* --- Semantic roles --- */
	--olsenllc-bg:           var(--olsenllc-black);
	--olsenllc-surface:      var(--olsenllc-steel-800);
	--olsenllc-surface-2:    var(--olsenllc-steel-700);
	--olsenllc-primary:      var(--olsenllc-red);
	--olsenllc-primary-hover:var(--olsenllc-red-bright);
	--olsenllc-text:         var(--olsenllc-silver-light);
	--olsenllc-text-muted:   var(--olsenllc-silver-dark);
	--olsenllc-heading:      #ffffff;
	--olsenllc-border:       rgba(199, 199, 204, 0.14);
	--olsenllc-border-strong:rgba(199, 199, 204, 0.28);

	/* --- Gradients --- */
	--olsenllc-grad-steel:   linear-gradient(145deg, #2b2b31 0%, #16161a 60%, #0d0d10 100%);
	--olsenllc-grad-chrome:  linear-gradient(180deg, #f4f4f6 0%, #c7c7cc 45%, #8a8a90 55%, #e8e8ec 100%);
	--olsenllc-grad-red:     linear-gradient(135deg, var(--olsenllc-red-bright) 0%, var(--olsenllc-red-dark) 100%);

	/* --- Spacing scale (8px system) --- */
	--olsenllc-sp-1: 8px;
	--olsenllc-sp-2: 16px;
	--olsenllc-sp-3: 24px;
	--olsenllc-sp-4: 32px;
	--olsenllc-sp-5: 40px;
	--olsenllc-sp-6: 48px;
	--olsenllc-sp-8: 64px;

	/* --- Radii --- */
	--olsenllc-radius-sm: 6px;
	--olsenllc-radius:    12px;
	--olsenllc-radius-lg: 18px;

	/* --- Shadows / depth --- */
	--olsenllc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
	--olsenllc-shadow:    0 12px 32px rgba(0, 0, 0, 0.55);
	--olsenllc-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
	--olsenllc-shadow-red:0 12px 32px rgba(193, 39, 45, 0.30);

	/* --- Motion --- */
	--olsenllc-ease:    cubic-bezier(0.22, 1, 0.36, 1);
	--olsenllc-transition: 0.3s var(--olsenllc-ease);

	/* --- Typography --- */
	--olsenllc-font:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
	--olsenllc-font-head: "Oswald", "Anton", "Arial Narrow", var(--olsenllc-font);

	/* internal: wrapper bg overlay default (transparent) */
	--olsenllc-wrap-overlay: transparent;
}

/* -------------------------------------------------------------------------
   2. ISOLATION RESET
   Everything inside the wrapper inherits brand defaults & predictable box
   model. Scoped to .olsenllc-wrapper so it never touches the rest of the page.
   ---------------------------------------------------------------------- */
.olsenllc-wrapper,
.olsenllc-wrapper * ,
.olsenllc-wrapper *::before,
.olsenllc-wrapper *::after {
	box-sizing: border-box;
}

.olsenllc-wrapper {
	color: var(--olsenllc-text);
	font-family: var(--olsenllc-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	position: relative;
}

/* Inherit color by default so theme color rules don't repaint our text. */
.olsenllc-wrapper p,
.olsenllc-wrapper span,
.olsenllc-wrapper li,
.olsenllc-wrapper small,
.olsenllc-wrapper strong,
.olsenllc-wrapper em {
	color: inherit;
}

.olsenllc-wrapper h1,
.olsenllc-wrapper h2,
.olsenllc-wrapper h3,
.olsenllc-wrapper h4,
.olsenllc-wrapper h5,
.olsenllc-wrapper h6 {
	font-family: var(--olsenllc-font-head);
	color: var(--olsenllc-heading);
	margin: 0;
	line-height: 1.15;
	letter-spacing: 0.5px;
}

.olsenllc-wrapper img,
.olsenllc-wrapper svg {
	max-width: 100%;
	height: auto;
	display: block;
}

.olsenllc-wrapper a {
	color: var(--olsenllc-primary);
	text-decoration: none;
	transition: color var(--olsenllc-transition);
}
.olsenllc-wrapper a:hover {
	color: var(--olsenllc-primary-hover);
}

.olsenllc-wrapper ul,
.olsenllc-wrapper ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* -------------------------------------------------------------------------
   3. HARD OVERRIDE — beat Hello theme + Elementor inherited colors
   These high-specificity rules explicitly reclaim text/background colors that
   themes (often a pink/accent default) try to force onto nested elements.
   ---------------------------------------------------------------------- */
.elementor-page .olsenllc-wrapper,
.e-con .olsenllc-wrapper,
.e-con-inner .olsenllc-wrapper,
.elementor-widget-container .olsenllc-wrapper,
body .olsenllc-wrapper {
	color: var(--olsenllc-text) !important;
}

.elementor-page .olsenllc-wrapper h1,
.elementor-page .olsenllc-wrapper h2,
.elementor-page .olsenllc-wrapper h3,
.elementor-page .olsenllc-wrapper h4,
.elementor-page .olsenllc-wrapper h5,
.elementor-page .olsenllc-wrapper h6,
.e-con .olsenllc-wrapper h1,
.e-con .olsenllc-wrapper h2,
.e-con .olsenllc-wrapper h3,
.e-con .olsenllc-wrapper h4 {
	color: var(--olsenllc-heading) !important;
}

/* Reclaim link/button color from theme accent defaults. */
.elementor-page .olsenllc-wrapper a:not(.olsenllc-btn),
.e-con .olsenllc-wrapper a:not(.olsenllc-btn) {
	color: var(--olsenllc-primary) !important;
}

/* -------------------------------------------------------------------------
   4. SHARED COMPONENTS — buttons, eyebrows, section titles, dividers
   Reused by all widgets (BEM-style names).
   ---------------------------------------------------------------------- */

/* Eyebrow / kicker label above headings */
.olsenllc-wrapper .olsenllc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--olsenllc-sp-1);
	font-family: var(--olsenllc-font-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--olsenllc-primary);
	margin-bottom: var(--olsenllc-sp-2);
}
.olsenllc-wrapper .olsenllc-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--olsenllc-grad-red);
	display: inline-block;
}

/* Section title + subtitle */
.olsenllc-wrapper .olsenllc-section-title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: var(--olsenllc-sp-2);
}
.olsenllc-wrapper .olsenllc-section-sub {
	font-size: 17px;
	color: var(--olsenllc-text-muted);
	max-width: 720px;
	margin: 0 auto;
}

/* Buttons */
.olsenllc-wrapper .olsenllc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--olsenllc-sp-1);
	font-family: var(--olsenllc-font-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 14px 30px;
	border-radius: var(--olsenllc-radius-sm);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--olsenllc-transition);
	text-decoration: none;
	line-height: 1;
	will-change: transform;
}
.olsenllc-wrapper .olsenllc-btn--primary {
	background: var(--olsenllc-grad-red);
	color: #fff !important;
	box-shadow: var(--olsenllc-shadow-red);
}
.olsenllc-wrapper .olsenllc-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(193, 39, 45, 0.45);
	filter: brightness(1.08);
}
.olsenllc-wrapper .olsenllc-btn--ghost {
	background: transparent;
	color: var(--olsenllc-silver-light) !important;
	border-color: var(--olsenllc-border-strong);
}
.olsenllc-wrapper .olsenllc-btn--ghost:hover {
	border-color: var(--olsenllc-primary);
	color: #fff !important;
	background: rgba(193, 39, 45, 0.10);
	transform: translateY(-2px);
}

/* Generic surface card */
.olsenllc-wrapper .olsenllc-card {
	background: var(--olsenllc-grad-steel);
	border: 1px solid var(--olsenllc-border);
	border-radius: var(--olsenllc-radius);
	box-shadow: var(--olsenllc-shadow);
}

/* Focus-visible accessibility ring */
.olsenllc-wrapper a:focus-visible,
.olsenllc-wrapper button:focus-visible,
.olsenllc-wrapper .olsenllc-btn:focus-visible {
	outline: 3px solid var(--olsenllc-red-bright);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   5. MOTION — respect reduced-motion preference
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.olsenllc-wrapper *,
	.olsenllc-wrapper *::before,
	.olsenllc-wrapper *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
