/*
 * Estatein main stylesheet.
 * Mobile first: base = 390 design frame, 1024px+ = 1440 laptop frame, 1920px+ = 1920 desktop frame.
 */

:root {
	--estat-purple-60: #703BF7;
	--estat-purple-65: #8254F8;
	--estat-purple-70: #946CFA;
	--estat-purple-75: #A685FA;
	--estat-grey-08: #141414;
	--estat-grey-10: #1A1A1A;
	--estat-grey-15: #262626;
	--estat-grey-20: #333333;
	--estat-grey-30: #4D4D4D;
	--estat-grey-40: #666666;
	--estat-grey-50: #808080;
	--estat-grey-60: #999999;
	--estat-white: #FFFFFF;
	--estat-font: 'Urbanist', -apple-system, 'Segoe UI', Arial, sans-serif;
	--estat-gutter: 16px;
	--estat-radius-sm: 8px;
	--estat-radius: 10px;
	--estat-radius-lg: 12px;
}

@media ( min-width: 1024px ) {

	:root {
		--estat-gutter: 80px;
	}
}

@media ( min-width: 1920px ) {

	:root {
		--estat-gutter: 162px;
	}
}

/* ------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------ */

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

body {
	margin: 0;
	background: var(--estat-grey-08);
	color: var(--estat-white);
	font-family: var(--estat-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

@media ( min-width: 1920px ) {

	body {
		font-size: 18px;
	}
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--estat-purple-75);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.estat-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 200;
	background: var(--estat-purple-60);
	color: var(--estat-white);
	padding: 12px 20px;
	border-radius: var(--estat-radius);
}

.estat-skip-link:focus {
	top: 16px;
}

/* ------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */

.estat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: var(--estat-radius);
	font-weight: 500;
	line-height: 1.5;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.estat-btn--dark {
	background: var(--estat-grey-08);
	border-color: var(--estat-grey-15);
	color: var(--estat-white);
}

.estat-btn--dark:hover {
	border-color: var(--estat-grey-20);
	background: var(--estat-grey-10);
}

/* ------------------------------------------------------------------
 * Announcement banner
 * ------------------------------------------------------------------ */

.estat-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--estat-grey-10) url('../img/banner-texture.png') center / cover no-repeat;
	border-bottom: 1px solid var(--estat-grey-15);
	padding: 40px 52px 20px 16px;
	font-size: 12px;
	text-align: center;
}

.estat-banner.is-hidden {
	display: none;
}

.estat-banner__link {
	text-decoration: underline;
}

.estat-banner__link:hover {
	color: var(--estat-purple-75);
}

.estat-banner__close {
	position: absolute;
	right: 16px;
	top: calc(50% + 10px);
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.estat-banner__close svg {
	width: 18px;
	height: 18px;
}

@media ( min-width: 1024px ) {

	.estat-banner {
		padding: 14px 80px;
		font-size: 14px;
	}

	.estat-banner__close {
		right: 32px;
		top: 50%;
	}
}

@media ( min-width: 1920px ) {

	.estat-banner {
		gap: 10px;
		padding: 18px 162px;
		font-size: 18px;
	}

	.estat-banner__close svg {
		width: 24px;
		height: 24px;
	}
}

/* ------------------------------------------------------------------
 * Header / navigation
 * ------------------------------------------------------------------ */

.estat-header {
	position: relative;
	border-bottom: 1px solid var(--estat-grey-15);
	background: var(--estat-grey-10);
}

.estat-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--estat-grey-10);
	padding: 20px var(--estat-gutter);
	max-width: 1920px;
	margin:0 auto;
}

.estat-nav .custom-logo-link img {
	width: auto;
	height: 28px;
}

.estat-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.estat-nav__toggle .estat-nav__toggle-close {
	display: none;
}

.estat-nav__toggle[aria-expanded='true'] .estat-nav__toggle-open {
	display: none;
}

.estat-nav__toggle[aria-expanded='true'] .estat-nav__toggle-close {
	display: block;
}

/* Mobile dropdown panel. */
.estat-nav__collapse {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--estat-grey-10);
	border-bottom: 1px solid var(--estat-grey-15);
	padding: 8px 16px 24px;
}

.estat-nav__collapse.is-open {
	display: block;
}

.estat-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.estat-nav__menu a {
	display: block;
	padding: 12px 0;
}

.estat-nav__menu .current-menu-item > a,
.estat-nav__menu .current_page_item > a {
	color: var(--estat-purple-75);
}

.estat-nav__cta {
	margin-top: 16px;
	padding: 12px 20px;
	width: 100%;
}

@media ( max-width: 1023.98px ) {

	.estat-nav {
		border-bottom: 1px solid #211E2F;
	}
}

@media ( min-width: 1024px ) {

	.estat-nav {
		padding: 14px var(--estat-gutter);
	}

	.estat-nav .custom-logo-link img {
		height: 34px;
	}

	.estat-nav__toggle {
		display: none;
	}

	.estat-nav__collapse {
		display: contents;
	}

	.estat-nav__menu {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		display: flex;
		align-items: center;
		gap: 24px;
	}

	.estat-nav__menu a {
		padding: 0;
	}

	.estat-nav__menu a:hover {
		color: var(--estat-purple-75);
	}

	.estat-nav__menu .current-menu-item > a,
	.estat-nav__menu .current_page_item > a {
		color: var(--estat-white);
		background: var(--estat-grey-08);
		border: 1px solid var(--estat-grey-15);
		border-radius: var(--estat-radius-sm);
		padding: 12px 20px;
		margin: -13px -21px;
	}

	.estat-nav__cta {
		margin-top: 0;
		width: auto;
		padding: 14px 20px;
		font-size: 14px;
		border-radius: var(--estat-radius-sm);
	}
}

