/**
 * Single Office Page Styles (single-office.css)
 *
 * CSS rules specific to office pages (.single-toimisto, .page-template-single-office,
 * #section-office-hero, .section-office-details, .section-office-area, .toimisto .hero-section).
 *
 * Extracted from blocksy-child/style.css.
 * Some rules are shared between agent and office pages and are duplicated
 * in both single-agent.css and single-office.css.
 *
 * @source blocksy-child/style.css
 */

/* ============================================================
   Header / Navigation (shared agent + office rules)
   ============================================================ */

.page-template-single-agent #header [data-sticky="shrink"] #menu-paamenu-vasen .menu-item-home .ct-menu-link,
.page-template-single-office [data-sticky="shrink"] #menu-paamenu-vasen .menu-item-home .ct-menu-link,
.has-hero #header [data-sticky="shrink"] #menu-paamenu-vasen .menu-item-home .ct-menu-link,
.page-template-single-agent #header [data-sticky="shrink"] #menu-main-menu-left .menu-item-home .ct-menu-link,
.page-template-single-office [data-sticky="shrink"] #menu-main-menu-left .menu-item-home .ct-menu-link,
.has-hero #header [data-sticky="shrink"] #menu-main-menu-left .menu-item-home .ct-menu-link,
.page-template-single-agent #header [data-sticky="shrink"] #menu-main-menu-left-en .menu-item-home .ct-menu-link,
.page-template-single-office [data-sticky="shrink"] #menu-main-menu-left-en .menu-item-home .ct-menu-link,
.has-hero #header [data-sticky="shrink"] #menu-main-menu-left-en .menu-item-home .ct-menu-link {
  background-image: url(https://remax.fi-t.seravo.com/wp-content/uploads/2023/02/home_icon.png);
}

