/* ==========================================================================
   SUPPLEMENTARY COMPONENTS – Styles for sections not in main CSS
   ========================================================================== */

/* ==========================================================================
   CRITICAL LAYOUT FIXES
   ========================================================================== */

/* Fix: .hero-mesh-bg has position:absolute which breaks layout when
   applied to the same element as .hero-section. Override to keep
   the section in flow, and move the gradient mesh to ::before. */
.hero-section.hero-mesh-bg {
  position: relative !important;
  inset: auto !important;
}

.hero-section.hero-mesh-bg::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 80% 80% at 20% 30%, rgba(56, 223, 203, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(10, 79, 74, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(97, 162, 41, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 90% 50% at 5% 70%, rgba(201, 168, 76, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--surface-0) 0%, var(--surface-1) 40%, var(--surface-2) 100%);
  background-size: 200% 200%, 180% 180%, 160% 160%, 220% 120%, 100% 100%;
  animation: aurora-shift 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-section.hero-mesh-bg::before {
  background:
    radial-gradient(ellipse 80% 80% at 20% 30%, rgba(74, 238, 221, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(10, 79, 74, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(97, 162, 41, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 90% 50% at 5% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--surface-0) 0%, var(--surface-1) 50%, var(--surface-2) 100%);
  background-size: 200% 200%, 180% 180%, 160% 160%, 220% 120%, 100% 100%;
}

/* Fix: Global typography is absurdly large.
   --text-h1: clamp(3rem, 7vw+1rem, 7rem) = up to 112px
   --text-h2: clamp(1.8rem, 4vw, 3rem) = up to 48px
   --stat-number: clamp(2rem, 5vw, 3.5rem) = up to 56px
   Override ALL to sane sizes. */

h1, .h1 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.75rem) !important;
}

h2, .h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem) !important;
}

h3, .h3 {
  font-size: clamp(1.1rem, 1.5vw + 0.25rem, 1.5rem) !important;
}

.hero-title {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.75rem) !important;
  line-height: 1.15 !important;
}

.section-title {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem) !important;
}

/* Fix: stat numbers too large – "8 mies." explodes the card */
.stat-number {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem) !important;
}

/* Fix: ensure hero-content is above the ::before pseudo */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Fix: stats-strip z-index to ensure it's above hero */
.stats-strip {
  position: relative;
  z-index: 2;
}

/* Fix: hero section takes full viewport – reduce min-height */
.hero-section {
  min-height: 80svh !important;
}

/* Fix: nav must always be above content */
.site-header {
  z-index: 1000 !important;
}

/* Fix: calculator results should respect hidden attribute */
[hidden] {
  display: none !important;
}

/* Fix: bento grid overflow */
.bento-grid {
  overflow: hidden;
}

/* Fix: glass-card stat cards should not expand beyond grid */
.stat-card {
  max-width: 280px;
}

/* Fix: step-number size */
.step-number {
  font-size: 1.5rem !important;
  width: 48px !important;
  height: 48px !important;
}

/* Fix: bento card content padding */
.bento-card {
  padding: var(--space-6, 1.5rem) !important;
}

/* Fix: calculator form width */
.calculator-widget {
  max-width: 800px;
  margin-inline: auto;
}

/* Fix: ensure sections don't overflow horizontally */
main {
  overflow-x: hidden;
}

/* Booking page: form-first 2-column grid */
.booking-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6, 1.5rem);
  align-items: start;
}

.booking-form-card {
  min-width: 0;
}

.booking-process-card {
  min-width: 0;
}

