/* Gott interiér – směr „Šalvěj a dub“. Barvy podle systémového režimu. */
:root {
  color-scheme: light;
  --bg:#F6F3EC; --surface:#FCFAF5; --sage:#A9B8A2; --sage-soft:#D9E0D3; --sage-deep:#55704F; --sage-deeper:#46603F;
  --oak:#C8A97E; --oak-deep:#7F6039; --oak-deeper:#6A4F2E; --ink:#1E2A22; --muted:#5A6659; --muted-on-sage:#3A4739;
  --line:#D6D1C5; --frame-inset:rgba(246,243,236,.72); --btn-text:#F6F3EC;
  --shadow:0 1px 2px rgba(30,42,34,.06),0 12px 32px -18px rgba(30,42,34,.28);
  --shadow-hover:0 2px 4px rgba(30,42,34,.06),0 24px 44px -22px rgba(30,42,34,.36);
  --ease:cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:#171E19; --surface:#1F2822; --sage:#33443A; --sage-soft:#263129; --sage-deep:#8FA889; --sage-deeper:#A3BB9D;
    --oak:#C8A97E; --oak-deep:#C8A97E; --oak-deeper:#D6BB92; --ink:#EDE9DF; --muted:#A8B3A6; --muted-on-sage:#B9C3B6;
    --line:#34403A; --frame-inset:rgba(237,233,223,.38); --btn-text:#171E19;
    --shadow:0 1px 2px rgba(0,0,0,.3),0 14px 32px -16px rgba(0,0,0,.6);
    --shadow-hover:0 2px 4px rgba(0,0,0,.3),0 26px 46px -20px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#171E19; --surface:#1F2822; --sage:#33443A; --sage-soft:#263129; --sage-deep:#8FA889; --sage-deeper:#A3BB9D;
  --oak:#C8A97E; --oak-deep:#C8A97E; --oak-deeper:#D6BB92; --ink:#EDE9DF; --muted:#A8B3A6; --muted-on-sage:#B9C3B6;
  --line:#34403A; --frame-inset:rgba(237,233,223,.38); --btn-text:#171E19;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 14px 32px -16px rgba(0,0,0,.6);
  --shadow-hover:0 2px 4px rgba(0,0,0,.3),0 26px 46px -20px rgba(0,0,0,.7);
}

/* Palety z theme.json napojené na režim, aby editorové barvy hrály i ve tmě */
:root {
  --wp--preset--color--base: var(--bg);
  --wp--preset--color--surface: var(--surface);
  --wp--preset--color--sage: var(--sage);
  --wp--preset--color--sage-soft: var(--sage-soft);
  --wp--preset--color--sage-deep: var(--sage-deep);
  --wp--preset--color--oak: var(--oak);
  --wp--preset--color--oak-deep: var(--oak-deep);
  --wp--preset--color--ink: var(--ink);
  --wp--preset--color--muted: var(--muted);
  --wp--preset--color--line: var(--line);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
a { text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--oak); transition: color .3s var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
p { text-wrap: pretty; }
main > .wp-block-group { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.gi-eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 .6rem; }
.gi-muted { color: var(--muted); }

/* ---------- hlavička ---------- */
.gi-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .gi-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .gi-top { top: 46px; } }
.gi-top__row { padding-top: .9rem; padding-bottom: .9rem; align-items: center; }
.gi-wordmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.gi-wordmark:hover { color: var(--ink); }
.gi-wordmark svg { width: 44px; height: 44px; flex: none; --lg: var(--oak); --lg2: var(--oak-deeper); }
.gi-wordmark__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; line-height: 1; letter-spacing: .02em; }
.gi-wordmark__name b { font-weight: 600; letter-spacing: .08em; }
.gi-wordmark__name i { font-style: normal; font-weight: 400; }
.gi-wordmark__name small { display: block; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
@media (max-width: 560px) { .gi-wordmark__name small { display: none; } }
.gi-nav { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.gi-nav .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; }
.gi-nav .wp-block-navigation-item__content:hover { color: var(--sage-deep); }
.gi-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--bg); color: var(--ink); }
.gi-nav .wp-block-navigation__responsive-container-open, .gi-nav .wp-block-navigation__responsive-container-close { color: var(--ink); }