.page-template-single-agent [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link,
.page-template-single-office [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link,
.has-hero [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link {
  color: #fff;
}
.page-template-single-agent [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover,
.page-template-single-office [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover,
.has-hero [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover {
  color: #B22B2E;
}
.page-template-single-agent [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link svg,
.page-template-single-office [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link svg,
.has-hero [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link svg {
    fill: #fff;
}
.page-template-single-agent [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover svg,
.page-template-single-office [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover svg,
.has-hero [data-sticky="shrink"] nav[class*="menu"] li>a.ct-menu-link:hover svg {
    fill: #B22B2E;
}

.page-template-single-agent  #header .ct-icon,
.page-template-single-office  #header .ct-icon,
.has-hero #header .ct-icon {
  fill: #fff;
}
.page-template-single-agent #header [data-sticky="yes:shrink"] .ct-icon,
.page-template-single-office #header [data-sticky="yes:shrink"] .ct-icon,
.has-hero #header [data-sticky="yes:shrink"] .ct-icon {
  fill: #003DA5;
}

.page-template-single-agent [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-label,
.page-template-single-agent [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-label,
.page-template-single-office [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-label,
.page-template-single-office [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-label,
.has-hero [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-labelr,
.has-hero [data-sticky="shrink"] [data-row="middle"] .ct-header-trigger .ct-label {
	color: #FFF;
}


/* ============================================================
   Hero Section
   ============================================================ */

.single-valittaja .entry-content > .hero,
.single-toimisto .entry-content > .hero {
  background-position: center right;
}

#section-office-hero .hero>.stk-row>.stk-column.stk-block,
#section-agent-hero .hero>.stk-row>.stk-column.stk-block {
  max-width: 750px !important;
  min-height: 500px;
  margin-top: 220px;
  margin-left: 0;
  margin-bottom: 100px;
  transform: none;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

#section-office-hero h1,
#section-agent-hero h1,
#section-office-hero h2,
#section-agent-hero h2,
#section-office-hero h3,
#section-agent-hero h3,
#section-office-hero h4,
#section-agent-hero h4,
#section-office-hero h5,
#section-agent-hero h5,
#section-office-hero h6,
#section-agent-hero h6,
#section-office-hero a,
#section-agent-hero a {
  color: #FFF;
}

#section-office-hero .nimi {
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 0;
  letter-spacing: 0.1rem;
  line-height: 0;
}
#section-office-hero .nimi img {
  display: inline-block;
  transform: translateY(-3px);
}
#section-office-hero .nimi img.show-mobile {
  display: none;
}

#section-agent-hero .slogan,
#section-office-hero .slogan,
#section-agent-hero .email,
#section-office-hero .email {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-size: 20px;
}
#section-agent-hero .puhelin,
#section-office-hero .puhelin {
  font-size: 24px;
  padding-left: 40px;
  line-height: 45px;
  margin-bottom: 0;
}
#section-agent-hero .email,
#section-office-hero .email {
  font-size: 24px;
  padding-left: 40px;
  line-height: 45px;
}
#section-agent-hero .puhelin::before,
#section-office-hero .puhelin::before {
  background: url(/wp-content/themes/blocksy-child/assets/img/icon_phone.png) no-repeat center center;
  position: absolute;
  left: 0;
  width: 30px;
  content: '';
  height: 45px;
}
#section-agent-hero .email::before,
#section-office-hero .email::before {
  background: url(/wp-content/themes/blocksy-child/assets/img/icon_email.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  left: 0;
  width: 30px;
  content: '';
  height: 45px;
}
#section-agent-hero .puhelin + .email,
#section-office-hero .puhelin + .email {
    margin-top: 0;
}

#section-office-hero a.stk-link.stk-button.linkki-painike,
#section-agent-hero a.stk-link.stk-button.linkki-painike {
  background-color: transparent;
  color: #FFF;
  border: 2px solid #FFF;
  margin-top: 20px;
}

#section-office-hero {
  margin-bottom: 60px;
}

.single-toimisto #kasvavat-luvut {
  margin-bottom: 0;
  margin-top: 100px;
}


/* ============================================================
   Section: Office Details
   ============================================================ */

.section-office-details {
  margin-bottom: 80px;
}
.section-office-details h1,
.section-office-details p {
    margin-bottom: 30px;
}
.section-office-details .ingressi {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.single-toimisto .agent-wrapper .toimisto { display:none; }

.valittaja .hero-section,
.toimisto .hero-section {
  display: none;
}


/* ============================================================
   Section: Office Area
   ============================================================ */

.section-agent-area > .entry-content > .stk-block,
.section-office-area > .entry-content > .stk-block {
  padding: 50px 36px 50px;
  min-height: 400px;
  display: flex;
}

.section-80.section-office-details {
  padding-bottom: 0;
}


/* ============================================================
   CTA Blocks (shared agent + office, inside @media max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
  .section-agent-details .cta-block .stk-image .stk-column-wrapper.stk-block-column__content.stk-container.stk--no-background,
  .section-office-details .cta-block .stk-image .stk-column-wrapper.stk-block-column__content.stk-container.stk--no-background {
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
  .section-agent-details .cta-block .stk-column-wrapper.stk-block-column__content.stk-container.stk--no-background,
  .section-office-details .cta-block .stk-column-wrapper.stk-block-column__content.stk-container.stk--no-background {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ============================================================
   Contact Form Section
   ============================================================ */

#section-office-contact-form input,
#section-office-contact-form textarea {
  border: 2px solid #003da5;
  border-radius: 4px;
  pointer-events: all;
}

@media screen and (max-width: 767px) {
  #section-office-contact-top .remax-heading {
    margin: 0 30px;
  }
}

@media screen and (max-width: 767px) {
  #main #section-office-contact-top .stk-block.remax-heading {
    margin-bottom: 0 !important;
  }
}


/* ============================================================
   Hero / Agent+Office Responsive (@media max-width: 1650px)
   ============================================================ */

