/* ===================================================================
   Ons Huisje in Zweden — Vägla, Småland
   Design system
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* --- Swedish blue (structural, replaces the old pine green) --- */
  --pine:        #0a5c9e;   /* now "Swedish flag blue" — kept variable name for compatibility */
  --pine-mid:    #0c72c2;
  --pine-deep:   #06304f;   /* deep navy for hero/header depth */
  --pine-line:   rgba(255,255,255,0.16);

  /* --- Swedish yellow (primary accent, replaces the old amber/gold) --- */
  --yellow:      #fecc02;
  --yellow-dark: #d9ad00;
  --yellow-text: #7a5c00;  /* accessible dark-yellow for text on light backgrounds */

  /* --- Falu red (secondary accent — cabin red, used sparingly) --- */
  --falu:        #9c3b2e;
  --falu-dark:   #7c2c21;
  --falu-light:  #c05744;

  /* --- Birch / warm neutrals --- */
  --birch:       #f6f1e5;
  --paper:       #fcfaf3;
  --ink:         #22281f;
  --ink-soft:    #55604f;
  --line:        #e2dac5;

  --pine-text:   #054573;  /* accessible dark blue for text/links on light backgrounds */
  --shadow-soft: 0 10px 30px -12px rgba(6,48,79,0.28);
  --shadow-card: 0 4px 18px -6px rgba(34,40,31,0.16);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  background: var(--birch);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

a{ color: var(--pine-text); }
a:not(.btn):hover{ text-decoration-thickness: 2px; }

/* Accessible focus ring, visible on keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--yellow-dark);
  outline-offset: 2px;
}

.skip-link{
  position:absolute; left:-9999px; top:0;
  background: var(--pine); color:#fff;
  padding: 12px 20px; border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight:600;
}
.skip-link:focus{ left:0; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:0.5em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--yellow);
  display:inline-block;
}
.section-light .eyebrow, .section-paper .eyebrow{ color: var(--pine-text); }
.section-light .eyebrow::before, .section-paper .eyebrow::before{ background: var(--falu); }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------------
   Log-end divider — signature element (echoes the stacked-log build)
   --------------------------------------------------------------- */
.log-divider{
  height: 22px;
  background-image: radial-gradient(circle at 11px 11px, var(--falu) 0 8px, transparent 9px);
  background-size: 22px 22px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}
.log-divider.on-dark{ opacity: 0.6; background-image: radial-gradient(circle at 11px 11px, var(--yellow) 0 8px, transparent 9px); }

/* ---------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine);
  border-bottom: 1px solid var(--pine-line);
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 76px;
}

.logo{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fdfbf4;
  letter-spacing: 0.01em;
  display:flex;
  align-items:center;
  gap: 10px;
}
.logo svg{ width: 30px; height:30px; color: var(--yellow); flex-shrink:0; }
.logo .sub{ font-size: 0.7rem; font-weight:500; color:#cfd8c9; text-transform:uppercase; letter-spacing:0.08em; display:block; font-family: var(--font-body); }

nav.main-nav{ display:flex; align-items:center; gap: 4px; }

nav.main-nav a{
  color: #eae4d2;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  text-decoration:none;
}
nav.main-nav a:hover{ background: rgba(255,255,255,0.08); color:#fff; }
nav.main-nav a.active{ background: var(--yellow); color: var(--pine-deep); }

.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--pine-line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  position:absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #f6f1e5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span{ top: 50%; margin-top:-1px; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after{ transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   Hero (photographic)
   --------------------------------------------------------------- */
.hero{
  position: relative;
  color: #fdfbf4;
  overflow: hidden;
  min-height: 480px;
  display:flex;
  align-items:flex-end;
}
.hero .photo-layer{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
}
.hero .scrim{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(6,48,79,0.90) 6%, rgba(6,48,79,0.48) 46%, rgba(6,48,79,0.18) 100%);
}
.hero-inner{ position: relative; max-width: 700px; padding-bottom: 48px; }

