/*
Theme Name:   Statute Digital
Theme URI:    https://statutedigital.com
Description:  Kadence child theme for statutedigital.com
Author:       Statute Digital
Author URI:   https://statutedigital.com
Template:     kadence
Version: 1.4.0
Text Domain:  statute-digital
*/

/* Custom CSS goes below this line. */

/* ==========================================================
   Statute Digital — visuals (icons, hero mockup, motion)
   ========================================================== */

/* ---------- Service icons ---------- */
.sd-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(176, 141, 87, 0.14);
  color: #8F7042;
  letter-spacing: 0;
}
.sd-ico svg {
  width: 24px;
  height: 24px;
}
h3 > .sd-ico {
  margin-bottom: 18px;
}
h6 > .sd-ico {
  margin-bottom: 16px;
}

/* Service cards: gentle lift on hover */
.entry-content .sd-cards > .wp-block-column {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.entry-content .sd-cards > .wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(20, 33, 61, 0.28);
}

/* ---------- Hero browser mockup ---------- */
.sd-browser {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 34px 60px -24px rgba(20, 33, 61, 0.5), 0 0 0 1px rgba(20, 33, 61, 0.08);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}
.sd-browser:hover {
  transform: none;
  box-shadow: 0 24px 48px -20px rgba(20, 33, 61, 0.45), 0 0 0 1px rgba(20, 33, 61, 0.08);
}
.sd-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #E9EBEF;
}
.sd-browser__bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD2D9;
}
.sd-browser__url {
  flex: 1;
  margin-left: 12px;
  height: 20px;
  padding: 0 10px;
  border-radius: 6px;
  background: #FFFFFF;
  font: 500 12px/20px var(--global-body-font-family, sans-serif);
  color: #52606D;
  white-space: nowrap;
  overflow: hidden;
}
.sd-browser__view {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.sd-browser__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position 6s ease-in-out;
}
.sd-browser:hover .sd-browser__shot {
  object-position: 50% 100%;
}

/* Phones and tablets: mockup sits under the text */
.kt-inside-inner-col:has(> .sd-browser) {
  display: flex;
  flex-direction: column;
}
.kt-inside-inner-col:has(> .sd-browser) > .sd-browser {
  order: 10;
  margin-top: 40px;
  transform: none;
}

/* Desktop: mockup floats to the right of the text */
@media (min-width: 1025px) {
  .kt-inside-inner-col:has(> .sd-browser) {
    display: flow-root;
  }
  .kt-inside-inner-col:has(> .sd-browser) > .sd-browser {
    float: right;
    width: min(46%, 580px);
    margin: 0 0 0 56px;
    transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  }
  .kt-inside-inner-col:has(> .sd-browser) > .sd-browser:hover {
    transform: none;
  }
}

/* ---------- Sections fade up as they scroll in (added by JS) ---------- */
.sd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sd-reveal.sd-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sd-browser,
  .sd-browser__shot,
  .entry-content .sd-cards > .wp-block-column {
    transition: none;
  }
  .sd-browser,
  .kt-inside-inner-col:has(> .sd-browser) > .sd-browser {
    transform: none;
  }
}

/* ---------- Header logo ---------- */
.site-branding img.custom-logo {
  width: 230px;
  max-width: 230px;
  height: auto;
}
.site-branding .site-title-wrap,
.site-branding .site-title {
  display: none;
}
@media (max-width: 1024px) {
  .site-branding img.custom-logo {
    width: 180px;
    max-width: 180px;
  }
}

/* ---------- Services layout polish (v1.3) ---------- */
/* Single-column service sections become: text left, "What's included" card right. */
@media (min-width: 1025px) {
  .entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2):has(> ul.wp-block-list) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: var(--global-kb-gap-md, 2rem);
  }
  .entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2):has(> ul.wp-block-list) > * {
    grid-column: 1;
  }
  .entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2):has(> ul.wp-block-list) > ul.wp-block-list {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    margin: 0;
  }
}

/* The checklist card (single-column services) */
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2) > ul.wp-block-list {
  list-style: none;
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 10px;
  padding: 32px 32px 24px;
  box-shadow: 0 12px 28px -18px rgba(20, 33, 61, 0.25);
}
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2) > ul.wp-block-list::before {
  content: "What\2019s included";
  display: block;
  margin-bottom: 16px;
  font-family: var(--global-heading-font-family);
  font-size: 21px;
  font-weight: 600;
  color: #14213D;
}

/* The first service already has its own heading: style its list as the same card */
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h3 + ul.wp-block-list):not(:has(> h2)) {
  background: #FFFFFF;
  border: 1px solid #E4E7EB;
  border-radius: 10px;
  padding: 32px 32px 24px;
  box-shadow: 0 12px 28px -18px rgba(20, 33, 61, 0.25);
}
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h3 + ul.wp-block-list):not(:has(> h2)) > h3 {
  margin-top: 0;
  font-size: 21px;
}
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h3 + ul.wp-block-list):not(:has(> h2)) > ul.wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/* Brass checkmarks for both */
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2) > ul.wp-block-list > li,
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h3 + ul.wp-block-list) > ul.wp-block-list > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2) > ul.wp-block-list > li::before,
.entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h3 + ul.wp-block-list) > ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.3em;
  width: 6px;
  height: 11px;
  border-right: 2px solid #8F7042;
  border-bottom: 2px solid #8F7042;
  transform: rotate(45deg);
}

/* Phones and tablets: the card sits under the paragraph, above the button */
@media (max-width: 1024px) {
  .entry-content .kt-inside-inner-col:not(.sd-dark *):has(> h2) > ul.wp-block-list {
    margin: 24px 0;
  }
}

/* ---------- Header logo (v1.4): [S]tatute Digital wordmark ---------- */
.site-branding img.custom-logo {
  width: 270px;
  max-width: 270px;
  height: auto;
}
@media (max-width: 1024px) {
  .site-branding img.custom-logo {
    width: 200px;
    max-width: 200px;
  }
}
