/* ============================================
   NARUSKAN RETKEILYMAJA — Main Stylesheet
   Rustic / Natural theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&family=Lora:wght@400;500&family=Source+Sans+3:wght@300;400&display=swap');

:root {
  --bark:       #3b2e1e;
  --bark-light: #5c4530;
  --moss:       #4a5e3a;
  --moss-light: #6b7f58;
  --stone:      #c9b99a;
  --cream:      #f5efe6;
  --cream-dark: #ede4d8;
  --rust:       #8b4513;
  --text:       #2a1f12;
  --text-light: #5a4a38;
  --white:      #fff;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --max-width: 1100px;
  --radius: 4px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--bark);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; color: var(--bark-light); }
p  { margin-bottom: 1.1em; }
a  { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--cream-dark); }

/* ---- Header ---- */
header {
  background: var(--bark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--stone);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: var(--cream); text-decoration: none; }

nav { display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; }
nav a {
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
nav a:hover, nav a.active {
  background: var(--bark-light);
  color: var(--cream);
  text-decoration: none;
}
.lang-switch {
  margin-left: 1rem;
  display: flex;
  gap: 0.3rem;
}
.lang-switch a {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--stone);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  text-decoration: none;
}
.lang-switch a:hover, .lang-switch a.active-lang {
  opacity: 1;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stone);
  margin: 5px 0;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
  background: var(--bark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  /*background-image: url('images/hero.webp');*/
  background-size: cover;
  background-position: center center;
}
/*.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #2a1a08 0%, #4a5e3a 100%);
}*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,12,4,0.82) 45%, rgba(20,12,4,0.35) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 { color: var(--cream); max-width: 560px; margin-bottom: 0.4em; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.hero .tagline { color: var(--stone); font-size: 1.1rem; max-width: 460px; margin-bottom: 2rem; font-weight: 300; }
.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
}
.btn:hover { background: var(--bark-light); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--stone);
  color: var(--stone);
  margin-left: 0.75rem;
}
.btn-outline:hover { background: var(--bark-light); border-color: var(--bark-light); color: var(--white); }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  border-top: 4px solid var(--moss);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.card p  { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--bark);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--cream); }
.page-hero p  { color: var(--stone); font-size: 1.05rem; margin-top: 0.4em; }

/* ---- Pricing tables ---- */
.price-section h2 { margin-top: 2.5rem; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.94rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.price-table th {
  background: var(--moss);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--cream); }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-info p { margin-bottom: 0.4rem; }
.contact-info strong { color: var(--bark); }

/* ---- Footer ---- */
footer {
  background: var(--bark);
  color: var(--stone);
  padding: 2.5rem 0;
  font-size: 0.87rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: var(--stone); }
footer a:hover { color: var(--cream); }

hr.divider { border: none; border-top: 2px solid var(--cream-dark); margin: 2.5rem 0; }

/* ---- Breadcrumb ---- */
.breadcrumb { margin-block: 1rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text-light);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: '›';
  margin: 0 0.45em;
  color: var(--stone);
  line-height: 1;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Room grid (majoitus / accommodation) ---- */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.room-card { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12); background: #fff; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.16); }
.room-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.room-card .placeholder-img { width: 100%; height: 200px; display: block; }
.room-card-body { padding: 1rem 1.1rem 1.2rem; }
.room-card-body h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.room-card-body p { margin: 0; font-size: 0.92rem; color: #555; line-height: 1.5; }

/* ---- Contact page ---- */
body.contact-page-body { font-family: 'Source Sans 3', sans-serif; font-weight: 300; background: #FAF8F5; color: #2C2C2A; }
.contact-page { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.contact-page .divider { width: 48px; height: 2px; background: #8B6F47; border: none; margin: 1.25rem 0; }
.layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start; }
.info-card { background: #fff; border-radius: 12px; padding: 1.5rem; border: 0.5px solid rgba(0,0,0,0.1); }
.info-section { margin-bottom: 1.5rem; }
.info-section:last-child { margin-bottom: 0; }
.info-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #888780; margin-bottom: 0.35rem; }
.info-value { font-size: 15px; font-weight: 400; color: #2C2C2A; line-height: 1.6; }
.info-value a { color: #7A5C3A; text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.info-divider { border: none; border-top: 0.5px solid rgba(0,0,0,0.08); margin: 1.25rem 0; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; background: #25D366; color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 400; border-radius: 999px; text-decoration: none; width: 100%; transition: background 0.15s; }
.wa-btn:hover { background: #1ebe5d; }
.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.social-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 8px; text-decoration: none; font-size: 11px; font-weight: 400; transition: opacity 0.15s; }
.social-btn:hover { opacity: 0.82; }
.social-btn svg { width: 22px; height: 22px; }
.social-btn.fb { background: #1877F2; color: #fff; }
.social-btn.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.social-btn.tt { background: #010101; color: #fff; }
.map-wrapper { border-radius: 12px; overflow: hidden; border: 0.5px solid rgba(0,0,0,0.1); height: 360px; }
.map-wrapper iframe { display: block; width: 100%; height: 100%; border: none; }
.map-caption { margin-top: 0.6rem; font-size: 12px; color: #888780; display: flex; align-items: center; gap: 6px; }

/* ---- Retket detail pages: full-bleed photo, visually-hidden H1 ---- */
.detail-page .hero-overlay { display: none; }
.detail-page .hero-content h1,
.detail-page .hero-content .tagline {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  nav.open { display: flex; }
  nav a { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
  .lang-switch { margin-left: 0; margin-top: 0.5rem; }
  .room-grid { grid-template-columns: 1fr; }
  .breadcrumb li:first-child,
  .breadcrumb [aria-current="page"] { display: none; }
  .breadcrumb li:nth-child(2)::before { display: none; }
  .breadcrumb li:nth-child(2) a::before { content: '← '; }
  .layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
