/* PURPLE POTION s.r.o. — clean B&W + gradients */

/* ── Self-hosted fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  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: 400 700;
  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;
}

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --gray-50: #f8f8f8;
  --gray-100:#f0f0f0;
  --gray-300:#d0d0d0;
  --gray-500:#888888;
  --gray-700:#444444;
  --max:     1160px;

  --grad-hero:    linear-gradient(135deg, #ffffff 0%, #eeeaf8 50%, #e4dff5 100%);
  --grad-about:   linear-gradient(160deg, #f5f5f5 0%, #eae8f2 100%);
  --grad-contact: linear-gradient(145deg, #18161f 0%, #0e0c14 50%, #1a1722 100%);
  --grad-footer:  linear-gradient(180deg, #100e18 0%, #07060d 100%);
  --grad-card-hover: linear-gradient(135deg, #f5f3fc 0%, #ece8f8 100%);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── HEADER ─────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* backdrop-filter na pseudo-elementu — header tím přestane být containing blokem
   pro position:fixed potomky (mobilní menu) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  z-index: -1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 26px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }

.lang-sw {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
}

.lang-sw a { color: var(--gray-500); transition: color 0.2s; }
.lang-sw a:hover, .lang-sw a.on { color: var(--black); }
.lang-sw span { color: var(--gray-300); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────── */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-h) 0 0;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

/* Radial glow top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(ellipse at top right, rgba(140,100,220,0.18) 0%, rgba(160,120,240,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  padding: 80px 0 100px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.hero-origin {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.01em;
  margin-left: 95px;
  margin-bottom: 32px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gray-300);
}

.hero h1 {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0a0a0a 0%, #6b21a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 52px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1a1a 0%, #4c1d95 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s;
}
.hero-cta:hover { background: #333; }
.hero-cta svg { flex-shrink: 0; }

/* ─── SEKCE – obecné ─────────────────────────────── */

section { padding: 96px 0; }

.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.sec-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}

.sec-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.75;
  max-width: 600px;
}

/* ─── ABOUT ──────────────────────────────────────── */

#about { background: var(--grad-about); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 400;
}

.about-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  flex-shrink: 0;
}

.about-aside {
  padding-top: 8px;
}

.about-aside p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
  font-weight: 300;
}

/* ─── SERVICES ───────────────────────────────────── */

#services { background: linear-gradient(180deg, #ffffff 0%, #f7f5fe 100%); }

.services-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-100);
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-100);
}

.service-item {
  padding: 32px 28px;
  border-right: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.service-item:nth-child(4n) { border-right: none; }
.service-item:nth-child(n+5) { border-top: 1px solid var(--gray-100); }

.service-item:hover { background: var(--grad-card-hover); }

.service-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.service-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-700);
  font-weight: 300;
}

/* ─── CONTACT FORM ───────────────────────────────── */

.contact-form-section { background: var(--white); }


.contact-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  border-radius: 2px;
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #bbb;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.contact-msg-btn:hover { background: #333; border-color: #555; color: #eee; }

/* Form section — no padding when empty/closed */
.contact-form-section {
  background: var(--white);
  padding: 0;
  overflow: hidden;
}
.contact-form-section .wrap { padding-top: 0; padding-bottom: 0; }

.cf-wrap {
  max-width: 760px;
  margin-top: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}
.cf-wrap.open { grid-template-rows: 1fr; }
.cf-wrap > * { min-height: 0; }

.contact-form-section:has(.cf-wrap.open) {
  padding: 80px 0;
}
/* fallback pro starší prohlížeče bez :has */
.contact-form-section.form-open {
  padding: 80px 0;
}

.cf-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.cf-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cf-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cf-notice svg { flex-shrink: 0; margin-top: 2px; }

.cf-form { display: flex; flex-direction: column; gap: 24px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.cf-group { display: flex; flex-direction: column; gap: 8px; }

.cf-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.cf-input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.cf-input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,0.06); }
.cf-input.invalid { border-color: #ef4444; }
.cf-textarea { resize: vertical; min-height: 140px; }

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: linear-gradient(135deg, #1a1a1a 0%, #4c1d95 100%);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cf-submit:hover    { opacity: 0.88; }
.cf-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Honeypot — invisible to humans, bots fill it */
.cf-hp { opacity: 0; position: absolute; height: 0; overflow: hidden; pointer-events: none; }

/* Captcha row: question input + submit button side by side */
.cf-captcha-row { align-items: flex-end; gap: 16px; }
.cf-captcha-group { flex: 0 0 auto; }
.cf-captcha-input { width: 80px; text-align: center; }
.cf-submit-group { flex: 1; }
.cf-submit-group .cf-submit { width: 100%; justify-content: center; }

/* ─── CONTACT INFO ───────────────────────────────── */

.contact-info-section { background: var(--grad-contact); }

.contact-info-section .sec-label { color: #666; }
.contact-info-section .sec-title { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid #222;
}

.contact-block-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

.contact-block-value {
  font-size: 14px;
  line-height: 1.85;
  color: #aaa;
  font-weight: 300;
}

.contact-block-value a {
  color: #aaa;
  border-bottom: 1px solid #333;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-block-value a:hover { color: var(--white); border-color: #666; }

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #1a1a1a;
}

.social-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.2s;
}
.social-row a:hover { color: var(--white); }

/* ─── FOOTER ─────────────────────────────────────── */

.site-footer {
  background: var(--grad-footer);
  border-top: 1px solid #1a1a1a;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: #888;
  font-weight: 300;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-msg-link {
  font-size: 12px;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #333;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-msg-link:hover { color: #fff; border-color: #666; }

.footer-legal {
  font-size: 11px;
  color: #888;
  font-weight: 300;
  text-align: right;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hamburger { display: flex; }

  .nav-right {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
    /* closed state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-right.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links { flex-direction: column; align-items: center; gap: 20px; }
  .nav-links a { font-size: 18px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(n+3) { border-top: 1px solid var(--gray-100); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none !important; }
  .service-item:nth-child(n+2) { border-top: 1px solid var(--gray-100) !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
