/*@font-face {
font-family: 'League Spartan Bold';
font-style: normal;
font-weight: normal;
src: local('League Spartan Bold'), url('/assets/fonts/LeagueSpartan-Bold.woff') format('woff');
}*/

body{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #2B207F;
}

div#body-content{
    background-color:#F2F2F2;
    background-position:top; background-repeat:no-repeat;
}
/*div#body-content.home{
    background-image:url(/assets/images/bg-index.jpg);
}*/

h1, h2, h3, h4, h5, h6 {
   font-weight:normal;
}

h1 {
    font-size:4.5rem;   /*72*/
    color: #2B207F;
}
@media only screen and (max-width: 760px) {
    h1 {
        font-size:3.5rem;   /*56*/
    }    
}

h2 {
    font-size:2.2rem;   /*35,2*/
    color: #5C6CB2;
}

h3 {
    font-size:1.5rem;  /*24*/
    color: #2B207F;
}
h4 {
    font-size:1.25rem; /*20*/
    color: #2B207F;
}
h5{
    font-size:0.75rem;  /*12*/
    color: #5C6CB2;
}
h6{
    font-size:0.75rem;  /*12*/
    color: #2B207F;
}


.button {
    font-weight: 500
}

.jumbotron {
    font-weight:normal;
    background: none;             /* Transparent background */
}

.jumbotron .jumbotron-slogan-box{
    width: 100%;
}

.text-underline{
    text-decoration: underline;
}

section{
    margin-bottom: 20px;
}
/****** Nav bar **************************************************************/
nav#top-menu.navbar-custom, nav#top-menu.navbar-custom li.nav-item a.dropdown-item {
    font-family: Arial, Helvetica, sans-serif;  /*    Black*/
    font-weight: 900;
    color: #2B207F;
    font-size: 1.1rem;
    text-align: left;
}
/* change the brand and text color */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
    color: #2B207F;
}
/* change the link color */
.navbar-custom .navbar-nav .nav-link {
    color: #2B207F;
}
/* change the color of active or hovered links */
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:focus .nav-link,
.navbar-custom .nav-item:hover .nav-link {
    color: #2B207F;
}

/* change the color of the toggler */
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(43, 32, 127, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
  background-color: transparent;
}
.custom-toggler.navbar-toggler {
  border-color: rgb(43, 32, 127);
} 


nav#top-menu.navbar-custom .navbar-nav .nav-item{
    text-align: center;
    position: relative;
    line-height: 1.5rem;
}
.dropdown-menu .nav-item{
    text-align: left;
}

.nav-icon{
    width: 14px;
    height: 14px;
    vertical-align: -moz-middle-with-baseline;
}
ul.dropdown-menu{
    border-radius: 0;
    border-style: none;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

li.dropdown .dropdown-toggle::after {
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}
li.dropdown-submenu .dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 2px;
	vertical-align: middle;
	border-top: 0.3em solid;
	border-right: 0.3em solid transparent;
	border-left: 0.3em solid transparent;
        border-bottom: 0;
}
/* underline animated */
nav#top-menu .nav-link::after {
  content: "";
  position: absolute;
}
nav#top-menu li a.nav-link::after {
  top: 85%;
  height: 4px;
  width: 0%;
  left: 5%;
  background-color: rgba(43, 32, 127, 0.6);
  transition: 0.5s ease-out all .3s;
}
@media (hover: hover) and (pointer: fine) {
    nav#top-menu .nav-item:hover .nav-link::after {
      width: 90%;
      transition: 0.3s ease-out all;
    }

    nav#top-menu li.active a.nav-link::after{
        top: 85%;
        height: 4px;
        width: 90%;
        left: 5%;
        background-color: rgba(43, 32, 127, 1.0);
        transition: 0.3s ease-out all .1s;
    }
}
/*submenu*/
nav#top-menu li.nav-item.activel2, nav#top-menu li.dropdown-submenu.activel2{
    text-decoration: underline;
    color: #2B207F;
}

/* Box on hover underline on select Search icon */
nav#top-menu li.nav-item a.nav-icon {
    border: 3px solid transparent;
    padding: 6px;
}
/*
#top-menu li.active > a.nav-link{
 border-bottom: 3px solid #2B207F;
 padding-bottom: 6px;
 opacity: 1.0;
}
*/

