/*
Theme Name: KJ Chicago
Theme URI: https://kjchicago.com
Description: A premium WordPress theme for info sites developed for Ken Jungwirth by TheoryDigital Inc.
Author: TheoryDigital
Author URI: https://theoryforce.com
Version: 1.2.6
Tags: business, real-estate, realtor, agent, minimalist, luxury, chicago, realtor
Text Domain:  wp-kjc
*/

/* this file overrides theme CSS precompiled in the ./sass directory */

/* Add-ons for final content */

body .container {
  max-width: 810px;
}

body section > *,
body main > * {
  min-width: 0;
}

/* mobile only blocks */

.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}
@media (max-width: 880px ) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}

.mobile-only h4 {
  color: inherit;
  margin-bottom: 60px;
}


main .grid ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0
}
main .grid ul li {
  padding-left: 18px;
  position: relative;
  padding-bottom: 15px;
}
main .grid ul li strong {
  display: block
}
main .grid ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #363947;
  opacity: 0.5;
}


.news.spots.fav p {
  min-height: 80px;
}

.container.content iframe[src*="youtube.com"],
.container.content iframe[src*="youtu.be"] {
    width: 100%;
    margin: 30px 0;
}

.expert .box .button {
  font-size: unset;
}
.button {
  padding: 10px 50px;
}
.statements.col-2 {
  margin-top: 30px;
}
.block-services article p {
  color: #000;
  font-size: 18px;
  font-family: "Lora", serif;
  text-rendering: geometricPrecision;
  letter-spacing: 1px;
}


/*
* page optional styling - video parallax
*/

.parallax-video-section {
  width:100vw;
  margin-left:calc(-50vw + 50%);
  position:relative;
  height:55vh;
  overflow:hidden;
  margin-top: 60px;
  margin-bottom: 60px;
}
.parallax-video-section video {
  position:absolute;
  top:80%;
  left:50%;
  min-width:100%; min-height:100%;
  transform:translate(-50%, -50%);
}
.single-featured .parallax-video-section {
  height:70vh;
}
.single-featured .parallax-video-section video {
  top:50%
}

/* CF 7 form on featureds */
.single-featured .meta-cta .wpcf7 input[type="text"],
.single-featured .meta-cta .wpcf7 input[type="tel"],
.single-featured .meta-cta .wpcf7 input[type="email"],
.single-featured .meta-cta .wpcf7 textarea {
  line-height: 2;
    border: none;
    border-bottom: 1px solid #544541;
    margin: 0 0 30px;
    background: #f2f2f2;
}

/* contact page */
body.page-id-430 .wpcf7 .wpcf7-radio {
  display: inline;
  width: 70%;
}

/* alternative page header styling */
.fluid-hero .post-header.header-alt {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  max-width: 100%;
}
.fluid-hero .post-header.header-alt h1, .fluid-hero .post-header.header-alt h4 {
  color: white;
  font-weight: 800;
}
body:not(.home).page-template-default .fluid-hero {
  margin-bottom: 60px;
}

