/* ==========================================================================
   Espacio Dehesa — Theme Styles
   ========================================================================== */

:root {
	--color-bone: #ffffff;
	--color-gold: #000000;
	--color-industrial-grey: #0a0a0a;
	--color-light-grey: #f4f4f6;
	--color-mid-grey: #e5e5e7;
	--font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
	--container-max: 80rem;
	--nav-height: 5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	background: var(--color-bone);
	color: var(--color-industrial-grey);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--color-gold);
	color: var(--color-bone);
}

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

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

.ed-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* Logo */

.ed-logo {
	display: block;
	height: auto;
}

.ed-logo--nav {
	height: 3rem;
	width: auto;
}

.ed-logo--hero {
	height: 7rem;
	width: auto;
	margin-bottom: 2rem;
}

.ed-logo--footer {
	height: 4rem;
	width: auto;
}

@media (min-width: 768px) {
	.ed-logo--hero {
		height: 9rem;
	}
}

/* Buttons */

.ed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.ed-btn--primary {
	background: var(--color-gold);
	color: var(--color-bone);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.ed-btn--primary:hover {
	background: #171717;
}

.ed-btn--white {
	background: var(--color-bone);
	color: var(--color-gold);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.ed-btn--white:hover {
	background: #f5f5f5;
}

.ed-btn--outline {
	background: transparent;
	color: var(--color-bone);
	border: 1px solid rgb(255 255 255 / 0.4);
}

.ed-btn--outline:hover {
	background: var(--color-bone);
	color: var(--color-gold);
}

.ed-btn--outline-light {
	background: transparent;
	color: var(--color-bone);
	border: 1px solid rgb(255 255 255 / 0.2);
}

.ed-btn--outline-light:hover {
	background: var(--color-bone);
	color: var(--color-gold);
}

.ed-btn--sm {
	padding: 0.75rem 2rem;
}

.ed-btn--lg {
	padding: 1.25rem 2.5rem;
}

.ed-btn--block {
	width: 100%;
}

/* Navigation */

.ed-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: var(--nav-height);
	background: rgb(255 255 255 / 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgb(0 0 0 / 0.05);
}

.ed-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.ed-nav__logo {
	display: flex;
	align-items: center;
}

.ed-nav__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.ed-nav__toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-gold);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ed-nav__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ed-nav__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ed-nav__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.ed-nav__menu {
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 1.5rem;
	position: absolute;
	top: var(--nav-height);
	left: 0;
	right: 0;
	padding: 1.5rem;
	background: rgb(255 255 255 / 0.8);
	border-bottom: 1px solid rgb(0 0 0 / 0.05);
}

.ed-nav__menu.is-open {
	display: flex;
}

.ed-nav__link {
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-gold);
	transition: opacity 0.2s ease;
	text-align: center;
}

.ed-nav__link:hover {
	opacity: 0.6;
}

@media (min-width: 768px) {
	.ed-nav__toggle {
		display: none;
	}

	.ed-nav__menu {
		display: flex;
		flex-direction: row;
		align-items: center;
		position: static;
		padding: 0;
		background: transparent;
		border: none;
		gap: 3rem;
	}

	.ed-nav__link {
		text-align: left;
	}
}

/* Hero */

.ed-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding-top: var(--nav-height);
	overflow: hidden;
}

.ed-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ed-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.4);
}

.ed-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(0 0 0 / 0.4), transparent, rgb(0 0 0 / 0.8));
}

.ed-hero__content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding-inline: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ed-hero__title {
	margin: 0 0 1.5rem;
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--color-bone);
	max-width: 56rem;
	margin-inline: auto;
}

.ed-hero__title-light {
	font-weight: 300;
	color: rgb(255 255 255 / 0.8);
}

.ed-hero__text {
	margin: 0 auto 2.5rem;
	max-width: 42rem;
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 300;
	line-height: 1.625;
	letter-spacing: 0.025em;
	color: rgb(255 255 255 / 0.8);
}

.ed-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: 100%;
}

@media (min-width: 640px) {
	.ed-hero__actions {
		flex-direction: row;
		width: auto;
	}

	.ed-hero__actions .ed-btn {
		width: auto;
	}
}

.ed-hero__scroll {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	animation: ed-bounce 2s ease-in-out infinite;
}

