/* ==========================================================================
   Overhead Glazing — base layer
   1. Design tokens (linked to Elementor Site Settings > Global Colors / Fonts)
   2. Reset (same as the approved design; zero specificity via :where)
   3. Elementor normalisation (containers and widgets add no extra spacing)
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------
   Change a colour in Elementor > Site Settings > Global Colors and it updates
   everywhere these variables are used. Hex values are fallbacks only. */
body.og {
	--navy: var(--e-global-color-primary, #212b37);
	--ink: var(--e-global-color-primary, #212b37);
	--orange: var(--e-global-color-secondary, #ff6239);
	--muted: var(--e-global-color-text, #55606b);
	--orange-deep: var(--e-global-color-accent, #a5321a);
	--deep: var(--e-global-color-deep, #18212c);
	--yellow: var(--e-global-color-yellow, #ffca28);
	--cream: var(--e-global-color-cream, #faf9f7);
	--mist: var(--e-global-color-cream, #faf9f7);
	--paper: var(--e-global-color-cream, #faf9f7);
	--peach: var(--e-global-color-peach, #fff8df);
	--line: var(--e-global-color-line, #d7e0e5);
	--white: var(--e-global-color-white, #ffffff);

	--font-site: var(--e-global-typography-text-font-family, Arial), Arial, sans-serif;
	--font-site-head: var(--e-global-typography-primary-font-family, Arial), Arial, sans-serif;
	--font-product: var(--e-global-typography-accent-font-family, "Geist"), Arial, sans-serif;
	--font-product-head: var(--e-global-typography-secondary-font-family, "Host Grotesk"), Arial, sans-serif;

	--radius-sm: 14px;
	--radius-md: 22px;
	--radius-lg: 34px;
	--shadow-soft: 0 18px 48px #212b3717;
	--detail-navy: #212b370d;
	--detail-navy-soft: #212b3707;
	--detail-white: #ffffff13;
	--detail-orange: #ff62397a;

	/* Content width used by every section (1176px at 1440px viewport). */
	--og-content: 1176px;

	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font-site);
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}
@media (min-width: 1101px) {
	body.og { font-size: 17px; line-height: 1.65; }
}
@media (max-width: 560px) {
	body.og { --radius-md: 18px; --radius-lg: 24px; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.og *, .og ::before, .og ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 2. Reset (zero specificity, like the design) ----------------------------- */
:where(.og) :where(*, ::before, ::after) { box-sizing: border-box; }
:where(.og .elementor) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
:where(.og .elementor) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: 600; line-height: inherit; color: inherit; font-family: inherit; }
:where(.og .elementor) :where(ul, ol) { list-style: none; }
:where(.og) :where(a) { color: inherit; text-decoration: none; }
:where(.og) :where(a:hover, a:active) { color: inherit; }
:where(.og) :where(b, strong) { font-weight: bolder; }
:where(.og) :where(img, svg, video) { vertical-align: middle; display: block; }
:where(.og) :where(img, video) { max-width: 100%; height: auto; }
:where(.og) :where(button, input, select, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
:where(.og .elementor) :where(button) { background: transparent; border: 0; border-radius: 0; padding: 0; cursor: pointer; }

/* 3. Elementor normalisation ---------------------------------------------- */
/* Containers: no default padding/gap; sections set their own. */
body.og .e-con { --width: auto; --flex-wrap: nowrap; --flex-wrap-mobile: nowrap; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
body.og .elementor-element { --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; }
/* Headings/text inherit the design type unless a section sets it. */
body.og .elementor-heading-title { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
body.og .elementor-widget-text-editor { color: inherit; font-family: inherit; }
body.og .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Images: let section CSS control size/shape. */
body.og .elementor img { border-radius: 0; box-shadow: none; }
/* Buttons: neutral; each section styles its own. */
body.og .elementor-button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
body.og .elementor-button .elementor-button-content-wrapper { display: inline-flex; align-items: center; gap: inherit; }
body.og .elementor-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Shared helpers ---------------------------------------------------------- */
body.og .og-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.og main, .og .site-main { overflow: hidden; }

/* <main id="content"> wrapper (functions.php): a plain block, so the "main { overflow: hidden }" rule
   above does not clip it or break sticky elements inside the page. */
body.og main.og-main { display: block; overflow: visible; }
/* In-page link targets on widgets (site.js scrolls to the element inside the wrapper): clear the fixed header. */
body.og .elementor-widget[id] > * { scroll-margin-top: 100px; }