/*
* image gallery styling
*/
main .gallery {
  margin: unset;
  width:100vw;
  margin-left:calc(-50vw + 50%) !important;
  margin-top: 60px !important;
}
main .gallery .gallery-item {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main .gallery .gallery-item:nth-child(1) { animation-delay: 0s; }
main .gallery .gallery-item:nth-child(2) { animation-delay: 0.3s; }
main .gallery .gallery-item:nth-child(3) { animation-delay: 0.6s; }
main .gallery .gallery-item:nth-child(4) { animation-delay: 0.9s; }
main .gallery .gallery-item:nth-child(5) { animation-delay: 0.12s; }

main .gallery .gallery-item img {
  border: 2px solid white !important;
}

/*
*
* form stylings
*
*/

/* Full width form fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Radio buttons container full width */
.wpcf7 .wpcf7-radio {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Submit button full width */
.wpcf7 input[type="submit"] {
    width: 100%;
    max-width: 100%;
}

/* Optional: Add consistent spacing */
.wpcf7 label {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}


/* Reset Noptin form to match mockup */
.noptin-form-id-435 .noptin-optin-form-wrapper {
    background: transparent !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Hide wrapper background */
#noptin-form-1__wrapper {
    background: transparent !important;
    border: none !important;
}

/* Form layout - horizontal with gap */
.noptin-form-id-435 .noptin-form-fields {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Email field wrapper */
.noptin-form-id-435 .noptin-form-field-email {
    flex: 1;
}

/* Email input styling */
.noptin-form-id-435 input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 16px;
}

.noptin-form-id-435 input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.noptin-form-id-435 input[type="email"]:focus {
    outline: none;
    border-bottom-color: #fff;
}

/* Hide the label */
.noptin-form-id-435 .noptin-label {
    display: none;
}

/* Submit button styling */
.noptin-form-id-435 input[type="submit"] {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.noptin-form-id-435 input[type="submit"]:hover {
    background: #fff;
    color: #3d4e5c;
}

/* Form layout - horizontal with gap */
.noptin-form-id-435 .noptin-form-fields {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 900px;
}

/* Email field wrapper - takes up more space */
.noptin-form-id-435 .noptin-form-field-email {
    flex: 1;
    max-width: 600px;
}

/* Email input styling - larger */
.noptin-form-id-435 input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 18px;
}
/* Remove form footer padding */
.noptin-form-id-435 .noptin-form-footer {
    padding: 0;
}
/* Submit button styling - larger */
.noptin-form-id-435 input[type="submit"] {
  background: transparent;
border: 1px solid #fff;
color: #fff;
padding: 1px 32px;
font-size: 14px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
white-space: nowrap;
transition: all 0.3s ease;
min-width: 250px;
}


/* small CTA inside neighborhoods pages */
.realtorcta {
  padding: 15px 50px;
  display: flex;
  justify-content: center;
}

.realtorcta p {
  text-align: center !important;
}
.realtorcta form ::placeholder {
  color: white;
  font-size: 12px;
  font-style: italic;
  opacity: 0.7;
}


.realtorcta .wpcf7-form {
  display: block;
  justify-content: center;
}

.realtorcta .wpcf7-form p {
  display: grid;
 grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.realtorcta .wpcf7-form-control-wrap,
.realtorcta .wpcf7-submit {
  flex: 1 1 0;
  max-width: 300px;
}

.realtorcta .wpcf7-submit {
  border: 1px solid;
}
.realtorcta .wpcf7-spinner{
  display: none !important;
}

.realtorcta .wpcf7-form-control-wrap input {
  width: 100%;
}


.realtorcta .wpcf7-response-output {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 20px !important;
}

/* all thx msgs */
.wpcf7 form .wpcf7-response-output {
    margin: 20px 0;
    padding: 0.2em 1em;
    border: none;
    box-sizing: border-box;
    font-size: 10px;
    font-style: italic;
}
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 textarea {
  border: none;
    border-bottom: 1px solid;
}



/* svg - icons */

/* Base SVG icon styles */
.svg-icon {
  display: inline-block;
  transition: all 0.3s ease;
  float: left;
  padding: 0 15px 0 0;
}

.news.spots .box p a {
  color: white;
  font-weight: 800;
}

/* triplet boxes - shortcode styling */

.triplet-boxes {
  margin: 60px -100px;
}
.triplet-boxes .box {
  border: 1px solid;
  align-content: center;
  aspect-ratio: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.triplet-boxes * {
  text-align: center !important;
}
.triplet-boxes img {
  opacity: 0.5;
  max-width: 120px;
}
.triplet-boxes h6 {
  text-transform: uppercase;
  font-weight: 400;
}


/* plugin overrides */
#login-nudge {
  bottom: unset !important;
  top: 60px;
}
#login-nudge-btn {
  padding: 7px;
font-size: 10px;
}


.button.light {/* double button on home */
  border-width: 1px;
}


/* mobile styling */

@media (max-width: 800px) {
  .triplet-boxes {
    margin: 60px 0;
  }
  .triplet-boxes .box {
    display: block;
    max-width: 66%;
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  .triplet-boxes .box p {
    display: none
  }

}






/*
* Mobile stylings
*
*/

@media (max-width: 880px) {
  .deco {
    position: relative;
    top: -14px;
  }
  .expert .box,
  .news .box {
      aspect-ratio: 2.0; /* allows for 3 lines of title */
  }
  .expert .box p,
  .news .box p {
    display: none
  }
  nav .services ul li, nav .footer ul li {
    line-height: 60px;
  }
  .noptin-form-footer .noptin-optin-field-wrapper:not(.noptin-optin-field-wrapper-hidden) {
    width: 100%
  }
  .realtorcta .wpcf7-form p {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h3 {
    text-align: center;
  }
  .realtorcta .wpcf7-form-control-wrap, .realtorcta .wpcf7-submit {
    max-width: 100%;
  }
  .news.spots.fav p {
    font-size: 15px;
  }

}

@media (max-width: 660px) {
  .expert .box {
      aspect-ratio: 1.5; /* allows for 3 lines of title */
  }
  .news .box {
    aspect-ratio: 1;
  }
  .grid {
  }

  iframe {
    max-width: 100% !important;
    display: none;
  }
  .mosaic-gallery.item-feed h4 {
    font-size: 60px;
  }
  .realtorcta {
    padding: 1px 30px;
  }
  .optin {
    padding: 30px;
  }
  .meta-cta {
    max-width: 300px;
    padding: 30px;
  }
  .single-featured .meta-cta .wpcf7 input[type=text], .single-featured .meta-cta .wpcf7 input[type=tel], .single-featured .meta-cta .wpcf7 input[type=email], .single-featured .meta-cta .wpcf7 textarea {
    max-width: 170px;
  }
  .parallax-video-section {
    max-width: 100%;
width: 100%;
margin-left: 0;
  }
  .single-featured .parallax-video-section {
    height: 40vh;
  }
  .meta-table-value {
    padding: 0 20px;
  }
  .noptin-form-id-435 input[type=submit] {
    min-width: 200px;
  }
}

@media (max-width: 550px) {
  h4 {
    font-size: 22px;
  }
}
