/*
Theme Name: KBS GP Child
Theme URI: https://klosters-exp.ddev.site
Description: Lightweight child theme for the non-Avada rebuild.
Author: Local Rebuild
Template: generatepress
Version: 1.0.0
Text Domain: kbs-gp-child
*/

:root {
  --kbs-red: #c63733;
  --kbs-dark: #23232a;
  --kbs-cream: #f6f3ee;
  --kbs-border: #e6e1d8;
  --kbs-text: #1f1f1f;
}

body {
  color: var(--kbs-text);
  font-size: 17px;
  line-height: 1.65;
  background: #f0f2f3;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.55em;
  margin-bottom: 0.55em;
}

.entry-content p,
.entry-content li {
  line-height: 1.68;
}

.page .entry-content > p,
.page .entry-content > ul,
.page .entry-content > ol,
.page .entry-content > h2,
.page .entry-content > h3 {
  max-width: 74ch;
}

a {
  text-underline-offset: 2px;
}

.kbs-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.kbs-header-block {
  background: linear-gradient(135deg, #2d2d31 0%, #1f2022 100%);
  color: #fff;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 22px;
}

.kbs-header-block h1,
.kbs-header-block h2,
.kbs-header-block p {
  color: #fff;
  margin: 0;
}

.kbs-header-block p {
  margin-top: 10px;
  max-width: 70ch;
}

.kbs-tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.kbs-tax-pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.kbs-feature {
  margin: 0 0 22px;
}

.kbs-feature img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.kbs-content {
  margin-bottom: 26px;
}

.kbs-content p,
.kbs-content li {
  font-size: 16px;
}

.kbs-section-title {
  margin: 2px 0 16px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

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

.kbs-card {
  border: 1px solid var(--kbs-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kbs-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #efefef;
}

.kbs-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 172px;
}

.kbs-card-title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
}

.kbs-card-body p {
  margin: 0 0 12px;
  color: #3e3e3e;
  font-size: 15px;
  line-height: 1.55;
  flex: 1 1 auto;
}

.kbs-card-link {
  color: var(--kbs-red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.kbs-card-link:hover,
.kbs-card-link:focus {
  text-decoration: underline;
}

.kbs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.kbs-btn,
.kbs-btn:visited {
  display: inline-block;
  background: var(--kbs-red);
  color: #fff;
  border: 1px solid var(--kbs-red);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
}

.kbs-btn:hover,
.kbs-btn:focus {
  background: #a92926;
  border-color: #a92926;
  color: #fff;
}

.kbs-btn.kbs-btn-alt {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.site-content {
  padding-top: 26px;
}

.inside-article {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.05);
  padding: 28px 26px 34px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.kbs-empty {
  padding: 16px;
  border: 1px dashed var(--kbs-border);
  border-radius: 10px;
  background: var(--kbs-cream);
}

.page .entry-content .kbs-home-section,
.page .entry-content .kbs-contact-section,
.page .entry-content .kbs-products-section,
.page .entry-content .kbs-recipes-section {
  margin-bottom: 26px;
}

.page .entry-content .kbs-muted {
  color: #5a5a5a;
}

.page-id-7 .entry-header,
.page-id-11 .entry-header,
.page-id-15 .entry-header,
.page-id-863 .entry-header,
.page-id-1127 .entry-header {
  display: none;
}

.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.wp-block-cover .wp-block-cover__inner-container p {
  max-width: 64ch;
  line-height: 1.5;
}

.wpcf7-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #4d4d4d;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
}

.wpcf7-form input[type="submit"] {
  background: #54565f;
  border: 1px solid #54565f;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
}

.wpcf7-form p {
  margin-bottom: 14px;
}

.location-map iframe,
.wp-block-html iframe {
  border-radius: 10px;
}

.site-info {
  font-size: 12px;
}

.footer-widgets,
.footer-widgets p,
.footer-widgets li {
  font-size: 13px;
  line-height: 1.65;
}

.footer-widgets .widget-title {
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-content {
    padding-top: 16px;
  }

  .inside-article {
    padding: 18px 16px 24px;
    border-radius: 10px;
  }

  .kbs-header-block {
    padding: 18px;
    border-radius: 10px;
  }

  .kbs-header-block h1 {
    font-size: 32px;
  }

  .kbs-feature img {
    max-height: 320px;
  }

  .kbs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kbs-card-thumb {
    aspect-ratio: 16 / 10;
  }

  .kbs-card-body {
    padding: 12px 12px 14px;
    min-height: 0;
  }

  .wp-block-cover .wp-block-cover__inner-container h1 {
    font-size: clamp(2rem, 8vw, 2.45rem) !important;
    line-height: 1.08 !important;
    max-width: 11ch;
  }

  .wp-block-cover .wp-block-cover__inner-container p {
    font-size: 15px !important;
    line-height: 1.42 !important;
    max-width: 30ch;
  }

  .wp-block-cover.kbs-home-section {
    min-height: 360px !important;
  }

  .wp-block-cover.kbs-products-section,
  .wp-block-cover.kbs-recipes-section,
  .wp-block-cover.kbs-contact-section {
    min-height: 240px !important;
  }

  .page-id-11 .entry-content h2 {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .page-id-11 .entry-content h3 {
    font-size: 1.12rem;
    line-height: 1.45;
  }

  .page-id-11 .entry-content p {
    font-size: 15.5px;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .kbs-wrap {
    padding: 12px 6px 22px;
  }

  .wp-block-cover .wp-block-cover__inner-container h1 {
    font-size: 1.95rem !important;
    line-height: 1.1 !important;
  }

  .wp-block-cover .wp-block-cover__inner-container p {
    font-size: 14px !important;
  }

  .wp-block-cover.kbs-home-section {
    min-height: 330px !important;
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}
