/*
Theme Name: Love Mallorca
Theme URI: https://intouch.dk/
Author: intouch.dk
Description: Lightweight one-page theme for intouch.dk / Love Mallorca. Replaces NineZeroSeven and keeps its content (Page Sections, Parallax Sections, Portfolio) and look. Danish and English versions are built from two menus.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
License: GPLv2 or later
Text Domain: lovemallorca
*/

:root {
	--lm-accent: #cc6633;
	--lm-accent-2: #00a1ae;
	--lm-dark: #262626;
	--lm-darker: #111111;
	--lm-text: #3f3f3f;
	--lm-muted: #777777;
	--lm-light: #fafaff;
	--lm-container: 960px;
	--lm-head-font: "Oswald", "Arial Narrow", Arial, sans-serif;
	--lm-body-font: "Open Sans", Arial, Helvetica, sans-serif;
	--lm-header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lm-header-h) + 8px); }

body {
	margin: 0;
	background: var(--lm-darker);
	color: var(--lm-text);
	font-family: var(--lm-body-font);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--lm-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lm-head-font);
	font-weight: 400;
	line-height: 1.2;
	color: var(--lm-accent);
	text-transform: uppercase;
	margin: 0 0 .6em;
	letter-spacing: .01em;
}
h1 { font-size: 42px; }
h2 { font-size: 35px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; color: #333; }
h6 { font-size: 15px; }
h2 strong, h3 strong, h5 strong { font-weight: 400; }
h1:empty, h2:empty, h3:empty, h5:empty { display: none; }

p { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; color: #000; padding: 8px 12px;
}

.lm-container { width: 100%; max-width: var(--lm-container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.lm-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--lm-dark);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.admin-bar .lm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lm-header { top: 0; } }

.lm-header__inner {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--lm-header-h);
}
.lm-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lm-brand img { display: block; max-height: 44px; width: auto; }
.lm-brand__title {
	font-family: var(--lm-head-font); font-size: 26px; color: #fff; text-transform: uppercase;
	letter-spacing: .04em;
}
.lm-brand a:hover { text-decoration: none; }
.lm-brand .lm-tagline-img { display: block; max-height: 42px; width: auto; max-width: 100%; }
.lm-brand { min-width: 0; }

.lm-nav { margin-left: auto; }
.lm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lm-nav a {
	font-family: var(--lm-head-font); text-transform: uppercase; font-size: 15px; letter-spacing: .06em;
	color: #ddd; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent;
}
.lm-nav a:hover, .lm-nav a:focus, .lm-nav a.is-active {
	color: #fff; text-decoration: none; border-bottom-color: var(--lm-accent);
}

.lm-lang { display: flex; gap: 6px; font-family: var(--lm-head-font); font-size: 13px; flex-shrink: 0; }
.lm-lang a { color: #999; padding: 3px 7px; border: 1px solid #444; border-radius: 2px; }
.lm-lang a.is-current { color: #fff; border-color: var(--lm-accent); background: var(--lm-accent); }
.lm-lang a:hover { text-decoration: none; color: #fff; }

.lm-menu-toggle {
	display: none; margin-left: auto; background: none; border: 1px solid #555; color: #fff;
	font-family: var(--lm-head-font); text-transform: uppercase; padding: 6px 12px; cursor: pointer;
}

@media (max-width: 900px) {
	.lm-brand { flex: 1 1 100%; justify-content: center; padding-top: 10px; }
	.lm-brand .lm-tagline-img { max-height: 30px; }
	.lm-menu-toggle { display: block; }
	.lm-nav { display: none; width: 100%; margin: 0; order: 10; padding-bottom: 14px; }
	.lm-nav.is-open { display: block; }
	.lm-nav ul { flex-direction: column; gap: 0; }
	.lm-nav a { display: block; padding: 10px 0; border-bottom: 1px solid #333; }
	.lm-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.lm-hero { background: var(--lm-darker); color: #fff; text-align: center; }
.lm-hero img { display: block; width: 100%; height: auto; margin: 0 auto; }
.lm-hero--text { padding: 120px 20px; background: #222 center / cover no-repeat; }
.lm-hero__title {
	font-family: var(--lm-head-font); font-size: clamp(36px, 7vw, 90px); color: #fff; margin: 0;
	text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.lm-hero__subtitle { font-size: 18px; margin: .5em 0 0; color: #eee; }

/* ---------- Sections ---------- */
.lm-section { background: #fff; padding: 70px 0 50px; position: relative; }
.lm-section:nth-of-type(even) { background: var(--lm-light); }
.lm-section .lm-container::after { content: ""; display: table; clear: both; }
.lm-section p:empty { display: none; }

.alignright { float: right; margin: 6px 0 20px 30px; }
.alignleft { float: left; margin: 6px 30px 20px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignright, .alignleft { max-width: 48%; }
@media (max-width: 640px) {
	.alignright, .alignleft { float: none; display: block; margin: 0 auto 20px; max-width: 100%; }
	h2 { font-size: 28px; }
	.lm-section { padding: 50px 0 30px; }
}

/* ---------- Parallax bands ---------- */
.lm-parallax {
	height: 500px;
	background-color: #222;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}
@media (max-width: 1024px), (hover: none) {
	.lm-parallax { background-attachment: scroll; height: 300px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.lm-parallax { background-attachment: scroll; }
	html { scroll-behavior: auto; }
}

/* ---------- Portfolio grid ---------- */
.lm-portfolio { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.lm-portfolio li { margin: 0; }
.lm-portfolio a { display: block; position: relative; overflow: hidden; background: #000; }
.lm-portfolio img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .25s, transform .4s; }
.lm-portfolio a:hover img, .lm-portfolio a:focus img { opacity: .75; transform: scale(1.04); }
.lm-portfolio__title { display: block; font-family: var(--lm-head-font); text-transform: uppercase; color: #333; margin-top: 8px; }
.lm-portfolio__excerpt { font-size: 13px; color: var(--lm-muted); margin: 2px 0 0; }

/* ---------- Lightbox ---------- */
.lm-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lm-lightbox::backdrop { background: rgba(0,0,0,.85); }
.lm-lightbox img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lm-lightbox__close {
	position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; border: 0;
	font-size: 26px; width: 40px; height: 40px; line-height: 40px; cursor: pointer;
}
.lm-lightbox__caption { color: #fff; text-align: center; font-family: var(--lm-head-font); padding: 8px; }

/* ---------- Generic pages / posts ---------- */
.lm-page { background: #fff; padding: 60px 0; min-height: 50vh; }
.lm-entry + .lm-entry { margin-top: 50px; padding-top: 40px; border-top: 1px solid #eee; }
.lm-entry__meta { color: var(--lm-muted); font-size: 13px; margin-bottom: 1em; }
.lm-pagination { margin-top: 40px; }

/* ---------- Footer ---------- */
.lm-footer { background: var(--lm-darker); color: #999; font-size: 13px; padding: 22px 0; }
.lm-footer__inner { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; align-items: center; }
.lm-footer a { color: #ccc; }
.lm-footer a:hover { color: #fff; }

/* Buttons from old content */
.color-btn, .main-btn, .button {
	display: inline-block; background: var(--lm-accent); color: #fff; padding: 8px 18px;
	font-family: var(--lm-head-font); text-transform: uppercase; letter-spacing: .05em;
}