@media screen and (max-width: 1650px) {
  #section-agent-hero,
  #section-office-hero {
    margin-bottom: 90px;
  }
  #section-hero .stk-row,
  #section-agent-hero .stk-row,
  #section-office-hero .stk-row {
    width: var(--container-width) !important;
  }
  #section-office-hero .hero > .stk-row > .stk-column.stk-block, #section-agent-hero .hero > .stk-row > .stk-column.stk-block {
    margin-bottom: 150px;
  }
  #section-agent-hero .slogan, #section-office-hero .slogan, #section-agent-hero .email, #section-office-hero .email {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  #section-agent-hero h4, #section-office-hero h3 {
    font-size: 24px;
  }
  #section-agent-hero h4, #section-office-hero h4 {
    font-size: 21px;
  }
  #section-agent-hero .puhelin, #section-office-hero .puhelin {
    margin-top: 1.2rem;
  }
}


/* ============================================================
   Hero / Agent+Office Responsive (@media max-width: 1380px)
   ============================================================ */

@media screen and (max-width: 1380px) {
  #section-office-hero,
  #section-agent-hero {
    margin-bottom: 70px;
  }
  #section-office-hero .hero>.stk-row>.stk-column.stk-block,
  #section-agent-hero .hero>.stk-row>.stk-column.stk-block {
    margin-left: 60px;
  }
}


/* ============================================================
   Hero / Agent+Office Responsive (@media max-width: 767px)
   ============================================================ */

@media screen and (max-width: 767px) {
  .single-valittaja .entry-content > .hero,
  .single-toimisto .entry-content > .hero {
    margin-top: -170px !important;
    margin-bottom: 0;
    background-size: 100% auto;
    background-position: top right;
    background-repeat: no-repeat;
  }
  #section-agent-hero, #section-office-hero {
    margin-bottom: 50px;
  }
  #section-office-hero .hero > .stk-row > .stk-column.stk-block, #section-agent-hero .hero > .stk-row > .stk-column.stk-block {
    margin-top: 150px;
    margin-bottom: 70px;
    min-height: 0;
  }
  #section-office-hero .nimi {
    line-height: 1;
  }
  .office-presentation {
    padding-top: 50px;
  }
  .section-office-details {
    padding: 0 38px;
  }
  #section-office-hero h1,
  #section-agent-hero h1,
  #section-office-hero h2,
  #section-agent-hero h2,
  #section-office-hero h3,
  #section-agent-hero h3,
  #section-office-hero h4,
  #section-agent-hero h4,
  #section-office-hero h5,
  #section-agent-hero h5,
  #section-office-hero h6,
  #section-agent-hero h6,
  #section-office-hero a,
  #section-agent-hero a {
    color: #003DA5;
  }
  #section-hero,
  #section-agent-hero,
  #section-office-hero {
    min-height: 770px;
    background-color: #f5f9fe;
    margin-bottom: 30px;
  }
  #section-office-hero {
    min-height: 550px;
    background-color: #fff;
  }
  #section-hero .hero,
  #section-agent-hero .hero,
  #section-office-hero .hero {
    overflow: visible;
    z-index: 2;
  }
  #section-hero .stk-row,
  #section-agent-hero .stk-row,
  #section-office-hero .stk-row {
    width: 100% !important;
    padding-left: 30px;
    padding-right: 20px;
    position: relative;
    background-color: #FFF;
    top: 310px;
    border-radius: 0 6px 6px 0;
  }
  #section-office-hero .stk-row {
    top: 270px;
    border-radius: 0;
  }
  #section-hero .hero > .stk-row > .stk-column.stk-block,
  #section-office-hero .hero > .stk-row > .stk-column.stk-block,
  #section-agent-hero .hero > .stk-row > .stk-column.stk-block {
    margin-top: 20px;
    margin-left: 0;
    margin-bottom: 20px;
    padding: 0;
  }
  #section-office-hero .nimi,
  #section-agent-hero .nimi {
    color: #003DA5;
    font-size: 26px;
    letter-spacing: 0.3rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  #section-office-hero .nimi img.hide-mobile {
    display: none;
  }
  #section-office-hero .nimi img.show-mobile {
    display: inline-block;
    height: 20px;
  }
  #section-agent-hero .slogan,
  #section-office-hero .slogan {
    color: #003DA5;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
  }
  #section-office-hero .slogan {
    margin-bottom: 0;
    margin-top: 0;
  }
  #section-agent-hero .puhelin,
  #section-office-hero .puhelin,
  #section-agent-hero .email,
  #section-office-hero .email {
    color: #003DA5;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 15px;
    line-height: 40px;
    min-height: 40px;
  }
  #section-office-hero .puhelin {
    margin: 15px 0;
  }
  #section-agent-hero .puhelin a,
  #section-office-hero .puhelin a {
    color: #003DA5;
  }
  #section-agent-hero .puhelin::before,
  #section-office-hero .puhelin::before {
    background: url(/wp-content/themes/blocksy-child/assets/img/icon_phone_blue.png) no-repeat center center / contain;
  }
  #section-agent-hero .email::before,
  #section-office-hero .email::before {
    background: url(/wp-content/themes/blocksy-child/assets/img/icon_email_blue.png) no-repeat center center / contain;
  }
  #section-office-hero a.stk-link.stk-button.linkki-painike,
  #section-agent-hero a.stk-link.stk-button.linkki-painike {
    background-color: #003DA5;
    color: #FFF;
    border: none;
    width: 250px;
    margin-left: 0;
  }
  #section-office-hero .stk-block.office-information {
    margin-bottom: 10px;
  }
  .section-office-details {
    padding: 10px 30px;
    margin-bottom: 10px;
  }
  .section-office-details .stk-block.has-text-align-center {
    text-align: left;
  }
  .section-office-details h1 {
    font-size: 20px;
    line-height: 1.4;
  }
  .section-office-details .ingressi {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
}


