/* ===== VARIABLES ===== */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #e6faf8;
  --accent: #6c63ff;
  --text: #0d2030;
  --text-muted: #5a7a8a;
  --bg: #f4fafb;
  --surface: #ffffff;
  --border: #cceef3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* Per-app override — replace in each app's copy:
  AmbulíQ:   --primary: #1bbfd6
  ServisíQ:  --primary: #e67e22
  DentistíQ: --primary: #8e44ad
  PetAmbulíQ:--primary: #27ae60
  DomovníQ:  --primary: #2980b9
*/

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(27,191,214,0.12); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 900;
  color: var(--primary); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 0.25rem; flex: 1; }
.nav-links a {
  color: var(--text-muted); padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 0.5rem; }
.nav-mobile { display: none; flex-direction: column; gap: 0.5rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn-ghost {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); }
.btn-primary {
  background: var(--primary); color: white;
  padding: 0.55rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,191,214,0.35); }

.btn-hero-primary {
  background: var(--primary); color: white;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(27,191,214,0.35);
}
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,191,214,0.45); }
.btn-hero-ghost {
  color: var(--text-muted); padding: 0.85rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; border: 2px solid var(--border);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; background: white;
}
.btn-hero-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: white; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.section-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 0 5rem;
  background: linear-gradient(160deg, #f0fcfe 0%, #f4fafb 60%, #fff 100%);
  text-align: center;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18; pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; right: -50px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; border: 1px solid var(--border);
  color: var(--primary); padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 1.25rem;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: inline-flex; align-items: center; gap: 2rem;
  background: white; padding: 1.25rem 2.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
  transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
}
.stars { display: flex; gap: 3px; margin-bottom: 1rem; color: #f59e0b; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial-card p { font-size: 0.95rem; color: var(--text); line-height: 1.65; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; border: 2px solid var(--border);
  position: relative;
}
.pricing-popular { border-color: var(--primary); box-shadow: 0 8px 32px rgba(27,191,214,0.15); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-tier { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); line-height: 1; margin-bottom: 0.5rem; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.pricing-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }
.pricing-features li.muted { color: var(--text-muted); }
.pricing-features li.muted svg { color: #cbd5e1; }
.btn-pricing-primary {
  display: block; text-align: center; background: var(--primary); color: white;
  padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 700;
  transition: all 0.15s;
}
.btn-pricing-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-pricing-ghost {
  display: block; text-align: center; border: 2px solid var(--border); color: var(--text);
  padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 700;
  transition: all 0.15s;
}
.btn-pricing-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left;
  font-family: inherit;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ===== CTA ===== */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center; padding: 6rem 0;
}
.blob-cta {
  width: 500px; height: 500px; border-radius: 50%;
  background: white; opacity: 0.06; filter: blur(60px);
  position: absolute; top: -100px; right: -100px;
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2.4rem; font-weight: 900; color: white; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.cta-section .btn-hero-primary { background: white; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.cta-section .btn-hero-primary:hover { background: rgba(255,255,255,0.92); }
.cta-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.3rem; font-weight: 900; color: white; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; }
  .stat-divider { display: none; }
  .section { padding: 4rem 0; }
  .section-header h2 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-section h2 { font-size: 1.75rem; }
}
