/* ==========================================================================
   Advokáti Písek – styly
   Požadavky klientek: jednoduchý a přehledný web, písmo Arial,
   max. dvě velikosti písma (rozlišení barvou / tučností),
   barvy pouze z loga: zelená RGB 0/153/100, šedá RGB 109/110/113.
   ========================================================================== */

:root {
    --green: rgb(0 153 100);   /* #009964 */
    --grey: rgb(109 110 113);  /* #6D6E71 */
    --soft: #f2f2f0;           /* světle šedý podklad */
    --line: #dededb;
    --bg: #fff;

    --font: Arial, "Arial Unicode MS", "Helvetica Neue", Helvetica, sans-serif;
    --fs: 16px;                /* základní velikost */
    --fs-lg: 22px;             /* nadpisy a jména */

    --container: 1180px;
    --gutter: 16px;
}

@media (min-width: 760px) {
    :root { --fs: 17px; --fs-lg: 26px; --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--grey);
    font-family: var(--font);
    font-size: var(--fs);
    line-height: 1.55;
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-size: inherit; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 10;
    padding: 8px 14px;
    background: var(--green);
    color: #fff;
}
.skip-link:focus { top: 12px; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Nadpis se zelenou linkou nad sebou (podle loga) */
.accent-title {
    color: var(--grey);
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1.3;
}
.accent-title::before {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-bottom: 18px;
    background: var(--green);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* ---------- Hlavička ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}
.brand img { width: auto; height: 34px; }

.site-nav { display: flex; gap: 14px; }
.site-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    color: var(--grey);
}
.site-nav a:hover { color: var(--green); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Úvodní pruh ---------- */
.intro { background: var(--soft); padding: 22px 0; }
.intro-grid { display: grid; gap: 12px; }
.intro .accent-title::before { margin-bottom: 12px; }

/* ---------- Advokátky ---------- */
.team { padding-top: 6px; }
.team-grid { display: grid; gap: 6px; }

/* Mobil: fotka vlevo, jméno vpravo, zbytek pod tím */
.lawyer-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-areas:
        "photo name"
        "photo role"
        "areas areas"
        "contact contact"
        "link link";
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    padding: 16px var(--gutter) 18px;
    background: var(--soft);
}
.lawyer-info { display: contents; }
.lawyer-photo { grid-area: photo; align-self: start; background: #fff; }
.lawyer-photo picture { display: block; }
.lawyer-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lawyer-name { grid-area: name; align-self: end; font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; }
.lawyer-name a { color: var(--green); }
.lawyer-role { grid-area: role; }
.areas { grid-area: areas; margin-top: 14px; }
.contact-list { grid-area: contact; }
.profile-link { grid-area: link; }

/* Obory práva jako plynulý text – dlouhý obor se zalomí uprostřed řádku */
.areas li { display: inline; }
/* tečka je k oboru přilepená nezlomitelnou mezerou, takže nikdy nezačíná řádek */
.areas li:not(:last-child)::after {
    content: "\00a0\2022";
    padding-right: 2px;
    color: var(--green);
    font-weight: 700;
}

.contact-list { display: grid; gap: 4px; margin-top: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--green); }
.contact-list a { color: var(--grey); }
.contact-email { color: var(--green); }

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    margin-top: 12px;
    font-weight: 700;
}

/* ---------- O nás, Kontakt ---------- */
.split { padding: 40px 0; }
.split-soft { background: var(--soft); }
.split-grid { display: grid; gap: 20px; }
.split-body { display: grid; gap: 14px; align-content: start; }
.address { display: flex; gap: 12px; }
.address .icon { margin-top: 3px; color: var(--green); }
.address strong { color: var(--green); }

