/* Hero sekce s pozadím */
:root {
    --title-radius: 25px;
}

nav#mainNav {
    background: #2E3C63;
    background: linear-gradient(180deg, rgb(43 102 137) 0%, rgb(11 57 85 / 68%) 100%);
    color: white;
}

.hidden {
    display: none !important;
}

/* Přepsání Bootstrap primary button barev do tónů navigace */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2b6689;
    --bs-btn-border-color: #2b6689;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b3955;
    --bs-btn-hover-border-color: #0a334a;
    --bs-btn-focus-shadow-rgb: 43, 102, 137;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a334a;
    --bs-btn-active-border-color: #092d40;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2b6689;
    --bs-btn-disabled-border-color: #2b6689;
}

/* #home specific rules moved/unused */

#home h1 {
    color: #163c57;
}

#title {
    padding-top: 37px;
    padding-bottom: 12px;
    background-image: url('/images/title.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom-right-radius: var(--title-radius);
    border-bottom-left-radius: var(--title-radius);
    position: relative;
}

.location-info {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.poison-green {
    color: #4ff99c !important;
}

.hover-bg-opacity:hover .rounded-pill {
    background-color: rgba(25, 135, 84, 1) !important;
    transition: background-color 0.2s ease-in-out;
}

.bg-opacity-fade {
    background-color: rgba(25, 135, 84, 0.75) !important;
}

/* Phone button styling */
.btn-phone {
    background-color: #ebf8ff;
    border-color: #bee3f8;
    color: #2b6cb0;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background-color: #bee3f8;
    border-color: #90cdf4;
    color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(43, 108, 176, 0.2);
}

.btn-phone:focus,
.btn-phone:active {
    background-color: #90cdf4;
    border-color: #63b3ed;
    color: #2a4365;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Section divider styling */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #ccd6db99, #95b1c3, #ccd6db99);
    margin: 0 auto 2rem auto;
    opacity: 0.6;
}

/* Sewing machine icon styling */
.sewing-machine-icon {
    color: #007bff;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.2));
}

/* Služby: levý sloupec s pozadím opakovaným horizontálně */
.services-intro {
    background-image: url('/images/sluzby-bg.webp');
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}

/* Omezení velikosti obrázku šicího stroje */
.services-intro img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

/* Na mobilech menší */
@media (max-width: 767.98px) {
    .services-intro img {
        max-height: 120px;
    }
    
    /* Odstraň průhlednost obrázků služeb na dotykových zařízeních */
    .header-button-card-image::after {
        opacity: 0 !important;
    }
}

/* Mapa stejné výšky jako formulář */
#kontakt .ratio {
    height: 100%;
    min-height: 400px;
}

@media (min-width: 992px) {
    #kontakt .col-lg-6 {
        display: flex;
        flex-direction: column;
    }
    
    #kontakt .ratio {
        flex: 1;
    }
}

/* Výška se sladí díky .row.align-items-stretch */

@media (max-width: 768px) {
    .section-divider {
        max-width: 80%;
        margin: 1.5rem auto;
    }
    
    .sewing-machine-icon {
        width: 36px;
        height: 36px;
    }
}

#o-me {
    background-color: #d6c2a133;
    background-image: url(/images/bg-paper.jpg);
    border-radius: 15px;
    padding: 2rem 2rem 1rem 2rem;
    border: 1px solid #f3d5ba;
    margin: 0;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#o-me p {
    margin-bottom: 1.2rem;
}

#o-me p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.8rem;
}

.my-head {
    width: 200px;
    height: 200px;
    background-image: url('/images/ja.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 1px solid #c2cfd7;
    box-shadow: 0 4px 20px rgba(14, 53, 123, 0.15);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.my-head:hover {
    transform: scale(1.05);
}

/* Responsive úpravy pro sekci O mě */
@media (max-width: 991.98px) {
    #o-me {
        margin-top: 2rem;
    }

    .my-head {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 767.98px) {
    .my-head {
        width: 140px;
        height: 140px;
    }

    #o-me {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .my-head {
        width: 120px;
        height: 120px;
    }
}

/* Header buttons panel */
.header-buttons-panel {
    margin-top: 2rem;
    background-color: #ffffffc4;
    border-radius: 20px;
}

.header-button-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.header-button-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-button-card-image {
    height: 0;
    padding-bottom: 62.5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
}

.header-button-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header-button-card:hover .header-button-card-image::after {
    opacity: 0;
}

#svc-customs.header-button-card-image {
    background-image: url('/images/svc-customs.webp');
}

#svc-repairs.header-button-card-image {
    background-image: url('/images/svc-repairs.webp');
}

#svc-orders.header-button-card-image {
    background-image: url('/images/svc-orders.webp');
}

.header-button-card-btn {
    background: transparent;
    padding: 0;
}

.header-button-card .btn {
    border: none;
    background: transparent;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
    border-radius: 0;
}

.header-button-card .btn:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: none;
}

.header-button-card .btn.btn-outline-success:hover {
    background: rgba(40, 167, 69, 0.1);
}

.header-button-card .btn.do-repairs:hover {
    background: rgba(255, 0, 0, 0.05);
}

.header-button-card .btn.do-customs i {
    color: #007bff;
    transition: color 0.3s ease;
}

.header-button-card .btn.do-repairs i {
    color: #ff0000;
    transition: color 0.3s ease;
}

.header-button-card .btn.do-orders i {
    color: #28a745;
    transition: color 0.3s ease;
}

.header-button-card .btn.do-customs:hover i {
    color: #003c7c;
    transition: color 0.3s ease;
}

.header-button-card .btn.do-repairs:hover i {
    color: #6d0000;
    transition: color 0.3s ease;
}

.header-button-card .btn.do-orders:hover i {
    color: #015f17;
    transition: color 0.3s ease;
}

.header-button-card .btn small {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .header-buttons-panel {
        margin-top: 3rem;
    }

    .header-button-card .btn {
        min-height: 100px;
        padding: 1.5rem 1rem;
    }
}

/* Mobilní responsive úpravy pro hero sekci */
@media (max-width: 767.98px) {
    /* Změna pořadí pro mobily - zelené tlačítko až pod text */
    #title > .row {
        flex-direction: column-reverse;
    }
    
    #title .col-lg-7 {
        order: 2;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
    
    #title .col-lg-5 {
        order: 1;
    }
    
    /* Tlačítka Zakázka a Úpravy zůstávají vedle sebe */
    .header-buttons-panel .row:last-child {
        flex-direction: row !important;
    }
    
    /* Úprava sekce O mě pro mobily - fotka nad text */
    #ja .row {
        flex-direction: column;
    }
    
    #ja .col-auto {
        order: 1;
        align-self: center;
        margin-bottom: 1rem;
    }
    
    #ja .col {
        order: 2;
    }
}