/**
 * SEB Theme — Base Styles
 * ------------------------
 * Minimal, scoped element defaults. Deliberately avoids universal (`*`)
 * selectors that force layout properties (max-width/padding/margin/
 * font-size) onto every element, so Elementor-built content is not
 * overridden. See variables.css for all token values referenced here.
 */

/* Box-sizing: scoped via inheritance, not a `*` override of layout. */
html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background-color: var(--seb-white);
	color: var(--seb-dark);
	font-family: var(--seb-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

p {
	margin: 0 0 var(--seb-space-md);
	color: var(--seb-text);
}

img,
embed,
iframe,
object,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

/* Responsive table overflow wrapper for content */
table {
	max-width: 100%;
	width: 100%;
	border-collapse: collapse;
}

.entry-content table,
.seb-page-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

button,
input,
textarea,
select {
	font-family: inherit;
	font-size: 1rem;
	color: var(--seb-dark);
}

/* ---------------------------------------------------------------------
   Link system
   --------------------------------------------------------------------- */
a {
	color: var(--seb-primary-light);
	text-decoration: none;
	transition: color var(--seb-transition);
}

a:hover {
	color: var(--seb-primary);
}

/* CTA-style inline links can opt in with this class */
.seb-link-cta {
	color: var(--seb-accent);
}

.seb-link-cta:hover {
	color: var(--seb-accent-dark);
}

/* ---------------------------------------------------------------------
   Focus system — keep native accessibility, just style it clearly
   --------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--seb-focus-ring-color);
	outline-offset: 2px;
	box-shadow: var(--seb-focus-ring);
}

/* ---------------------------------------------------------------------
   Container system
   --------------------------------------------------------------------- */
.seb-container,
.seb-container-wide,
.seb-container-narrow {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--seb-container-padding);
	box-sizing: border-box;
}

.seb-container {
	max-width: var(--seb-container-width);
}

.seb-container-wide {
	max-width: var(--seb-container-width-wide);
}

.seb-container-narrow {
	max-width: 860px;
}

/* ---------------------------------------------------------------------
   Form system (base level only — no advanced form components)
   --------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea,
select {
	display: block;
	width: 100%;
	background-color: var(--seb-white);
	border: 1px solid var(--seb-border);
	border-radius: var(--seb-radius-sm);
	padding: var(--seb-space-sm) var(--seb-space-md);
	transition: border-color var(--seb-transition), box-shadow var(--seb-transition);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--seb-primary-light);
	box-shadow: var(--seb-focus-ring);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
