/* =====================================================
   AnniePET_ — osobní web
   Barevná paleta: lesní zelená + mlhavá šedá
   ===================================================== */

:root {
    --forest-deep:  #1C3528;   /* tmavá lesní — header, footer */
    --forest-mid:   #2D6A4F;   /* střední zelená — akcenty */
    --forest-light: #52B788;   /* světlá zelená — hover, tlačítka */
    --forest-pale:  #B7E4C7;   /* velmi světlá — jemné pozadí */
    --mist-dark:    #4A5A52;   /* tmavá mlha — sekundární text */
    --mist-mid:     #8FAF9F;   /* střední mlha — bordery, oddělovače */
    --mist-light:   #D8E8E0;   /* světlá mlha — jemné pozadí sekcí */
    --fog:          #F0F5F2;   /* skoro bílá mlhavá — bg stránek */
    --bark:         #2C2C2A;   /* tmavý text */
    --accent-warm:  #C8A96E;   /* teplý zlatohnědý akcent (kůra stromu) */
}

/* ---- Fonty ---- */
@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Poppins;
    src: url(fonty/Poppins-ExtraBold.ttf);
    font-weight: bold;
}

/* ---- Základní reset ---- */
html {
    background: var(--forest-deep);
}

body {
    font: 14px "Poppins";
    color: var(--bark);
    background: var(--fog);
    box-sizing: border-box;
    margin: 0;
    padding: 100px 0 0 0;
    min-width: 960px;
}

/* =====================================================
   HEADER & NAVIGACE
   ===================================================== */

body > header {
    height: 100px;
    width: 100%;
    background: var(--forest-deep);
    color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0;
    border-bottom: 3px solid var(--forest-mid);
}

#logo {
    height: 40px;
    margin: auto 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('obrazky/logo.png') no-repeat;
    background-size: 40px 40px;
}

#logo > * {
    margin: 0 0 0 50px;
}

#logo h1 {
    font-weight: normal;
    font-size: 1.5em;
    line-height: 1.2em;
    color: white;
}

#logo h1 span {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--forest-light);
}

#logo small {
    text-transform: uppercase;
    font-size: 0.85em;
    color: var(--mist-mid);
    letter-spacing: 0.05em;
}

nav ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

nav ul li {
    padding: 0 25px;
    margin: 0 5px;
    font-size: 1em;
    line-height: 4.3em;
}

