/* =========================================================
   Klaus Development – single blog post
   Fonts are inherited from your YOOtheme settings.
   ========================================================= */
.kd-single {
  --kd-navy: #1b3a57;
  --kd-navy-dark: #152238;
  --kd-text: #243a52;
  --kd-orange: #c35a1f;
  --kd-orange-dark: #a94c18;
  --kd-slate: #5b7b95;
  --kd-pale: #eef3f7;
  --kd-pale-btn: #d3dee6;
  --kd-content: 780px;
  --kd-wide: 1080px;
}

/* Remove YOOtheme main-section padding & let our sections run edge to edge */
.kd-single #tm-main { padding-top: 0 !important; padding-bottom: 0 !important; }
.kd-single #tm-main > .uk-container,
.kd-single #tm-main .uk-container { max-width: none; }
html:has(.kd-single), .kd-single { overflow-x: clip; }

.kd-post { color: var(--kd-text); }
.kd-fullbleed {
  position: relative;
  width: 100vw;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Buttons / kicker ---------- */
.kd-btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.kd-btn:hover { transform: translateY(-1px); }
.kd-btn--orange { background: var(--kd-orange); color: #fff !important; }
.kd-btn--orange:hover { background: var(--kd-orange-dark); }
.kd-btn--white { background: #fff; color: var(--kd-navy) !important; }
.kd-btn--white:hover { background: var(--kd-pale); }
.kd-btn--pale { background: var(--kd-pale-btn); color: var(--kd-navy) !important; }
.kd-btn--pale:hover { background: #c2d1dc; }
.kd-btn-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.kd-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--kd-slate);
}
.kd-kicker--light { color: rgba(255,255,255,.9); }

/* ---------- HERO ---------- */
.kd-hero {
  padding: 55px 20px 0;
  text-align: center;
  background: #fff;
}
.kd-hero__bg {
  position: absolute;
  inset: 0 0 0 0;
  background-color: var(--kd-navy-dark);
  background-image: linear-gradient(180deg, #161e35 0%, #1d2a48 40%, #152238 100%);
  background-size: cover;
  background-position: center 30%;
}
.kd-hero__bg::after {            /* fade to white at the bottom, like the mockup */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(21,34,56,0) 0%, #fff 85%);
}
.kd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--kd-content);
  margin: 0 auto;
}
.kd-hero__cat {
  display: block;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px dotted rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none !important;
}
.kd-hero__title {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .005em;
  color: #fff !important;
}
.kd-hero__date {
  display: block;
  margin-top: 22px;
  font-size: 15px;
  color: #fff;
}
.kd-hero__image {
  position: relative;
  z-index: 1;
  max-width: var(--kd-wide);
  margin: 40px auto 0;
}
.kd-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- CONTENT ---------- */
.kd-content {
  max-width: var(--kd-content);
  margin: 0 auto;
  padding: 26px 20px 70px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--kd-text);
  border-top: 2px dotted rgba(195,90,31,.45);
  background: linear-gradient(180deg, #eef6fb 0, rgba(238,246,251,0) 240px) no-repeat;
  box-sizing: border-box;
}
.kd-content--noimg { border-top: 0; margin-top: 30px; }

.kd-content > *:first-child { margin-top: 0; }
.kd-content p { margin: 0 0 1.5em; }
.kd-content strong, .kd-content b { color: var(--kd-navy); font-weight: 700; }
.kd-content a { color: var(--kd-orange); }

/* Drop cap on the first paragraph */
.kd-content > p:first-of-type::first-letter {
  float: left;
  font-size: 4.9em;
  line-height: .78;
  font-weight: 500;
  color: var(--kd-navy);
  margin: .08em .1em 0 -.02em;
}

/* Headings */
.kd-content h2, .kd-content h3 {
  margin: 1.4em 0 .9em;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--kd-orange) !important;
  text-transform: none;
  letter-spacing: 0;
}
.kd-content h4, .kd-content h5 {
  margin: 1.4em 0 1em;
  font-size: 17px;
  font-weight: 700;
  color: var(--kd-slate) !important;
  text-transform: none;
  letter-spacing: .01em;
}

