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

/* =========================
   ZÁKLAD / TVOJE PÔVODNÉ
   ========================= */
body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

header {
    background-color: #ffffff;
    color: white;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures the header stays above other content */
}

h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #F36E11;
}

p {
    font-size: 1.2rem;
}

.highlight { color: #F36E11; }
.highlight-w { color: white; }

.break { display: block; width: 100%; }

nav { width: 100%; }

nav ul.desktop-menu {
    display: flex;
    align-items: center;
    max-width: 114rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    list-style: none;
    height: 70px;
}

nav ul li { display: inline; margin: 0 1rem; }

nav ul.desktop-menu li a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}
nav ul li a:hover { color: #F36E11; }

#admin-link { margin-left: auto; }

#admin-link a {
    margin-left: auto;
    color: #000000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: solid 0.2rem #F36E11
}
#admin-link a:hover { background-color: #F36E11; color: white !important; }

.mobile-menu {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    background-color: #ffffff;
}

.mobile-logo { display: flex; align-items: center; }

.dropdown-mobile .dropbtn-mobile {
    font-size: 30px;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-content-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
}
.dropdown-content-mobile.show { max-height: 500px; animation: none; }
.dropdown-content-mobile a {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: rgb(0, 0, 0);
    border-top: 1px solid #ffffff;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
}
.dropdown-content-mobile a:hover { background-color: #555; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

main { margin: 2rem auto; }

section { margin-bottom: 3rem; padding: 0 1rem; }

#perks { max-width: 100em; margin-left: auto; margin-right: auto; }
.perks { max-width: 20rem; }

.perks-data {
    margin-top: 3rem;
    display: flex;
    gap: 5rem;
    justify-content: space-evenly;
    align-items: start;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}
.perks-data h3 { font-weight: bold; }
.perk-icon { width: 5rem; color: #a74804; }

.logo {
    height: 100px;
    width: auto;
    vertical-align: middle;
    margin-right: 4rem;
}

#available { max-width: 150rem; margin-left: auto; margin-right: auto; }

.storage-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.storage-unit {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 6px #cacaca;
    text-align: center;
    width: 21.22rem;
}
.storage-unit h3 { 
    font-weight: bold;
    font-size: 2.4rem;
 }
 .storage-unit-com{
    font-size: 1rem;
 }
 /* m² badge next to the size */
 .sqm-chip{
    display:inline-block;
    margin-left: 0.5rem;
    margin-bottom: 0.4rem;
    padding: 0.2rem .55rem;
    border:2px solid #F36E11;
    color:#F36E11;
    background:#fff;
    border-radius:999px;
    font-weight:700;
    line-height:1;
    font-size:1rem;
    vertical-align:middle;
  }
  
.storage-image { width: 16rem; }

.price { font-size: 1.5rem; color: #F36E11; margin: 1rem 0; }

.rent-btn {
    background: #F36E11;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.8rem 6.5rem;
    margin-top: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.rent-btn:hover { background: #a74804; }

.pricing-list {
    max-width: 112rem;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 6px #cacaca;
}
.pricing-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}
.pricing-list li:before {
    content: "✓";
    color: #F36E11;
    position: absolute;
    left: 0;
}

.about__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    counter-reset: num;
    gap: 2rem;
}
.about__list-item { position: relative; counter-increment: num; }
.about__list-number {
    display: flex; justify-content: center; align-items: center;
    padding: 0.2rem; border: .2rem solid #F36E11; border-radius: 20px
}
.about__list-number::after { font-weight: 600; font-size: 2rem; color: #000000 }
.about__list-arrow {
    position: absolute; top: 2rem; left: 3.9rem;
    width: calc(100% - 4rem); height: .1rem; background-color: #F36E11
}
.about__list-arrow::after,
.about__list-arrow::before {
    content: " "; position: absolute; right: -.2rem;
    width: 1.2rem; height: .1rem; background-color: #F36E11
}
.about__list-arrow::after { top: .4rem; transform: rotate(-45deg) }
.about__list-arrow::before { top: -.4rem; transform: rotate(45deg) }
.about__list-text { margin-top: 2rem }

.no-units img { padding: 10px; width: 20rem; border-radius: 20px; }

#gallery {
    position: relative;
    max-width: 119rem;
    width: 100%;
    margin: auto;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}
.photos {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin-left: 3rem;
    gap: 1.5rem;
}
.picture { height: 376px; border-radius: 3px; }

.arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    font-size: 30px; color: #F36E11;
    padding: 0px 10px; background-color: transparent;
    cursor: pointer; border-radius: 20%;
    z-index: 1000; user-select: none;
}
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }
.arrow:hover { background-color: rgba(0, 0, 0, 0.2); }

.testimonial:focus { outline: none; }

.faq-container {
    max-width: 113rem;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(3, auto);
    gap: 0px 10px;
    margin: auto;
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.faq { margin-bottom: 10px; }
.faq-question {
    font-weight: bold; cursor: pointer;
    border: 2px solid #F36E11; padding: 10px;
    border-top-right-radius: 5px; border-top-left-radius: 5px;
}
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 10px; border: 2px solid #F36E11;
    border-bottom-right-radius: 5px; border-bottom-left-radius: 5px;
}

#contact { margin-left: auto; margin-right: auto; padding: 0; }
#map { width: 100vw; height: 550px; }

.contact-form {
    display: flex; flex-direction: column;
    gap: 1rem; max-width: 600px;
    margin: 0 auto; margin-bottom: 5rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem; border: 1px solid #ddd; border-radius: 5px;
}
.contact-form textarea { height: 150px; }
.contact-form button {
    background: #333; color: white; border: none;
    padding: 1rem; border-radius: 5px; cursor: pointer; transition: background 0.3s;
}
.contact-form button:hover { background: #444; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: scroll;
}
.modal-content {
    background-color: #fff;
    margin: 5% auto; padding: 20px; border-radius: 10px;
    width: 80%; max-width: 800px; position: relative;
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.3rem; background-color: #F36E11; color: #ffffff;
    padding: 0.5rem 1.5rem;
    margin: -20px -20px 20px -20px;
    border-radius: 10px 10px 0 0; text-align: center;
}
.modal-close {
    background: none; border: none;
    font-size: 2rem; font-weight: bold; cursor: pointer; color: white;
}
.close {
    position: absolute; right: 20px; top: 10px;
    font-size: 28px; cursor: pointer;
}

.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input {
    width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px;
}
.form-image { width: 20rem; }

.submit-btn {
    background-color: #47b2e4; color: white;
    padding: 10px 20px; border: none; border-radius: 4px;
    cursor: pointer; width: 100%; font-size: 16px;
}
.submit-btn:hover { background-color: #31a2d8; }

/* Rental Form Modal Styles (override) */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #333; }
.form-group input {
    width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
}
.form-group input:focus {
    outline: none; border-color: #e74c3c; box-shadow: 0 0 5px rgba(46, 204, 113, 0.2);
}
.submit-btn, .cancel-btn {
    padding: 10px 20px; margin: 10px 5px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 14px; transition: background-color 0.3s ease;
}
.submit-btn { background-color: #F36E11; color: white; }
.submit-btn:hover { background-color: #a74804; }
.cancel-btn { background-color: #e74c3c; color: white; }
.cancel-btn:hover { background-color: #c0392b; }

.modal-content p { margin: 15px 0; font-size: 1.2rem; }
hr.divider { border-top: 2px solid #bbb; border-radius: 5px; }

#info {
    margin-top: 1rem; width: 100%;
    display: flex; gap: 1rem;
    justify-content: space-around; align-items: flex-start; flex-wrap: wrap;
}
#info h2 { text-align: left; }
#info p {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem;
}

.info-logo { width: 15rem; }
.footer-icon { width: 2rem; }

/* ======= REMOVED old footer/#botton styles and replaced with professional footer below ======= */
/* (old rules deleted to avoid conflicts)
footer { ... }
#botton { ... }
#botton p { ... }
*/

/* =========================
   HERO / LANDING (NOVÝ)
   ========================= */
:root{
  --brand: #F36E11;
  --brand-dark: #a74804;
  --text-on-dark: #ffffff;
  --hero-maxw: 1200px;
}

/* Nahrádza pôvodné #landing, #landing::before a .overlay */
#landing{
  position: relative;
  isolation: isolate;
  min-height: clamp(72svh, 85vh, 100svh);
  display: grid;
  place-items: center;
  color: var(--text-on-dark);
  text-align: center;
  padding: 0 1.25rem;

  /* performantné pozadie s gradientmi + fallback */
  background:
    radial-gradient(1200px 600px at 50% 80%, rgba(243,110,17,0.25) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.75) 100%),
    /* nechávam tvoju cestu – uprav si prípony ak pridáš webp/avif */
    url('../media/main/land/mana2.png') center/cover no-repeat;
}

/* extra tmavý závoj (lepšia čitateľnosť textu) */
#landing .hero__overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15));
}

#landing .hero__container{
  width: 100%;
  max-width: var(--hero-maxw);
  margin-inline: auto;
}

#landing .hero__content{
  display: grid;
  gap: 1rem;
  padding-block: clamp(2rem, 6vh, 4rem);
}