nav ul a {
    color: white;
    padding: 8px 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

nav ul a:hover,
.aktivni > a {
    color: var(--forest-light);
    border-bottom: 2px solid var(--forest-light);
}

/* Kontakt tlačítko v navigaci */
.kontakt-tlacitko {
    background: var(--forest-mid);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    border: none !important;
    transition: background 0.2s !important;
}

.kontakt-tlacitko:hover {
    background: var(--forest-light) !important;
    filter: none !important;
    border: none !important;
}

/* =====================================================
   ARTICLE — hlavní obsah
   ===================================================== */

article {
    margin: 0 auto;
    max-width: 960px;
    padding: 50px 50px 40px 50px;
}

article header {
    height: 80px;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    color: var(--forest-deep);
    padding: 10px 0;
}

article h1 {
    margin: 0;
    font-size: 2.3em;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid var(--forest-light);
}

article h2 {
    font-size: 1.6em;
}

article section p {
    margin-bottom: 1.5em;
    line-height: 1.8em;
}

article section a {
    color: var(--forest-mid);
}

article section a:hover {
    color: var(--forest-light);
}

/* =====================================================
   ÚVODNÍ STRÁNKA — hero a avatar
   ===================================================== */

/* Wrapper: zelený rámeček vlevo, fotka vpravo */
.nabizim-row {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 20px 0 30px 0;
}

.nabizim-row .nabizim-sekce {
    flex: 1;
    margin: 0;  /* margin řídí .nabizim-row, ne samotná sekce */
}

.avatar {
    width: 240px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cistic {
    clear: both;
}

/* =====================================================
   SEKCE "NABÍZÍM" — služby
   ===================================================== */

.nabizim-sekce {
    background: var(--mist-light);
    border-left: 4px solid var(--forest-light);
    padding: 30px 35px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.nabizim-sekce h2 {
    color: var(--forest-deep);
    margin-top: 0;
    padding-top: 0;
}

.nabizim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.nabizim-karta {
    background: white;
    border: 1px solid var(--mist-mid);
    border-top: 3px solid var(--forest-mid);
    padding: 20px;
    border-radius: 4px;
}

.nabizim-karta h3 {
    color: var(--forest-mid);
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nabizim-karta p {
    margin: 0 !important;
    color: var(--mist-dark);
    font-size: 0.95em;
    line-height: 1.6em !important;
}

/* =====================================================
   TLAČÍTKA
   ===================================================== */

.reference-tlacitko {
    background: var(--forest-mid);
    color: white;
    font-size: 0.9em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.reference-tlacitko:hover {
    background: var(--forest-light);
    color: white !important;
    filter: none;
    border: none !important;
}

.tlacitko-odstavec {
    margin-top: 2em;
}

/* =====================================================
   DOVEDNOSTI — tabulka karet
   ===================================================== */

#dovednosti {
    width: 100%;
    border-collapse: collapse;
}

#dovednosti td {
    width: 33%;
    padding: 20px;
    vertical-align: top;
    border: 1px solid var(--mist-light);
    background: white;
}

#dovednosti td:hover {
    background: var(--fog);
}

#dovednosti img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Certifikát sekce */
.certifikat-box {
    background: var(--forest-deep);
    color: var(--mist-light);
    padding: 20px 25px;
    border-radius: 6px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.certifikat-box .cert-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.certifikat-box p {
    margin: 0 !important;
    line-height: 1.6em !important;
}

.certifikat-box strong {
    color: var(--forest-pale);
}

/* =====================================================
   KONTAKT
   ===================================================== */

.kontakt-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 10px;
}

.kontakt-info-panel {
    flex: 1;
    background: var(--forest-deep);
    color: var(--mist-light);
    padding: 35px;
    border-radius: 8px;
}

.kontakt-info-panel h2 {
    color: var(--forest-pale);
    padding-top: 0;
    margin-top: 0;
    font-size: 1.3em;
}

.kontakt-info-panel p {
    color: var(--mist-mid);
    line-height: 1.7em;
    margin-bottom: 25px;
}

.kontakt-radek {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kontakt-radek:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kontakt-ikona {
    font-size: 1.4em;
    flex-shrink: 0;
    margin-top: 2px;
}

.kontakt-radek strong {
    display: block;
    color: white;
    margin-bottom: 3px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kontakt-radek a {
    color: var(--forest-light);
    text-decoration: none;
}

.kontakt-radek a:hover {
    color: var(--forest-pale);
}

.kontakt-formular-panel {
    flex: 1.2;
    background: white;
    border: 1px solid var(--mist-light);
    border-top: 4px solid var(--forest-mid);
    padding: 35px;
    border-radius: 0 8px 8px 8px;
}

.kontakt-formular-panel h2 {
    color: var(--forest-deep);
    padding-top: 0;
    margin-top: 0;
    font-size: 1.3em;
}

.kontakt-formular-panel iframe {
    display: block;
    margin-top: 10px;
}

/* Vlastní formulář */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.form-skupina {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-skupina label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mist-dark);
    font-weight: bold;
}

.form-skupina input,
.form-skupina textarea {
    font-family: "Poppins", sans-serif;
    font-size: 0.95em;
    color: var(--bark);
    background: var(--fog);
    border: 1px solid var(--mist-mid);
    border-radius: 4px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}

.form-skupina input:focus,
.form-skupina textarea:focus {
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
    background: white;
}

.form-skupina input::placeholder,
.form-skupina textarea::placeholder {
    color: var(--mist-mid);
}

.form-tlacitko {
    align-self: flex-start;
    background: var(--forest-mid);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-family: "Poppins", sans-serif;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}

.form-tlacitko:hover {
    background: var(--forest-light);
}

/* =====================================================
   REFERENCE — galerie
   ===================================================== */

#reference {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

#reference img {
    border: 1px solid var(--mist-mid);
    padding: 6px;
    box-shadow: 3px 3px 8px rgba(28, 53, 40, 0.15);
    transition: box-shadow 0.2s, transform 0.2s;
    background: white;
}

#reference img:hover {
    box-shadow: 5px 5px 15px rgba(28, 53, 40, 0.25);
    transform: translateY(-2px);
}

#reference a {
    text-decoration: none;
    display: inline-block;
}

/* Prázdný stav — placeholder pro budoucí reference */
.reference-placeholder {
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    border: 2px dashed var(--mist-mid);
    border-radius: 8px;
    color: var(--mist-dark);
    font-size: 0.95em;
    line-height: 1.8em;
}

.reference-placeholder .placeholder-ikona {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    box-sizing: border-box;
    text-align: center;
    height: 100px;
    color: var(--mist-mid);
    background: var(--forest-deep);
    padding: 50px 0 0 0;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
}

footer a {
    color: var(--forest-light);
    text-decoration: none;
}

footer a:hover {
    color: var(--forest-pale);
}
