/*
Theme Name: Het Loekshoes
Description: Landelijke website voor de vakantiewoning Het Loekshoes in Tilligte.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: het-loekshoes
*/

@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Playfair Display;
  src: url(assets/playfair.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: Playfair Display;
  src: url(assets/playfair-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --forest: #263a2c;
  --ink: #26372a;
  --cream: #fcf8ee;
  --linen: #f0eadc;
  --clay: #9d482e;
  --clay-hover: #823924;
  --muted: #4c574a;
  --line: #d6ccba;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ae542f; outline-offset: 5px; }
.skip { position: absolute; z-index: 4; left: 1rem; top: 1rem; transform: translateY(-180%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(2.45rem, 4.25vw, 4rem); line-height: 1.07; }
p { max-width: 57ch; }

.masthead, footer { background: var(--forest); color: var(--cream); }
.header-inner { min-height: 83px; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .85rem; align-items: center; text-decoration: none; font: 500 1.55rem/1.15 var(--serif); white-space: nowrap; }
.brand small { display: block; font: 600 .69rem/1.3 var(--sans); letter-spacing: .17em; margin-top: .35rem; color: #ead8af; }
.brand-mark { width: 35px; height: 35px; margin-right: 1px; border: 1px solid #c0ae86; border-radius: 50%; display: grid; place-items: center; }
.brand-mark i { width: 14px; height: 11px; position: relative; border: solid #f4e3ba; border-width: 0 1px 1px; margin-top: 6px; }
.brand-mark i::before { content: ""; position: absolute; width: 12px; height: 12px; border: solid #f4e3ba; border-width: 1px 0 0 1px; transform: rotate(45deg); left: 0; top: -6px; }
.brand-mark i::after { content: ""; position: absolute; width: 4px; height: 6px; border: solid #f4e3ba; border-width: 1px 1px 0; bottom: 0; left: 4px; }
nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.4vw, 3.25rem); }
nav a { font-size: .94rem; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid transparent; padding: .65rem 1.4rem; border-radius: 4px; background: var(--clay); color: #fffaf0; text-decoration: none; font-weight: 700; line-height: 1.25; text-align: center; transition: background .2s ease; }
.button:hover { background: var(--clay-hover); }
.button-outline { background: transparent; border-color: #bfb299; min-height: 41px; padding: .45rem 1.4rem; font-size: .91rem; }
.button-outline:hover { background: #3e5341; }
.text-link { display: inline-block; font-weight: 700; text-decoration-color: #a56a45; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }
.light { color: var(--cream); text-decoration-color: #e8c89c; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(495px, 42vw, 635px); color: #fff9ee; background: var(--forest); }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 43%; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(20,35,25,.89), rgba(24,38,27,.73) 28%, rgba(23,36,26,.42) 53%, rgba(23,36,26,.08) 80%), linear-gradient(to top, rgba(19,31,22,.35), transparent 49%); }
.hero-inner { padding-block: 4rem 5.4rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .17em; line-height: 1.35; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 1.7rem; height: 1px; flex: 0 0 auto; background: #a75f42; }
.hero .eyebrow { color: #f4d5a5; }
.hero .eyebrow span { background: currentColor; }
h1 { font-size: clamp(3.35rem, 7.7vw, 7rem); line-height: .98; }
.hero-subtitle { font: italic 400 clamp(1.55rem, 3vw, 2.45rem)/1.3 var(--serif); margin-top: .65rem; color: #fde3bd; }
.hero-description { margin-top: 1.2rem; max-width: 41ch; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.hero-caption { position: absolute; right: 1.2rem; bottom: 1rem; font-size: .8rem; background: #263a2ced; color: var(--cream); padding: .3rem .6rem; }

.glance { background: var(--linen); border-bottom: 1px solid var(--line); }
.glance ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 1.25rem 0; margin-block: 0; }
.glance li { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 34px; padding-inline: .5rem; border-right: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.glance li:last-child { border-right: 0; }
.fact-icon { color: var(--clay); width: 22px; height: 22px; position: relative; flex: 0 0 22px; }
.fact-icon::before, .fact-icon::after { content: ""; position: absolute; }
.guests::before { width: 7px; height: 7px; left: 6px; top: 1px; border: 1.5px solid; border-radius: 50%; box-shadow: 6px 1px 0 -2px var(--linen), 6px 1px 0 -.5px currentColor; }
.guests::after { width: 15px; height: 8px; top: 10px; left: 2px; border: 1.5px solid; border-radius: 8px 8px 2px 2px; }
.bed::before { inset: 7px 1px 4px; border: 1.5px solid; border-radius: 3px 4px 0 0; }
.bed::after { inset: 4px 16px 1px 1px; border: solid; border-width: 0 0 0 1.5px; box-shadow: 15px 3px 0 -1px var(--linen), 17px 2px 0 -1px currentColor; }
.space::before { inset: 3px; border: 1.5px solid; border-radius: 1px; }
.space::after { left: 7px; top: 8px; width: 8px; height: 6px; border: solid; border-width: 0 0 1.5px 1.5px; }
.roof::before { width: 13px; height: 13px; border: solid; border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); top: 5px; left: 4px; }
.roof::after { inset: 9px 5px 3px; border: solid; border-width: 0 1.5px 1.5px; }

.intro { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(2rem, 7vw, 6.75rem); align-items: center; padding-block: clamp(4rem, 7vw, 7.3rem); }
.intro-copy > p:not(.eyebrow), .surroundings-copy > p:not(.eyebrow), .booking p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); }
.intro-copy .text-link, .surroundings-copy .text-link { margin-top: 1.5rem; }
.intro-photo { position: relative; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 1.32; object-fit: cover; border-radius: 4px; }
.intro-photo figcaption { margin-top: .55rem; font-size: .82rem; color: var(--muted); text-align: right; }

.gallery-section { background: var(--linen); padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.8rem; }
.section-heading > p { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery button { appearance: none; display: block; background: var(--cream); text-align: left; color: var(--ink); border: 1px solid var(--line); padding: 0; border-radius: 4px; overflow: hidden; }
.gallery button:hover { border-color: var(--clay); }
.gallery img { width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; }
.gallery span { display: block; padding: .7rem .85rem; font-weight: 700; }
.gallery-section .text-link { margin-top: 1.35rem; }

.surroundings { display: grid; grid-template-columns: 1.1fr 1fr; background: #e4e9dc; }
.surroundings-visual { position: relative; min-height: 425px; }
.surroundings-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.surroundings-copy { padding: clamp(3rem, 7vw, 6.8rem) max(44px, calc((100vw - 1200px)/2)) clamp(3rem, 7vw, 6.8rem) clamp(2.5rem, 6vw, 6rem); align-self: center; }
.booking { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.75rem, 8vw, 7rem); }
.practical { margin: 1.2rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.practical li::marker { color: var(--clay); }
.booking-form { padding: clamp(1.2rem, 3vw, 2rem); background: var(--linen); border: 1px solid var(--line); border-radius: 4px; }
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.dates label { display: block; line-height: 1.4; font-weight: 700; font-size: .92rem; }
.dates input { box-sizing: border-box; min-width: 0; width: 100%; display: block; min-height: 47px; margin-top: .35rem; border: 1px solid #8e9383; border-radius: 3px; padding: .5rem .55rem; color: var(--ink); background: #fffcf6; font-weight: 500; }
.booking-form .button { width: 100%; }
.booking-form > .text-link { display: table; margin: .8rem auto 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; min-height: 112px; padding-block: 1.6rem; }
.footer-inner p { font-size: .875rem; color: #efe7d4; }
.footer-inner p a { text-underline-offset: .21em; }

.lightbox { width: min(900px, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; background: var(--forest); color: var(--cream); padding: .85rem; border: 0; border-radius: 4px; }
.lightbox::backdrop { background: #121b14d9; }
.lightbox-toolbar, .lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox-toolbar { padding-bottom: .65rem; }
.lightbox-controls { padding-top: .65rem; }
.lightbox img { width: 100%; height: auto; max-height: 69vh; object-fit: contain; background: #1c2a20; }
.lightbox button { color: inherit; background: transparent; border: 1px solid #acb39f; border-radius: 3px; padding: .35rem .65rem; min-height: 40px; }
.lightbox button:hover { background: #3e5341; }
.lightbox .lightbox-close { width: 40px; font-size: 1.55rem; line-height: 1; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 64px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .surroundings-copy { padding-right: 32px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .7rem 1rem; padding-block: .9rem .65rem; }
  .header-inner nav { grid-row: 2; grid-column: span 2; gap: 1.35rem; padding-block: .1rem; }
  .header-inner .button { grid-row: 1; grid-column: 2; min-height: 38px; padding-inline: 1rem; }
  .brand { font-size: 1.36rem; gap: .55rem; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { min-height: 510px; }
  .hero-image { object-position: 70% center; }
  .hero::after { background: linear-gradient(90deg, #17271bb8, #17271b24), linear-gradient(0deg, #17271bec, #17271b77 56%, #17271b16 100%); }
  .hero-inner { padding-block: 5rem 4.35rem; }
  .hero-caption { right: .65rem; bottom: .65rem; }
  .hero-actions { gap: .85rem 1.1rem; }
  .glance ul { grid-template-columns: 1fr 1fr; gap: .5rem 0; padding-block: .75rem; }
  .glance li { justify-content: flex-start; font-size: .89rem; gap: .5rem; padding-left: .35rem; }
  .glance li:nth-child(even) { border-right: 0; padding-left: .85rem; }
  .intro, .booking, .surroundings { grid-template-columns: 1fr; }
  .intro, .booking { gap: 1.85rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .gallery { gap: .7rem; }
  .gallery span { padding: .56rem .6rem; font-size: .92rem; }
  .surroundings-visual { min-height: 0; aspect-ratio: 1.35; }
  .surroundings-copy { padding: 2.75rem 20px 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.content-page { padding-block: 4rem; }
.content-page article + article { margin-top: 3rem; }
.content-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