/* ============================================================
   Hero Responsive (@media max-width: 767px) - .single-toimisto hero height
   ============================================================ */

@media screen and (max-width: 767px) {
  .single-toimisto .entry-content > .hero {
    height: auto;
  }
}


/* ============================================================
   Hero Responsive (@media max-width: 550px)
   ============================================================ */

@media screen and (max-width: 550px) {
  .single-valittaja .entry-content > .hero,
  .single-toimisto .entry-content > .hero {
    background-size: 130% auto;
  }
}


/* ============================================================
   Hero Responsive (@media max-width: 430px)
   ============================================================ */

@media screen and (max-width: 430px) {
  .single-valittaja .entry-content > .hero,
  .single-toimisto .entry-content > .hero {
    background-size: 160% auto;
  }
}


/* ============================================================
   Hero Responsive (@media max-width: 380px)
   ============================================================ */

@media screen and (max-width: 380px) {
  .single-valittaja .entry-content > .hero,
  .single-toimisto .entry-content > .hero {
    background-size: 180% auto;
  }
}


/* ============================================================
   Hero Responsive (@media max-width: 340px)
   ============================================================ */

@media screen and (max-width: 340px) {
  .single-valittaja .entry-content > .hero,
  .single-toimisto .entry-content > .hero {
    background-size: 200% auto;
  }
}


/* ============================================================
   Contact Form / Yhteydenotto (shared agent + office)
   ============================================================ */

@media screen and (max-width: 430px) {
  .single-toimisto #yhteydenotto .remax-heading.has-text-align-center,
  .single-valittaja #yhteydenotto .remax-heading.has-text-align-center,
  .single-toimisto #contact .remax-heading.has-text-align-center,
  .single-valittaja #contact .remax-heading.has-text-align-center,
  .single-toimisto #kontakt .remax-heading.has-text-align-center,
  .single-valittaja #kontakt .remax-heading.has-text-align-center {
    text-align: center;
    margin-bottom: 50px !important;
  }
  .single-toimisto #yhteydenotto .remax-separator > figure,
  .single-valittaja #yhteydenotto .remax-separator > figure,
  .single-toimisto #contact .remax-separator > figure,
  .single-valittaja #contact .remax-separator > figure,
  .single-toimisto #kontakt .remax-separator > figure,
  .single-valittaja #kontakt .remax-separator > figure {
    text-align: center;
    width: 200px;
    margin-inline: auto;
  }
  .page-template-single-office article,
  .page-template-single-agent article {
    margin-bottom: 0px;
  }
}


