@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');

/*======================================================================
Formatting of Header begin
========================================================================*/
header.container-header {
    display: flex;
    align-items: center;/* vertical alignment */
    justify-content: space-between; /* logo left, menu right */
    position: relative;
    z-index: 5000;
    background-color: rgb(94, 121, 171);
    background-image: unset;
}

header.header.container-header.full-width > .grid-child {
  width: auto;
  margin-left: 15px;
}

.navbar-brand img{
  height: 94px;
  width: auto;
}
.nav-item {
  font-size: 1.5rem;
  font-family: "Syncopate", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(255,255,255);
}

.header-burger-btn {
    position: relative;
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-right: 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 6000;
    padding: 0;
}

.burger-box {
    width: 36px;
    height: 28px;
    position: relative;
}

.burger-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.top-bun,
.patty,
.bottom-bun {
    position: absolute;
    left: 0;

    width: 100%;
    height: 4px;

    background: #000;
    border-radius: 999px;

    transition: all 0.35s ease;
}

.top-bun {
    top: 0;
}

.patty {
    top: 50%;
    transform: translateY(-50%);
}

.bottom-bun {
    bottom: 0;
}

/* X animation */

.header-burger-btn.active .top-bun {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header-burger-btn.active .patty {
    opacity: 0;
}

.header-burger-btn.active .bottom-bun {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/*  MENU OVERLAY  */

.nav-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100dvh;

    background: #ffffff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 4000;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* active state */

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* prevent page scrolling */

body.menu-open {
    overflow: hidden;
    height: 100dvh;
}

/*  MENU ITEMS */

.nav-overlay .mod-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    text-align: center;
}

.nav-overlay .mod-menu a {
    color: #000;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.nav-overlay .mod-menu a:hover {
    opacity: 0.6;
}

.brand-logo .logo-small {
    display: none;
}

@media (max-width: 600px) {
    .brand-logo .logo-large {
        display: none;
    }
    .brand-logo .logo-small {
        display: inline-block;
        max-height: 120px; /* adjust to your banner height */
        width: auto;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    border: 0;
}

/* MOBILE / DESKTOP */

@media (min-width: 1351px) {

    .header-burger-btn,
    .nav-overlay {
        display: none;
    }
}

@media (max-width: 1350px) {

    .container-nav {
        display: none;
    }
}

/*======================================================================
Formatting of Header end
========================================================================*/

/*======================================================================
Formatting of Gallery begin
========================================================================*/
/* ===== Gallery container ===== */
.buildings .category-buildings .com-content-category-blog {
    padding: 1rem;
}

.buildings .image-wrapper{
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5pt;    
    position: relative;
}

/* ===== Items grid ===== */
.buildings .category-buildings .com-content-category-blog__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* ===== Individual gallery item ===== */
.buildings .gallery-item {
    display: block;
    position: relative;
    cursor: pointer;
}

/* ===== Image styling ===== */
.buildings .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* ===== Overlay styling ===== */
.buildings .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.buildings .overlay-text {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 0 0.5rem;
    z-index: 50;
}

/* ===== Hover effects ===== */
.buildings .gallery-item:hover img {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.buildings .gallery-item:hover .overlay {
    opacity: 1;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .buildings .com-content-category-blog__items {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.5rem;
    }
    .buildings .gallery-item {
        height: 100%;
    }

    /* Wrapper fills that stretched height and lays out as a column */
    .buildings .image-wrapper {
        aspect-ratio: unset;
        display: flex;
      flex-direction: column;
        height: 100%;
    }

    /* Image stays a fixed square, doesn't stretch */
    .buildings .gallery-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        flex-shrink: 0;
    }

    /* Overlay grows to fill whatever space is left — this is what equalizes across the row */
    .buildings .overlay {
        position: static;
        opacity: 1;
        width: 100%;
        background-color: #222;
        padding: 0.5rem 0;
        flex: 1;                 /* <-- key line */
        display: flex;           /* center text within that grown space */
        justify-content: center;
        align-items: center;
    }
}

/*======================================================================
Formatting of Gallery end
========================================================================*/

/*======================================================================
Formatting of Buildings Articles slideshow Begin
========================================================================*/
.project-slideshow {
    position: relative;
}

.project-slideshow .slideshow-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
}

.project-slideshow .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.project-slideshow .slide .bg-blur {
    position: absolute;
    inset: -20px; /* slightly overflow to avoid blur edges */
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.05);
}