.map { position: relative; height: 320px; margin-top: 6px; background: #fff; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Profil ---------- */
.profile { padding-bottom: 48px; }
.back { padding: 18px 0; }
.back .icon { width: 1em; height: 1em; }

.profile-head {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-areas:
        "photo name"
        "photo role"
        "lead lead"
        "c1 c1"
        "c2 c2";
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.profile-intro { display: contents; }
.profile-photo {
    grid-area: photo;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--green);
}
.profile-name { grid-area: name; align-self: end; color: var(--green); font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; }
.profile-role { grid-area: role; font-weight: 700; }
.profile-lead { grid-area: lead; margin-top: 16px; }
.profile-head .contact-list-strong { grid-area: c1; margin-top: 16px; }
.profile-head .contact-list:not(.contact-list-strong) { grid-area: c2; margin-top: 10px; }
.contact-list-strong li,
.contact-list-strong a { color: var(--green); font-weight: 700; }
.profile-head .contact-list:not(.contact-list-strong) .icon { color: var(--grey); }

.profile-block { padding: 28px 0 8px; }
.profile-block + .profile-block { border-top: 1px solid var(--line); }
.block-title { margin-bottom: 8px; color: var(--green); font-size: var(--fs-lg); font-weight: 700; }

.services { display: grid; column-gap: 48px; }
.services > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.services h3 { color: var(--green); font-weight: 700; }
.services p { margin-top: 4px; }
.services .dot-list { margin-top: 6px; }
.services-intro { margin-top: 4px; }
.services-simple > li { padding: 12px 0; }

.cv-grid { display: grid; gap: 24px 48px; padding-top: 8px; }
.cv-item h3 { margin-bottom: 6px; color: var(--green); font-weight: 700; }

.dot-list { display: grid; gap: 4px; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.notfound { display: grid; gap: 16px; padding-block: 48px; }

/* ---------- Patička ---------- */
.site-footer { padding: 22px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--grey); }
.footer-nav a:hover { color: var(--green); }
.footer-legal { margin-top: 10px; }
.footer-legal a { color: var(--grey); text-decoration: underline; }

/* ==========================================================================
   Větší obrazovky
   ========================================================================== */
@media (min-width: 420px) {
    .site-nav { gap: 22px; }
    .brand img { height: 40px; }
}

@media (min-width: 760px) {
    .header-inner { min-height: 76px; }
    .brand img { height: 52px; }
    .site-nav { gap: 40px; }

    .intro { padding: 22px 0; }
    .intro-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
    .intro-text { padding: 6px 0 6px 48px; border-left: 1px solid var(--line); }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: var(--container);
        margin-inline: auto;
        padding-inline: var(--gutter);
    }
    /* Karty sdílí řádky mřížky (subgrid): jména, role, obory, telefony
       i e-maily všech tří advokátek začínají ve stejné výšce. */
    .team-grid { grid-template-rows: repeat(5, auto) 1fr; row-gap: 0; }
    .lawyer-card {
        display: grid;
        grid-row: span 6;
        grid-template-rows: subgrid;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        padding: 0;
    }
    .lawyer-photo, .lawyer-name, .lawyer-role, .areas, .contact-list, .profile-link { grid-area: auto; }
    .lawyer-info > * { padding-inline: 32px; }
    /* pevná výška – na širokém monitoru se fotky nezvětšují */
    .lawyer-photo { align-self: stretch; }
    .lawyer-photo img { aspect-ratio: auto; height: clamp(190px, 17vw, 230px); object-position: 50% 35%; }
    .lawyer-name { align-self: start; padding-top: 20px; }
    .lawyer-name::before { content: ""; display: block; width: 50px; height: 3px; margin-bottom: 16px; background: var(--green); }
    .profile-link { align-self: end; margin-top: 0; padding-top: 14px; padding-bottom: 24px; }

    .split { padding: 56px 0; }
    .split-grid { grid-template-columns: 1fr 2.2fr; gap: 48px; }
    .split-body { padding-left: 48px; border-left: 1px solid var(--line); }
    .map { height: 360px; }

    .profile-head {
        grid-template-columns: 240px 1fr;
        grid-template-areas: none;
        column-gap: 40px;
        align-items: start;
    }
    .profile-intro { display: block; }
    .profile-photo { grid-area: auto; }
    .profile-lead { margin-top: 12px; max-width: 40em; }
    .profile-head .contact-list-strong { margin-top: 18px; }

    .services { grid-template-columns: 1fr 1fr; }
    .cv-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media print {
    .site-header nav, .map, .back, .skip-link { display: none !important; }
}