/* ---------- úvod ---------- */
.gi-hero__cols { gap: clamp(2rem, 5vw, 4.5rem); }
.gi-hero__title { margin: .6rem 0 1.4rem !important; }
.gi-hero__title em { font-style: normal; color: var(--sage-deep); }
.gi-lead { font-size: 1.15rem; max-width: 32em; margin-bottom: 1.6rem !important; }
.gi-capacity { display: inline-flex; align-items: center; gap: .6rem; background: var(--sage-soft); color: var(--ink); border-radius: 4px; padding: .45rem .9rem .45rem .7rem; font-size: .9rem; font-weight: 500; margin: 0 0 1.75rem !important; }
.gi-capacity::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); animation: gi-breathe 3.2s ease-out infinite; }
@keyframes gi-breathe { 0% { box-shadow: 0 0 0 0 rgba(85,112,79,.45); } 70% { box-shadow: 0 0 0 9px rgba(85,112,79,0); } 100% { box-shadow: 0 0 0 0 rgba(85,112,79,0); } }
.gi-sig { margin-top: 2rem !important; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); max-width: 32em; }
.gi-sig strong { color: var(--ink); font-weight: 600; }
@media (max-width: 781px) { .gi-hero__cols > .wp-block-column:last-child { order: -1; max-width: 420px; } }

/* ---------- tlačítka ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.wp-block-button__link { background: var(--sage-deep); color: var(--btn-text); }
.wp-block-button__link:hover { background: var(--sage-deeper); color: var(--btn-text); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: calc(.8rem - 1px) calc(1.35rem - 1px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--sage-deep); color: var(--sage-deep); background: var(--sage-soft); }
.wp-element-button:active { transform: translateY(1px); }

/* ---------- rámy fotografií ---------- */
.gi-frame { position: relative; border: 1px solid var(--line); padding: 8px; background: var(--surface); box-shadow: var(--shadow); margin: 0; transition: box-shadow .5s var(--ease); }
.gi-frame::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--frame-inset); pointer-events: none; transition: inset .6s var(--ease); }
.gi-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); transition: transform 1.1s var(--ease); }
.gi-frame:hover img { transform: scale(1.04); }
.gi-frame:hover::after { inset: 24px; }
.gi-frame:hover { box-shadow: var(--shadow-hover); }
.gi-frame { overflow: hidden; }
.gi-frame figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: .55rem .85rem; background: linear-gradient(to top, rgba(30,42,34,.72), rgba(30,42,34,0)); color: #F6F3EC; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-align: left; pointer-events: none; }
.gi-frame--portrait { aspect-ratio: 4 / 5; }
.gi-frame--portrait img { object-position: center 20%; }
.gi-work .gi-frame { aspect-ratio: 4 / 5; cursor: zoom-in; }
.gi-frame img.wp-post-image { aspect-ratio: 16 / 10; }

/* ---------- realizace ---------- */
.gi-section-head { margin-bottom: 2.2rem; }
.gi-section-head h2 { margin: 0; }
.gi-section-head__note { max-width: 36em; margin: 0 !important; color: var(--muted); }
.gi-works__grid { gap: 1.5rem; }
.gi-work__meta { padding: .9rem .2rem 0; gap: 1rem; }
.gi-work__title { font-size: 1.2rem !important; font-weight: 600 !important; margin: 0 !important; }
.gi-work__tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin: .35rem 0 0 !important; }
.gi-work__place { font-size: .92rem; color: var(--muted); margin: .1rem .2rem 0 !important; }
.gi-work__more { display: none !important; }
.editor-styles-wrapper .gi-work__more { display: flex !important; gap: .5rem; margin-top: .6rem; opacity: .7; }
.editor-styles-wrapper .gi-work__more img { width: 72px; height: 72px; object-fit: cover; }

