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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background: #F2F2F2;
    background: linear-gradient(134deg,rgba(242, 242, 242, 1) 80%, rgba(254, 186, 170, 1) 100%, rgba(242, 242, 242, 1) 0%);
  }
/*Navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: relative;
}

/* Create the border with padding that matches the navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 0.5px;
    background-color: #1D3638;
}

.logo {
    font-weight: 500;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 40px;
    position: relative;
    padding-top: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 8.42px;
    letter-spacing: 0%;
    padding-bottom: 20px;
    position: relative;
}

.nav-links a.active {
    font-weight: 700;
}

.nav-links a.active::after {
    background-color: #1D3638;
    height: 1px;
}

/* Mobile menu button - hidden by default */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #1D3638;
    transition: all 0.3s ease;
}
/*Kraj navbar*/

/* home section */
.home-section {
    padding: 50px 10%;
    /* background: linear-gradient(130deg, #f9f9f9 80%, #efcbc2 100%);
    background-color: #f9f9f9; */
    margin-bottom: 10px;
}

.section-title {
    font-weight: 700;
    font-size: 50px;
    line-height: 100%;
    letter-spacing: -1.26px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.gradient-line {
    width: 169px;
    height: 4px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 94.96%);
    border-radius: 2px;
    margin-bottom: 30px;
}

.main-description {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 900px;
}

.contact-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    max-width: 600px;
}

