/* ==========================================================================
   Domivka — shared site styles
   Design tokens from "Domivka 2.0" (Claude Design).
   ========================================================================== */

:root {
  --bg:        #F6F4EF;  /* page background (bone) */
  --ink:       #1E262B;  /* near-black text / dark sections */
  --muted:     #5B6670;  /* secondary text */
  --muted-2:   #8A929A;  /* tertiary text */
  --line:      #E3E0D8;  /* hairlines on light */
  --green:     #2E5941;  /* bydlení / primary */
  --green-d:   #254A36;
  --blue:      #24435C;  /* podnikání */
  --blue-d:    #1C374D;
  --orange:    #C97E3D;  /* CTA */
  --orange-d:  #B56F33;
  --card:      #FFFFFF;
}

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

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
/* Inline text-block links get an underline (a11y: not distinguished by colour alone) */
.consent-row a, .prose a, .cookie-banner a, p a { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: pretty; }

/* Layout helpers ---------------------------------------------------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
/* Side gutters must survive even when a section sets inline vertical padding
   via the `padding` shorthand (which would otherwise zero the horizontal). */
.container { padding-inline: clamp(16px, 4vw, 32px) !important; }
.section   { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--bg); }
.dc-nav-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); height: 68px; display: flex; align-items: center; gap: 22px; }
.dc-brand { font-weight: 900; font-size: 19px; letter-spacing: 0.14em; color: #F6F4EF; white-space: nowrap; }
.site-nav { display: flex; align-items: center; white-space: nowrap; gap: 20px; font-size: 14px; font-weight: 600; margin-left: 6px; }
.site-nav a { color: #C6CDD3; }
.site-nav a:hover { color: #FFFFFF; }
.site-nav a.active { color: #8FBFA2; }
.dc-nav-lang { font-size: 13px; color: #8A929A; font-weight: 600; }
.dc-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hv-phone { flex-shrink: 0; white-space: nowrap; background: #C97E3D; color: #FFFFFF; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 6px; }
.dc-nav-toggle { display: none; }

/* Mobile navigation: collapse the link bar into a hamburger panel ---------- */
@media (max-width: 980px) {
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #1E262B; border-top: 1px solid #343E45;
    padding: 6px 0; margin: 0; display: none;
    max-height: calc(100vh - 68px); overflow-y: auto;
    box-shadow: 0 18px 30px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav .dc-nav-lang { padding: 14px clamp(16px, 4vw, 32px); font-size: 15px; }
  .site-nav a { border-bottom: 1px solid #2A333A; }
  .dc-nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0; background: transparent; border: 0; cursor: pointer;
  }
  .dc-nav-toggle span { display: block; width: 24px; height: 2px; background: #F6F4EF; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .dc-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dc-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .dc-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 400px) {
  .hv-phone { padding: 9px 12px; font-size: 13px; }
  .dc-brand { font-size: 17px; letter-spacing: 0.1em; }
}

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       font-weight: 700; border-radius: 8px; cursor: pointer; border: none;
       font-family: inherit; font-size: 14px; padding: 12px 22px; white-space: nowrap;
       transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-green   { background: var(--green);  color: #fff; }
.btn-green:hover { background: var(--green-d);  color: #fff; }
.btn-blue    { background: var(--blue);   color: #fff; }
.btn-blue:hover  { background: var(--blue-d);   color: #fff; }
.btn-orange  { background: var(--orange); color: #fff; font-weight: 800; }
.btn-orange:hover { background: var(--orange-d); color: #fff; }
.btn-outline-green   { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover   { background: var(--green); color: #fff; }
.btn-outline-blue    { border: 1.5px solid #7C9CBB; color: #A9C3DB; background: transparent; }
.btn-outline-blue:hover    { background: var(--blue); color: #fff; }
.btn-outline-neutral { border: 1.5px solid #D8D4CA; color: var(--ink); background: transparent; }
.btn-outline-neutral:hover { border-color: var(--ink); }

/* Inline hover utilities (kept for parity with the design's style-hover) --- */
.hv-phone:hover      { background: var(--orange-d) !important; color: #FFFFFF !important; }
.hv-card-green:hover { background: var(--green-d) !important; color: #FFFFFF !important; }
.hv-card-blue:hover  { background: var(--blue-d) !important; color: #FFFFFF !important; }
.hv-outline-green:hover { background: var(--green) !important; color: #FFFFFF !important; }
.hv-outline-blue:hover  { background: var(--blue) !important; color: #FFFFFF !important; }
.hv-btn-green:hover  { background: var(--green-d) !important; color: #FFFFFF !important; }
.hv-cta-orange:hover { background: var(--orange-d) !important; color: #FFFFFF !important; }
.hv-outline-neutral:hover { border-color: var(--ink) !important; }
.hv-social:hover     { background: rgba(255,255,255,0.22) !important; color: #FFFFFF !important; }
.hv-faq:hover        { background: var(--bg) !important; }

/* Cards ------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #F2F6F0; color: var(--green); }

/* Photo blocks: real asset shows through; brand-toned block as graceful fallback */
.photo { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.photo-slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.photo-slot .ps-label { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.slot-light { background: #ECE9E1; color: var(--muted-2); border: 1px dashed #CFCABD; }
.slot-dark  { background: #2A343B; color: #7E8891; }

/* Forms ------------------------------------------------------------------- */
.field { border: 1px solid #D8D4CA; border-radius: 8px; padding: 13px 16px; font-size: 14px; font-family: inherit; width: 100%; background: #fff; }
.field:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent-row input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--green); }
.form-status { font-size: 13.5px; font-weight: 600; padding: 4px 0; min-height: 0; }
.form-status.ok  { color: var(--green); }
.form-status.err { color: #B23B3B; }

/* Prose (legal pages) ----------------------------------------------------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: #3A444D; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #FBFAF8; }
.prose .lead { font-size: 16.5px; color: var(--muted); }
.prose .meta { font-size: 13px; color: var(--muted-2); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #9AA3AB; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid a { color: #9AA3AB; }
.footer-grid a:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-col b { color: var(--bg); font-size: 13px; letter-spacing: 0.08em; }
.footer-bottom { border-top: 1px solid #343E45; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; gap: 16px; flex-wrap: wrap; }

/* Cookie consent banner --------------------------------------------------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto; background: var(--ink); color: #E7EAEC;
  border-radius: 14px; padding: 20px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; }
.cookie-banner a { color: #A9C3DB; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Lead modal -------------------------------------------------------------- */
.lead-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.lead-modal.open { display: block; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(20,26,31,0.62); backdrop-filter: blur(2px); }
.lead-modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow-y: auto;
  background: #FBFAF7; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px clamp(18px, 4vw, 32px); box-shadow: 0 24px 60px rgba(20,26,31,0.3);
  animation: leadModalIn 0.18s ease-out;
}
@keyframes leadModalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.lead-modal-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 30px; line-height: 1; color: #8A929A; cursor: pointer; padding: 4px 8px;
}
.lead-modal-x:hover { color: var(--ink); }
body.lead-modal-open { overflow: hidden; }

/* Floating quick-contact buttons ----------------------------------------- */
.dc-fab { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.dc-fab-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 18px rgba(20,26,31,0.28); transition: transform 0.15s ease;
}
.dc-fab-btn:hover { transform: scale(1.07); color: #fff; }
.dc-fab-wa { background: #25D366; }
.dc-fab-tg { background: #29A9EB; }
@media print { .dc-fab { display: none; } }
.cookie-actions .btn { font-size: 13.5px; padding: 10px 18px; }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .roi-banner  { text-align: left; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