/* ---------- šalvějový panel ---------- */
.gi-how { background: var(--sage); color: var(--ink); }
.gi-how .gi-eyebrow, .gi-how__note, .gi-how__process { color: var(--muted-on-sage); }
.gi-how__head { margin-bottom: 2.2rem; }
.gi-how__head h2 { margin: 0; }
.gi-how__note { max-width: 34em; margin: 0 !important; }
.gi-pillars { gap: 1.25rem; counter-reset: gi-pillar; }
.gi-pillar { background: var(--bg); border-radius: 6px; padding: 1.6rem 1.5rem 1.5rem; counter-increment: gi-pillar; }
.gi-pillar::before { content: counter(gi-pillar, decimal-leading-zero); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.7rem; color: var(--oak-deep); line-height: 1; display: block; margin-bottom: 1rem; }
.gi-pillar h3 { font-size: 1.35rem !important; margin: 0 0 .5rem !important; }
.gi-pillar p { margin: 0 !important; color: var(--muted); font-size: .98rem; }
.gi-how__process { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(30,42,34,.18); font-size: .92rem; }
.gi-how__process p { margin: 0 !important; }
.gi-how__process strong { color: var(--ink); font-weight: 600; }
:root[data-theme="dark"] .gi-how__process { border-color: rgba(237,233,223,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-how__process { border-color: rgba(237,233,223,.14); } }

/* ---------- architekti ---------- */
.gi-arch__cols, .gi-contact__cols { gap: clamp(2rem, 5vw, 4rem); }
.gi-arch h2 { margin: 0; }
.gi-dashlist { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.gi-dashlist li { padding: .7rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.gi-dashlist li::before { content: "—"; color: var(--oak); margin-right: .7rem; }

/* ---------- poptávka ---------- */
.gi-contact { border-top: 1px solid var(--line); }
.gi-contact__lead { margin-top: 1rem !important; }
.gi-address { margin-top: 1.5rem !important; line-height: 1.8; color: var(--muted); }
.gi-address strong { color: var(--ink); font-weight: 600; }
.gi-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.2rem; }
.gi-form__full { grid-column: 1 / -1; }
.gi-form label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.gi-form input, .gi-form select, .gi-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: .7rem .85rem; }
.gi-form textarea { min-height: 120px; resize: vertical; }
.gi-form__hint { font-size: .85rem; color: var(--muted); margin: 0 !important; }
.gi-form .wp-element-button { border: 0; cursor: pointer; }
@media (max-width: 560px) { .gi-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- patička ---------- */
.gi-foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; font-size: .88rem; color: var(--muted); }
.gi-foot__text { margin: 0 !important; }
.gi-foot a { color: var(--muted); }

/* ---------- vnitřní stránky ---------- */
.gi-page { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.gi-page h1 { margin-bottom: 1.5rem; }

/* ---------- prohlížečka fotek ---------- */
.gi-lb { position: fixed; inset: 0; background: rgba(23,30,25,.94); display: none; align-items: center; justify-content: center; z-index: 100000; }
.gi-lb.is-open { display: flex; }
.gi-lb img { max-width: 92vw; max-height: 86vh; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.gi-lb button { position: absolute; appearance: none; border: 0; background: rgba(246,243,236,.12); color: #F6F3EC; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.gi-lb button:hover { background: rgba(246,243,236,.24); }
.gi-lb .gi-lb__prev { left: 20px; } .gi-lb .gi-lb__next { right: 20px; } .gi-lb .gi-lb__close { top: 20px; right: 20px; font-size: 1.1rem; }
.gi-lb__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #F6F3EC; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* ---------- jemné odhalení při scrollu ---------- */
.gi-reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.gi-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gi-reveal { opacity: 1; transform: none; transition: none; } .gi-capacity::before { animation: none; } .gi-frame img, .gi-frame::after { transition: none; } }
.editor-styles-wrapper .gi-reveal { opacity: 1; transform: none; }
