/*
Theme Name: Legalna Aborcja
Description: Dedykowany motyw dla legalna-aborcja.nl. Brak naglowka, sidebara, stopki motywu.
Version: 1.0
Author: Stadskliniek Utrecht
*/

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #1a202c; line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ========== NUKLEARNE: UKRYJ ABSOLUTNIE WSZYSTKO CO NIE JEST NASZE ========== */
/* Ukryj KAZDY bezposredni element body oproc naszych klas la-* i admin bar */
body > *:not(#la-site):not(#wpadminbar):not(.la-topbar):not(.la-nav):not(.la-hero):not(.la-hero-sub):not(.la-page-content):not(.la-cta):not(.la-footer):not(script):not(style):not(link):not(noscript) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
#la-site, .la-topbar, .la-nav, .la-hero, .la-hero-sub, .la-page-content, .la-cta, .la-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}
#wpadminbar ~ * .la-hero { margin-top: 0; }
.wp-block-post-title, .entry-title, .page-title { display: none !important; }
/* Hemingway, Consultup, inne - ukryj WSZYSTKO */
.blog-header, .header-cover, #header, .header, .site-header, .big-header-image, .header-inner, header.header { display: none !important; }
.navigation, .main-navigation, .nav-toggle, .mobile-navigation, #nav, nav.navigation { display: none !important; }
.toggle-container, .search-toggle, .mobile-menu-toggle { display: none !important; }
.blog-footer, .footer-widgets, #footer, footer.footer, .site-footer, .footer-info { display: none !important; }
.page-title, .post-header, .entry-header, .post-title, h1.post-title, h2.post-title, .page-header { display: none !important; }
#masthead, .site-branding, .custom-header, .wp-custom-header, #wp-custom-header { display: none !important; }
.header-image, .custom-header-media, .skip-link { display: none !important; }
[class*="hemingway"], [id*="hemingway"], [class*="consultup"], [id*="consultup"] { display: none !important; }
[class*="futurio"], [id*="futurio"], [class*="generate-"] { display: none !important; }
/* Usun ograniczenia kontenerow */
.post-content, .entry-content, .content, .post-inner, .page-inner { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; }
.wrapper, .section-inner, #wrapper, .content-wrapper { max-width: 100% !important; padding: 0 !important; }

/* ========== NAWIGACJA GLOWNA ========== */
.la-nav {
  background: #0f2a44;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.la-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.la-nav-logo {
  height: 40px;
  width: auto;
  margin-right: auto;
  padding: 8px 0;
}
.la-nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.la-nav-link:hover { color: #fff; }
.la-nav-active { color: #fff !important; border-bottom: 2px solid var(--la-accent); }
/* Pasek telefonu na gorze (mobile widoczny, desktop ukryty) */
.la-topbar {
  background: var(--la-primary);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
}
.la-topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* Hamburger menu */
.la-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.la-nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .la-nav-inner { justify-content: space-between; flex-wrap: nowrap; }
  .la-nav-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin-right: 0;
    padding: 6px 0;
  }
  .la-hamburger { display: block; }
  .la-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }
  .la-nav-links.open { display: flex; }
  .la-nav-link {
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .la-nav-inner { flex-wrap: wrap; }
}

/* ========== ZMIENNE ========== */
:root {
  --la-primary: #1B3A5C;
  --la-accent: #2a7a3b;
  --la-text: #1a202c;
  --la-text-muted: #4a5568;
  --la-bg: #ffffff;
  --la-bg-alt: #f7f8fb;
  --la-bg-light: #f0f4f8;
  --la-border: #e2e8f0;
  --la-radius: 12px;
}

/* ========== LAYOUT ========== */
.la-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.la-container-narrow { max-width: 760px; margin: 0 auto; }
.la-section { padding: 56px 20px; }
.la-section-alt { background: var(--la-bg-alt); }
.la-subtitle { text-align: center; color: var(--la-text-muted); margin-bottom: 32px; font-size: 15px; }
.la-page-content { max-width: 100%; overflow-x: hidden; }

/* ========== GRIDY ========== */
.la-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.la-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .la-grid-2, .la-grid-3 { grid-template-columns: 1fr; }
}