nav#top-menu li.nav-item > a.nav-icon:hover {
 border: 3px solid white;
 margin-top: -4px;
}

@media only screen and (max-width: 576px) { 
    nav#top-menu.navbar.navbar-expand-sm div.container div#navbarSupportedContent.navbar-collapse{
        background-color: #E6E6E6;
    }
    div#searchContainer.search-container{
        background-color: #E6E6E6;
    }
}
/****** Search form **************************************/
.search-container{
    line-height: 14px;
}
@media only screen and (max-width: 576px) { 
    .search-container{
        width: 100%;
    }
    input#search.form-control{
        width: 88%;
    }
}

#top-menu .form-control{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    color: #2B207F;
    font-size: 1.1rem;
    background: none;
    outline: none;
    box-shadow : none;
    border: none;
    border-radius : 0;
}

#top-menu .form-control::-webkit-input-placeholder { /* Edge */
  color: rgba(43, 32, 127, 0.7);
  font-size: 0.88rem;
}
#top-menu .form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: rgba(43, 32, 127, 0.7);
  font-size: 0.88rem;
}
#top-menu .form-control::placeholder {
  color: rgba(43, 32, 127, 0.7);
  font-size: 0.88rem;
}
#top-menu button.form-control {
    width: auto;
}

/******** Footer **********************************************/
footer{
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: #2B207F;
    z-index: 1;
}
footer#footer.page-footer .navbar-custom li.nav-item a.nav-link,
footer#footer.page-footer li.nav-item a.dropdown-item
{
    color: #2B207F;
    font-size: 0.88rem;
}

footer#footer.page-footer .navbar-custom a.nav-link.active {
    text-decoration: underline;
}
footer#footer.page-footer .navbar-custom .nav-link:hover{
    text-decoration: underline;
    font-weight: bolder;
}

.footer-copyright{
    font-size: 0.75rem;
}

footer#footer.page-footer a,
footer#footer.page-footer a:hover{
    color: #5C6CB2;
}

.p-cu-5{
    padding: 5rem;
}
.p-cu-6{
    padding: 6rem;
}
.p-cu-0-5{
    padding: 5rem 0 0 0;
}

.social-wrapper{
    position: absolute;
    bottom: 10%;
}
@media only screen and (max-width: 760px) {
    .p-cu-5{
        padding: 3rem;
    }
    .p-cu-0-5{
        padding: 3rem 0 0 0;
    }
}
.nav-link[data-toggle].collapsed:after {
    content: " ▾";
}
.nav-link[data-toggle]:not(.collapsed):after {
    content: " ▴";
}
/*********************/
/********** single page ****************************************************/
section.single{
    position: relative;
    margin-top: 2rem;
    z-index: 1;
}
section.single label{
    font-weight: 500;
}
section.single span{
    padding-left: 1rem;
}

/*********************************/
div#map_box {
    min-height: 300px;
}
/* ==========================================================================
   Lejasurgas public theme (Phase 2 landing)
   ========================================================================== */
:root {
    --urgas-forest: #1a3a2f;
    --urgas-moss: #3d6b54;
    --urgas-leaf: #5f8f74;
    --urgas-birch: #e7efe8;
    --urgas-mist: #f3f7f3;
    --urgas-bark: #243028;
    --urgas-gold: #c4a35a;
    --urgas-ink: #1c2a22;
}

body.theme-urgas {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--urgas-ink);
    background: var(--urgas-mist);
}

body.theme-urgas h1,
body.theme-urgas h2,
body.theme-urgas .landing-hero__brand,
body.theme-urgas .brand-mark {
    font-family: Fraunces, Georgia, serif;
    font-weight: 700;
    color: var(--urgas-forest);
}

body.theme-urgas #body-content.page-landing {
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-urgas #body-content.page-landing > main {
    flex: 1 0 auto;
}

body.theme-urgas #body-content.page-landing > .container:first-child,
body.theme-urgas .site-header .container {
    position: relative;
    z-index: 3;
}

/* Header on landing */
body.theme-urgas .site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 4;
    padding-top: 0.5rem;
}

body.theme-urgas .nav-top {
    color: var(--urgas-birch);
}

