/**
 * Meharvan — identity layer over the historical Divi layouts.
 * Layout, sections and content remain managed in WordPress.
 */

:root {
	--meharvan-ivory: #fbf0e9;
	--meharvan-terracotta: #a45e46;
	--meharvan-brown: #30251f;
	--meharvan-blue: #32586b;
	--meharvan-line: rgba(164, 94, 70, 0.24);
}

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

body,
#page-container,
#main-content,
.et_pb_section {
	color: var(--meharvan-brown);
}

body {
	background-color: var(--meharvan-ivory);
}

a {
	color: var(--meharvan-terracotta);
}

#main-header,
#top-header {
	box-shadow: none;
}

#main-header,
#main-header .nav li ul,
.et-search-form,
#main-header .et_mobile_menu {
	background-color: rgba(251, 240, 233, 0.98);
}

#top-menu a,
.et_mobile_menu li a,
.mobile_menu_bar::before {
	color: var(--meharvan-brown);
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu a:hover,
.et_mobile_menu li a:hover {
	color: var(--meharvan-terracotta);
}

.nav li ul,
.et_mobile_menu {
	border-color: var(--meharvan-terracotta);
}

h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_module_header {
	color: var(--meharvan-brown);
}

.et_pb_button,
.et_pb_more_button,
button,
input[type="submit"] {
	border-color: var(--meharvan-terracotta);
	background-color: var(--meharvan-terracotta);
	color: var(--meharvan-ivory) !important;
	box-shadow: none;
	transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}

.et_pb_button:hover,
.et_pb_more_button:hover,
button:hover,
input[type="submit"]:hover {
	border-color: var(--meharvan-brown);
	background-color: var(--meharvan-brown);
}

input,
textarea,
select {
	border-color: var(--meharvan-line);
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--meharvan-terracotta);
	outline-offset: 3px;
}

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