.project-slideshow .slide.active {
    opacity: 1;
    z-index: 1;
}

.project-slideshow .slide img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}



.project-slideshow .slideshow-track .slide-btn {
    position: absolute;
    top: calc(50% - 30px);
    transform: none;
    height: 60px;
    width: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0);
    border: none;

    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;

    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding-bottom: 8px;
}

.project-slideshow .slideshow-track .slide-btn.prev {
    left: 20px;
    background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
}

.project-slideshow .slideshow-track .slide-btn.next {
    right: 20px;
    background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
}
.project-slideshow:hover .slideshow-track .slide-btn {
    opacity: 1;
    z-index: 10;
    background: rgba(0,0,0,0.4);
}

.project-slideshow .slide-counter {
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/*======================================================================
Formatting of Buildings Articles slideshow End
========================================================================*/

/*======================================================================
Formatting of Services Begin
========================================================================*/
/*===== Contact module at the bottom ===== */
.contact {
  /* ===== Remove Padding from container (card-body) ===== */
  .card-body{
    padding: 0;
  }
  /* ===== CTA full-width block ===== */
  .cta-module {
      min-height: 300px;
      background-color: #f0f0f0; /* or use background-image */
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* ===== Inner alignment ===== */
  .cta-inner {
      text-align: center;
      max-width: 800px;
      padding: 2rem;
  }

  /* ===== Text ===== */
  .cta-text {
      font-size: 1.4rem;
      margin-bottom: 1.5rem;
  }

  /* ===== Button ===== */
  .cta-btn {
      display: inline-block;
      padding: 0.75rem 2rem;
      background: #000;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
  }

  /* ===== Optional hover ===== */
  .cta-btn:hover {
      background: #333;
  }
}

/* ===== Alternating article layout ===== */
.services .com-content-category-blog__items {
    display: block;
    margin-bottom: 0;
}

.services .com-content-category-blog__item.blog-item {
    display: block;
}

.services .service-item {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    min-height: 300px;
    margin-bottom: 3rem;
}

/* ===== Reverse every second article  ===== */
.services .com-content-category-blog__item.blog-item:nth-child(even) .service-item {
    flex-direction: row-reverse;
}

/*  ===== Image sizing  ===== */
.services .image-wrapper {
    flex: 0 0 35%;
    overflow: hidden; 

    position: relative;
}

.services .image-wrapper img {
    position: absolute; /*image size is not supposed to affect container size, so that the container scales only with the text */
    inset: 0;
  
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 5pt;
}

/*  ===== Text column  ===== */
.services .service-text {
    flex: 1;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        min-height: auto;
    }

    .services .com-content-category-blog__item.blog-item:nth-child(even) .service-item {
        flex-direction: column;
    }

    .image-wrapper {
        min-height: 200px;
    }
}

/*======================================================================
Formatting of Services end
========================================================================*/

/*======================================================================
Formatting of About-me article begin
========================================================================*/

.about-me-flex-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  
}

.about-me-text {
  flex: 1;
}

.about-me-self-portrait {
  flex: 0 0 500px;
}

.about-me-self-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 950px) {
  .about-me-flex-container {
    flex-direction: column;
  }

  .about-me-self-portrait {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
    order: -1;
    overflow: hidden;
  }

  .about-me-self-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
  }
}

/*======================================================================
Formatting of About-me article end
========================================================================*/

/*======================================================================
Formatting of Footer begin
========================================================================*/
/*
stacks footer items vertically instead of default horizontal stacking
*/
footer.container-footer.footer.full-width > .grid-child {
    display: block  
}

footer.container-footer {
    background-color: rgb(94, 121, 171);
    background-image: unset;
}

footer.container-footer.footer.full-width > .grid-child > .mod-custom,
footer.container-footer.footer.full-width > .grid-child > .mod-menu {
    width: 100% 
    margin-bottom: 1rem;
    text-align: center;
}
@media (max-width: 768px) {
    /*
    stacks footer items vertically instead of default horizontal stacking
    */
    footer.container-footer.footer.full-width > .grid-child > .mod-custom,
    footer.container-footer.footer.full-width > .grid-child > .mod-menu {
    width: 100% !important;
    margin-bottom: 1rem;
    text-align: center;
}
}

/*======================================================================
Formatting of Footer end
========================================================================*/