@font-face {
    font-family: 'EB Garamond';
    src: url('../fonts/EBGaramond-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


 /* ===========================
   RESET + ROOT VARIABLES
============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;

  --font-primary: 'Outfit', sans-serif;
  --font-serif: 'EB Garamond', serif;

  --max-width: 1400px;
  --container-width: 80%;
}

/* ===========================
   GLOBAL STYLES
============================ */
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   CONTAINER
============================ */
.container {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===========================
   HEADINGS
============================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

    .elementor-widget-text-editor ul li {
	margin-bottom: 7px;
}

/* ===========================
   BUTTONS
============================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}
    
/* -----------------------------------
   Header (transparent over hero)
----------------------------------- */
.header {
  width: 100%;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.55); /* semi-transparent */
  backdrop-filter: blur(4px);       /* elegant glass effect */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: fixed; /* stays at top */
  top: 0;
  left: 0;
  z-index: 999;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 56px;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 42px;
}

.nav-menu ul li a {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: 0.2s ease;
  opacity: 0.7;
}

.nav-menu ul li a:hover {
  transform: scale(1.08);
  opacity: 1;
}

.nav-menu ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--white);
  transition: width 0.2s ease;
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--white);
}

/* The menu starts hidden off the top of the screen */
.mobile_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* or whatever height you prefer */
  background: #222;
  transition: transform 0.4s ease-in-out; /* This creates the slide effect */
  z-index: 9999;
}

/* When this class is added via JS, the menu slides down */
.mobile_menu {
  display: none;
  background: rgba(0, 0, 0, 0.85);
}

.mobile_menu ul {
  list-style: none;
  padding: 20px;
	padding-top: 60px;
}

.mobile-menu ul li {
  margin-bottom: 18px;
}

.mobile_menu ul li a {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  display: block;
  padding: 6px 0;
}

.mobile_menu.show {
  display: block;
}
.close_mob_menu {
	width: 30px;
	mask-image: url('https://lexrahoitus.fi/wp-content/uploads/2026/02/xmark-duotone-light.svg');
	mask-repeat: no-repeat;
	background-position: center;
	background-color: #fff;
	display: inline-block;
	content: "";
	height: 33px;
	margin-top: 30px;
	mask-size: 22px;
	cursor: pointer;
	float: right;
	margin-right: 15px;
}

footer {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 120px 0 60px 0;
  font-size: 1rem;
}

/* Footer grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

/* Logo */
.footer-logo {
  width: 60px; /* smaller logo */
  margin-bottom: 25px;
}

/* About paragraph */
.footer-about {
  opacity: 0.7;
  line-height: 1.6;
  max-width: 420px;
}

/* Section Titles */
.footer-menu-title,
.footer-contact-title, footer h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* Menu */
.footer-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.65;
  margin-bottom: 12px;
  transition: 0.25s ease;
}

.footer-menu a:hover {
  opacity: 1;
  transform: translateX(4px);
}


.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links ul li {
  margin-bottom: 14px;
  opacity: 0.75;
    display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links ul li span {
    display: inline;
}

.footer-links svg {
	fill: #fff;
	color: #fff;
	width: 18px;
	opacity: 0.75;
}

/* Contact */
.footer-contact {

}

.footer-contact p {
  margin-bottom: 14px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  font-size: 18px;
  opacity: 0.85;
}

/* Divider */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 30px;
  text-align: center;
  opacity: 0.6;
  font-size: 0.95rem;
}

/* Social icons */
.footer-social {
  margin-top: 25px;
  text-align: center;
}

.footer-social svg {
  font-size: 22px;
  width: 22px;
  fill: #fff;
  margin: 0 14px;
  opacity: 0.6;
  transition: 0.25s ease;
  cursor: pointer;
}