body.theme-urgas .lang-select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f5faf6;
    min-width: 7.5rem;
}

body.theme-urgas .lang-select option {
    color: var(--urgas-ink);
}

body.theme-urgas .login-menu {
    color: #f5faf6;
    text-decoration: none;
    margin-left: 0.65rem;
    font-weight: 500;
}

body.theme-urgas .login-menu:hover {
    color: var(--urgas-gold);
}

body.theme-urgas .navbar-custom .navbar-brand,
body.theme-urgas .navbar-custom .navbar-nav .nav-link,
body.theme-urgas .brand-mark {
    color: #f5faf6;
}

body.theme-urgas .brand-mark {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

body.theme-urgas .custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(245,250,246,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

body.theme-urgas .custom-toggler.navbar-toggler {
    border-color: rgba(245, 250, 246, 0.55);
}

body.theme-urgas nav#top-menu li a.nav-link::after {
    background-color: rgba(196, 163, 90, 0.85);
}

/* Landing hero */
.landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f5faf6;
}

.landing-hero__media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 70% 20%, rgba(95, 143, 116, 0.45), transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(26, 58, 47, 0.9), transparent 55%),
        linear-gradient(160deg, #244a3a 0%, #1a3a2f 42%, #12261f 100%);
    transform: scale(1.02);
    animation: urgas-drift 18s ease-in-out infinite alternate;
}

.landing-hero--photo .landing-hero__media {
    background:
        linear-gradient(160deg, rgba(36, 74, 58, 0.35) 0%, rgba(18, 38, 31, 0.55) 100%),
        var(--hero-image) center / cover no-repeat;
}

.landing-hero--photo .landing-hero__media::after {
    opacity: 0.35;
}

.landing-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 14px,
            rgba(255, 255, 255, 0.015) 14px,
            rgba(255, 255, 255, 0.015) 15px
        );
    opacity: 0.7;
}

.landing-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(18, 38, 31, 0.35) 0%,
        rgba(18, 38, 31, 0.2) 40%,
        rgba(18, 38, 31, 0.72) 100%
    );
}

.landing-hero__inner {
    position: relative;
    z-index: 2;
    padding: 8rem 1.25rem 5rem;
    max-width: 44rem;
    margin-left: 0;
    margin-right: auto;
}

.landing-hero__brand {
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    line-height: 1.05;
    margin: 0 0 0.75rem;
    color: #f7fbf8;
    letter-spacing: -0.02em;
}

.landing-hero__headline {
    font-family: "Source Sans 3", sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem) !important;
    color: rgba(245, 250, 246, 0.92) !important;
    margin: 0 0 0.85rem;
    max-width: 28ch;
}

.landing-hero__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(231, 239, 232, 0.88);
    margin: 0 0 1.75rem;
    max-width: 36ch;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-landing-primary,
.btn-landing-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1.35rem;
    border-radius: 0.35rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-landing-primary {
    background: var(--urgas-gold);
    color: var(--urgas-bark);
    border: 1px solid transparent;
}

.btn-landing-primary:hover {
    background: #d4b56a;
    color: var(--urgas-bark);
    transform: translateY(-1px);
}

.btn-landing-ghost {
    background: transparent;
    color: #f5faf6;
    border: 1px solid rgba(245, 250, 246, 0.45);
}

.btn-landing-ghost:hover {
    border-color: #f5faf6;
    color: #fff;
    transform: translateY(-1px);
}

@keyframes urgas-drift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__media {
        animation: none;
    }
    .btn-landing-primary:hover,
    .btn-landing-ghost:hover {
        transform: none;
    }
}

/* Footer on landing — solid bar so text stays readable */
body.theme-urgas #body-content.page-landing footer#footer {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding-top: 1.5rem;
    background: var(--urgas-forest);
    color: rgba(245, 250, 246, 0.92);
}

body.theme-urgas #body-content.page-landing footer#footer p,
body.theme-urgas #body-content.page-landing footer#footer h6,
body.theme-urgas #body-content.page-landing .footer-copyright {
    color: rgba(245, 250, 246, 0.92);
}

body.theme-urgas #body-content.page-landing footer#footer a,
body.theme-urgas #body-content.page-landing footer#footer a:hover {
    color: var(--urgas-gold);
}

