/* cmsms stylesheet: fotojs_css modified: Tuesday, October 20, 2026 2:01:39 PM */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');
/* Reset podstawowych styli */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
  max-width: 100%;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
p, a, span, h1, h2, h3, li {
   overflow-wrap: break-word;
   word-break: break-word;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/*  top bar menu */
header {
    background-color: #165242; /* fill background */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px; /* start bar height */
    transition: height 0.4s ease;
}

/* bar and logo scroll */
header.scrolled {
    background-color: #124336; /*  background bar, darker) */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

header.scrolled .container {
    height: 52px; /* bar height mini */
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px; /* size Logo start */
    font-weight: bold;
    letter-spacing: 1px;
    transition: font-size 0.4s ease; /* flex resize logo */
}
.logo img {
    height: 80px;
    transition: height 0.4s ease;
}
header.scrolled .logo a  {
    font-size: 19px; /* small logo scroll */
}
header.scrolled .logo img  {
    height: 50px; /* small logo scroll */
}
/* ham style animation */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    justify-content: space-between;
    flex-direction: column;
    padding: 0;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Główne Menu */
.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Submenu (Pozycje 4 i 5) */
.has-submenu > .nav-link::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #165242;
    border: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.submenu-item a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background 0.2s ease;
}

.submenu-item a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Desktop */
@media (min-width: 993px) {
    .has-submenu:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Urządzenia mobilne */
@media (max-width: 992px) {
    .menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #165242;
        flex-direction: column;
        height: auto; 
        max-height: calc(100vh - 70px); 
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        padding: 0;
        /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); */
    }

    /* background color menu drop-down list on mobile if scrolled */
    header.scrolled .nav-menu {
        background-color: #165242;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 15px 25px;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-between;
    }

    .submenu {
        position: relative;
        top: 0;
        width: 100%;
        background-color: #124336; /*background submenu*/
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: none;
        box-shadow: none;
        transition: none;
        border: none;
        border-radius: 0;
    }

    .submenu.open {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .has-submenu.open-arrow > .nav-link::after {
        transform: rotate(180deg);
    }

    .submenu-item a {
        padding-left: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}
/* -------*/
.topbar {
  background-image: url('https://fotografjustynasladkiewicz.pl/uploads/img/flagax30.png');
  background-repeat: no-repeat;
  background-position: calc(100% - 5px);
  height: 40px;
}
.hero { margin-top: 7rem; margin-bottom: 8rem;  font-weight: 300; font-size: 1.1rem; }
.hero ul, .hero ol { padding: 0 0 0 2rem; }
.hero h1 { padding: 1rem 0; }
.hero a { color: #344766; text-decoration: none; }
.hero a:hover { color: #6a7079; }
.hero p { /* margin-bottom: 1rem; */ margin: revert; }
.startpage { margin: 0 0 8rem 0; }
.startpage > .grid-3 { display: grid;  grid-template-columns: repeat(3, 1fr);  gap: 30px; margin-bottom: 8rem;} 
.startpage > .grid-2 { display: grid;  grid-template-columns: repeat(2, 1fr);  gap: 30px;} 
.startpage .boxone { text-align: center; }
.startpage .boxone img { margin: auto; padding-bottom: 1rem; }
.startpage .boxone a { font-size: 1.2rem; font-weight: bold; }
.footerbox p { padding-bottom: 1rem; }
footer { max-width: 100%;  background-color: #1c6551; }
.footbar { min-height: 160px; color: white; align-content: center;  display: grid;  grid-template-columns: repeat(2, 1fr);  gap: 30px; }
.footbar div:last-child { text-align: right; }
.footbar a { color: white; }

.two-box {  display: flex;  flex-flow: row wrap;  gap: 1rem;  width: 100%; justify-content: center;}
.two-box img { display: inline-flex; }
.two-box > div { width: 48%; }
.two-box > div:first-child { width: 100%; padding-bottom: 3rem; }
.two-box-left { padding: 0 4rem; background: #1e6452; color: white; font-weight: 400; align-content: center; }
.two-box-left > div { display: block; width: 100%; height: 4rem; align-content: center; padding-left: 4rem; }
.two-box-left p { margin:0; }
.two-box-left a { color: #fff; }
.two-box-left a:hover { color: #fff; text-decoration: underline; }

.ico-fb { background-image: url("https://fotografjustynasladkiewicz.pl/uploads/img_svg/facebook-brands-solid-full.svg"); }
.ico-inst { background-image: url(https://fotografjustynasladkiewicz.pl/uploads/img_svg/instagram-brands-solid-full.svg); }
.ico-site { background-image: url(https://fotografjustynasladkiewicz.pl/uploads/img_svg/house-solid-full.svg); }
.ico-pro { background-image: url(https://fotografjustynasladkiewicz.pl/uploads/img_svg/camera-solid-full.svg); }
.ico-phone {background-image: url(https://fotografjustynasladkiewicz.pl/uploads/img_svg/mobile-screen-solid-full.svg); }
.ico-em { background-image: url(https://fotografjustynasladkiewicz.pl/uploads/img_svg/envelope-solid-full.svg); } 

.ico-fb,
.ico-inst,
.ico-site,
.ico-pro,
.ico-phone,
.ico-em { background-repeat: no-repeat; background-position: left; background-size: 3rem; }

@media (max-width: 992px) {
.hero { margin-top: 4rem; }
.startpage { margin: 0 0 4rem 0; }
.startpage > .grid-3, .startpage > .grid-2 { grid-template-columns: 1fr; margin-bottom: 4rem; } 
.startpage .boxone { padding: 2rem 0; }
.footbar { grid-template-columns: 1fr; text-align: center;} 
.footbar div:last-child { text-align: center; }

.two-box > div { width: 100%; }
.two-box iframe { width: 100%;}
.two-box-left { padding: 1rem 1.5rem; align-content: center; }
.ico-fb,
.ico-inst,
.ico-site,
.ico-pro,
.ico-phone,
.ico-em { background-repeat: no-repeat; background-position: left; background-size: 2.5rem; }
}
