/*
Theme Name: EKATO App Platform
Theme URI: https://app.ekatowice.pl/
Author: OpenAI for Adam
Description: Lekki motyw startowy dla platformy mikroaplikacji / biur online. Zaprojektowany pod rejestrację klienta, logowanie i panel klienta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Text Domain: ekato-app-platform
*/

:root {
  --ek-primary: #0f766e;
  --ek-primary-2: #115e59;
  --ek-accent: #ccfbf1;
  --ek-bg: #f7fafc;
  --ek-card: #ffffff;
  --ek-text: #0f172a;
  --ek-muted: #475569;
  --ek-border: #dbe4ef;
  --ek-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --ek-radius-xl: 28px;
  --ek-radius-lg: 20px;
  --ek-radius-md: 14px;
  --ek-max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ek-text);
  background: var(--ek-bg);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.ek-wrap {
  width: min(var(--ek-max), calc(100% - 32px));
  margin: 0 auto;
}

.ek-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
}

.ek-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.ek-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
}

.ek-brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ek-primary), #164e63);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ek-shadow);
}

.ek-brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.ek-brand-text span {
  display: block;
  color: var(--ek-muted);
  font-size: 12px;
}

.ek-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ek-nav a,
.ek-nav .menu a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: #1e293b;
}

.ek-nav a:hover,
.ek-nav .menu a:hover {
  background: #fff;
}

.ek-btn,
.wp-block-button__link,
input[type="submit"],
button,
.vaf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ek-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.ek-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover,
.vaf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}

.ek-btn.secondary,
.vaf-btn.secondary {
  background: #ffffff;
  color: var(--ek-primary) !important;
  border-color: #d7dee8;
  box-shadow: none;
}

.ek-btn.secondary:hover,
.vaf-btn.secondary:hover {
  background: #f8fafc;
}

.ek-btn.ghost,
.vaf-btn.ghost {
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a !important;
  border-color: #d7dee8;
  box-shadow: none;
}

.ek-btn.ghost:hover,
.vaf-btn.ghost:hover {
  background: #ffffff;
}

.ek-hero {
  padding: 54px 0 36px;
}

.ek-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}

.ek-kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ek-accent);
  color: var(--ek-primary-2);
  font-weight: 700;
  font-size: 13px;
}

.ek-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.ek-lead {
  font-size: 18px;
  color: var(--ek-muted);
  max-width: 680px;
}

.ek-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ek-note-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--ek-muted);
  font-size: 14px;
}

.ek-note-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ek-border);
}

.ek-showcase {
  background: linear-gradient(180deg, #fff, #eefcf9);
  border: 1px solid #d1fae5;
  border-radius: var(--ek-radius-xl);
  padding: 22px;
  box-shadow: var(--ek-shadow);
}

.ek-phone-shell {
  background: #0f172a;
  border-radius: 32px;
  padding: 14px;
  max-width: 390px;
  margin-left: auto;
}

.ek-phone-screen {
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
}

.ek-phone-top {
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, #cffafe 0%, #ffffff 100%);
}

.ek-mini-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.ek-mini-tile {
  min-height: 88px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ek-border);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ek-section {
  padding: 28px 0;
}

.ek-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.ek-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.ek-section-head p {
  margin: 0;
  color: var(--ek-muted);
  max-width: 680px;
}

.ek-grid-3,
.ek-grid-4 {
  display: grid;
  gap: 18px;
}

.ek-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ek-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ek-card {
  background: var(--ek-card);
  border: 1px solid var(--ek-border);
  border-radius: var(--ek-radius-lg);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.ek-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.ek-card p,
.ek-card li { color: var(--ek-muted); }
.ek-card ul { padding-left: 18px; margin: 10px 0 0; }

.ek-process-step {
  position: relative;
  overflow: hidden;
}

.ek-step-no {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ek-accent);
  color: var(--ek-primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.ek-banner {
  background: linear-gradient(135deg, #0f766e, #0f172a);
  color: #fff;
  border-radius: var(--ek-radius-xl);
  padding: 28px;
  box-shadow: var(--ek-shadow);
}

.ek-banner p { color: rgba(255,255,255,.85); }

.ek-page {
  padding: 34px 0 56px;
}

.ek-page-card {
  background: #fff;
  border-radius: var(--ek-radius-xl);
  border: 1px solid var(--ek-border);
  padding: 26px;
  box-shadow: var(--ek-shadow);
}

.ek-site-footer {
  padding: 28px 0 40px;
  color: var(--ek-muted);
}

.ek-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--ek-border);
}

/* Compatibility with VAF plugin */
.vaf-form,
.vaf-box,
.vaf-notice,
.vaf-public-app,
.vaf-dashboard {
  font-family: inherit;
}

.vaf-form,
.vaf-box {
  max-width: 100%;
  margin: 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--ek-border);
  box-shadow: var(--ek-shadow);
}

.vaf-dashboard {
  max-width: 100%;
}

.vaf-public-app {
  background: transparent;
  padding-bottom: 0;
}

.vaf-container,
.vaf-hero-inner {
  width: min(var(--ek-max), calc(100% - 32px));
}

.vaf-hero {
  padding: 36px 0 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vaf-color) 13%, white) 0%, #ffffff 100%);
}

.vaf-about,
.vaf-tile,
.vaf-install-box {
  border-radius: 24px;
}

.vaf-tile:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .ek-hero-grid,
  .ek-grid-3,
  .ek-grid-4,
  .vaf-grid.two {
    grid-template-columns: 1fr;
  }

  .ek-phone-shell {
    margin: 0 auto;
    max-width: 420px;
  }

  .ek-section-head,
  .vaf-dashboard-head,
  .vaf-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .ek-header-row {
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .ek-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .ek-hero {
    padding-top: 32px;
  }

  .ek-page-card,
  .ek-banner,
  .ek-card,
  .vaf-form,
  .vaf-box {
    padding: 20px;
  }
}