body.theme-urgas #body-content.page-landing footer#footer hr {
    border-color: rgba(245, 250, 246, 0.18);
}

/* Non-landing public pages: solid forest header */
body.theme-urgas #body-content:not(.page-landing) .site-header {
    position: relative;
    background: var(--urgas-forest);
}

body.theme-urgas #body-content:not(.page-landing) .brand-mark,
body.theme-urgas #body-content:not(.page-landing) .login-menu,
body.theme-urgas #body-content:not(.page-landing) .navbar-custom .nav-link {
    color: #f5faf6;
}

body.theme-urgas #body-content:not(.page-landing) .lang-select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #f5faf6;
}

@media only screen and (max-width: 760px) {
    .landing-hero__inner {
        padding: 7.5rem 1rem 4rem;
    }
}

/* Blog list + post galleries */
.blog-list {
    display: grid;
    gap: 1.75rem;
}

.blog-card {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 58, 47, 0.12);
}

.blog-card:last-child {
    border-bottom: 0;
}

.blog-card__title {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.blog-card__title a {
    color: var(--urgas-forest, #1a3a2f);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--urgas-gold, #c4a35a);
}

.blog-card__meta,
.blog-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: rgba(26, 58, 47, 0.65);
}

.blog-card__date,
.blog-post__date {
    margin: 0;
}

.blog-card__meta-sep,
.blog-post__meta-sep {
    color: rgba(26, 58, 47, 0.4);
}

.blog-card__excerpt,
.blog-post__lead {
    margin: 0 0 0.75rem;
    line-height: 1.55;
    color: rgba(18, 38, 31, 0.88);
}

.blog-card__more {
    font-weight: 600;
    color: var(--urgas-forest, #1a3a2f);
}

.blog-post__body {
    line-height: 1.65;
    margin-bottom: 2rem;
}

.blog-post__body img {
    max-width: 100%;
    height: auto;
}

.photo-gallery__title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--urgas-forest, #1a3a2f);
}

.photo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.photo-gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    background: rgba(26, 58, 47, 0.06);
    text-decoration: none;
    color: inherit;
}

.photo-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.photo-gallery__item:hover img {
    transform: scale(1.04);
}

.photo-gallery__caption {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    color: rgba(18, 38, 31, 0.8);
}

.inspection-post__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.inspection-post__thumb {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    background: rgba(26, 58, 47, 0.06);
    line-height: 0;
}

.inspection-post__thumb img {
    display: block;
    width: 72px;
    height: 54px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.inspection-post__thumb:hover img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .photo-gallery__item img,
    .inspection-post__thumb img {
        transition: none;
    }
}

/* GLightbox theme polish ****************************************************/
.glightbox-clean .gslide-description {
    background: rgba(26, 58, 47, 0.92);
}

.glightbox-clean .gdesc-inner {
    color: #f4f7f5;
    font-family: "Source Sans 3", system-ui, sans-serif;
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(26, 58, 47, 0.85);
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: rgba(26, 58, 47, 1);
}

/* Map views (portal) ********************************************************/
.map-view__subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
}

.map-view__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.map-view__canvas {
    width: 100%;
    height: min(70vh, 560px);
    min-height: 280px;
    border-radius: 0.25rem;
    z-index: 1;
}

.map-view__list-wrap {
    margin-top: 1.25rem;
}

.map-view__list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(43, 32, 127, 0.12);
}

.map-view__list-btn {
    flex: 1 1 auto;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.map-view__list-btn:hover .map-view__list-label {
    text-decoration: underline;
}

.map-view__list-label {
    font-weight: 600;
}

.map-view__dist {
    color: #5C6CB2;
    font-size: 0.9em;
}

.map-popup {
    min-width: 160px;
    max-width: 240px;
}

.map-popup__title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.map-popup__meta {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.map-popup__photo {
    margin: 0.4rem 0;
}

.map-popup__photo img {
    display: block;
    width: 100%;
    max-height: 100px;
    object-fit: cover;
}

.map-popup__link {
    margin: 0.35rem 0;
}

.map-popup__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.map-view__missing ul {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .map-view__canvas {
        height: 65vh;
        min-height: 320px;
    }
}