.footer-social svg:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.hero-btn a.elementor-button {
	display: inline-block;
	padding: 14px 34px;
	background: var(--white);
	color: var(--black);
	border-radius: 4px;
	font-family: var(--font-primary);
	font-weight: 500;
	transition: 0.3s;
	border: 1px solid transparent;
}
.hero-btn a.elementor-button:hover {
	background: var(--black);
	color: var(--white);
	border-color: var(--white);
}
.cta-btn a.elementor-button {
	display: inline-block;
	padding: 16px 42px;
	background: var(--black);
	color: var(--white);
	border-radius: 8px;
	font-size: 1.1rem;
	font-family: var(--font-primary);
	font-weight: 600;
	transition: 0.3s ease;
	border: 1px solid var(--black);
}
.cta-btn a.elementor-button:hover {
	transform: scale(1.06);
	background: transparent;
	color: var(--black);
}
.btn-outline a.elementor-button {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.35);
}
.service-card:hover {
	transform: scale(1.05);
	box-shadow: 0 18px 40px rgba(0,0,0,0.12) !important;
	border-color: rgba(255,255,255,0.18) !important;
}
.process-step:hover {
	transform: scale(1.06);
	opacity: 1;
}
.testimonial-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.15) !important;
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 25px;
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease;
  padding: 12px 0;
}

.faq-question:hover {
  opacity: 0.75;
}

.faq-icon {
	font-size: 22px;
	transition: transform 0.35s ease;
	mask-image: url('https://lexrahoitus.fi/wp-content/uploads/2026/02/chevron-right-light.svg');
	width: 22px;
	height: 22px;
	mask-repeat: no-repeat;
	background-position: center;
	background-color: #fff;
}

.fa-bars{
	font-size: 22px;
	transition: transform 0.35s ease;
	mask-image: url('https://lexrahoitus.fi/wp-content/uploads/2026/02/bars-light.svg');
	width: 22px;
	height: 22px;
	mask-repeat: no-repeat;
	background-position: center;
	background-color: #fff;
	display: block;
}
/* The answer block */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0.75;
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}

/* OPEN STATE */
.faq-item.open .faq-answer {
  opacity: 0.75;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}
.benefit-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
	background: #fafafa !important;
}
.service-item-rah:hover {
	transform: translateX(6px);
  opacity: 0.9;
}
.details-item:hover {
	transform: translateX(6px);
	opacity: 0.95;
}
.key-figure:hover {
	transform: translateY(-6px);
	opacity: 0.9;
}
.why-process-item:hover {
	transform: translateY(-6px);
	opacity: 0.95;
}
.about-image:hover {
	transform: scale(1.02);
	box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}
.team-member:hover {
	transform: translateY(-6px);
	opacity: 0.95;
}
.check_list ul li {
    position: relative;
    padding-left: 38px;
    list-style: none;
}
.check_list ul li::before {
	padding-right: 14px;
	margin-left: -36px;
	vertical-align: top;
	width: 27px;
	mask-image: url('https://lexrahoitus.fi/wp-content/uploads/2026/02/check-light.svg');
	mask-repeat: no-repeat;
	background-position: center;
	background-color: #0a0a0a75;
	display: inline-block;
	content: "";
	height: 20px;
	margin-top: 8px;
	mask-size: 14px;
}
.check_list_white ul li {
    position: relative;
    padding-left: 38px;
    list-style: none;
}
.check_list_white ul li::before {
    padding-right: 14px;
    margin-left: -36px;
    vertical-align: top;
    width: 22px;
    mask-image: url('https://lexrahoitus.fi/wp-content/uploads/2026/02/check-light.svg');
    mask-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    display: inline-block;
    content: "";
    height: 20px;
    margin-top: 5px;
    mask-size: 11px;
}
.page-id-315 .elementor-widget-text-editor p {
	margin-bottom: 1rem;
}
body .gform-theme--framework .gform-field-label:where(:not([class*="gform-field-label--type-"])) {
  color: #ffffffc4;
  font-size: 0.95rem;
}
p.gform_required_legend {
	display: none;
}
.gfield_required.gfield_required_asterisk {
	color: #ffffffc4;
}
.gform_wrapper .gfield .ginput_container input, #gform_wrapper_1.gform_wrapper .gfield .ginput_container input, #gform_wrapper_3.gform_wrapper .gfield .ginput_container select.gfield_select {
	font-family: 'Outfit',sans-serif;
	resize: none;
	outline: none;
	transition: all 0.3s ease;
	height: 50px;
	border-radius: 0;
	line-height: 1;
	
	width: 100%;
	  padding: 14px;
	  background: transparent;
	  border: 1px solid rgba(255,255,255,0.25);
	  border-radius: 8px;
	  color: #ffffffc4;
	  font-size: 1rem;
	  transition: 0.25s ease;
}
.gform_wrapper .ginput_container textarea {
	font-family: 'Outfit',sans-serif;
	font-size: 15px;
	resize: none;
	outline: none;
	height: 125px;
	min-height: auto !important;
	width: 100%;
	padding: 14px;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 8px;
	color:#ffffffc4;
	font-size: 1rem;
	transition: 0.25s ease;
}
.gform_wrapper .gfield .ginput_container input:focus, #gform_wrapper_1.gform_wrapper .gfield .ginput_container input:focus, .gform_wrapper .ginput_container textarea:focus {
	border-color: #fff !important;
}
.gform_footer input#gform_submit_button_1, .gform_footer input#gform_submit_button_2, .gform_footer input#gform_submit_button_3 {
	width: 250px;
	margin: 0 auto;
	padding: 14px;
	font-size: 15px;
	border: 1px solid rgba(255,255,255,0.25);
	background: #ffffffc4;;
	color: #222;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Outfit',sans-serif;
	border-radius: 8px;
	outline: none;
}
.gform_footer input#gform_submit_button_1:hover {
	background: transparent;
	color: #ffffffc4;
}
.fullmap-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* The map iframe */
.fullmap-embed {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) brightness(80%);
  transition: 0.4s ease;
}