.ed-hero__scroll-line {
	width: 1px;
	height: 4rem;
	background: rgb(255 255 255 / 0.4);
	margin-inline: auto;
}

@keyframes ed-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(10px); }
}

/* Sections */

.ed-section {
	padding-block: 8rem;
}

.ed-section--white {
	background: var(--color-bone);
}

.ed-section--dark {
	background: var(--color-industrial-grey);
	color: var(--color-bone);
}

.ed-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.5em;
	color: rgb(0 0 0 / 0.5);
	text-align: center;
}

.ed-eyebrow--light {
	color: rgb(255 255 255 / 0.5);
}

.ed-heading {
	margin: 0;
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--color-gold);
}

.ed-heading--light {
	color: var(--color-bone);
}

.ed-heading-light {
	font-weight: 300;
	color: rgb(0 0 0 / 0.7);
}

.ed-heading--light .ed-heading-light {
	color: rgb(255 255 255 / 0.7);
}

/* Section header */

.ed-section-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 5rem;
	gap: 2rem;
}

.ed-section-header__main {
	max-width: 42rem;
}

.ed-section-header__main .ed-eyebrow,
.ed-section-header__main .ed-heading {
	text-align: center;
}

.ed-section-header__aside {
	max-width: 28rem;
	width: 100%;
	text-align: center;
}

.ed-section-header__label {
	margin: 0 0 0.75rem;
	font-size: 0.625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-gold);
}

.ed-section-header__text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.625;
	color: rgb(0 0 0 / 0.6);
}

@media (min-width: 768px) {
	.ed-section-header {
		flex-direction: row;
		align-items: flex-end;
	}

	.ed-section-header__main .ed-eyebrow,
	.ed-section-header__main .ed-heading {
		text-align: left;
	}

	.ed-section-header__aside {
		text-align: right;
	}
}

/* Spaces grid */

.ed-spaces-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 768px) {
	.ed-spaces-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ed-spaces-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ed-space-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s ease;
}

@media (min-width: 768px) {
	.ed-space-card {
		align-items: flex-start;
	}

	.ed-space-card:hover {
		transform: translateY(-10px);
	}
}

.ed-space-card__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin-bottom: 1.5rem;
	background: var(--color-light-grey);
}

.ed-space-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.ed-space-card:hover .ed-space-card__image {
	transform: scale(1.1);
}

.ed-space-card__tags {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ed-tag {
	background: rgb(255 255 255 / 0.9);
	color: var(--color-gold);
	font-size: 0.5625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	border: 1px solid rgb(0 0 0 / 0.05);
}

.ed-space-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	text-align: center;
}

.ed-space-card__desc {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.625;
	color: rgb(0 0 0 / 0.6);
	text-align: center;
}

@media (min-width: 768px) {
	.ed-space-card__title,
	.ed-space-card__desc {
		text-align: left;
	}
}

/* Pricing */

.ed-pricing-header {
	text-align: center;
	margin-bottom: 6rem;
}

.ed-pricing-header .ed-heading {
	margin-bottom: 2rem;
}

.ed-pricing-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(255 255 255 / 0.5);
}

.ed-pricing-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ed-pricing-meta__item svg {
	color: var(--color-bone);
	flex-shrink: 0;
}

.ed-plans-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.ed-plans-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ed-plans-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ed-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	transition: all 0.3s ease;
}

@media (min-width: 768px) {
	.ed-plan-card {
		padding: 2.5rem;
	}
}

.ed-plan-card--featured {
	border-color: var(--color-bone);
	background: rgb(255 255 255 / 0.05);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.ed-plan-card__badge {
	position: absolute;
	top: -1rem;
	right: 1.5rem;
	background: var(--color-bone);
	color: var(--color-gold);
	font-size: 0.5625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.25rem 1rem;
}

.ed-plan-card__name {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: rgb(255 255 255 / 0.8);
}

.ed-plan-card__price {
	display: flex;
	align-items: baseline;
	margin-bottom: 1.5rem;
}

.ed-plan-card__amount {
	font-size: 2.25rem;
	font-weight: 900;
}

.ed-plan-card__period {
	margin-left: 0.5rem;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(255 255 255 / 0.4);
}

.ed-plan-card__desc {
	margin: 0 0 2.5rem;
	min-height: 3rem;
	font-size: 0.875rem;
	font-weight: 300;
	color: rgb(255 255 255 / 0.6);
}

.ed-plan-card__features {
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
	flex-grow: 1;
}

.ed-plan-card__features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

.ed-plan-card__features svg {
	flex-shrink: 0;
	color: var(--color-bone);
}

.ed-pricing-note {
	margin-top: 5rem;
	text-align: center;
	padding: 2rem;
	border: 1px dashed rgb(255 255 255 / 0.1);
	max-width: 48rem;
	margin-inline: auto;
}

.ed-pricing-note p {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(255 255 255 / 0.5);
}

/* Contact */

.ed-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5rem;
}