.btn-more {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 16px;
    color: white;
    background: linear-gradient(90deg, #FF9170 0%, #EE5830 100%);
    cursor: pointer;
    position: relative;
    border: none;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(238, 88, 48, 0.3);
}

/* Hover: white background + gradient text */
.btn-more:hover {
    background: white;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(90deg, #FF9170 0%, #EE5830 100%);
    box-shadow: 0 6px 16px rgba(238, 88, 48, 0.45);
}

.prodato {
  text-decoration: line-through;
}

.prodatoTekst {
  color: #EE5830;
  text-decoration: none;
  padding-left: 10px;
  font-size: medium;
}

/* Kraj vas dom */
/* end section */
.divider-container {
  width: 100%;
  min-height: 100px; 
}
  .container {
    padding: 20px 10%;
  }

  .header-box {
    background: white;
    border: 0.9px solid #EE5830;
    border-radius: 2px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 10px 28px;
    display: inline-block;
    margin-bottom: 48px;
  }

  .header-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.13px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .apartments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    row-gap: 150px;
    margin-bottom: 80px;
  }

  .apartment-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 355px;
    margin: 0 auto;
  }

  .card-shadow {
    position: absolute;
    left: 0;
    right: 0;
    top: 34px;
    height: 410px;
    border-radius: 9px;
    border: 1px solid #1D3638;
    background: linear-gradient(112deg, #EE5830 18.38%, #FF9170 101.67%);
    overflow: hidden;
  }

  .availability-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 18px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
  }

  .card-main {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 390px;
    background: white;
    border-radius: 9px;
    border: 1px solid #1D3638;
/*     overflow: hidden; */ 
    display: flex;
    flex-direction: column;
    z-index: 1;
  }

  .card-image-wrapper {
    position: relative;
    height: 186px;
    background: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
    margin: 21px 21px 0;
    border-radius: 2px;
  }

  .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-content {
    flex: 1;
    padding: 14px 21px 20px;

    display: flex;
    flex-direction: column;
  }

  .apartment-name {
    color: #1D3638;
    font-size: 26px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.1px;
    margin-bottom: 6px;
  }

  .apartment-type {
    color: #1D3638;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.1px;
    margin-bottom: 20px;
  }

  .apartment-area {
    color: #EE5830;
    padding: 30px 0 0 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.1px;

    margin-top: auto;
  }

  .card-button {
    position: absolute;
    bottom: -45px;
    right: 20px;
    z-index: 2;
    width: 35px;
    height: 41px;
    border-radius: 2px;
    border: 3px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .card-button:hover {
    transform: scale(1.05);
  }

  .card-button:active {
    transform: scale(0.95);
  }

  .apartment-availability {
    color: #1D3638;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.1px;
    margin-bottom: 2px;
  }
  

  /* Footer */
  /* Footer  */
footer {
    background: linear-gradient(225.52deg, #0B7078 0.45%, #EE5830 100.47%);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    width: 80%;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 500;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.to-top {
    color: white;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 40px 0;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column p {
    margin: 8px 0;
    font-size: 14px;
    font-weight: 300;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.social-icons a {
    color: white;
    font-size: 16px;
}

.newsletter {
    margin-top: 20px;
}

.email-form {
    display: flex;
    margin-top: 10px;
}

.email-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.email-form button {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    padding-top: 10px;
}
/* Kraj footera */

  @media (min-width: 640px) {
    /* body {
      padding: 48px 24px;
    } */

    .header-box {
      margin-bottom: 64px;
    }

    .header-title {
      font-size: 58px;
    }

    .apartments-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    /* body {
      padding: 48px 32px;
    } */

    .apartments-grid {
      grid-template-columns: repeat(3, 1fr);
      column-gap: 53px;
    }

    .apartment-card-wrapper {
      margin: 0;
    }
}

/* garaze */
.garage-container {
    
    margin: 0 auto;
    border-radius: 8px;
    padding: 20px 10%;
    margin-bottom: 50px;
    
  }

  .header-section {
    margin-bottom: 64px;
  }

  .title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
  }

  .title-box {
    background: white;
    border: 1px solid #E65731;
    box-shadow: 0 3.6px 4.95px rgba(0, 0, 0, 0.16);
    padding: 20px 32px;
    border-radius: 4px;
  }

  .title {
    font-size: 58px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1.131px;
    background: linear-gradient(90deg, #EE5830 0%, #1D3638 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .next-button {
    width: 42px;
    height: 47px;
    background: linear-gradient(135deg, #EE5830 0%, #FF9170 79.63%);
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
  }

  .next-button:hover {
    transform: scale(1.05);
  }

  .chevron-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
  }

  .spots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 80px;
  }

  .spot-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .spot-item.unavailable {
    opacity: 0.25;
  }

  .car-icon {
    flex-shrink: 0;
    width: 48px;
    height: 40px;
  }

  .spot-info {
    display: flex;
    flex-direction: column;
  }

  .spot-name {
    color: #1D3638;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.1px;
    line-height: 20px;
    margin-bottom: 4px;
  }

  .spot-area {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1px;
    line-height: 20px;
  }

  .spot-area.available {
    color: #EE5830;
  }

  .spot-area.unavailable {
    color: #1D3638;
  }

  @media (max-width: 1024px) {
    .spots-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 32px 48px;
    }
  }

  @media (max-width: 768px) {
    .garage-container {
      padding: 32px 24px;
    }

    .title {
      font-size: 40px;
    }

    .title-box {
      padding: 16px 24px;
    }

    .next-button {
      width: 35px;
      height: 41px;
    }

    .chevron-icon {
      width: 20px;
      height: 20px;
    }
    
    .header-box {
      display: block;
      text-align: center;
    }
  }

  @media (max-width: 640px) {
    .spots-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .title {
      font-size: 32px;
    }

    .header-section {
      margin-bottom: 48px;
      display: block;
      text-align: center;
    }
  }

  @media (max-width: 768px) {

    /* Navbar */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 30px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    /* Transform hamburger to X when menu is open */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }
    /* Kraj navbara */
    /* Vas dom */
    .home-section {
        padding: 30px 5%;
    }
    .section-title {
        font-size: 36px;
    }
    
    .main-description,
    .contact-text {
        font-size: 16px;
    }
    
    .contact-section {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Kraj vas dom */
    
    /* Stanovi */
    .apartments-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        width: 95%;
    }
    
    .footer-main {
        margin: 20px 0;
    }
    
    .footer-column {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    /* Kraj footera */
}

@media screen and (max-width: 576px) {
    /* Footer */
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .email-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-form button {
        align-self: flex-start;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    /* Kraj footera */
}

@media screen and (max-width: 480px) {
    /* Navbar */
    .navbar {
        padding: 15px 5%;
    }    

    .logo img {
        max-width: 120px;
    }
    
    .nav-links {
        width: 220px;
    }

    /* Kraj navbar */
}