/* Lists – small "•" bullets like the mockup */
.kd-content ul, .kd-content ol { margin: 0 0 1.6em; padding-left: 0; }
.kd-content ul { list-style: none; }
.kd-content ul > li { position: relative; padding-left: 16px; margin: 0 0 .15em; }
.kd-content ul > li::before {
  content: "\2022";
  position: absolute; left: 2px; top: 0;
  color: var(--kd-text);
}
.kd-content ol { padding-left: 1.4em; }
.kd-content ol > li { margin: 0 0 .15em; }

/* Multi-column lists: pick "Two columns" / "Three columns" style on the List block,
   or add class kd-cols-2 / kd-cols-3 */
.kd-content ul.is-style-kd-two-col,   .kd-content ul.kd-cols-2 { column-count: 2; column-gap: 40px; }
.kd-content ul.is-style-kd-three-col, .kd-content ul.kd-cols-3 { column-count: 3; column-gap: 30px; }
.kd-content ul[class*="col"] > li { break-inside: avoid; }

/* Images & captions */
.kd-content figure, .kd-content .wp-block-image { margin: 2.2em 0; }
.kd-content img { max-width: 100%; height: auto; display: block; background: var(--kd-pale); }
.kd-content figcaption, .kd-content .wp-caption-text, .kd-content .wp-element-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--kd-navy);
  text-align: left;
}

/* Tables */
.kd-content table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  margin: 0 0 1.8em;
  font-size: 16px;
}
.kd-content .wp-block-table { margin: 0 0 1.8em; }
.kd-content .wp-block-table table { margin: 0; }
.kd-content table thead th,
.kd-content table tr:first-child th {
  background: var(--kd-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
  padding: 6px 10px;
  border: 0;
}
.kd-content table td { padding: 4px 10px; border: 0; }
.kd-content table tbody tr:nth-child(even) td { background: var(--kd-pale); }
.kd-content table tbody tr:last-child td { font-weight: 400; }

.kd-content blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--kd-orange);
  font-style: normal;
  color: var(--kd-navy);
}

/* ---------- CTA 1: Your Dream Custom Home ---------- */
.kd-cta-home {
  background: var(--kd-pale);
  margin-top: 2.4em;
  margin-bottom: 2.4em;
  padding: 55px 20px;
}
.kd-cta-home__inner {
  max-width: var(--kd-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 20px;
}
.kd-cta-home__media { flex: 0 0 170px; }
.kd-cta-home__media img { width: 100%; height: auto; background: none; display: block; }
.kd-cta-home__body { flex: 1; text-align: left; }
.kd-content .kd-cta-home__title,
.kd-cta-home__title {
  margin: 0 0 18px !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--kd-navy) !important;
}
.kd-cta-home__body p { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--kd-navy); }
@media (min-width: 960px) {
  .kd-cta-home__inner { padding-left: 40px; gap: 40px; }
  .kd-cta-home__media { flex-basis: 220px; }
}