@media (max-width: 968px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

/* Booking process: vertical step layout (sidebar) */
.booking-process-card .steps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.booking-process-card .step-card {
  padding: var(--space-4, 1rem);
}

/* Booking: hero mini trust line */
.hero-trust-mini {
  margin-top: var(--space-4, 1rem);
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Booking: in-form reassurance under intro copy */
.form-reassurance {
  margin: 0 0 var(--space-5, 1.25rem) 0;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(56, 223, 203, 0.08);
  border-left: 3px solid var(--color-teal, #38dfcb);
  border-radius: var(--radius-sm, 8px);
  color: var(--text-primary, #1a1a2e);
}

[data-theme="dark"] .form-reassurance {
  background: rgba(56, 223, 203, 0.12);
  color: var(--text-primary);
}

.form-quick-call {
  margin: 0 0 var(--space-5, 1.25rem) 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary, #1a1a2e);
  opacity: 0.85;
}

.form-quick-call a {
  color: var(--color-teal-deep, #15967e);
  text-decoration: underline;
}

[data-theme="dark"] .form-quick-call a {
  color: var(--color-teal, #38dfcb);
}

/* Booking: "what to prepare" block in process sidebar */
.booking-prep {
  margin-top: var(--space-6, 1.5rem);
  padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
  background: rgba(56, 223, 203, 0.08);
  border-left: 3px solid var(--color-teal, #38dfcb);
  border-radius: var(--radius-sm, 8px);
}

[data-theme="dark"] .booking-prep {
  background: rgba(56, 223, 203, 0.12);
}

.booking-prep-title {
  margin: 0 0 var(--space-2, 0.5rem) 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a2e);
}

.booking-prep-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.85;
  color: var(--text-primary, #1a1a2e);
}

.booking-prep-list li {
  margin-bottom: 0.25rem;
}

.booking-prep-note {
  margin: var(--space-3, 0.75rem) 0 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.55;
  color: var(--text-primary, #1a1a2e);
}

/* Booking: cancellation note */
.booking-cancellation {
  margin-top: var(--space-4, 1rem);
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.55;
  color: var(--text-primary, #1a1a2e);
}

/* --- Cookie Consent Inner --- */
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
}

/* --- Problem / Symptom Section --- */
.problem-section {
  padding: var(--space-20, 5rem) 0;
  background: var(--surface-1, #f8fafb);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8, 2rem);
  margin-top: var(--space-10, 2.5rem);
}

.symptom-card {
  padding: var(--space-8, 2rem);
  text-align: center;
}

.symptom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6, 1.5rem);
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.12), rgba(97, 162, 41, 0.08));
  color: var(--color-teal, #38dfcb);
}

.symptom-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3, 0.75rem);
  color: var(--text-primary, #1a1a2e);
}

.symptom-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary, #6b7280);
}

.problem-transition {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-teal-deep, #0a4f4a);
  margin-top: var(--space-12, 3rem);
  padding: var(--space-6, 1.5rem);
  border-left: 3px solid var(--color-teal, #38dfcb);
  background: rgba(56, 223, 203, 0.06);
  border-radius: var(--radius-md, 12px);
}

/* --- Section Title / Subtitle --- */
.section-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: var(--space-4, 1rem);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #6b7280);
  max-width: 640px;
  line-height: 1.65;
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-12, 3rem);
}

.section-intro .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- How It Works Section --- */
.how-it-works {
  padding: var(--space-20, 5rem) 0;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.12), rgba(56, 223, 203, 0.04));
  color: var(--color-teal, #38dfcb);
  margin-bottom: var(--space-4, 1rem);
}

.step-badge {
  display: inline-block;
  margin-top: var(--space-4, 1rem);
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-deep, #0a4f4a);
  background: rgba(56, 223, 203, 0.12);
  border-radius: var(--radius-full, 9999px);
}

/* --- Bento extras --- */
.bento-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: var(--space-2, 0.5rem);
}

.bento-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary, #6b7280);
  margin-bottom: var(--space-4, 1rem);
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4, 1rem) 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #6b7280);
  counter-reset: bento-step;
}

.bento-list > li {
  position: relative;
  padding: var(--space-2, 0.5rem) 0 var(--space-2, 0.5rem) var(--space-7, 1.75rem);
  border-bottom: 1px solid rgba(56, 223, 203, 0.08);
}

.bento-list > li:last-child {
  border-bottom: 0;
}