#landing .hero__title{
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
#landing .hero__title .highlight{ color: var(--brand); }

#landing .hero__subtitle{
  font-size: clamp(1.05rem, 1.2vw + .7rem, 1.35rem);
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

#landing .hero__actions{
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* univerzálne tlačidlá */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: .85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(243,110,17,.35);
}
.btn--primary{ background: var(--brand); color: #fff; }
.btn--primary:hover{ background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover{ background: rgba(255,255,255,.1); transform: translateY(-1px); }

/* USP chips */
#landing .hero__usp{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-size: clamp(.95rem, .9vw + .6rem, 1.05rem);
  opacity: .95;
}
#landing .hero__usp li{
  list-style: none;
  padding: .35rem .6rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* fallback image (ak by background nebežal) */
#landing .hero__fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Reduced motion pre prístupnosť */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
}

/* =========================
   PROFESIONÁLNY FOOTER (NOVÝ)
   ========================= */
.site-footer {
  background: #0e0f12;
  color: #e9edf2;
  margin-top: 40px;
}
.site-footer .divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}
.footer-brand .footer-logo { width: 140px; height: auto; display: block; filter: brightness(1.05) contrast(1.05); }
.footer-claim { margin-top: 10px; color: #bfc7d1; font-size: 0.95rem; line-height: 1.5; }
.footer-title { font-size: 1.5rem; letter-spacing: .2px; margin: 6px 0 12px; color: #ffffff; }
.footer-links, .footer-contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.footer-links li, .footer-contacts li { margin: 8px 0; }
.footer-links a, .footer-contacts a { color: #e9edf2; text-decoration: none; }
.footer-links a:hover, .footer-contacts a:hover { color: #79c2ff; text-decoration: underline; }
.footer-icon { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; opacity: 0.9; }
.footer-hours { margin-top: 10px; color: #bfc7d1; font-size: 0.95rem; }
.footer-payments { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.payment-icon { height: 20px; width: auto; opacity: 0.95; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  color: #bfc7d1;
}
.footer-bottom a { color: #e9edf2; text-decoration: none; }
.footer-bottom a:hover { color: #79c2ff; text-decoration: underline; }
.footer-bottom p {font-size: 1rem;}
.footer-madeby { opacity: 0.9; }

/* =========================
   RESPONZÍVNE DOLADENIA
   ========================= */
@media (max-width: 768px) {
    
    .storage-container { grid-template-columns: 1fr; }

    nav ul.desktop-menu {
        display: none;
    }

    .mobile-menu { display: flex; }

    header { padding: 0; width: 100%; }

    .picture { height: 349px; gap: 1.5rem; }
    .photos { gap: 3rem; }

    .faq-container { grid-template-columns: repeat(1, auto); }

    #info p { font-size: 1rem; gap: 0.6rem; margin-bottom: 0.3rem; }
    #info h2 { font-size: 1.2rem; margin-bottom: 1rem; }

    .footer-icon { width: 1.5rem; }
    .info-logo { width: 10rem; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
    .logo { margin: -20px 0; }

    .modal { align-items: flex-start; }
    .modal-content { width: 90%; margin: 10px; padding: 15px; }

    .submit-btn, .cancel-btn { width: 100%; margin: 5px 0; }

    .form-group input { width: 100%; padding: 8px; font-size: 12px; }

    .about__list-item {
        display: grid; align-items: center;
        grid-template-columns: 4rem auto; gap: 2.4rem
    }
    .about__list-arrow { display: none; }
    .about__list-text { margin-top: 0 }
    .about__list { gap: 2rem; grid-template-columns: auto; }

    #info { gap: 0.25rem; }

    .form-group-mobile img {
        display: block; margin: 0 auto; max-width: 100%; height: auto;
    }

    .modal-head { margin: -20px -15px 20px -15px; font-size: 1.2rem; }
    .form-row.mobile { display: flex; flex-direction: column; gap: 10px; }

    /* ponechávam tvoje posunutie backgroundu pre malé displeje */
    #landing { background-position: -850px center; }
}

/* extra responsívne úpravy pre modaly */
@media (max-width: 600px) {
    .modal-content { width: 95%; margin: 10px; padding: 15px; }
    .submit-btn, .cancel-btn { width: 100%; margin: 5px 0; }
}
