/*
Theme Name: DERRA Theme
Author: DERRA Real Estate
Description: A mobile-first WordPress theme for DERRA Real Estate.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: derra-theme
*/

:root {
	--derra-red: #e30613;
	--derra-black: #111111;
	--derra-white: #ffffff;
	--derra-gray-50: #f7f7f7;
	--derra-gray-200: #dedede;
	--derra-gray-600: #666666;
	--derra-radius: 8px;
	--derra-container: 1200px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--derra-white);
	color: var(--derra-black);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

a {
	color: var(--derra-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

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

.derra-container {
	margin-inline: auto;
	max-width: var(--derra-container);
	padding-inline: 20px;
	width: 100%;
}

.derra-breadcrumbs {
	font-size: 14px;
	padding-block: 16px;
}

.derra-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.derra-breadcrumbs li:not(:last-child)::after {
	color: var(--derra-gray-600);
	content: "/";
	margin-left: 6px;
}

.derra-breadcrumbs a {
	color: var(--derra-black);
}

.derra-breadcrumbs [aria-current="page"] {
	color: var(--derra-gray-600);
}

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

.screen-reader-text:focus {
	background: var(--derra-white);
	clip: auto;
	clip-path: none;
	color: var(--derra-black);
	height: auto;
	left: 8px;
	padding: 12px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.site-header {
	background: var(--derra-white);
	border-bottom: 1px solid var(--derra-gray-200);
}

.site-header__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	min-height: 72px;
	padding-block: 12px;
}

.site-branding__name {
	color: var(--derra-black);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-branding__name span {
	color: var(--derra-red);
}

.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
}

.primary-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-navigation {
	width: 100%;
}

.primary-navigation a {
	color: var(--derra-black);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
	color: var(--derra-red);
}

.derra-section {
	padding-block: 56px;
}

.derra-section--muted {
	background: var(--derra-gray-50);
}

.derra-section__header {
	margin-bottom: 24px;
}

.derra-section__eyebrow {
	color: var(--derra-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.derra-section__title {
	font-size: clamp(28px, 8vw, 44px);
	line-height: 1.15;
	margin: 0;
}

.derra-section__description {
	color: var(--derra-gray-600);
	margin-bottom: 0;
	max-width: 700px;
}

.derra-hero {
	background: var(--derra-black);
	color: var(--derra-white);
	padding-block: 72px;
}

.derra-hero__content {
	max-width: 760px;
}

.derra-hero__title {
	font-size: clamp(38px, 12vw, 72px);
	line-height: 1;
	margin: 0 0 20px;
}

.derra-hero__description {
	color: #d3d3d3;
	font-size: 18px;
	margin-bottom: 28px;
	max-width: 620px;
}

.derra-search-form {
	display: grid;
	gap: 10px;
}

.derra-search-form__select {
	appearance: none;
	background: var(--derra-white);
	border: 2px solid var(--derra-white);
	border-radius: var(--derra-radius);
	color: var(--derra-black);
	font: inherit;
	min-height: 52px;
	padding: 12px 16px;
	width: 100%;
}

.derra-button,
.derra-search-form button {
	background: var(--derra-red);
	border: 2px solid var(--derra-red);
	border-radius: var(--derra-radius);
	color: var(--derra-white);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	text-decoration: none;
}

.derra-button:hover,
.derra-button:focus,
.derra-search-form button:hover,
.derra-search-form button:focus {
	background: var(--derra-white);
	color: var(--derra-red);
}

.derra-button--secondary {
	background: var(--derra-white);
	color: var(--derra-red);
}

.derra-status-page__content,
.derra-empty-state {
	background: var(--derra-gray-50);
	border-radius: 12px;
	max-width: 760px;
	padding: 32px;
}

.derra-status-page__content h1,
.derra-empty-state h2 {
	font-size: clamp(30px, 8vw, 48px);
	line-height: 1.15;
	margin: 0 0 16px;
}

.derra-status-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.derra-content-list {
	display: grid;
	gap: 16px;
}

.derra-content-card {
	border: 1px solid var(--derra-gray-200);
	border-radius: 12px;
	padding: 24px;
}

.derra-content-card h2 {
	margin: 0;
}

.derra-content-card h2 a,
.derra-content-card__link {
	color: var(--derra-black);
	font-weight: 800;
}

.derra-content-card__excerpt {
	color: var(--derra-gray-600);
}

.derra-page__article,
.derra-page__content {
	max-width: 860px;
}

.navigation.pagination {
	margin-top: 32px;
}

.derra-taxonomy-grid {
	display: grid;
	gap: 16px;
}

.derra-taxonomy-card {
	background: var(--derra-white);
	border: 1px solid var(--derra-gray-200);
	border-radius: var(--derra-radius);
	color: var(--derra-black);
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 120px;
	padding: 24px;
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}

.derra-taxonomy-card:hover,
.derra-taxonomy-card:focus {
	border-color: var(--derra-red);
	transform: translateY(-2px);
}

.derra-taxonomy-card__name {
	font-size: 20px;
	font-weight: 800;
}

.derra-taxonomy-card__count {
	color: var(--derra-gray-600);
}

.derra-whatsapp {
	background: var(--derra-red);
	color: var(--derra-white);
}

.derra-whatsapp__inner {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.derra-whatsapp .derra-section__title,
.derra-whatsapp .derra-section__description {
	color: var(--derra-white);
}

.derra-whatsapp .derra-button {
	background: var(--derra-white);
	border-color: var(--derra-white);
	color: var(--derra-red);
}

.site-footer {
	background: var(--derra-black);
	color: var(--derra-white);
	padding-block: 40px;
}

.site-footer__inner {
	display: grid;
	gap: 24px;
}

.site-footer a {
	color: var(--derra-white);
}

.footer-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__copyright {
	color: #bdbdbd;
	margin: 0;
}

@media (min-width: 600px) {
	.derra-search-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.derra-taxonomy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.primary-navigation {
		width: auto;
	}

	.derra-section {
		padding-block: 80px;
	}

	.derra-search-form {
		grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	}

	.derra-taxonomy-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.derra-whatsapp__inner {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}

	.site-footer__inner {
		align-items: center;
		grid-template-columns: 1fr auto;
	}
}
