@font-face {
  font-family: "PF Din";
  src: url("media/PFDinText-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #333;
  --accent: #006d86;
  --header: 84px;
  font: 15px/1.5 "PF Din", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; letter-spacing: .2px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #0089a8; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; top: 4px; left: 4px; z-index: 3; background: white; padding: 8px; }

header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: white;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  min-height: var(--header);
  align-items: stretch;
  position: relative;
  padding-inline: 52px;
}
.nav-side { display: flex; align-items: stretch; justify-content: flex-end; gap: 30px; }
.nav-side:last-of-type { justify-content: flex-start; }
.nav-side a {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 3px 7px;
  border-top: 3px solid transparent;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}
.nav-side a:hover, .nav-side a[aria-current] { color: var(--accent); border-top-color: var(--accent); }
.brand { display: grid; place-items: center; padding: 5px 10px; }
.brand img { width: 80px; }
.language {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--accent);
  padding: 5px;
  font-size: 13px;
}
.title-bar { background: var(--ink); color: white; }
.title-bar h1 {
  margin-block: 0;
  min-height: 19px;
  padding-block: 1px;
  font-size: 11px;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 2px;
}

.carousel {
  position: relative;
  isolation: isolate;
  background: #eeedeb;
  min-height: 280px;
  overflow: hidden;
  aspect-ratio: 1240 / 868;
}
.carousel:not(.home) { max-height: max(360px, calc(100svh - var(--header) - 57px)); }
.carousel.home {
  background: #2f2f2f;
  aspect-ratio: auto;
  height: max(380px, calc(100svh - var(--header) - 38px));
}
.gallery .carousel { aspect-ratio: 4 / 3; }
.slide { position: absolute; inset: 0; margin: 0; }
.carousel:not(.home) .slide { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide figcaption {
  padding: 7px 16px;
  text-align: center;
  font-size: 17px;
}
.home .slide img { object-position: var(--hero-focus, center); }
.hero-pool { --hero-focus: 44% 57%; }
.hero-hammam { --hero-focus: 68% 62%; }
.hero-facade { --hero-focus: 50% 72%; }
.hero-reception { --hero-focus: 58% 66%; }
.home .hero-facade figcaption {
  top: clamp(28px, 7vh, 72px);
  bottom: auto;
}
.home .slide figcaption {
  position: absolute;
  display: grid;
  place-content: center;
  left: clamp(54px, 8vw, 128px);
  bottom: clamp(38px, 8vh, 100px);
  width: clamp(220px, 25vw, 290px);
  aspect-ratio: 1;
  background: rgb(51 51 51 / 75%);
  border-radius: 50%;
  padding: 24px;
  color: white;
  font-size: clamp(18px, 2.25vw, 25px);
  line-height: 1.3;
  text-align: center;
}
.carousel-arrow, .carousel-pause, .carousel-dot {
  color: white;
  background: rgb(0 0 0 / 65%);
  border: 1px solid rgb(255 255 255 / 75%);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: 30px/1 Arial, sans-serif;
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 34px;
  border-radius: 5px;
}
.carousel-dots {
  position: absolute;
  right: 16px;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home .carousel-dots {
  inset: auto 62px 17px;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
}
.carousel-dot { width: 13px; height: 13px; border-radius: 50%; padding: 0; }
.carousel-dot[aria-current] { background: white; }
.carousel-arrow:hover, .carousel-pause:hover { background: #111; }

.portfolio { display: grid; grid-template-columns: minmax(215px, 1fr) 4fr; }
.portfolio-intro { padding: 10px 20px 20px; }
.portfolio-intro p { margin: 0 0 14px; }
.gallery { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr; }
.gallery-nav { border-top: 1px solid var(--ink); }
.gallery-nav a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.gallery-nav a:hover, .gallery-nav a[aria-current] { color: var(--accent); background: #f2efef; }
.gallery-panel { border-left: 1px solid var(--ink); scroll-margin-top: calc(var(--header) + 20px); }
.split { display: grid; grid-template-columns: 2fr 3fr; }
.split-copy { padding: 20px clamp(20px, 4vw, 52px); }
.split-copy p { max-width: 450px; margin: 0 0 1em; }
.split-visual { border-left: 1px solid var(--ink); }
.map { background: #f1f0ec; padding: 0; }
.map iframe { width: 100%; height: min(65vh, 570px); min-height: 360px; border: 0; display: block; }
.contact-links { margin-block: 24px 12px; }
.contact-links a { color: var(--accent); }
.contact-links a[href^="tel:"] { white-space: nowrap; }

.footer { background: var(--ink); color: #fff; }
.footer .wrap { display: grid; grid-template-columns: 1fr 1fr; padding-block: 20px; }
.footer h2 { font-size: 15px; font-weight: 400; margin: 0 0 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer address { font-style: normal; }
.credit { background: #282a2b; color: #eae5e5; font-size: 12px; padding: 12px 20px; text-align: center; }

@media (max-width: 800px) {
  .portfolio, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-nav { display: flex; flex-wrap: wrap; padding: 0 10px; }
  .gallery-nav a { flex: 1 1 105px; font-size: 14px; }
  .gallery-panel, .split-visual { border-left: 0; }
  .gallery .carousel { aspect-ratio: 1; }
  .carousel:not(.home) .carousel-dots {
    top: 12px;
    left: 12px;
    flex-flow: row wrap;
    justify-content: center;
  }
}

@media (max-width: 550px) {
  :root { --header: 113px; }
  .masthead {
    width: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: 71px 42px; padding: 0 10px;
  }
  .brand { grid-area: 1 / 1 / 2 / 3; justify-self: center; }
  .brand img { width: 68px; }
  .nav-side { grid-area: 2 / 1; gap: 4px; justify-content: stretch; }
  .nav-side:last-of-type { grid-area: 2 / 2; justify-content: stretch; }
  .nav-side a { flex: 1 1 0; font-size: 13px; }
  .language { top: 35px; right: 12px; }
  .carousel.home { height: auto; min-height: 0; }
  .home .slide { position: static; }
  .home .slide img { height: auto; aspect-ratio: 5 / 4; }
  .home .slide figcaption {
    position: static;
    display: block;
    width: auto;
    min-height: 108px;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 12px 22px 48px;
  }
  .home .slide figcaption br { display: none; }
  .home .carousel-arrow { top: 40vw; }
  .footer .wrap { gap: 12px; }
}