ul.bento-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(56, 223, 203, 0.16);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--color-teal-deep, #0a4f4a) 45%, var(--color-teal-deep, #0a4f4a) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--color-teal-deep, #0a4f4a) 45%, var(--color-teal-deep, #0a4f4a) 55%, transparent 55%);
  background-size: 10px 2px, 10px 2px;
  background-position: center 9px, center 5px;
  background-repeat: no-repeat;
}

ol.bento-list {
  counter-reset: bento-step;
}

ol.bento-list > li::before {
  counter-increment: bento-step;
  content: counter(bento-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 223, 203, 0.18);
  color: var(--color-teal-deep, #0a4f4a);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .bento-list {
  color: rgba(255,255,255,0.78);
}

[data-theme="dark"] .bento-list > li {
  border-bottom-color: rgba(56, 223, 203, 0.18);
}

.bento-cta {
  background: linear-gradient(135deg, var(--color-teal-deep, #0a4f4a), var(--color-navy, #1a1a2e));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bento-cta .bento-title,
.bento-cta .bento-cta-text {
  color: #ffffff;
}

.bento-cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--space-2, 0.5rem);
}

[data-theme="dark"] .bento-cta .bento-title,
[data-theme="dark"] .bento-cta .bento-cta-text {
  color: #ffffff;
}
[data-theme="dark"] .bento-cta .bento-cta-text {
  color: rgba(255,255,255,0.78);
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.15), rgba(56, 223, 203, 0.05));
  color: var(--color-teal, #38dfcb);
  margin-bottom: var(--space-4, 1rem);
}

/* --- Calculator result extras --- */
.calculator-result-inner {
  text-align: center;
  padding: var(--space-8, 2rem);
}

.calculator-result-sub {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin-top: var(--space-2, 0.5rem);
  margin-bottom: var(--space-6, 1.5rem);
}

.calculator-result-cta {
  margin-top: var(--space-6, 1.5rem);
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  max-width: 480px;
  margin: var(--space-4, 1rem) auto 0;
  text-align: left;
}

.inline-form .form-input {
  width: 100%;
}

.inline-form .btn {
  width: 100%;
  justify-content: center;
}

.inline-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2, 0.5rem);
}

.inline-form .checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2em;
}

.inline-form .form-hint {
  text-align: center;
}

/* --- Testimonial extras --- */
.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4, 1rem);
}

