/*
Theme Name: Kämpinge Glamping
Theme URI: https://airbnb.com/h/kampingeglamping
Author: Kämpinge Glamping
Description: A simple, multilingual (Swedish / German / English) informational one-page theme for Kämpinge Glamping. Auto-detects browser language and links to Airbnb for booking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kampinge-glamping
*/

/* ---------------------------------------------------------------
   Design tokens
   Palette grounded in the subject: meadow green, warm canvas sand,
   brick-red shower hut accent, Nordic sky, ink text.
----------------------------------------------------------------*/
:root {
  --green:      #2f4a32;   /* deep meadow green – primary brand */
  --green-soft: #4a6b4d;
  --sand:       #f3ece0;   /* warm canvas surface */
  --sand-deep:  #e7dcc8;
  --brick:      #9e4a32;   /* shower-hut red – single accent */
  --brick-deep: #843c28;
  --ink:        #23271f;   /* near-black text, slightly green */
  --ink-soft:   #55594e;
  --sky:        #fbfaf6;   /* off-white page */
  --line:       rgba(35,39,31,.14);

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r: 14px;
  --shadow: 0 18px 40px -22px rgba(35,39,31,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sky);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brick);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------
   Skip link + focus
----------------------------------------------------------------*/
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

/* ---------------------------------------------------------------
   Header / language switch
----------------------------------------------------------------*/
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(251,250,246,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  transition: color .4s var(--ease);
}
.brand:hover { text-decoration: none; }
.site-header.scrolled .brand { color: var(--ink); }

.lang-switch { display: flex; gap: .15rem; align-items: center; }
.lang-switch button {
  font-family: var(--body);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.75);
  padding: .35rem .55rem; border-radius: 8px;
  transition: color .25s, background .25s;
}
.site-header.scrolled .lang-switch button { color: var(--ink-soft); }
.lang-switch button:hover { color: #fff; }
.site-header.scrolled .lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  color: #fff; background: rgba(255,255,255,.18);
}
.site-header.scrolled .lang-switch button[aria-pressed="true"] {
  color: #fff; background: var(--green);
}
.lang-sep { color: rgba(255,255,255,.4); font-size: .8rem; }
.site-header.scrolled .lang-sep { color: var(--line); }

/* ---------------------------------------------------------------
   Hero
----------------------------------------------------------------*/
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,28,18,.82) 0%, rgba(20,28,18,.25) 45%, rgba(20,28,18,.15) 100%);
}
.hero__inner { padding-block: clamp(3rem, 8vh, 6rem); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 400;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  max-width: 46ch; margin: 1rem 0 2rem;
  color: rgba(255,255,255,.92);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  font-size: .9rem; letter-spacing: .02em;
  color: rgba(255,255,255,.85);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 1.5rem; margin-top: 2.25rem; max-width: 640px;
}
.hero__meta b { font-weight: 600; color: #fff; }

/* ---------------------------------------------------------------
   Buttons
----------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.75rem; border-radius: 100px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-deep); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--solid-green { background: var(--green); color: #fff; }
.btn--solid-green:hover { background: var(--green-soft); color:#fff; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------------------------------------------------------------
   Sections
----------------------------------------------------------------*/
section { position: relative; }
.section-pad { padding-block: clamp(4rem, 10vw, 8rem); }

.intro { background: var(--sand); }
.intro__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) { .intro__grid { grid-template-columns: 1.05fr 1fr; } }
.intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--green); }
.intro p + p { margin-top: 1rem; }
.intro__media { position: relative; }
.intro__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}

/* Features */
.features { background: var(--sky); }
.features__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.features__head h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--green); }
.feature-grid {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.feature {
  background: var(--sand); border-radius: var(--r);
  padding: 1.75rem; border: 1px solid var(--line);
}
.feature__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--green); color: var(--sand);
}
.feature__icon svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; }
.feature h3 { font-size: 1.35rem; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Gallery */
.gallery { background: var(--green); color: var(--sand); }
.gallery .features__head h2 { color: var(--sand); }
.gallery__grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}
@media (min-width: 760px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  margin: 0; overflow: hidden; border-radius: 10px;
  aspect-ratio: 1; position: relative;
}
.gallery__item.tall { grid-row: span 2; aspect-ratio: 1/2; }
@media (max-width: 759px) { .gallery__item.tall { grid-row: span 1; aspect-ratio: 1; } }
.gallery__item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

/* Location */
.location { background: var(--sand); }
.location__grid { display: grid; gap: clamp(2rem,5vw,4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .location__grid { grid-template-columns: 1fr 1fr; } }
.location h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--green); }
.location ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.location li {
  display: flex; gap: .85rem; padding: .7rem 0;
  border-top: 1px solid var(--line); align-items: baseline;
}
.location li:last-child { border-bottom: 1px solid var(--line); }
.location li b { font-weight: 600; min-width: 9rem; color: var(--ink); }
.location__map {
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  border: 0; width: 100%; aspect-ratio: 4/3; min-height: 320px;
}

/* Booking CTA */
.booking {
  position: relative; color: #fff; text-align: center; overflow: hidden;
}
.booking__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.booking::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(30,42,26,.72), rgba(30,42,26,.82));
}
.booking h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; max-width: 18ch; margin-inline: auto; }
.booking p { max-width: 50ch; margin: 1rem auto 2.25rem; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.booking__price { font-size: .95rem; color: rgba(255,255,255,.75); margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); }
.site-footer .wrap { padding-block: 3.5rem; }
.footer__grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand { font-family: var(--display); font-size: 1.5rem; color: #fff; margin-bottom: .5rem; }
.site-footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.5); margin: 0 0 1rem; font-weight: 600; font-family: var(--body); }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer__contact p { margin: .35rem 0; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Language visibility helper */
[data-lang-content] { display: none; }
[data-lang-content].lang-active { display: revert; }
