/* Exposure — exposureretreat.com
   Centred 1280px page, fluid type and images, stacked layout on phones. */

:root{
  --gutter: 120px;
  --basalt: #100F0E;
  --ivory:  #EFEBE4;
  --ink:    #16150F;
  --muted:  #5A5647;
  --accent: #D9793F;
  --accent-dark: #A24B2A;
  --nav-h: 60px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0; background: var(--basalt);
  font-family: Karla, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

.page{ max-width: 1280px; margin: 0 auto; width: 100%; }

img{ max-width: 100%; }
a{ color: var(--accent); }
a:hover{ color: #EFA470; }
video.teaser{ outline: none; }

/* ---------------- navigation ---------------- */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,15,14,0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #2A2823;
}
.nav-inner{
  max-width: 1280px; margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand{ font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; color: #EFEBE4; text-decoration: none; }
.nav-links{ display: flex; align-items: center; gap: 8px; }
.nav-links a{
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  color: #DDD7C9; text-decoration: none; font-size: 15px; white-space: nowrap;
}
.nav-links a:hover{ color: #fff; }
.nav-cta{ background: var(--accent); color: #100F0E !important; font-weight: 600; }
.nav-cta:hover{ background: #EFA470; }

/* ---------------- form ---------------- */
input, textarea, select{
  font-family: inherit; font-size: 16px; color: var(--ink); background: #FBF9F5;
  border: 1px solid #C9C2B4; border-radius: 0; padding: 14px 16px; width: 100%; max-width: 100%;
}
input:focus, textarea:focus, select:focus{ outline: 2px solid var(--accent-dark); outline-offset: 1px; }
textarea{ resize: vertical; }
button[type="submit"]{
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 36px;
  background: var(--ink); color: var(--ivory); border: none;
  font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
button[type="submit"]:hover{ background: #2E2C22; }
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- tablet ---------------- */
@media (max-width: 1080px){ :root{ --gutter: 48px; } }

/* ---------------- phone ---------------- */
@media (max-width: 760px){
  :root{ --gutter: 20px; --nav-h: 54px; }

  .page div[style*="display: flex"]{
    flex-direction: column !important; align-items: stretch !important; gap: 18px !important;
  }
  .page div[style*="flex-shrink: 0"]{ width: auto !important; }
  .page img{ width: 100% !important; height: auto !important; max-height: 70vh; object-fit: cover; }
  .page p, .page h1, .page h2, .page h3, .page ul{ max-width: 100% !important; }
  .page > div, .page > figure{ padding-top: 48px !important; padding-bottom: 48px !important; }
  .page a[style*="min-height: 54px"], .page a[style*="min-height: 48px"],
  button[type="submit"]{ width: 100%; justify-content: center; text-align: center; }

  /* host portraits: small, text beside */
  .page img[alt^="Portrait of"]{
    width: 104px !important; height: 104px !important; min-width: 104px;
    float: left; margin: 0 16px 8px 0; object-fit: cover; object-position: center 20%;
  }
  /* the three strand pictures: small strips */
  .page img[alt="A man shielding his face with his hand in low evening light"],
  .page img[alt="A hand laid flat against sunlit rock"],
  .page img[alt="Several hands resting on a man's chest and shoulder in warm light"]{
    height: 150px !important; max-height: 150px;
  }
  .page img[alt*="ink drawing"]{ width: 140px !important; height: auto !important; }
  .page img[alt="Thomas and Alex on Lanzarote"]{ width: 200px !important; height: 260px !important; }

  /* closing band: only the sand on a phone */
  .closing-band{ display: block !important; }
  .closing-band img{ display: none !important; }
  .closing-band img:last-child{ display: block !important; }

  .nav-inner{ padding: 0 12px; }
  .nav-links a{ padding: 0 10px; font-size: 14px; }
  .nav-brand{ font-size: 20px; }
}

@media (max-width: 420px){ .nav-links a{ padding: 0 8px; font-size: 13px; } }
@media print{ .nav{ display: none; } body{ background: #fff; } }

/* ---------------- teaser video ---------------- */
.video-wrap{ position: relative; width: 100%; }
.video-wrap video{
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  background: #000; display: block;
}
.video-cover{
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(180deg, rgba(16,15,14,.30), rgba(16,15,14,.62));
  border: 1px solid #302D27; color: #EFEBE4;
  font-family: inherit; cursor: pointer; padding: 0;
  transition: background .25s ease;
}
.video-cover:hover{ background: linear-gradient(180deg, rgba(16,15,14,.20), rgba(16,15,14,.55)); }
.play-ring{
  width: 88px; height: 88px; border: 1px solid #EFEBE4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,121,63,.16); transition: transform .25s ease, background .25s ease;
}
.video-cover:hover .play-ring{ transform: scale(1.06); background: rgba(217,121,63,.30); }
.play-tri{
  width: 0; height: 0; margin-left: 7px;
  border-left: 23px solid #EFEBE4;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.play-title{
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15;
}
.play-meta{
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #C9C2B4;
}
.play-corner{
  position: absolute; left: 22px; bottom: 20px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #A9A292;
}
@media (max-width: 760px){
  .play-ring{ width: 66px; height: 66px; }
  .play-tri{ border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
  .play-corner{ display: none; }
}

/* ---------------- the house page ---------------- */
.page svg{ flex-shrink: 0; }
@media (max-width: 760px){
  /* room thumbnails stay small beside their text */
  .page img[alt="A room with two separate beds"],
  .page img[alt="A double room with a view over the valley"],
  .page img[alt="The large corner room with its own terrace door"]{
    width: 130px !important; height: 92px !important; min-width: 130px;
    float: left; margin: 0 16px 8px 0;
  }
  /* amenities: two columns */
  .page div[style*="flex-wrap: wrap"] > div{ width: 46% !important; }
  .page div[style*="flex-wrap: wrap"]{ flex-direction: row !important; flex-wrap: wrap !important; gap: 26px 4% !important; }
  /* the map */
  .page img[alt*="map of Lanzarote"]{ width: 100% !important; height: auto !important; }
  /* the sun drawing */
  .page img[alt="A hand-drawn sun"]{ width: 84px !important; height: 84px !important; }
}

/* ---------------- price + closing band on phones ---------------- */
@media (max-width: 760px){
  /* the figure stays big, and "and up" sits beside it */
  .page .price-row{ flex-direction: row !important; align-items: flex-end !important; gap: 10px !important; }
  .page .price-row span:first-child{ font-size: 54px !important; }
  .page .price-row span:last-child br{ display: none; }
  .page .price-row span:last-child{ white-space: nowrap; }
  /* no closing band at all on a phone */
  .closing-band{ display: none !important; }
}

/* ---------------- overview page: the retreat rows behave like buttons ---------------- */
.retreat-row{ transition: background .2s ease; }
a.retreat-row:hover{ background: #1C1D1F; }

/* ---------------- mobile corrections ---------------- */
@media (max-width: 760px){
  /* the numbered circles must stay circles */
  .page div[style*="border-radius: 50%"]{
    flex-direction: row !important;
    width: 44px !important; height: 44px !important;
    min-width: 44px; flex-shrink: 0 !important;
    align-items: center !important; justify-content: center !important;
  }
  /* the retreat rows are anchors, so they need naming explicitly */
  .retreat-row, .page a[class="retreat-row"]{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    padding: 28px 16px !important;
    margin: 0 -16px !important;
  }
  /* the vertical rule between date and description becomes a horizontal one */
  .page div[style*="width: 1px"]{
    width: 100% !important; height: 1px !important; align-self: stretch !important;
  }
  /* description and picture stack, full width */
  .retreat-row > div, .page div[style*="opacity: 0.6"] > div{ width: auto !important; }
  .retreat-row img{ width: 100% !important; height: auto !important; max-height: 44vh; }
  /* the date block needs air above the body text */
  .retreat-row > div:first-child{ gap: 4px !important; }
}

/* ---------------- phones: tighter vertical rhythm on the landing page ---------------- */
@media (max-width: 760px){
  .page > div{ padding-top: 38px !important; padding-bottom: 38px !important; }
  /* the hero: statement follows the wordmark closely */
  .page > div:first-of-type{ gap: 14px !important; }
  /* the exposure statement sits close to its rules */
  .page p[style*="font-style: italic"][style*="54px"]{ line-height: 1.2 !important; }
}


/* ---------------- phones: the landing page, tightened ---------------- */
@media (max-width: 760px){
  /* the heading is redundant once the rows are right there */
  .explore-head{ display: none !important; }
  .explore-wrap{ padding-top: 0 !important; padding-bottom: 0 !important; }

  /* the exposure statement reads large on a phone */
  .statement{ font-size: 30px !important; line-height: 1.25 !important; }

  /* date block: year and dates on the left, the numbered circle on the right */
  .retreat-row > div:first-child{
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    column-gap: 16px !important;
    align-items: center !important;
    width: auto !important;
  }
  .retreat-row > div:first-child > div:nth-child(1),
  .retreat-row > div:first-child > div:nth-child(2){ grid-column: 1 !important; }
  .retreat-row > div:first-child > div:nth-child(3){
    grid-column: 2 !important; grid-row: 1 / span 2 !important;
    flex-direction: row !important; align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important; padding-top: 0 !important;
  }
  /* the circle carries the meaning on its own; the label is hidden */
  .retreat-row > div:first-child > div:nth-child(3) > span{ display: none !important; }
  /* less scrolling before the retreats */
  .page > div{ padding-top: 30px !important; padding-bottom: 30px !important; }
}

/* ---------------- the teaser: wide on desktop, vertical on phones ---------------- */
.video-vertical{ display: none; }   /* phones switch this on */

@media (max-width: 760px){
  /* the two hero photographs give way to the film */
  .hero-images{ display: none !important; }
  /* the 16:9 player is replaced by the 9:16 one */
  .video-wrap{ display: none !important; }

  .video-vertical{
    display: block !important; position: relative; width: 100%; background: #000;
  }
  .video-vertical video{
    width: 100%; aspect-ratio: 9 / 16; height: auto; display: block; background: #000;
  }
  .video-vertical .video-cover{ position: absolute; inset: 0; }
  .video-vertical .play-title{ font-size: 30px; }
}
