/*
Theme Name: Kuru Villa
Theme URI: https://kuruvilla.ee/
Author: OpenIT / Zu Soft OÜ
Author URI: https://openit.ee/
Description: Kuru Villa Kodumajutuse teema. Avalehe tekstid, hinnad, küsimused ja pildid on WordPressist muudetavad: Avalehe osad, Lisateenused, KKK, Galerii ning Välimus > Kohanda.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuruvilla
Tags: accommodation, one-page, estonian, responsive, accessibility-ready
*/

/* Admini vormide abi */
.kv-card-box { border: 1px solid #dcdcde; padding: 10px; margin: 0 0 10px; background: #fff; }

* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7f8;
  --text: #102235;
  --muted: #596273;
  --card: #ffffff;
  --line: #d9dce3;
  --accent: #1b64d5;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.topnav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.topnav a:hover,
.topnav a:focus {
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #102235;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 23, 35, 0.91) 0%, rgba(9, 31, 45, 0.76) 37%, rgba(8, 27, 39, 0.22) 68%, rgba(8, 24, 35, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 20, 30, 0.38), transparent 46%);
}

.hero-inner {
  width: min(1120px, 92vw);
  padding: 64px 0;
}

.hero-overlay {
  max-width: 590px;
  color: #f8fbff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 27, 36, 0.38);
  backdrop-filter: blur(8px);
  color: #d7edf1;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 570px;
  color: #ffffff;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(2, 15, 24, 0.28);
}

.hero-lead {
  max-width: 540px;
  margin: 22px 0 0;
  color: #e4eef2;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero .btn {
  padding: 13px 21px;
  border: 1px solid #f0b35b;
  background: #f0b35b;
  color: #182c35;
  box-shadow: 0 9px 26px rgba(6, 23, 32, 0.22);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(6, 28, 39, 0.28);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-block;
  background: #3d7dfa;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #b7c9ef;
  color: #f3f7ff;
}

.top-actions .btn-outline {
  border-color: #1b64d5;
  color: #123f82;
}

.btn:hover,
.btn:focus {
  opacity: 0.85;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: grid;
  gap: 1px;
  min-width: 138px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 12px;
  background: rgba(4, 25, 34, 0.34);
  backdrop-filter: blur(8px);
}

.hero-points strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.hero-points span {
  color: #cbdce1;
  font-size: 0.78rem;
  line-height: 1.35;
}

.section {
  padding: 52px 0;
}

.section-muted {
  background: #eef2f8;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  margin-top: 0;
}

.feature-grid,
.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.price-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.06);
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.aside-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.aside-box a {
  color: var(--accent);
}

.aside-box .btn {
  color: #ffffff;
}

.section ul {
  margin: 0;
  padding-left: 20px;
}

.gallery-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.gallery-grid figcaption {
  padding: 10px;
  font-size: 0.92rem;
  color: #42566f;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 12px 0;
  padding: 10px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin-bottom: 0;
}

.contact-wrap a {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: #fff;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.block {
  display: block;
  text-align: center;
}

/* Hamburger-nupp: ainult kitsal ekraanil */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, top 0.18s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topnav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 2px;
    border-top: 1px solid var(--line);
  }

  .nav-open .topnav {
    display: flex;
  }

  .topnav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .topnav a:last-child {
    border-bottom: 0;
  }

  .top-actions {
    display: none;
    width: 100%;
    gap: 8px;
    padding-bottom: 6px;
  }

  .nav-open .top-actions {
    display: flex;
  }

  .top-actions .btn {
    flex: 1;
    text-align: center;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
    min-height: 0;
    margin-bottom: 0;
  }

  .hero img {
    position: relative;
    height: clamp(260px, 72vw, 390px);
    object-position: 70% center;
    z-index: auto;
  }

  .hero-shade {
    display: none;
  }

  .hero-inner {
    width: 100%;
    padding: 0;
  }

  .hero-overlay {
    max-width: 100%;
    padding: 34px 4vw 38px;
    background: #102c38;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .hero-lead {
    max-width: 650px;
  }
}

@media (max-width: 520px) {
  .hero-overlay {
    padding: 30px 5vw 34px;
  }

  .hero-eyebrow {
    margin-bottom: 15px;
    font-size: 0.72rem;
  }

  .hero-cta {
    display: grid;
    margin: 24px 0;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-points li {
    min-width: 0;
    padding: 9px;
  }

  .hero-points span {
    font-size: 0.7rem;
  }
}


/* Kodukorra loetelud kaartides */
.card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.card ul li:last-child {
  margin-bottom: 0;
}


/* Lisateenuste ja alalõikude pealkirjad */
.price-sub {
  margin: 14px 0 6px;
  font-weight: 700;
  color: var(--ink, #102235);
}

.price-card ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.price-card ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.price-card ul li:last-child {
  margin-bottom: 0;
}

.sub-h {
  margin-top: 22px;
}

.sund-foot {
  margin-top: 18px;
}


/* Hinnad: põhihind + lisateenuste read */
.price-main {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 28px 30px;
  border-radius: 16px;
  color: #f3f8fc;
  background: linear-gradient(135deg, #102c38 0%, #1a4863 100%);
  box-shadow: 0 10px 26px rgba(16, 34, 53, 0.16);
}

.price-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9fc6e4;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 8px 0 10px;
}

.price-amount strong {
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-amount span {
  font-size: 1.02rem;
  color: #bcd6e9;
}

.price-note {
  margin: 0;
  max-width: 46ch;
  color: #dbe8f2;
}

.price-cta {
  margin: 18px 0 0;
}

.section ul.price-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.price-facts li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.price-facts span {
  color: #c3d8e8;
}

.price-facts strong {
  white-space: nowrap;
}

.price-services-h {
  margin: 34px 0 6px;
}

.section ul.price-rows {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-rows li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.05);
}

.price-row-text {
  display: grid;
  gap: 3px;
}

.price-row-text strong {
  font-size: 1.02rem;
}

.price-row-text span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.price-tag {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: rgba(27, 100, 213, 0.09);
  border-radius: 999px;
  padding: 7px 13px;
}

.price-foot {
  margin-top: 16px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .price-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
    align-items: start;
  }

  .price-cta .btn {
    display: block;
    text-align: center;
  }

  .price-rows li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