@media (min-width: 1024px) {
	.ed-contact-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ed-contact-info .ed-eyebrow,
.ed-contact-info .ed-heading {
	text-align: center;
}

.ed-contact-info__text {
	margin: 0 0 3rem;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.625;
	color: rgb(0 0 0 / 0.6);
}

@media (min-width: 1024px) {
	.ed-contact-info .ed-eyebrow,
	.ed-contact-info .ed-heading {
		text-align: left;
	}
}

.ed-contact-location {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.ed-contact-location__icon {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-gold);
	color: var(--color-bone);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.ed-contact-location__label {
	margin: 0 0 0.25rem;
	font-size: 0.625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(0 0 0 / 0.4);
}

.ed-contact-location__address {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 900;
	color: rgb(0 0 0 / 0.8);
}

.ed-contact-form-wrap {
	background: var(--color-bone);
	padding: 2rem;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	border-top: 4px solid var(--color-gold);
}

@media (min-width: 768px) {
	.ed-contact-form-wrap {
		padding: 3rem;
	}
}

.ed-form-notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.ed-form-notice--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ed-form-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ed-contact-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.ed-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.ed-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.ed-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ed-form-field label {
	font-size: 0.625rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.6;
}

.ed-form-field input,
.ed-form-field select,
.ed-form-field textarea {
	width: 100%;
	padding: 0.75rem 0;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgb(0 0 0 / 0.1);
	outline: none;
	transition: border-color 0.2s ease;
}

.ed-form-field input:focus,
.ed-form-field select:focus,
.ed-form-field textarea:focus {
	border-bottom-color: var(--color-gold);
}

.ed-form-field textarea {
	resize: none;
}

.ed-form-field--checkbox {
	margin-top: -0.5rem;
}

.ed-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	opacity: 1;
}

.ed-checkbox input[type='checkbox'] {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	accent-color: var(--color-gold);
	cursor: pointer;
}

.ed-checkbox a {
	color: var(--color-gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ed-checkbox a:hover {
	opacity: 0.7;
}

/* Footer */

.ed-footer {
	background: var(--color-industrial-grey);
	padding-block: 5rem;
	border-top: 1px solid rgb(255 255 255 / 0.05);
}

.ed-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

@media (min-width: 768px) {
	.ed-footer__inner {
		flex-direction: row;
	}
}

.ed-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	.ed-footer__brand {
		align-items: flex-start;
	}
}

.ed-footer__social {
	display: flex;
	gap: 2rem;
}

.ed-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 50%;
	color: var(--color-bone);
	transition: all 0.2s ease;
}

.ed-social-link:hover {
	background: var(--color-bone);
	border-color: var(--color-bone);
	color: var(--color-gold);
}

.ed-social-link:hover svg {
	transform: scale(1.1);
}

.ed-social-link svg {
	transition: transform 0.2s ease;
}

.ed-footer__copy {
	margin: 0;
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgb(255 255 255 / 0.3);
	text-align: center;
}

@media (min-width: 768px) {
	.ed-footer__copy {
		text-align: right;
	}
}

/* Animations */

.ed-animate-in {
	animation: ed-fade-in-up 0.8s ease forwards;
}

.ed-animate-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ed-animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes ed-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Fallback post template */

.ed-post {
	padding-block: 2rem;
}

.ed-post__content {
	font-size: 1rem;
	line-height: 1.7;
	color: rgb(0 0 0 / 0.7);
}

.ed-post__content p {
	margin-bottom: 1rem;
}
