/*
Theme Name: Málaga Masaje
Description: Tema de Danna Vanegas, masajes a domicilio en Málaga.
Version: 0.1.16
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: malaga-masaje
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
	font-family: "DM Sans";
	src: url("assets/DM-Sans.ttf") format("truetype");
	font-weight: 100 1000;
	font-display: swap;
}

:root {
	--paper: #f5f4ee;
	--white: #fffdf8;
	--ink: #232b23;
	--nav: #29271d;
	--olive: #334637;
	--deep: #2f3e32;
	--gold: #e9c69a;
	--muted: #515950;
	--rule: #d9d9ce;
	--radius: 1.25rem;
	--gutter: clamp(.75rem, 2.7vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "DM Sans", system-ui, sans-serif;
	font-optical-sizing: auto;
	font-size: 1rem;
	line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; font-weight: 670; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #ad7950; outline-offset: 4px; }
[id] { scroll-margin-block-start: 1rem; }
.shell { width: min(100% - var(--gutter) * 2, 90rem); margin-inline: auto; }
.content-shell { width: min(100% - var(--gutter) * 2, 80.625rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 4; inset: .75rem auto auto 1rem; transform: translateY(-160%); background: var(--white); padding: .6rem 1rem; }
.skip-link:focus { transform: none; }

.site-header {
	display: flex;
	align-items: center;
	gap: clamp(.85rem, 2vw, 2.15rem);
	background: var(--nav);
	color: var(--white);
	margin-block: 1.5rem .75rem;
	padding: .8rem clamp(.85rem, 3vw, 2.7rem);
	border-radius: var(--radius);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.29rem; font-weight: 680; text-decoration: none; white-space: nowrap; line-height: 1.15; }
.brand svg { color: var(--gold); flex: none; }
.site-nav { margin-inline-start: auto; }
.site-nav ul, .site-footer nav ul { display: flex; align-items: center; gap: clamp(.65rem, 1.9vw, 1.8rem); list-style: none; padding: 0; }
.site-nav a, .site-footer nav a { text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover, .hero-links > a:not(.button):hover { text-decoration: underline; }
.button {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	gap: .9rem;
	min-height: 2.8rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	color: var(--white);
	background: var(--olive);
	font-size: .95rem;
	font-weight: 690;
	text-decoration: none;
	line-height: 1.25;
}
.button span { font-size: 1.1em; }
.button-light { color: var(--olive); background: var(--white); }
.button:hover { box-shadow: inset 0 0 0 1.5px currentColor; }

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 55% 45%;
	align-items: center;
	min-height: clamp(33rem, 72svh, 47rem);
	overflow: hidden;
	border-radius: calc(var(--radius) + .25rem);
	background: #352c21;
	color: var(--white);
}
.hero-image, .hero::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 46% 15%; }
.hero::after { content: ""; background: linear-gradient(90deg, transparent 28%, rgb(36 36 26 / .15) 44%, rgb(32 34 25 / .85) 68%, rgb(28 31 23 / .95) 100%); }
.hero-copy { grid-column: 2; max-width: 36rem; padding: 3rem clamp(1.65rem, 5vw, 5rem) 3rem .8rem; }
.place { color: #f0d7b1; font-weight: 650; }
.hero h1 { font-size: clamp(3.85rem, 6.3vw, 6.2rem); letter-spacing: -.068em; margin-block: .65rem 1.2rem; }
.hero-name { font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 690; }
.hero-description { max-width: 30rem; color: #f1ebdf; font-size: clamp(1rem, 1.6vw, 1.24rem); margin-block: .58rem 1.6rem; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; font-weight: 660; }
.hero-links > a:not(.button) { text-decoration: none; }

.catalog { margin-block: clamp(3rem, 6vw, 5.3rem); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .45rem 1.3rem; margin-block-end: 1.45rem; }
.section-heading h2, .visit h2 { font-size: clamp(2.05rem, 4.1vw, 3.7rem); }
.section-heading p { color: var(--muted); }
.session-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.session-card { grid-column: span 2; display: flex; flex-direction: column; padding: .4rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.session-card:nth-child(-n+2) { grid-column: span 3; }
.session-image { width: 100%; aspect-ratio: 18 / 9; object-fit: cover; object-position: center 52%; border-radius: .9rem; }
.session-image-wellness { object-position: 75% 24%; }
.session-image-drenaje { object-position: 60% 55%; }
.session-content { display: flex; flex: 1; flex-direction: column; padding: 1.1rem; }
.session-content h3 { font-size: clamp(1.3rem, 2vw, 2rem); }
.session-content p { flex: 1; color: var(--muted); margin-block: .55rem .9rem; }
.session-rate { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-block-start: 1px solid var(--rule); color: var(--muted); padding-block-start: .7rem; }
.session-rate strong { font-size: 1.45rem; color: var(--ink); }
.card-link { display: flex; justify-content: space-between; color: var(--olive); margin-block-start: .75rem; font-weight: 660; }

.visit { display: grid; grid-template-columns: 1fr 1fr; margin-block: 2.5rem 3.5rem; padding: clamp(1.35rem, 4vw, 3.7rem); background: var(--deep); color: var(--white); border-radius: var(--radius); }
.visit > div:first-child { border-inline-end: 1px solid #809184; padding-inline-end: clamp(1rem, 3vw, 3rem); }
.visit > div + div { padding-inline-start: clamp(1rem, 3vw, 3rem); }
.visit p { max-width: 33rem; margin-block-start: .75rem; color: #e4e9de; font-size: 1.06rem; }
.visit .button { margin-block-start: 1.25rem; }
.site-footer { background: var(--deep); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.8rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; }
.footer-inner p { color: #e4e9de; margin-top: .45rem; }
.site-footer nav ul { flex-wrap: wrap; }
.editorial { min-height: 55vh; margin-block: 3rem 4rem; }
.prose { max-width: 50rem; margin-block: 1.4rem 2.5rem; }
.editorial h1 { font-size: clamp(2.2rem, 5.4vw, 4.5rem); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.prose p, .prose h2, .prose ul { margin-block: .8rem; }
.prose img { border-radius: var(--radius); margin-block: 1rem; }
article.prose + article.prose { border-block-start: 1px solid var(--rule); padding-block-start: 1.5rem; }

@media (max-width: 62rem) {
	.hero-copy { padding-inline-end: 1.6rem; }
	.hero h1 { font-size: clamp(3rem, 6.7vw, 5rem); }
	.session-card:nth-child(-n+2), .session-card { grid-column: span 3; }
}
@media (max-width: 43rem) {
	.site-header { flex-wrap: wrap; margin-block-start: .75rem; gap: .65rem; }
	.brand { font-size: 1.12rem; }
	.brand svg { width: 31px; }
	.site-nav { order: 2; flex-basis: 100%; margin-inline-start: 0; }
	.site-nav ul { flex-wrap: wrap; font-size: .85rem; gap: .35rem .85rem; }
	.header-cta { margin-inline-start: auto; min-height: 2.35rem; font-size: .82rem; padding-inline: .68rem; gap: .38rem; }
	.hero { display: block; min-height: 0; }
	.hero-image { position: relative; z-index: auto; height: auto; aspect-ratio: 1.03; object-position: 18% 17%; }
	.hero::after { content: none; }
	.hero-copy {
		position: relative;
		max-width: none;
		margin-block-start: -2.8rem;
		padding: 2.8rem 1.2rem 1.65rem;
		background: linear-gradient(180deg, transparent, #26281f 2.75rem);
	}
	.hero h1 { font-size: clamp(2.9rem, 12vw, 4.1rem); margin-block: .3rem .8rem; }
	.hero-description { margin-block-end: 1rem; }
	.session-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
	.session-card:nth-child(-n+2), .session-card { grid-column: auto; }
	.visit { grid-template-columns: minmax(0, 1fr); }
	.visit > div:first-child { border: 0; padding: 0 0 1.2rem; }
	.visit > div + div { padding: 1.2rem 0 0; border-block-start: 1px solid #809184; }
}

/* Homepage, measured from the desktop and mobile Figma frames. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.mobile-menu { display: none; }

.home { --gutter: clamp(.75rem, 2.78vw, 2.5rem); }
.home .site-header {
	position: absolute;
	z-index: 2;
	top: 2rem;
	left: 50%;
	transform: translateX(-50%);
	height: 6rem;
	margin: 0;
	padding: 0 clamp(1.5rem, 2.8vw, 2.5rem);
	border-radius: 1.5rem 1.5rem 0 0;
	background: transparent;
}
.home.admin-bar .site-header { top: calc(2rem + var(--wp-admin--admin-bar--height, 32px)); }
.home .site-header::after {
	content: "";
	position: absolute;
	inset: auto clamp(1.5rem, 2.8vw, 2.5rem) 0;
	border-bottom: 1px solid #a38c73;
	pointer-events: none;
}
.home .site-header .brand {
	gap: 8px;
	font-size: 23px;
	font-optical-sizing: none;
	font-variation-settings: "opsz" 14;
}
.site-header .brand img { flex: none; }
.brand-mark { display: block; flex: none; }
.home .site-header .site-nav { font-size: .9375rem; }
.home .header-cta { justify-content: center; min-width: 10.625rem; min-height: 3.1875rem; }
.home .hero {
	grid-template-columns: 60% 40%;
	aspect-ratio: 1360 / 778;
	min-height: 36.5rem;
	margin-top: 2rem;
	border-radius: 1.5rem;
}
.hero-picture { position: absolute; z-index: -2; inset: 0; }
.hero-picture .hero-image { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.home .hero::after {
	background:
		linear-gradient(180deg, rgb(33 26 19 / .58), rgb(33 26 19 / .24) 72px, transparent 132px),
		linear-gradient(90deg, transparent 45%, rgb(29 31 23 / .27) 59%, rgb(29 31 23 / .80) 79%, rgb(29 31 23 / .93));
}
.home .hero-copy { max-width: 31rem; padding: clamp(6rem, 9vw, 8.125rem) clamp(1.4rem, 3.9vw, 3.75rem) 0 .36rem; }
.home .place { font-size: 1.0625rem; color: #eddbb9; line-height: 1.3; }
.home .hero h1 {
	font-size: clamp(3.1rem, 5.45vw, 4.8125rem);
	line-height: 1.115;
	letter-spacing: -.031em;
	margin-block: .55rem 1.95rem;
	font-weight: 650;
}
.home .hero h1 span { display: block; font-weight: 400; }
.home .hero-name { font-size: clamp(1.25rem, 2.02vw, 1.8125rem); line-height: 1.28; font-weight: 650; }
.home .hero-description, .home .hero-detail { color: #edf0e6; }
.hero-description-mobile { display: none; }
.home .hero-description { font-size: clamp(.96rem, 1.47vw, 1.3125rem); line-height: 1.43; margin-block: .92rem .55rem; }
.home .hero-detail { font-size: clamp(.9rem, 1.32vw, 1.1875rem); line-height: 1.43; }
.home .hero-links { margin-top: clamp(1.3rem, 2.8vw, 2.6rem); gap: 1rem 2rem; }
.home .hero-links .button, .home .visit-cta { justify-content: center; min-width: 11.75rem; min-height: 3.1875rem; }
.home .hero-links > a:not(.button) { font-size: 1rem; }

.home .catalog { width: min(100% - 2 * clamp(1rem, 5.55vw, 5rem), 80rem); margin-block: 4.65rem 8rem; }
.home .section-heading { margin-block-end: 3.2rem; }
.home .section-heading h2 { font-size: clamp(2.5rem, 4.28vw, 3.8125rem); font-weight: 650; letter-spacing: -.033em; }
.home .section-heading p { font-size: clamp(.875rem, 1.24vw, 1.125rem); }
.home .session-grid { gap: 1.55rem 1.5rem; }
.home .session-card {
	position: relative;
	isolation: isolate;
	display: flex;
	justify-content: flex-end;
	aspect-ratio: 410 / 355;
	overflow: hidden;
	padding: 0;
	background: #2e301f;
	border: 0;
	border-radius: 22px;
	color: var(--white);
}
.home .session-card:nth-child(-n+2) { aspect-ratio: 628 / 388; }
.session-picture, .home .session-card::before { position: absolute; inset: 0; }
.session-picture { z-index: -2; }
.home .session-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.home .session-card::before {
	content: "";
	z-index: -1;
	background: linear-gradient(180deg, rgb(24 25 18 / .02), rgb(24 25 18 / .06) 38%, rgb(24 25 18 / .25) 56%, rgb(24 25 18 / .88));
}
.home .session-content { flex: none; padding: 6%; }
.home .session-content h3 { font-size: clamp(1.45rem, 2.05vw, 1.8125rem); line-height: 1.17; font-weight: 650; letter-spacing: -.028em; }
.home .session-card:nth-child(-n+2) h3 { font-size: clamp(1.7rem, 3vw, 2.6875rem); }
.home .session-content p { margin-block: .35rem; color: inherit; font-size: clamp(.825rem, 1vw, .9rem); line-height: 1.25; }
.home .session-card:nth-child(-n+2) .session-content p { font-size: clamp(.92rem, 1.4vw, 1.25rem); }
.home .session-rate { justify-content: flex-start; gap: .65rem; padding: 0; border: 0; color: inherit; font-size: .9375rem; font-weight: 520; }
.home .session-card:nth-child(-n+2) .session-rate { font-size: clamp(1rem, 1.6vw, 1.4375rem); }
.home .session-rate strong { color: inherit; font-size: inherit; font-weight: inherit; }
.home .session-rate strong::before { content: "·"; margin-inline-end: .65rem; }
.home .card-link { display: inline; color: inherit; margin: 0; text-decoration: none; }
.home .card-link::after { content: ""; position: absolute; inset: 0; }
.home .session-card:focus-within { outline: 2px solid #ad7950; outline-offset: 4px; }

.home .visit {
	grid-template-columns: 1fr 1fr;
	align-content: stretch;
	grid-template-rows: 1fr auto;
	column-gap: clamp(2rem, 4vw, 3.5rem);
	min-height: 24.625rem;
	padding: 2.8rem 2.6rem 3.4rem;
	margin: 0 auto;
	background: var(--olive);
	border-radius: 1.75rem;
}
.home .visit > div:first-child { border: 0; padding: 0; }
.home .visit .visit-area { grid-column: 2; grid-row: 1 / span 2; padding: .5rem 0 0 clamp(1.5rem, 4vw, 3.55rem); border-inline-start: 1px solid #879685; }
.home .visit-booking h2 { font-size: clamp(2.1rem, 3.75vw, 3.375rem); }
.home .visit-area h2 { font-size: clamp(1.65rem, 2.65vw, 2.375rem); }
.home .visit p { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.45; margin-top: 1.35rem; max-width: 35rem; }
.home .visit-cta { justify-self: start; align-self: end; margin-top: 1.1rem; }
.home .site-footer { background: var(--paper); color: var(--ink); }
.home .footer-inner { min-height: 7.875rem; }
.home .footer-inner p { display: none; }
.home .footer-inner nav { color: var(--muted); }

@media (min-width: 43.01rem) {
	.home .site-footer .brand-mark { display: none; }
	.home .site-footer .brand { font-size: 1.6875rem; }
}

@media (max-width: 62rem) and (min-width: 43.01rem) {
	.home .site-header { gap: .75rem; }
	.home .site-header .site-nav ul { gap: .65rem; }
	.home .header-cta { min-width: auto; }
	.home .hero { grid-template-columns: 54% 46%; }
	.home .hero-copy { padding-top: 6rem; }
	.home .session-card, .home .session-card:nth-child(-n+2) { aspect-ratio: 4 / 3; }
}

@media (max-width: 64rem) and (min-width: 43.01rem) {
	.home .site-header .brand { font-size: 18px; }
}

@media (max-width: 43rem) {
	.site-header { position: relative; z-index: 2; justify-content: space-between; flex-wrap: nowrap; min-height: 3.7rem; }
	.site-nav-desktop, .header-cta { display: none; }
	.mobile-menu { display: block; }
	.mobile-menu summary { display: grid; place-items: center; list-style: none; min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; }
	.mobile-menu summary::-webkit-details-marker { display: none; }
	.mobile-menu summary:focus-visible { outline: 2px solid #ad7950; outline-offset: 2px; border-radius: 6px; }
	.mobile-menu .site-nav { position: absolute; z-index: 1; inset: calc(100% - 2px) 0 auto; padding: .7rem 1rem; border-radius: .85rem; background: var(--white); color: var(--ink); box-shadow: 0 6px 20px rgb(28 31 23 / .16); }
	.mobile-menu .site-nav ul { display: grid; gap: 0; }
	.mobile-menu .site-nav a { display: block; padding: .55rem 0; }
	:not(.home) > .site-header .menu-icon { filter: brightness(0) invert(1); }
	.home .site-header, .home.admin-bar .site-header { position: relative; top: auto; left: auto; transform: none; width: calc(100% - 32px); height: 69px; margin: 0 auto; padding: 0; border-radius: 0; color: var(--ink); }
	.home .site-header::after { display: none; }
	.home .site-header .brand { font-size: 18px; gap: 3px; }
	.home .site-header .brand .massage-icon { filter: brightness(.6) saturate(1.25); }
	.home .mobile-menu summary { min-width: 1.9rem; }

	.home .hero { width: calc(100% - 32px); display: block; aspect-ratio: auto; min-height: 0; margin: 0 auto; border-radius: 19px; background: var(--olive); }
	.hero-picture { display: block; position: relative; z-index: auto; aspect-ratio: 358 / 331; }
	.hero-picture .hero-image { aspect-ratio: auto; height: 100%; object-position: center; }
	.home .hero-copy { min-height: 380px; padding: 1.55rem 1.125rem 1.2rem; max-width: none; margin-top: -12px; background: var(--olive); }
	.home .place { font-size: .875rem; color: #d9dfcd; }
	.home .hero h1 { font-size: clamp(2.55rem, 5.2vw + 1.79rem, 3.0625rem); line-height: 1.105; margin: .6rem 0 1.5rem; }
	.home .hero-name { font-size: 1.1875rem; }
	.home .hero-description { font-size: 1rem; line-height: 1.4375; margin: .42rem 0 0; }
	.home .hero-detail, .hero-description-desktop { display: none; }
	.hero-description-mobile { display: inline; }
	.home .hero-links { margin-top: 1.15rem; gap: .7rem 1.1rem; }
	.home .hero-links > a:not(.button) { font-size: .9375rem; }
	.home .hero-links .button, .home .visit-cta { min-width: 9.125rem; min-height: 3rem; }

	.home .catalog { width: calc(100% - 32px); margin-block: 2.4rem 2rem; }
	.home .section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 1.6rem; gap: .43rem; }
	.home .section-heading h2 { font-size: 2.125rem; letter-spacing: -.025em; }
	.home .section-heading p { font-size: .9375rem; }
	.home .session-grid { gap: 1rem; }
	.home .session-card, .home .session-card:nth-child(-n+2) { aspect-ratio: 358 / 262; min-height: 14.1rem; border-radius: 17px; }
	.home .session-content { padding: .75rem .94rem; }
	.home .session-content h3, .home .session-card:nth-child(-n+2) h3 { font-size: clamp(1.25rem, 5.9vw, 1.4375rem); letter-spacing: -.01em; }
	.home .session-content p, .home .session-card:nth-child(-n+2) .session-content p { font-size: .875rem; margin-block: .25rem; }
	.home .session-rate, .home .session-card:nth-child(-n+2) .session-rate { justify-content: space-between; font-size: .875rem; }
	.home .session-rate strong { font-size: 1.1875rem; font-weight: 650; }
	.home .session-rate strong::before { content: none; }

	.home .visit { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 22.125rem; width: calc(100% - 32px); padding: 1.5rem 1.125rem .75rem; border-radius: 19px; }
	.home .visit-booking h2 { font-size: 1.8125rem; }
	.home .visit-area h2 { font-size: 1.25rem; }
	.home .visit .visit-area { grid-column: auto; grid-row: auto; padding: .95rem 0 0; border: 0; border-top: 1px solid #879685; margin-top: 1.25rem; }
	.home .visit p { font-size: .9375rem; line-height: 1.4; margin-top: .72rem; }
	.home .visit .visit-area p { font-size: .875rem; }
	.home .visit-cta { margin-top: .8rem; }
	.home .footer-inner { width: calc(100% - 32px); align-items: flex-start; gap: .4rem; padding: 1.5rem 0 1.15rem; min-height: 5.8rem; flex-direction: column; }
	.home .footer-inner .brand { font-size: 1.125rem; }
	.home .footer-inner nav { font-size: .75rem; }
}
