/* ==============================
   TAXORY.CZ – Shared Stylesheet
   ==============================
   Base styles shared across all production pages:
   homepage, ucetnictvi, cenik, kontakt
============================== */

/* ==============================
   FONTS – Plus Jakarta Sans (self-hosted variable font)
============================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==============================
   CSS CUSTOM PROPERTIES
============================== */
:root {
  --navy:       #1B2B4B;
  --navy-dark:  #111D33;
  --green:      #2A7F62;
  --green-light:#E6F5EF;
  --green-muted:#9FE1CB;
  --bg:         #F8F9FA;
  --bg-card:    #FFFFFF;
  --border:     #E2E6EB;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --blue-tint:  #EBF3FB;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }

/* ==============================
   UTILITY
============================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.7vw, 40px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #236b52; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--bg-card); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-arrow::after { content: '→'; }

/* ==============================
   NAVIGATION
============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,249,250,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { margin-left: auto; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

/* Mobile menu open state */
@media (max-width: 900px) {
  .nav { position: relative; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.open a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
  }
}

/* ==============================
   BREADCRUMB
============================== */
.breadcrumb { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb-inner a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb-inner a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--navy); font-weight: 500; }

/* ==============================
   PAGE HERO (subpages)
============================== */
.page-hero { background: var(--navy); padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(42,127,98,.1);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,127,98,.2);
  color: var(--green-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(42,127,98,.3);
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
}
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==============================
   CTA SECTION
============================== */
.cta-section { background: var(--navy); padding: 72px 0; }
.cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 600; color: #fff; margin-bottom: 14px; }
.cta-inner p { font-size: 16px; color: rgba(255,255,255,.6); margin-bottom: 28px; line-height: 1.65; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ==============================
   FORMS
============================== */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.form-title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
label .req { color: var(--green); margin-left: 2px; }
label .opt { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 4px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,127,98,.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 100px; }
.form-checkboxes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
  border-radius: 4px;
}
.checkbox-label > span { flex: 1; min-width: 0; }
.checkbox-label a { color: var(--green); text-decoration: underline; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-family: var(--font);
  transition: var(--transition);
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
}
.form-submit:hover { background: #236b52; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-privacy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.active { display: block; }
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success-icon svg { width: 28px; height: 28px; color: var(--green); }
.form-success h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Collapsible "additional info" section */
details.form-extra {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: var(--transition);
}
details.form-extra[open] {
  background: var(--bg);
  border-color: var(--green-muted);
}
details.form-extra summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
details.form-extra summary::-webkit-details-marker { display: none; }
details.form-extra summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
details.form-extra[open] summary::before { content: '−'; }
details.form-extra summary:hover { color: var(--green); }
.form-extra-content {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-extra-content .form-group:last-child,
.form-extra-content .form-row:last-child .form-group { margin-bottom: 0; }

/* Radio button group (e.g. VAT payer) */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 6px 0;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
}
.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

/* ==============================
   CONTACT INFO (shared: homepage + kontakt)
============================== */
.contact-info-title { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.contact-info-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--green); }
.contact-item-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact-item-value { font-size: 15px; font-weight: 500; color: var(--navy); }
.contact-item-value a { color: var(--navy); transition: color var(--transition); }
.contact-item-value a:hover { color: var(--green); }
.contact-item-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ==============================
   FOOTER
============================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.5);
  padding: 48px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--green-muted); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 16px; }
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.footer-contact-line svg { width: 14px; height: 14px; color: var(--green-muted); flex-shrink: 0; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
/* ==============================
   RESPONSIVE – shared breakpoints
============================== */
@media (max-width: 1024px) {
  .section-title br { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
}