/* ---------- CTA 2: Let's Discuss (orange) ---------- */
.kd-cta-discuss {
  margin-top: 2.4em;
  margin-bottom: 2.4em;
  padding: 70px 20px;
  text-align: center;
  background-color: var(--kd-orange);
  background-image:
    linear-gradient(0deg, rgba(195,90,31,.9), rgba(195,90,31,.9)),
    var(--kd-cta2-img, none);
  background-size: cover;
  background-position: center;
}
.kd-cta-discuss__inner { max-width: 860px; margin: 0 auto; }
.kd-content .kd-cta-discuss__title,
.kd-cta-discuss__title {
  margin: 0 0 18px !important;
  font-size: clamp(26px, 2.8vw, 40px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #fff !important;
}
.kd-cta-discuss__text { margin: 0 auto 30px !important; font-size: 16px; line-height: 1.7; color: #fff; }

/* ---------- Post navigation ---------- */
.kd-postnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 45px 20px;
  background: var(--kd-pale);
}
.kd-postnav__arrow { display: inline-flex; color: var(--kd-navy) !important; transition: color .2s; }
.kd-postnav__arrow:hover { color: var(--kd-orange) !important; }
.kd-postnav__arrow.is-disabled { opacity: .3; }
.kd-postnav__back {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--kd-orange) !important;
  text-decoration: none !important;
}
.kd-postnav__back:hover { color: var(--kd-navy) !important; }

/* ---------- Subscribe ---------- */
.kd-post .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.kd-subscribe {
  max-width: 980px;
  margin: 0 auto;
  padding: 55px 20px 60px;
  text-align: center;
}
.kd-subscribe__title {
  margin: 0 0 16px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: var(--kd-orange) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.kd-subscribe__text { margin: 0 0 28px; font-size: 15px; line-height: 1.7; color: var(--kd-navy); }
.kd-subscribe__form { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.kd-subscribe__form input[type="email"] {
  width: 300px; max-width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: #f1f3f5;
  font-size: 14px;
  color: var(--kd-navy);
}
.kd-subscribe__form .kd-btn { min-width: 170px; height: 44px; }
.kd-subscribe__note { margin: 0; font-size: 12px; color: var(--kd-navy); }

/* ---------- Let's Work Together ---------- */
.kd-work {
  padding: 90px 20px 70px;
  text-align: center;
  background: linear-gradient(180deg, #eef0f2 0%, #f7f8f9 40%, #fff 70%);
  border-bottom: 2px dotted rgba(195,90,31,.45);
  overflow: hidden;
}
.kd-work::before {               /* soft white arc at the top, like the mockup */
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: -60px;
  height: 110px;
  background: #fff;
  border-radius: 0 0 50% 50%;
}
.kd-work > * { position: relative; }
.kd-work__head { max-width: 980px; margin: 0 auto; }
.kd-work__title {
  margin: 0 0 22px !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  font-weight: 400 !important;
  color: var(--kd-orange) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.kd-work__text { margin: 0 0 40px; font-size: 16px; line-height: 1.7; color: var(--kd-navy-dark); }
.kd-work__actions { display: flex; justify-content: center; gap: 100px; flex-wrap: wrap; }
.kd-work__item { display: flex; flex-direction: column; align-items: center; text-decoration: none !important; }
.kd-work__icon {
  display: flex; align-items: center; justify-content: center;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--kd-navy);
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px transparent;
  outline: 3px dotted var(--kd-orange);
  outline-offset: 4px;
  transition: transform .25s;
}
.kd-work__item:hover .kd-work__icon { transform: scale(1.05); }
.kd-work__label {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kd-orange);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .kd-hero { padding-top: 35px; }
  .kd-hero__image { margin-top: 28px; }
  .kd-content { font-size: 16px; padding-bottom: 50px; }
  .kd-content ul.is-style-kd-three-col, .kd-content ul.kd-cols-3 { column-count: 2; }
  .kd-cta-home__inner { flex-direction: column; text-align: center; padding-left: 0; }
  .kd-cta-home__body { text-align: center; }
  .kd-cta-home__media { flex-basis: auto; width: 170px; }
  .kd-work__actions { gap: 40px; }
  .kd-postnav { gap: 10px; }
  .kd-postnav__back { letter-spacing: .1em; padding: 10px 10px; }
}
@media (max-width: 479px) {
  .kd-content ul.is-style-kd-two-col, .kd-content ul.kd-cols-2,
  .kd-content ul.is-style-kd-three-col, .kd-content ul.kd-cols-3 { column-count: 1; }
}
