/* Page-specific styles for o-nas.html (moved from inline <style> blocks) */

/* About hero tweaks */
.about-hero {
    background: #fff url('images/about-bg.png') no-repeat center center;
    border-radius: 44px 0 44px 44px;
    padding: 130px 0;
    margin: 0;
}
.about-hero .container {
    max-width: 1300px; /* constrain width to match image */
    margin: 0 auto;    /* center the content */
    padding-left: 20px;
    padding-right: 20px;
}
.about-hero h1 {
    color: #0D4029;
    font-size: 70px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.about-hero p {
    font-family: 'Roboto', serif;
    font-weight: 300;
    font-size: 20px;
    color: #264335;
    margin: 0 0 40px;
}
.btn-outline {
    display: inline-block;
    padding: 10px 80px;
    border: 2px solid #C7993A;
    color: #C7993A;
    background: transparent;
    text-decoration: none;
    font-weight: 700;
    margin-left: 16px;
    border-radius: 4px 10px 4px 20px;
}
/* make buttons match spacing in the image */
.about-actions {
    margin-top: 28px;
}

/* global site container — keep content centered and max width consistent */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* History section */
.history-section {
    background: #0D4029 url('images/history-bg.png') no-repeat center center;
    background-size: fill;
    border-radius: 0 0 44px 44px;
    margin-bottom: 120px; /* added space below history to separate from next section */
    position: relative;
    z-index: 2;
}
.history-section .container {
    max-width: 1300px; /* narrower than full container */
    margin: 0 auto;    /* center the content */
    padding-left: 20px;
    padding-right: 20px;
}
.history-title {
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
}
.history-desc {
    max-width: 700px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Roboto', serif;
    margin-bottom: 38px;
    line-height: 1.6;
}
.history-timeline {
    margin-bottom: 38px;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.history-year {
    background: #C7993A;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    padding: 8px 22px;
    min-width: 70px;
    text-align: center;
    margin-right: 8px;
    font-family: 'Poppins', sans-serif;
}
.history-text {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.history-stats {
    width: 100%;
    background: transparent;
    margin-top: 20px;
}
.history-stat {
    font-size: 54px;
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 0;
}
.history-stats p {
    color: #fff;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Values section (Naše hodnoty) */
/* make values card span left-to-right while keeping inner padding */
.values-section {
    background: #fff;
    padding: 40px 20px 80px;
    width: 100%;
    border-radius: 44px 0 44px 44px;
}
/* make the values card fill the site's central container so widths match other sections */
.values-card {
    border-radius: 18px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}
.values-title {
    text-align: center;
    color: #0D4029;
    font-size: 54px;
    margin: 6px 0 22px;
    font-family: 'Poppins', sans-serif;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.value-item {
    padding: 22px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.value-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
}
.value-number {
    color: #C7993A;
    font-weight: 700;
    font-size: 54px;
    display: inline-block;
    min-width: 54px;
    line-height: 1;
    vertical-align: baseline;
}
.value-title {
    color: #0D4029;
    font-weight: 700;
    margin: 0;
    font-size: 35px;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
}
.value-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 0 0;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}
/* vertical separators between columns implemented as pseudo-lines so column content remains centered */
.values-card::before, .values-card::after {
    content: '';
    position: absolute;
    width: 1px;
    background: #E9D9BA;
    top: 120px; /* start below the title area */
    bottom: 24px;
    transform: translateX(-0.5px);
}
.values-card::before {
    left: calc(100% / 3);
}

.values-card::after {
    left: calc(100% * 2 / 3);
}
.values-grid .value-item:nth-child(n+4) {
    border-top: 1px solid #E9D9BA;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .history-section .container { flex-direction: column; gap:32px; }
    /* reduce stat gaps on smaller screens */
    .history-stats .container { gap: 40px !important; }
    .history-image-card { max-width: 100%; min-height: 180px; }
    .history-title { font-size: 36px; }
    .history-stat { font-size: 36px; }
    /* responsive values grid */
    .values-card { padding: 24px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .values-card::before, .values-card::after { display: none; }
    .values-grid .value-item:nth-child(n+4) { border-top: 1px solid #E9D9BA; }
}
@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; }
    .values-grid .value-item { border-left: none; border-top: none; padding-left: 0; }
    .values-card::before, .values-card::after { display: none; }
}

@media (max-width: 900px) {
    .about-hero h1 {
        font-size: 36px;
    }

    .about-hero h1 .big {
        font-size: 42px;
    }
}

/* Contact section specific tweaks */
.contact-section .contact-container .contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0px;
}
.contact-section .contact-container .contact-actions a {
    border-radius: 10px !important;
}

/* Ensure the outlined button looks correct when stacked */
.contact-section .contact-container .btn-outline {
    padding: 10px 36px;
    margin-left: 0;
}