/* ============================================================
   Section: Office Area Responsive (@media max-width: 767px)
   ============================================================ */

@media screen and (max-width: 767px) {
  .section-agent-area > .entry-content > .stk-block,
  .section-office-area > .entry-content > .stk-block {
    padding: 50px 36px 100px;
  }
}


/* ============================================================
   WPForms (shared agent + office)
   ============================================================ */

.single-valittaja div.wpforms-container-full .wpforms-form .wpforms-field-container,
.single-toimisto div.wpforms-container-full .wpforms-form .wpforms-field-container {
  display: block;
}

.single-valittaja .miten-voimme-olla-avuksi > fieldset > ul,
.single-toimisto .miten-voimme-olla-avuksi > fieldset > ul {
  flex-wrap: wrap !important;
  column-gap: 0 !important;
}
.single-valittaja .miten-voimme-olla-avuksi > fieldset > ul li,
.single-toimisto .miten-voimme-olla-avuksi > fieldset > ul li {
	flex-basis: 50%;
	white-space: normal !important;
}

@media screen and (max-width: 1280px) {
  .single-toimisto #yhteydenotto .wpforms-container,
  .single-valittaja #yhteydenotto .wpforms-container,
  .single-toimisto #contact .wpforms-container,
  .single-valittaja #contact .wpforms-container,
  .single-toimisto #kontakt .wpforms-container,
  .single-valittaja #kontakt .wpforms-container {
    margin-top: 0;
  }
  .single-toimisto #yhteydenotto .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul,
  .single-valittaja #yhteydenotto .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul,
  .single-toimisto #contact .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul,
  .single-valittaja #contact .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul,
  .single-toimisto #kontakt .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul,
  .single-valittaja #kontakt .wpforms-container .miten-voimme-olla-avuksi > fieldset > ul {
    flex-direction: column;
    gap: 5px;
  }
}

@media screen and (max-width: 1023px) {
  .single-valittaja .miten-voimme-olla-avuksi > fieldset > ul,
  .single-toimisto .miten-voimme-olla-avuksi > fieldset > ul {
    flex-wrap: wrap !important;
  }
  .single-valittaja .miten-voimme-olla-avuksi > fieldset > ul li,
  .single-toimisto .miten-voimme-olla-avuksi > fieldset > ul li {
    flex-basis: 100%;
  }
}

.single-toimisto div.wpforms-container-full,
.single-valittaja div.wpforms-container-full {
  margin: 0 auto 24px;
}

#yhteydenotto-kapea .wpforms-submit-container,
#info #yhteydenotto .wpforms-submit-container,
#contact-kapea .wpforms-submit-container,
#info #contact .wpforms-submit-container,
#kontakt-kapea .wpforms-submit-container,
#info #kontakt .wpforms-submit-container,
#rental-application .wpforms-submit-container,
.single-valittaja #yhteydenotto .wpforms-submit-container,
.single-toimisto #yhteydenotto .wpforms-submit-container,
.single-valittaja #contact .wpforms-submit-container,
.single-toimisto #contact .wpforms-submit-container,
.single-valittaja #kontakt .wpforms-submit-container,
.single-toimisto #kontakt .wpforms-submit-container {
  transform: none;
}

@media screen and (max-width: 430px) {
  .single-toimisto #yhteydenotto .wpforms-container-full,
  .single-valittaja #yhteydenotto .wpforms-container-full,
  .single-toimisto #contact .wpforms-container-full,
  .single-valittaja #contact .wpforms-container-full,
  .single-toimisto #kontakt .wpforms-container-full,
  .single-valittaja #kontakt .wpforms-container-full {
    margin-top: 0 !important;
  }
}


/* ============================================================
   Hero Background Image Optimization
   ============================================================ */

.single-valittaja .hero-background-image img,
.single-toimisto .hero-background-image img {
	object-position: center right;
}

@media screen and (max-width: 430px) {
	.single-valittaja .hero-background-image img,
	.single-toimisto .hero-background-image img {
		object-fit: cover;
	}
}