/* ========== TYPOGRAFIA ========== */
h1, h2, h3, h4 { color: var(--la-primary); line-height: 1.3; }
.la-text { color: var(--la-text); font-size: 15px; line-height: 1.7; }
h2 { font-size: clamp(22px, 4vw, 28px); text-align: center; margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 8px; }

/* ========== HERO (strona glowna) ========== */
.la-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 64px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.la-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 68, 0.82);
  z-index: 1;
}
.la-hero-content { position: relative; z-index: 2; max-width: 700px; }
.la-hero h1 { color: #fff; font-size: clamp(24px, 5vw, 36px); margin-bottom: 16px; }
.la-hero p { color: rgba(255,255,255,0.9); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.la-hero-checks { list-style: none; text-align: left; display: inline-block; margin-bottom: 24px; }
.la-hero-checks li { padding: 4px 0; font-size: 15px; color: rgba(255,255,255,0.95); }
.la-hero-checks li::before { content: '\2713'; color: #68d391; font-weight: 700; margin-right: 10px; }
.la-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== HERO (podstrony) ========== */
.la-hero-sub {
  position: relative;
  background: linear-gradient(135deg, var(--la-primary) 0%, #2a4f7a 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: left;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.la-hero-sub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 68, 0.78);
  z-index: 1;
}
.la-hero-sub .la-container { position: relative; z-index: 2; }
.la-hero-sub h1 { color: #fff; font-size: clamp(22px, 4vw, 32px); margin-bottom: 8px; text-align: left; }
.la-hero-sub p { color: rgba(255,255,255,0.85); font-size: 15px; }
.la-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.la-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.la-breadcrumb a:hover { color: #fff; }
.la-breadcrumb span { margin: 0 6px; }

/* ========== PRZYCISKI ========== */
.la-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--la-radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.la-btn-primary { background: #fff; color: var(--la-primary); }
.la-btn-primary:hover { background: #f0f4f8; }
.la-btn-outline { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.la-btn-outline:hover { background: rgba(255,255,255,0.25); }
.la-btn-green { background: var(--la-accent); color: #fff; }
.la-btn-green:hover { background: #22652e; }
.la-btn-accent { background: var(--la-accent); color: #fff; }
.la-btn-white { background: #fff; color: var(--la-primary); }
.la-btn-white:hover { background: #f0f4f8; }
.la-btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.la-btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ========== KARTY ========== */
.la-card {
  background: #fff;
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.la-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.la-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--la-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.la-card h4 { font-size: 16px; font-weight: 700; color: var(--la-primary); margin-bottom: 6px; }
.la-card p { color: var(--la-text-muted); font-size: 14px; line-height: 1.6; }

/* ========== KONTAKT KARTY ========== */
.la-contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--la-bg-alt);
  border-radius: var(--la-radius);
  margin-bottom: 12px;
}
.la-contact-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

/* ========== LISTA ========== */
.la-list { list-style: none; }
.la-list li { position: relative; padding: 6px 0 6px 20px; font-size: 15px; color: var(--la-text-muted); line-height: 1.6; }
.la-list li .dot { position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--la-accent); border-radius: 50%; }

/* ========== KROKI ========== */
.la-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.la-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--la-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.la-step h4 { margin-bottom: 2px; }
.la-step p { color: var(--la-text-muted); font-size: 14px; }

/* ========== CENNIK ========== */
.la-price-card {
  background: #fff;
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius);
  padding: 24px;
  text-align: center;
}
.la-price-card h4 { margin-bottom: 4px; }
.la-price-badge {
  display: inline-block;
  background: var(--la-bg-light);
  color: var(--la-text-muted);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}
.la-price-value { font-size: 28px; font-weight: 800; color: var(--la-primary); margin-bottom: 4px; }
.la-price-info { font-size: 13px; color: var(--la-text-muted); }
.la-transport-box {
  background: var(--la-bg-light);
  border-radius: var(--la-radius);
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

/* ========== FAQ ACCORDION ========== */
.la-faq-item { border: 1px solid var(--la-border); border-radius: var(--la-radius); margin-bottom: 12px; overflow: hidden; }
.la-faq-item summary {
  padding: 16px 44px 16px 20px;
  font-weight: 600;
  color: var(--la-primary);
  cursor: pointer;
  font-size: 15px;
  list-style: none;
  position: relative;
}
.la-faq-item summary::-webkit-details-marker { display: none; }
.la-faq-item summary::after {
  content: '\25BC';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  transition: transform 0.2s;
}
.la-faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.la-faq-answer { padding: 0 20px 20px; color: var(--la-text); font-size: 15px; line-height: 1.7; }

/* ========== TABELA ========== */
.la-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.la-table th, .la-table td { padding: 10px 14px; border: 1px solid var(--la-border); text-align: left; }
.la-table th { background: var(--la-primary); color: #fff; font-weight: 600; }
.la-table tr:nth-child(even) { background: var(--la-bg-light); }

/* ========== CTA BANER ========== */
.la-cta {
  background: linear-gradient(135deg, var(--la-primary) 0%, #2a4f7a 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.la-cta h2 { color: #fff; margin-bottom: 12px; }
.la-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; font-size: 15px; }

/* ========== FOOTER ========== */
.la-footer {
  background: #0f2a44;
  color: rgba(255,255,255,0.8);
  padding: 40px 20px;
  font-size: 14px;
}
.la-footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; margin-bottom: 6px; }
.la-footer a:hover { color: #fff; }
.la-footer-title { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.la-footer-heading { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.la-footer-link { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 6px; }
.la-footer-link:hover { color: #fff; }
.la-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 8px; text-align: center; color: rgba(255,255,255,0.5); }

/* ========== INFO BOX ========== */
.la-info-box {
  background: var(--la-bg-light);
  border-left: 4px solid var(--la-primary);
  padding: 16px 20px;
  border-radius: 0 var(--la-radius) var(--la-radius) 0;
  margin: 16px 0;
}
.la-info-box p { color: var(--la-text-muted); font-size: 14px; line-height: 1.6; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .la-hero { min-height: 400px; padding: 40px 16px; }
  .la-section { padding: 40px 16px; }
  .la-hero-buttons { flex-direction: column; align-items: center; }
  .la-footer .la-grid-3 { grid-template-columns: 1fr; gap: 24px; }
}
/* Ukryj elementy starego motywu */
.header-inner,
.toggle-container,
.menu-wrapper,
.site-title,
.site-description,
.footer-credits,
#site-header,
.site-header,
.search-toggle,
.mobile-search {
    display: none !important;
}
/* === PUNKT 6: Ukryj podwojna nawigacje starego motywu === */
#site-header,
.header-inner,
.site-header,
.main-navigation,
.primary-navigation,
.site-navigation,
.menu-toggle,
.toggle-container,
header:not([class*="la-"]),
nav:not(.la-nav):not(.la-nav-links) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === PUNKT 7: Ukryj "Theme by Anders Noren" === */
.footer-credits,
.powered-by,
.theme-info,
.site-info,
.footer-inner,
a[href*="developer.flavor"],
a[href*="flavor"],
a[href*="flavor.developer"],
a[href*="flavor"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* === PUNKT 8: Ukryj duplikat H1 starego motywu === */
.post-title:not([class*="la-"]),
h1.post-title,
h2.post-title,
.entry-title:not([class*="la-"]),
.page-title:not([class*="la-"]),
.wp-block-post-title,
.post-header:not([class*="la-"]),
.entry-header:not([class*="la-"]),
.page-header:not([class*="la-"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Mniejsze hero na wszystkich podstronach */
.la-hero.la-hero-sub {
    padding: 20px 0 !important;
    min-height: auto !important;
}

.la-hero-sub h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
}
