/* =========================================================
   A M E G A  —  Global Styles (Coolors palette)
   Palette: https://coolors.co/cb997e-eddcd2-fff1e6-f0efeb-ddbea9-a5a58d-b7b7a4
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
    --clay: #CB997E; /* primary (buttons, highlights) */
    --shell: #EDDCD2; /* soft panel / cards */
    --linen: #F0EFEB; /* page bg / light section */
    --alabaster: #FFF1E6; /* alt section bg */
    --tan: #DDBEA9; /* hover/accent */
    --sage: #A5A58D; /* subtle dark (header mobile, footer) */
    --moss: #B7B7A4; /* borders / subtle text */
    --text: #2f2f2f; /* main text */
    --muted: #6b6b6b; /* secondary text */
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .20);
    --radius: 14px;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: "Arial", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--linen);
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.spacer {
    height: 70px;
}

h1, h2, h3, h4 {
    color: var(--sage);
    font-weight: 700;
}

p {
    color: var(--text);
}

a {
    color: var(--clay);
    text-decoration: none;
}

a:hover {
    color: var(--tan);
    text-decoration: underline;
}

/* ---------- Header & Nav (hamburger CSS-only) ---------- */
header {
    position: fixed;
    inset: 0 0 auto 0;
    background: var(--clay);
    color: var(--white);
    padding: 14px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .2px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    font-weight: 700;
}

nav a:hover {
    color: var(--tan);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--white);
    transition: transform .25s ease, opacity .25s ease;
}

#menu-checkbox {
    display: none;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 58px;
        left: 0;
        width: 100%;
        background: var(--sage);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid rgba(0, 0, 0, .06);
        transition: max-height .3s ease;
    }

    #menu-checkbox:checked ~ nav {
        max-height: 320px;
        padding: 14px 0;
    }

    .menu-toggle {
        display: flex;
    }

    #menu-checkbox:checked + label.menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-checkbox:checked + label.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #menu-checkbox:checked + label.menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ---------- Sections (compact height under content) ---------- */
section {
    padding: 56px 0 48px;
    background: var(--linen);
}

section:nth-of-type(even) {
    background: var(--alabaster);
}

h2 {
    margin: 0 0 .5rem 0;
    font-size: 2rem;
}

.lead {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* =========================================================
   S L U Ž B Y
   ========================================================= */
.services {
    background: var(--linen);
}

.services .lead {
    margin-bottom: 2.5rem;
}

.cards {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(0, 0, 0, .03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.card .icon {
    color: var(--clay);
    margin-bottom: .8rem;
}

.card h3 {
    color: #222;
    font-size: 1.2rem;
    margin-bottom: .4rem;
}

.card p {
    color: #555;
    font-size: .96rem;
}

/* =========================================================
   K O N T A K T
   ========================================================= */
.contact {
    background: var(--alabaster);
}

.contact .lead {
    margin-bottom: 2rem;
}

.contact-box {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .04);
}

.contact-box .info {
    padding: 2rem;
}

.contact-box h3 {
    color: var(--clay);
    margin-bottom: .8rem;
    font-size: 1.25rem;
}

.contact-box p {
    color: #444;
    margin: .6rem 0;
}

.contact-box a {
    color: var(--clay);
    font-weight: 600;
}

.contact-box a:hover {
    color: var(--tan);
    text-decoration: underline;
}

.contact-box .map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-box {
        grid-template-columns:1fr;
    }

    .contact-box .info {
        text-align: center;
    }
}

/* =========================================================
   D O K U M E N T Y  (akordeón + modál bez JS)
   ========================================================= */
.docs {
    background: var(--linen);
}

.docs .lead {
    margin-bottom: 2rem;
}

.docs details {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 1100px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .04);
}

.docs summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 800;
    color: #2a2a2a;
    background: var(--shell);
    border-bottom: 1px solid var(--tan);
    position: relative;
    list-style: none;
}

.docs summary::marker {
    display: none;
}

.docs summary::-webkit-details-marker {
    display: none;
}

.docs summary::after {
    content: "▾";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .65;
    transition: transform .2s ease;
}

.docs details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.doc-list {
    padding: .75rem 1.25rem 1.25rem;
}

.doc-item {
    display: grid;
    grid-template-columns:32px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #eee;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.meta {
    min-width: 0;
}

.doc-title {
    color: var(--clay);
    font-weight: 700;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.doc-title:hover {
    color: var(--tan);
    text-decoration: underline;
}

.doc-note {
    display: block;
    color: #667085;
    font-size: .86rem;
    margin-top: 2px;
}

/* Buttons */
.actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    appearance: none;
    display: inline-block;
    border: none;
    background: var(--clay);
    color: var(--white);
    padding: .55rem .9rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(203, 153, 126, .25);
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
    background: var(--tan);
    transform: translateY(-1px);
}

.btn:active {
    transform: none;
}

.btn.ghost {
    background: transparent;
    color: var(--clay);
    border: 1px solid #DDBEA9;
    box-shadow: none;
}

.btn.ghost:hover {
    background: var(--shell);
}


/* Modals (PDF preview via :target) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background .2s ease;
    z-index: 2000;
}

.modal:target {
    background: rgba(0, 0, 0, .55);
    pointer-events: auto;
}

.modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1000px, 92vw);
    height: min(80vh, 800px);
    transform: translate(-50%, -50%) scale(.98);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: var(--shadow-lg);
}

.modal:target .modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .95);
    color: #333;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    z-index: 1;
}

.modal__body {
    width: 100%;
    height: 100%;
    background: #111;
}

.modal__body object, .modal__body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive tweaks for docs list */
@media (max-width: 768px) {
    .doc-item {
        grid-template-columns:24px 1fr;
        grid-template-areas:
      "icon title"
      "icon note"
      "icon actions";
    }

    .doc-icon {
        grid-area: icon;
    }

    .meta {
        grid-area: title;
    }

    .actions {
        grid-area: actions;
        justify-content: flex-start;
        margin-top: .4rem;
    }
}

/* =========================================================
   F O O T E R
   ========================================================= */
.site-footer {
    background: var(--sage);
    color: var(--alabaster);
    margin-top: 40px;
}

.site-footer a {
    color: #f7efe8;
}

.site-footer a:hover {
    color: var(--clay);
    text-decoration: underline;
}

.footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns:2fr 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: .6rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: #f1efe9;
}

.contact-list, .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li, .footer-col li {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .45rem 0;
    color: #efece6;
}

.contact-list svg {
    flex: 0 0 18px;
    opacity: .9;
}

/* bottom bar (stacked text) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 18px 20px 26px;
    position: relative;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--sage);
    font-size: .95rem;
    line-height: 1.4;
}

/* back to top */
.to-top {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    background: var(--tan);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    transition: transform .15s ease, background .2s ease;
}

.to-top:hover {
    background: var(--clay);
    transform: translateY(-2px);
}

/* ---------- Responsive footer grid ---------- */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns:1fr;
    }

    .footer-bottom {
        justify-content: flex-start;
        padding-right: 60px;
    }
}

/* =========================================================
   Small utilities
   ========================================================= */
.hr-soft {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
    opacity: .35;
    margin: 16px 0;
}

/* Improve focus styles for accessibility */
a, button, .btn, summary {
    outline: none;
}

a:focus-visible, .btn:focus-visible, summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(221, 190, 169, .6);
    border-radius: 10px;
    text-decoration: none;
}

