/* MATRI Mallorca: static location page
   No external fonts or frameworks. Colors taken from matri.fi/mallorca. */

@font-face {
  font-family: "MAAX";
  src: url("../fonts/Maax.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAAX";
  src: url("../fonts/Maax-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAAX";
  src: url("../fonts/Maax-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MAAX";
  src: url("../fonts/Maax-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --c-text: #222;
  --c-muted: #6b6b6b;
  --c-bg: #fff;
  --c-sand: #edeae1;
  --c-light: #f9f9f9;
  --c-line: #d8d8d8;
  --font: "MAAX", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --narrow: 760px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 0.8em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; margin-top: 1.6em; }

p, ul, address { margin: 0 0 1em; }
address { font-style: normal; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}

.logo { width: 120px; height: auto; }

.header-nav { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }

.lang-switch { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { text-decoration: none; color: var(--c-muted); }
.lang-switch a[aria-current="page"] { color: var(--c-text); font-weight: 600; }

.ext-link { text-decoration: none; white-space: nowrap; }

/* Sections */

.section { padding: 64px var(--gutter); }
.section--intro { background: var(--c-sand); }
.section--split { background: var(--c-light); padding: 0; }

.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }

/* Image + text split */

.split { display: grid; grid-template-columns: 1fr; }

.split__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__text { padding: 48px var(--gutter); }
.split__text ul { padding-left: 1.2em; }
.split__text li { margin-bottom: 0.4em; }

.contact-list { list-style: none; padding-left: 0 !important; margin-top: 1.5em; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split__img { aspect-ratio: auto; height: 100%; min-height: 480px; }
  .split__text { padding: 72px 64px; align-self: center; }
  .split--reverse .split__img { order: 2; }
}

/* Footer */

.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.logo--footer { width: 80px; margin: 0 auto 16px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.copyright { margin: 0; }

@media (max-width: 480px) {
  .header-nav { gap: 12px; }
  .section { padding: 48px var(--gutter); }
}

/* Hero banner */

.hero-banner {
  width: 100%;
  overflow: hidden;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: clamp(350px, 50vw, 700px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .hero-banner img {
    height: 350px;
  }
}

