/* ==============================
   Custom overrides for multi-page layout
   Bożena Glajc — Tester Oprogramowania
   ============================== */

/* --- Multi-page: header always compact, main always visible --- */

#header {
    padding-top: 2rem;
    padding-bottom: 0;
}

#header .content .inner {
    padding: 1.5rem 2rem;
}

#header h1 {
    font-size: 1.75rem;
    letter-spacing: 0.4rem;
}

#header h1 a {
    border-bottom: none;
    color: inherit;
}

#header .content p {
    font-size: 0.7rem;
    margin-bottom: 0;
}

#header > *:before {
    height: calc(2rem + 1px);
    top: calc(-2rem - 1px);
}

#header > * {
    margin-top: 2rem;
}

/* Nav active state */
#header nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.175);
}

/* Main always visible (no modal behavior) */
#main {
    display: block;
    opacity: 1;
}

#main article {
    display: block;
    opacity: 1;
    transform: none;
    width: 54rem;
    max-width: 100%;
    margin: 0 auto;
    background-color: rgba(27, 31, 34, 0.85);
    border-radius: 4px;
    padding: 3rem 3rem 2rem;
}

#main article .close {
    display: none;
}

/* Remove modal-specific body classes behavior */
body.is-article-visible #header {
    transform: none;
    filter: none;
    opacity: 1;
}

body.is-article-visible #footer {
    transform: none;
    filter: none;
    opacity: 1;
}

body.is-article-visible #bg:after {
    transform: scale(1.125);
    filter: none;
}

/* --- Logo --- */

#logo {
    width: 85%;
    height: auto;
}

#header .logo a {
    display: block;
    border-bottom: none;
}

/* --- Breadcrumbs --- */

.breadcrumbs {
    width: 54rem;
    max-width: 100%;
    margin: 1rem auto 0;
    text-align: left;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumbs ol li {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 0;
}

.breadcrumbs ol li + li:before {
    content: "/";
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs ol li a {
    color: rgba(255, 255, 255, 0.65);
    border-bottom: none;
}

.breadcrumbs ol li a:hover {
    color: #ffffff;
}

/* --- Service grid (homepage + uslugi index) --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.service-card a {
    border-bottom: none;
    color: inherit;
    display: block;
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    border-bottom: none;
}

.service-card h3 {
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
}

@media screen and (max-width: 980px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CTA section --- */

.cta-section {
    text-align: center;
    margin: 2.5rem 0 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.cta-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
}

.cta-section .button {
    margin: 0 0.5rem;
}

/* --- Process steps --- */

.process-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.process-steps li {
    counter-increment: step;
    padding: 0.75rem 0 0.75rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.process-steps li:last-child {
    border-bottom: none;
}

.process-steps li:before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Benefits list --- */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item .icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    border-bottom: none;
}

.benefit-item h4 {
    margin-bottom: 0.3rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media screen and (max-width: 736px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ section --- */

.faq-list dt {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #ffffff;
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dd {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
}

/* --- Related services --- */

.related-services {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.related-services a {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: rgba(255, 255, 255, 0.75);
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.related-services a:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* --- Footer nav --- */

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav ul li {
    padding: 0;
}

.footer-nav ul li a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: none;
}

.footer-nav ul li a:hover {
    color: #ffffff;
}

/* --- Contact page --- */

.contact-info {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.contact-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    border-bottom: none;
}

.contact-item h3 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Skills / experience list (o-mnie) --- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.skill-category h4 {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.skill-category ul {
    list-style: disc;
    padding-left: 1em;
    margin-bottom: 0;
}

.skill-category ul li {
    padding-left: 0.5em;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media screen and (max-width: 736px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Center h2.major headings --- */

h2.major {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Page subtitle (under h2.major) --- */

.page-subtitle {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* --- Section headings --- */

.section-heading {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.section-heading h2 {
    font-size: 1.2rem;
}

.section-heading p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 36rem;
    margin: 0 auto;
}

/* --- Responsive article padding --- */

@media screen and (max-width: 736px) {
    #main article {
        padding: 2rem 1.5rem 1.5rem;
    }

    #header .content .inner {
        padding: 1rem;
    }

    #header h1 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    #main article {
        padding: 1.5rem 1rem 1rem;
    }

    .cta-section .button {
        display: block;
        margin: 0.5rem 0;
    }
}

/* --- Links within articles --- */

#main article a {
    color: #ffffff;
}

#main article a:hover {
    border-bottom-color: #ffffff;
}

/* --- Internal link styling --- */

.text-link {
    border-bottom: dotted 1px rgba(255, 255, 255, 0.5);
}

.text-link:hover {
    border-bottom-color: #ffffff;
}
