/* Ecommerce input section styling */
#ecommerce-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(72,33,114,0.08);
    padding: 1.5em 2em;
    margin: 2em 0 2.5em 0;
    gap: 1em;
    flex-wrap: wrap;
}
#ecommerce-form label {
    font-weight: 600;
    color: var(--company-purple);
    margin-right: 0.5em;
    font-size: 1.1em;
}
#ecommerce-domain {
    border: 1.5px solid var(--company-purple);
    border-radius: 6px;
    padding: 0.5em 1em;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    color: #252525;
}
#ecommerce-domain:focus {
    border-color: var(--company-orange);
}
#ecommerce-form button {
    background: var(--company-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.5em;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 0.5em;
}
#ecommerce-form button:hover {
    background: var(--company-purple);
}
#ecommerce-error {
    color: var(--company-red);
    font-size: 0.98em;
    margin-left: 1em;
}
#ecommerce-success {
    color: var(--company-green);
    font-size: 0.98em;
    margin-left: 1em;
}
:root {
    /* Grid system variables */
    --grid-columns: 12;
    --grid-gap: 20px;
    --container-max-width: 1200px;
    --company-purple: #482172;
    --company-yellow: #f7b801;
    --company-orange: #d36701;
    --company-red: #d01d14;
    --company-black: #252525;
    --company-white: #fafafa;
    --company-green: #0CE6B3;
}

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

body, html {
    font-family: "Poppins", sans-serif;
    height: 100%;
    line-height: 1.6;
    background-color: #fafafa;
    color: #252525;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1ex;
}

ul {
    list-style-type: square;
}

li {
    padding-left: 0.5rem;
    margin-left: 1.5rem;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto var(--grid-gap);
    padding: 0 15px;
}

.grid {
    display: grid;
    align-items: center;
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

.grid__header {
    font-weight: 700;
    font-size: 3rem;
}

/* Column span utilities */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Row span utilities */
.row-1 { grid-row: span 1; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }

.two-columns {
    column-count: 2;
}
.three-columns {
    column-count: 3;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    /* grid-template-rows: repeat(n, 1fr); */
    /* grid-auto-rows: 30vh; */
    grid-auto-flow: dense;
    gap: 1rem;
    height: calc(100vh - var(--grid-gap)*2);
    width: 90%;
    margin: 0 auto var(--grid-gap);
}
.bento-section {
    display: flex;
    align-items: center;
    justify-content: center; /* Opcjonalnie wyrównuje również w poziomie */
    text-align: center; /* Jeśli chcesz centrować tekst */
    background-color: #eaeaea;
    padding: 0.5vw;
    overflow: hidden;
}
.bento-section.no-padding {
    padding: 0;
}
.bento-section.black-section {
    background-color: var(--company-black);
    color: var(--company-white);
}
.bento-section.purple-section {
    background-color: var(--company-purple);
    color: var(--company-white);
}
.bento-section.orange-section {
    background-color: var(--company-orange);
    color: var(--company-black);
}
.bento-section.yellow-section {
    background-color: var(--company-yellow);
    color:var(--company-black);
}
.bento-section.red-section {
    background-color: var(--company-red);
    color: var(--company-white);
}
.bento-section.white-section {
    background-color: var(--company-white);
}
.bento-section > .bento-section-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1080px) {
    .grid {
        grid-template-columns: repeat(8, 1fr); /* 8 columns for medium screens */
    }
    .two-columns,
    .three-columns {
        column-count: 2;
    }
}

/* Small screens (below 760px) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for small screens */
    }
    .two-columns,
    .three-columns {
        column-count: 1;
    }
}

/* Responsive adjustments */
@media (max-height: 700px) {
    .bento-container {
        height: auto;
    }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .col-1, .col-2, .col-3, .col-4, 
    .col-5, .col-6, .col-7, .col-8, 
    .col-9, .col-10, .col-11, .col-12 {
        grid-column: span 12;
    }
    .row-1, .row-2, .row-3 {
        grid-row: auto; 
    }
    .bento-container {
        height: auto;
    }
    .bento-section {
        padding: 2vw 1.5vw;
    }
}

/* Main content styling */
.main-content {
    min-height: calc(100vh - 250px);
    align-items: center;
    justify-content: center;
}

.company-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.company-image img {
    max-width: 100%;
    object-fit: contain;
}

/* Footer styling */
footer {
    background-color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.contact-info {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    margin: 0 10px;
    color: var(--company-purple);
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}