.hero h1{ color:#fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0.28em 0 0.4em; }
.hero .lede{ font-size: 1.1rem; color: #ece6d4; max-width: 560px; margin-bottom: 1.8em; }

.hero-cta{ display:flex; flex-wrap: wrap; gap: 14px; }

/* smaller hero used on inner pages */
.hero-inner-page{ min-height: 340px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn svg{ width:19px; height:19px; flex-shrink:0; }

.btn-falu{ background: var(--falu); color: #fff; }
.btn-falu:hover{ background: var(--falu-dark); }

.btn-yellow{ background: var(--yellow); color: var(--pine-deep); }
.btn-yellow:hover{ background: var(--yellow-dark); }

.btn-whatsapp{ background: #25d366; color:#0b3d17; }
.btn-whatsapp:hover{ background: #1fb955; }

.btn-outline{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover{ border-color:#fff; background: rgba(255,255,255,0.1); }

.btn-outline-dark{ background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline-dark:hover{ background: var(--pine); color: #fff; }

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
section{ padding: 72px 0; }
.section-light{ background: var(--birch); }
.section-paper{ background: var(--paper); }
.section-pine{ background: var(--pine); color: #ede7d5; }
.section-pine h2, .section-pine h3{ color: #fff; }
.section-pine p{ color: #cfd8c9; }

.section-head{ max-width: 640px; margin-bottom: 2.4em; }
.section-head h2{ font-size: clamp(1.5rem, 2.8vw, 2rem); }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items:center; }
.two-col img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

.prose{ max-width: 640px; }
.prose p{ color: var(--ink-soft); font-size: 1.02rem; }
.section-pine .prose p{ color: #cfd8c9; }

/* ---------------------------------------------------------------
   Home: quick nav cards
   --------------------------------------------------------------- */
.quick-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -76px;
  position: relative;
  z-index: 5;
}
.quick-card{
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  text-decoration:none;
  color: var(--ink);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quick-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.quick-card .icon{ width:32px; height:32px; color: var(--falu); }
.quick-card h3{ font-size: 1.02rem; margin:0; }
.quick-card span.go{ font-size:0.82rem; color: var(--falu-dark); font-weight:700; }

/* ---------------------------------------------------------------
   Feature/teaser cards (home mid section)
   --------------------------------------------------------------- */
.teaser-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.teaser-card{
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-card);
}
.teaser-card img{ border-radius:0; aspect-ratio: 16/10; object-fit: cover; width:100%; }
.teaser-card .body{ padding: 22px 24px 26px; }
.teaser-card h3{ font-size: 1.15rem; }
.teaser-card p{ color: var(--ink-soft); font-size:0.95rem; }

/* ---------------------------------------------------------------
   Info cards (house facts)
   --------------------------------------------------------------- */
.fact-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align:center;
}
.fact-card .num{ font-family: var(--font-display); font-size:1.7rem; color: var(--falu-dark); font-weight:700; }
.fact-card .label{ font-size:0.85rem; color: var(--ink-soft); margin-top:4px; }

.amenity-list{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; list-style:none; padding:0; margin:0; }
.amenity-list li{ display:flex; gap:10px; align-items:flex-start; font-size:0.96rem; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--line); }
.amenity-list svg{ width:19px; height:19px; color: var(--falu); flex-shrink:0; margin-top:2px; }

/* ---------------------------------------------------------------
   Pricing table
   --------------------------------------------------------------- */
.price-table{ width:100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-card); }
.price-table caption{ text-align:left; padding: 16px 20px 0; font-size:0.85rem; color: var(--ink-soft); }
.price-table th, .price-table td{ padding: 16px 20px; text-align:left; border-bottom: 1px solid var(--line); font-size:0.96rem; }
.price-table thead th{ background: var(--pine); color:#fff; font-family: var(--font-display); font-weight:600; }
.price-table tbody tr:last-child td{ border-bottom:none; }
.price-table td.amount{ font-weight:700; color: var(--falu-dark); font-family: var(--font-display); font-size:1.1rem; }

/* ---------------------------------------------------------------
   Gallery (accessible lightbox grid)
   --------------------------------------------------------------- */
.gallery-group{ margin-bottom: 46px; }
.gallery-group h3{ font-size:1.15rem; margin-bottom: 0.9em; }
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.gallery-grid button{
  padding:0; border:0; margin:0; cursor:pointer;
  border-radius: var(--radius-sm);
  overflow:hidden;
  aspect-ratio: 4/3;
  background: var(--line);
  position:relative;
}
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition: transform 0.3s ease; }
.gallery-grid button:hover img, .gallery-grid button:focus-visible img{ transform: scale(1.06); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index: 1000;
  background: rgba(20,26,18,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.lightbox.open{ display:flex; }
.lightbox figure{ margin:0; max-width: min(92vw, 1100px); max-height: 88vh; text-align:center; }
.lightbox img{ max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox figcaption{ color:#f0ead8; margin-top: 14px; font-size:0.92rem; }
.lightbox-btn{
  position:absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color:#fff;
  width: 46px; height:46px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.lightbox-btn:hover{ background: rgba(255,255,255,0.22); }
.lightbox-close{ top: 22px; right: 22px; }
.lightbox-prev{ left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-btn svg{ width:22px; height:22px; }
@media (max-width: 720px){
  .lightbox-prev{ left:6px; } .lightbox-next{ right:6px; }
  .lightbox-btn{ width:40px; height:40px; }
}

/* ---------------------------------------------------------------
   Map
   --------------------------------------------------------------- */
.map-frame{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-soft); border: 0; width:100%; height: 420px; }

/* ---------------------------------------------------------------
   Nearby list (location page)
   --------------------------------------------------------------- */
.nearby-list{ display:flex; flex-direction:column; gap:0; }
.nearby-row{ display:grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items:baseline; }
.nearby-row:last-child{ border-bottom:none; }
.nearby-row .dist{ font-family: var(--font-display); color: var(--yellow); font-weight:600; }
.nearby-row h4{ margin:0 0 0.2em; font-size:1rem; }
.nearby-row p{ margin:0; font-size:0.92rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   CTA banner
   --------------------------------------------------------------- */
.cta-banner{
  background: linear-gradient(120deg, var(--yellow-dark), var(--yellow));
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--pine-deep);
}
.cta-banner h3{ color: var(--pine-deep); margin:0; font-size: 1.3rem; max-width: 460px; }

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items:start; }

.contact-card{
  background: var(--pine);
  color: #ede7d5;
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}
.contact-card h3{ color:#fff; }
.contact-list{ list-style:none; padding:0; margin: 20px 0 26px; display:flex; flex-direction:column; gap:14px; }
.contact-list li{ display:flex; gap:12px; align-items:flex-start; font-size:0.96rem; }
.contact-list svg{ width:19px; height:19px; color: var(--yellow); flex-shrink:0; margin-top:2px; }
.contact-card a{ color:#fdfbf4; text-decoration: underline; }
.contact-card .btn-group{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 10px; }

form.contact-form{ background: var(--paper); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-row{ margin-bottom: 18px; }
.form-row label{ display:block; font-weight:600; font-size:0.92rem; margin-bottom:6px; }
.form-row input, .form-row textarea{
  width:100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background:#fff;
  color: var(--ink);
}
.form-row textarea{ min-height: 130px; resize: vertical; }
.form-row .hint{ font-size:0.8rem; color: var(--ink-soft); margin-top:4px; }
.form-status{ font-size:0.92rem; margin-top: 10px; }
.form-status[data-state="ok"]{ color: #1f6e3b; }
.form-status[data-state="error"]{ color: var(--falu-dark); }

/* ---------------------------------------------------------------
   WhatsApp floating button
   --------------------------------------------------------------- */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  text-decoration:none;
  transition: transform 0.18s ease;
}
.wa-float:hover{ transform: scale(1.07); }
.wa-float svg{ width:30px; height:30px; }

/* ---------------------------------------------------------------
   Wandering moose strip — playful touch, purely decorative
   --------------------------------------------------------------- */
.moose-strip{
  position: relative;
  height: 70px;
  overflow: hidden;
  background: var(--birch);
}
.moose-strip .moose-walk{
  position: absolute;
  bottom: 4px;
  width: 76px;
  height: auto;
  animation: moose-walk 26s linear infinite;
}
@keyframes moose-walk{
  from{ left: -90px; }
  to{ left: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .moose-strip .moose-walk{ animation: none; left: 20px; }
}
@media (max-width: 720px){
  .moose-strip{ height: 54px; }
  .moose-strip .moose-walk{ width: 58px; }
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
footer.site-footer{
  background: var(--pine);
  color: #a9b6a2;
  padding: 34px 0;
  font-size: 0.85rem;
}
footer.site-footer .container{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; }
footer.site-footer a{ color:#d7e0cf; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 980px){
  .two-col{ grid-template-columns: 1fr; gap: 30px; }
  .quick-grid{ grid-template-columns: repeat(2, 1fr); margin-top: -50px; }
  .teaser-grid{ grid-template-columns: 1fr; }
  .fact-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .amenity-list{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  nav.main-nav{
    position:absolute;
    top: 76px; left:0; right:0;
    background: var(--pine);
    flex-direction:column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--pine-line);
    display:none;
  }
  nav.main-nav.open{ display:flex; }
  nav.main-nav a{ padding: 12px 10px; }
  .nav-toggle{ display:block; }
  .hero{ min-height: 400px; }
  .quick-grid{ grid-template-columns: 1fr; margin-top: -40px; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
  .nearby-row{ grid-template-columns: 1fr; gap:4px; }
  .wa-float{ right:14px; bottom:14px; width:54px; height:54px; }
}