.testimonial-badge {
  display: inline-block;
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full, 9999px);
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.15), rgba(56, 223, 203, 0.05));
  color: var(--color-teal-deep, #0a4f4a);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-6, 1.5rem);
  padding-top: var(--space-4, 1rem);
  border-top: 1px solid var(--surface-3, #dde5e7);
}

/* --- Team Section --- */
.team-section {
  padding: var(--space-20, 5rem) 0;
  background: var(--surface-1, #f8fafb);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8, 2rem);
}

.team-card {
  text-align: center;
  padding: var(--space-8, 2rem);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5, 1.25rem);
}

.team-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full, 9999px);
  background: linear-gradient(135deg, var(--color-teal-deep, #0a4f4a), var(--color-navy, #1a1a2e));
  color: var(--text-inverse, #ffffff);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: var(--space-1, 0.25rem);
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal-deep, #0a4f4a);
  margin-bottom: var(--space-3, 0.75rem);
}

.team-bio {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary, #6b7280);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-10, 2.5rem);
}

/* --- Blog Section --- */
.blog-section {
  padding: var(--space-20, 5rem) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8, 2rem);
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card-link:hover .blog-title {
  color: var(--color-teal-deep, #0a4f4a);
}

[data-theme="dark"] .blog-card-link:hover .blog-title {
  color: var(--color-teal, #38dfcb);
}

.blog-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--surface-2, #eef2f3), var(--surface-3, #dde5e7));
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-image-placeholder svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .blog-image-placeholder {
    height: 160px;
  }
}

.blog-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-image {
  transform: scale(1.04);
}

.blog-content {
  padding: var(--space-6, 1.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Featured blog card: image on top, content below – never overlapping */
.blog-card-featured {
  display: flex;
  flex-direction: column;
}

.blog-card-featured .blog-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-image-featured {
  width: 100%;
  height: clamp(220px, 32vw, 360px);
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  overflow: hidden;
}

.blog-image-featured svg {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-content-featured {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface-1, #ffffff);
  border-radius: 0 0 var(--radius-lg, 20px) var(--radius-lg, 20px);
  color: var(--text-primary, #1a1a2e);
}

.blog-content-featured .blog-meta {
  margin-bottom: var(--space-3, 0.75rem);
}

.blog-title-featured {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3, 0.75rem);
  color: var(--text-primary, #1a1a2e);
}

[data-theme="dark"] .blog-content-featured {
  background: var(--surface-1);
  color: var(--text-primary);
}

[data-theme="dark"] .blog-title-featured {
  color: var(--text-primary);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  margin-bottom: var(--space-3, 0.75rem);
}

.blog-category {
  padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
  background: rgba(56, 223, 203, 0.18);
  color: var(--color-teal-deep, #0a4f4a);
  border-radius: var(--radius-sm, 6px);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

[data-theme="dark"] .blog-category {
  background: rgba(56, 223, 203, 0.18);
  color: var(--color-teal, #38dfcb);
}

.blog-read-time,
.blog-date {
  font-size: 0.8rem;
}

.blog-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2, 0.5rem);
}

.blog-title a {
  color: var(--text-primary, #1a1a2e);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--color-teal-deep, #0a4f4a);
}

.blog-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #6b7280);
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: var(--space-16, 4rem) 0;
}

.newsletter-widget {
  padding: var(--space-10, 2.5rem) var(--space-8, 2rem);
  text-align: center;
}

.newsletter-content {
  margin-bottom: var(--space-8, 2rem);
}

.newsletter-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: var(--space-3, 0.75rem);
}

.newsletter-trust {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4, 1rem);
  margin-bottom: var(--space-4, 1rem);
}

/* --- Newsletter value prop block --- */
.newsletter-meta {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 var(--space-4, 1rem) 0;
}

.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-4, 1rem) auto;
  max-width: 520px;
  text-align: left;
  display: grid;
  gap: var(--space-2, 0.5rem);
}

.newsletter-benefits li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a2e);
  line-height: 1.5;
}

.newsletter-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-teal, #38dfcb);
  font-weight: 700;
}

.newsletter-byline {
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
  margin: 0 auto var(--space-4, 1rem) auto;
  max-width: 520px;
  text-align: center;
  font-style: italic;
}

.newsletter-byline strong {
  color: var(--text-primary, #1a1a2e);
  font-style: normal;
}

.newsletter-preview-link {
  font-size: 0.875rem;
  color: var(--color-teal-deep, #0a4f4a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-preview-link:hover {
  color: var(--color-teal, #38dfcb);
}

/* --- Honeypot field (visually hidden, accessible-only-to-bots) --- */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- GDPR consent checkbox --- */
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2, 0.5rem);
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  text-align: left;
  max-width: 560px;
  margin: 0 auto var(--space-4, 1rem) auto;
  line-height: 1.45;
  cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-teal, #38dfcb);
  cursor: pointer;
}

.newsletter-consent a {
  color: var(--color-teal-deep, #0a4f4a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .newsletter-meta,
[data-theme="dark"] .newsletter-byline,
[data-theme="dark"] .newsletter-consent {
  color: var(--text-secondary);
}

[data-theme="dark"] .newsletter-benefits li,
[data-theme="dark"] .newsletter-byline strong {
  color: var(--text-primary);
}

[data-theme="dark"] .newsletter-preview-link,
[data-theme="dark"] .newsletter-consent a {
  color: var(--color-teal);
}

/* --- Legal Disclaimer Section (MiFID II / planowanie finansowe) --- */
.legal-disclaimer-section {
  padding: var(--space-12, 3rem) 0;
  background: var(--surface-1, #f7f8fa);
  border-top: 1px solid var(--surface-2, #e8eaee);
}

.legal-disclaimer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-8, 2rem);
  background: var(--surface-0, #ffffff);
  border: 1px solid var(--surface-2, #e8eaee);
  border-radius: var(--radius-lg, 16px);
}

.legal-disclaimer-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  margin: 0 0 var(--space-4, 1rem) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-disclaimer-body p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-muted, #6b7280);
  margin: 0 0 var(--space-3, 0.75rem) 0;
}

.legal-disclaimer-body p:last-child {
  margin-bottom: 0;
}

.legal-disclaimer-body strong {
  color: var(--text-default, #1f2937);
  font-weight: 600;
}

[data-theme="dark"] .legal-disclaimer-section {
  background: var(--surface-1);
  border-top-color: var(--surface-2);
}

[data-theme="dark"] .legal-disclaimer-inner {
  background: var(--surface-0);
  border-color: var(--surface-2);
}

/* --- Final CTA Section --- */
.final-cta-section {
  padding: var(--space-20, 5rem) 0;
  background: linear-gradient(135deg, var(--color-teal-deep, #0a4f4a), var(--color-navy, #1a1a2e));
  text-align: center;
}

.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-4, 1rem);
  line-height: 1.15;
}

.final-cta-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8, 2rem);
  line-height: 1.6;
}

[data-theme="dark"] .final-cta-title { color: #ffffff; }
[data-theme="dark"] .final-cta-sub { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .final-cta-section .btn-outline-light {
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}
[data-theme="dark"] .final-cta-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.7);
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4, 1rem);
  flex-wrap: wrap;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md, 12px);
  color: var(--text-inverse, #ffffff);
  background: transparent;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Footer extras --- */
.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-3, 0.75rem);
}

.footer-company {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.8;
  margin-bottom: var(--space-4, 1rem);
}

/* --- Popup / Exit Intent --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4, 1rem);
}

.popup-overlay[hidden] {
  display: none;
}

.popup {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: var(--space-10, 2.5rem);
  text-align: center;
  animation: popupIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: var(--space-3, 0.75rem);
  right: var(--space-3, 0.75rem);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #9ca3af);
  transition: color 0.2s;
}

.popup-close:hover {
  color: var(--text-primary, #1a1a2e);
}

.popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5, 1.25rem);
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.15), rgba(56, 223, 203, 0.05));
  color: var(--color-teal, #38dfcb);
}

.popup-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal-deep, #0a4f4a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2, 0.5rem);
}

.popup-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: var(--space-3, 0.75rem);
}

.popup-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #6b7280);
  margin-bottom: var(--space-6, 1.5rem);
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-3, 0.75rem);
}

.popup-privacy {
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
}

/* --- Theme Toggle Icons --- */
.icon-sun,
.icon-moon {
  transition: opacity 0.25s, transform 0.25s;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }

/* --- Mobile Menu Toggle Bars --- */
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary, #1a1a2e);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.toggle-bar + .toggle-bar {
  margin-top: 5px;
}

/* --- Site Logo Text --- */
.site-logo-klinika {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800;
  color: var(--color-teal-deep, #0a4f4a);
}

.site-logo-finansow {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  color: var(--color-teal, #38dfcb);
}

/* --- Nav CTA --- */
.nav-cta {
  font-size: 0.875rem;
}

/* --- Word Animation in Hero --- */
.word-animation {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordFadeIn 0.5s ease forwards;
}

.word-animation:nth-child(1) { animation-delay: 0.1s; }
.word-animation:nth-child(2) { animation-delay: 0.2s; }
.word-animation:nth-child(3) { animation-delay: 0.3s; }
.word-animation:nth-child(4) { animation-delay: 0.4s; }
.word-animation:nth-child(5) { animation-delay: 0.5s; }

@keyframes wordFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Dot --- */
.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal, #38dfcb);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.4; }
}

/* --- Form Extras --- */
.form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3, #dde5e7);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-teal, #38dfcb);
  cursor: pointer;
  border: 3px solid var(--surface-0, #ffffff);
  box-shadow: var(--shadow-md);
}

.form-range-val {
  color: var(--color-teal-deep, #0a4f4a);
}

.form-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  margin-top: var(--space-1, 0.25rem);
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-2, 0.5rem);
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  font-size: 0.9rem;
  color: var(--text-primary, #1a1a2e);
  cursor: pointer;
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border: 1px solid var(--surface-3, #dde5e7);
  border-radius: var(--radius-md, 12px);
  transition: all 0.2s;
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--color-teal, #38dfcb);
  background: rgba(56, 223, 203, 0.04);
}

/* --- Sticky CTA extras --- */
.cta-phone,
.cta-book {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* --- Dark mode overrides for new components --- */
[data-theme="dark"] .problem-section,
[data-theme="dark"] .team-section {
  background: var(--surface-1);
}

[data-theme="dark"] .symptom-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .bento-title,
[data-theme="dark"] .team-name,
[data-theme="dark"] .newsletter-title,
[data-theme="dark"] .blog-title a,
[data-theme="dark"] .popup-title {
  color: var(--text-primary);
}

[data-theme="dark"] .toggle-bar {
  background: var(--text-primary);
}

[data-theme="dark"] .team-avatar-placeholder {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-deep));
}

[data-theme="dark"] .blog-image-placeholder {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

[data-theme="dark"] .problem-transition {
  background: rgba(56, 223, 203, 0.08);
  color: var(--color-teal);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form-row {
    grid-template-columns: 1fr;
  }

  .final-cta-actions {
    flex-direction: column;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popup {
    padding: var(--space-6, 1.5rem);
  }

  .inline-form {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Responsive table wrapper with scroll affordance --- */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  margin: 2rem 0;
}

.table-scroll table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
}

.table-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

@media (max-width: 768px) {
  .table-scroll::after {
    opacity: 1;
  }
}

/* --- Article body max-width for readable line length --- */
.article-body,
.blog-post-content {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Contact page – dual map grid */
.contact-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-map-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.contact-map-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.contact-map-address {
  margin: 0;
  font-size: 0.95rem;
  font-style: normal;
}

.contact-map-address a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(127, 127, 127, 0.3);
  text-underline-offset: 3px;
}

.contact-map-iframe {
  width: 100%;
  display: block;
}

.contact-map-caption {
  margin: 0;
  font-size: 0.875rem;
}

@media (max-width: 880px) {
  .contact-map-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   In-content article CTA (mid-article booking nudge)
   Sits between body paragraphs, secondary to the final CTA section.
   ────────────────────────────────────────────────────────────────────────── */
.in-content-cta {
  margin: 2.5rem auto;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 223, 203, 0.10), rgba(56, 223, 203, 0.03));
  border: 1px solid rgba(56, 223, 203, 0.30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.in-content-cta-text {
  flex: 1 1 280px;
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-primary, inherit);
}

.in-content-cta-sub {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.92rem;
  opacity: 0.8;
}

.in-content-cta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .in-content-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .in-content-cta .btn {
    width: 100%;
  }
}

/* --- Contact page grid (form + info) --- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card,
.contact-form-card {
  padding: 2rem;
}

.contact-info-title,
.contact-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}

.contact-form-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.contact-info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50, rgba(0, 91, 187, 0.08));
  color: var(--brand-700, #005bbb);
  flex-shrink: 0;
}

.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary, #6b7280);
  font-weight: 600;
  margin: 0;
}

.contact-info-link,
.contact-info-address,
.contact-info-text {
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-style: normal;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.contact-info-link {
  font-weight: 600;
  transition: color 0.15s;
}

.contact-info-link:hover,
.contact-info-link:focus-visible {
  color: var(--brand-700, #005bbb);
}

.contact-social {
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-2, rgba(0, 0, 0, 0.08));
}

.contact-social .contact-info-label {
  margin-bottom: 0.5rem;
}