@media ( min-width: 1920px ) {

	.estat-nav {
		padding: 20px var(--estat-gutter);
	}

	.estat-nav .custom-logo-link img {
		height: 48px;
	}

	.estat-nav__menu {
		gap: 30px;
	}

	.estat-nav__menu .current-menu-item > a,
	.estat-nav__menu .current_page_item > a {
		border-radius: var(--estat-radius);
		padding: 14px 24px;
		margin: -15px -25px;
	}

	.estat-nav__cta {
		padding: 16px 24px;
		font-size: 18px;
		border-radius: var(--estat-radius);
	}
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.estat-footer {
	margin: 0 auto; 
}
.estat-footer__top {
	margin: 0 auto;
	max-width: 1920px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 50px var(--estat-gutter);
}

.estat-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.estat-footer__logo img {
	width: auto;
	height: 34px;
}

.estat-footer__subscribe {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: var(--estat-grey-08);
	border: 1px solid var(--estat-grey-15);
	border-radius: var(--estat-radius-sm);
	padding: 14px 20px;
}

.estat-footer__subscribe-icon {
	width: 20px;
	height: 20px;
}

.estat-footer__subscribe input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	color: var(--estat-white);
	font-size: 14px;
	letter-spacing: -0.006em;
}

.estat-footer__subscribe input::placeholder {
	color: var(--estat-grey-60);
}

.estat-footer__subscribe input:focus {
	outline: none;
}

.estat-footer__subscribe:focus-within {
	border-color: var(--estat-purple-75);
}

.estat-footer__subscribe-btn {
	display: flex;
}

.estat-footer__subscribe-btn img {
	width: 24px;
	height: 24px;
}

.estat-footer__columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 20px;
}

.estat-footer__column-title {
	font-size: 16px;
	font-weight: 500;
	color: var(--estat-grey-60);
	margin-bottom: 16px;
}

.estat-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 14px;
	letter-spacing: -0.006em;
}

.estat-footer__links a:hover {
	color: var(--estat-purple-75);
}

.estat-footer__bottom {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 12px;
	background: var(--estat-grey-10);
	padding: 20px var(--estat-gutter);
	font-size: 14px;
	letter-spacing: -0.006em;
}

.estat-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.estat-footer__legal a:hover,
.estat-footer__legal-menu a:hover {
	color: var(--estat-purple-75);
}

.estat-footer__legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

.estat-footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
}

.estat-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	background: var(--estat-grey-08);
	border-radius: 50%;
}

.estat-footer__social-link:hover {
	background: var(--estat-grey-15);
}

.estat-footer__social-link img {
	width: 20px;
	height: 20px;
}

@media ( min-width: 1024px ) {

	.estat-footer__top {
		flex-direction: row;
		align-items: flex-start;
		gap: 80px;
		padding: 80px var(--estat-gutter);
	}

	.estat-footer__brand {
		flex-shrink: 0;
		width: 326px;
	}

	.estat-footer__subscribe {
		width: 305px;
	}

	.estat-footer__columns {
		flex: 1;
		display: flex;
		justify-content: space-between;
		gap: 20px;
	}

	.estat-footer__column-title {
		font-size: 18px;
		margin-bottom: 24px;
	}

	.estat-footer__links {
		gap: 16px;
		font-size: 16px;
	}

	.estat-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		padding: 12px var(--estat-gutter);
	}

	.estat-footer__legal {
		flex-direction: row;
		gap: 20px;
		padding: 10px 0;
	}
}

@media ( min-width: 1920px ) {

	.estat-footer__top {
		padding: 100px var(--estat-gutter);
	}

	.estat-footer__brand {
		width: 538px;
		gap: 30px;
	}

	.estat-footer__logo img {
		height: 48px;
	}

	.estat-footer__subscribe {
		width: 423px;
		gap: 10px;
		padding: 18px 24px;
		border-radius: var(--estat-radius-lg);
	}

	.estat-footer__subscribe-icon {
		width: 24px;
		height: 24px;
	}

	.estat-footer__subscribe input {
		font-size: 18px;
	}

	.estat-footer__subscribe-btn img {
		width: 30px;
		height: 30px;
	}

	.estat-footer__column-title {
		font-size: 20px;
		margin-bottom: 30px;
	}

	.estat-footer__links {
		gap: 20px;
		font-size: 18px;
	}

	.estat-footer__bottom {
		padding: 16px var(--estat-gutter);
		font-size: 18px;
	}

	.estat-footer__legal {
		gap: 38px;
	}

	.estat-footer__social {
		gap: 10px;
	}

	.estat-footer__social-link {
		padding: 14px;
	}

	.estat-footer__social-link img {
		width: 24px;
		height: 24px;
	}
}

/* ------------------------------------------------------------------
 * Fallback archive template
 * ------------------------------------------------------------------ */
.estat-page__content {
	margin: 0 auto;
	max-width: 1920px;
}
.estat-archive {
	padding: 50px var(--estat-gutter);
}

.estat-archive__item {
	border-bottom: 1px solid var(--estat-grey-15);
	padding: 30px 0;
}

.estat-archive__title {
	font-size: 24px;
	font-weight: 600;
}

.estat-archive__title a:hover {
	color: var(--estat-purple-75);
}

.estat-archive__content {
	color: var(--estat-grey-60);
	margin-top: 10px;
}
