/* ====================================
   GLOBAL STYLES
   ==================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #9AA9B6;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
  text-align: center;
}

/* ====================================
   HEADER
   ==================================== */
.site-header {
    background-color: #9AA9B6;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.site-header:hover {
    background-color: #fff;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.site-header:hover a {
    color: #222;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 1rem;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 8rem 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ====================================
   INVESTMENTS SECTION
   ==================================== */
.investments {
    background-color: #f6f6f6;
    padding: 3rem 1rem;
}


.investments .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Investment Item (List Style) */
.investment-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow .3s;
}
.investment-item:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.investment-thumb img {
  width: 220px;
  height: auto;
  border-radius: 10px;
}
.investment-content h3 {
  margin-top: 0;
}
.investment-content .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #1e73be;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.investment-content .btn:hover {
  background-color: #145a8a;
}


.investment-content {
    flex: 1;
}

.investment-content h3 {
    margin-top: 0;
}

.investment-content p {
    margin: 5px 0;
}

/* Investment Top: Ikona + Dane w poziomie */
.investment-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap; /* pozwala na responsywność */
}

.investment-thumb {
    flex: 0 0 220px; /* szerokość ikony */
    text-align: center;
}

.investment-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.investment-details {
    flex: 1;
}

/* Tytuł i dane */
.investment-details h2 {
    margin-top: 0;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.investment-details p {
    margin: 5px 0;
}

.price {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e73be;
    margin-top: 10px;
}

.price-m2 {
    font-style: italic;
    color: #555;
}

/* Kreska rozciągnięta na cały bezowy kwadrat */
.investment-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* Opis inwestycji */
.investment-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Investment Box */
.investment-box {
    background-color: #fdf8f0;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-block;
    background-color: #9AA9B6;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #7e8e9d;
}

/* inwestycja jedna */
/* Cały bezowy kwadrat pozostaje z .investment-box, tylko zawartość */
.single-investment-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: transparent; /* usuwa białe tło */
    padding: 0;
    margin: 0;
}

/* Górna sekcja: ikona + dane */
.single-investment-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
}

.single-investment-top .investment-thumb {
    flex: 0 0 220px;
    text-align: center;
}

.single-investment-top .investment-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.single-investment-details {
    flex: 1;
}

.single-investment-details h2 {
    margin-top: 0;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.single-investment-details p {
    margin: 5px 0;
}

.single-investment-details .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e73be;
    margin-top: 10px;
}

.single-investment-details .price-m2 {
    font-style: italic;
    color: #555;
}

/* Kreska */
.single-investment-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

/* Opis inwestycji */
.single-investment-description {
    font-size: 1em;
    line-height: 1.6;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .single-investment-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-investment-details {
        width: 100%;
    }

    .single-investment-top .investment-thumb {
        flex: none;
    }
}

/* ====================================
   PAGES
   ==================================== */
.page-title {
    margin-top: 2rem;
    color: #222;
}

.page-body {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ====================================
   INVESTMENTS GRID (Inwestycje)
   ==================================== */
.inwestycje .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.inwestycja-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
}

.inwestycja-item:hover {
    transform: translateY(-5px);
}

.inwestycja-thumb img {
    width: 100%;
    height: auto;
}

.inwestycja-desc {
    padding: 15px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    .investment-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .investment-thumb {
        margin-bottom: 15px;
    }

    .investment-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .investment-details {
        width: 100%;
    }

    .investment-box {
        padding: 20px;
        margin: 20px 0;
    }
}