/* Optional hover effect (subtle zoom + less grayscale) */
.fullmap-embed:hover {
  filter: grayscale(100%) brightness(90%);
}
#gform_wrapper_2.gform-theme--foundation .gform_fields {
	row-gap: 18px;
}
 #gform_wrapper_2.gform_wrapper .gfield .ginput_container input {
	resize: none;
	outline: none;
	height: 50px;
	line-height: 1;
	width: 100%;
	padding: 14px 16px;
	background: #ffffff0a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	color: #ffffffc4;
	font-size: 14px;
	transition: 0.25s ease;
}
 #gform_wrapper_2.gform_wrapper .ginput_container textarea {
	resize: none;
	outline: none;
	height: 125px;
	min-height: auto !important;
	width: 100%;
	padding: 14px 16px;
	background: #ffffff0a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	color: #ffffffc4;
	font-size: 14px;
	transition: 0.25s ease;
}
 #gform_wrapper_2 .gform_footer input#gform_submit_button_2 {
	font-size: 14px;
	border: 1px solid rgba(255,255,255,0.25);
	background: #fff;
	color: #0f0f0f;
	border-radius: 999px;
	width: 100%;
}
 #gform_wrapper_2 .gform_footer input#gform_submit_button_2:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}
.contact-link:hover {
	transform: translateY(-2px);
	background-color: #ffffff0d;
	border-color: #6a6a6a;
}
.elementor-widget.menu_items.elementor-list-item-link-full_width a {
	width: 100%;
	  display: block;
	  padding: 7px 14px;
	  border-radius: 999px;
	transition: 0.25s ease;
}
.elementor-widget.menu_items.elementor-list-item-link-full_width a:hover {
	color:#fff;
  background-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.page-id-482 .elementor-widget-text-editor ul {
	list-style-position: outside;
	margin-top: 5px;
	padding-left: 15px;
}
.page-id-482 .elementor-widget-text-editor ul li {
	margin-bottom: 1px; 
}
body .gform-theme--foundation .gform_fields {
	column-gap: 20px;
	row-gap: 20px;
}
.nav-menu ul li.loan_btn a {
	border: 1px solid #fff;
	padding: 5px 15px;
	border-radius: 2px;
	opacity: 1;
}
.nav-menu ul li.loan_btn a:hover {
	transform: none;
	background: #fff;
	color: #000;
}
.nav-menu ul li.loan_btn a::after {display: none;}
/* ===========================
   MOBILE RESPONSIVE
============================ */
@media (max-width: 900px) {
.nav-menu { display: none; }
.nav-toggle { display: block; }
.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}
.footer-menu a,
.footer-contact p {
	justify-content: center;
}
.footer-about {
	margin: 0 auto;
}
.faq-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 90%;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
	.fullmap-wrapper {
    height: 360px;
  }
}