/*
Theme Name: Astra Child - Poradnia Medyczna
Theme URI: https://poradnia.digitalgo.pl
Description: Motyw potomny Astra dla poradnia.digitalgo.pl
Author: Daria Katarzyna Krol
Author URI: https://digitalgo.pl
Template: astra
Version: 1.0.0
Text Domain: astra-child-poradnia
*/

/* ============================================================ */
/* Ukrycie natywnego naglowka/stopki Astry - wlasny design      */
/* ============================================================ */
header#masthead,
.ast-header-break-point .ast-mobile-menu-buttons,
.ast-mobile-header-wrap,
#ast-mobile-header,
#ast-scroll-top,
#colophon {
    display: none !important;
}
body { padding-top: 0 !important; }

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sky: #3498db;
  --sky-dark: #2980b9;
  --navy: #2c3e50;
  --navy-dark: #1c2833;
  --ink: #22282e;
  --ink-soft: #5b6570;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-soft2: #f9f9f9;
  --line: #e6eaee;

  --display: 'Montserrat', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}
.logo span { color: var(--sky); }
.main-nav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sky);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--sky);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--sky-dark); }

a:hover { color: inherit !important; }
.quickbook-btn, .quickbook-btn:hover, .quickbook-btn:focus, .quickbook-btn:active {
    color: #fff !important;
}

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--navy); transition: 0.25s; border-radius: 2px;
}
.mobile-toggle::before { top: 14px; }
.mobile-toggle span { top: 19px; }
.mobile-toggle::after { top: 24px; }
.mobile-toggle.open::before { transform: translateY(5px) rotate(45deg); }
.mobile-toggle.open span { opacity: 0; }
.mobile-toggle.open::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex !important; position: fixed; inset: 78px 0 0 0;
    background: #fff; flex-direction: column; padding: 36px 32px; gap: 24px;
    font-size: 1.15rem; z-index: 99;
  }
  .nav-cta.mobile-open {
    display: inline-flex !important; position: fixed; bottom: 24px; left: 32px; right: 32px;
    justify-content: center; z-index: 99;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px 60px;
  text-align: center;
}
.hero-photo-bg { position: absolute; inset: 0; z-index: -2; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 620px 420px at 50% 40%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0) 72%);
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.slogan-h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  min-height: 80px;
  line-height: 1.2;
}
#prefix-text { margin-right: 12px; }
.neon-blue {
  color: var(--sky);
  font-weight: 800;
}
.cursor {
  border-right: 3px solid var(--navy);
  animation: blink 0.6s infinite;
  margin-left: 5px;
  display: inline-block;
  height: 1em;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 40px;
  text-align: center;
}

.hero-quickbook {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.quickbook-btn {
  display: block;
  padding: 12px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 12px 24px -8px rgba(44,62,80,0.35);
  transition: background 0.2s, transform 0.2s;
}
.quickbook-btn strong { font-weight: 800; }
.quickbook-btn:hover { background: var(--sky); transform: translateY(-2px); }

@media (max-width: 768px) {
  .slogan-h2 { font-size: 1.7rem; min-height: 110px; }
  #prefix-text { margin-right: 8px; }
  .hero-photo-bg::after {
    background: radial-gradient(ellipse 320px 360px at 50% 32%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0) 70%) !important;
  }
  .quickbook-btn { width: 100%; max-width: 300px; }
}


/* ---------- Section shell ---------- */
.section { padding: 100px 0 70px; }
.section-tight { padding: 60px 0; }
.section-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky);
  text-align: center; margin: 0 0 12px; font-weight: 700;
}
.section-title {
  font-family: var(--display); font-weight: 800; text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 20px; color: var(--navy);
}
.section-lede { text-align: center; max-width: 68ch; margin: 0 auto 50px; color: var(--ink-soft); }

/* ---------- O nas grid ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.about-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; margin-bottom: 24px;
}
.about-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-align: center; margin: 0 0 12px; color: var(--navy); }
.about-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- WOSP infobox ---------- */
.wosp-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--bg-soft); border: 2px double var(--sky); border-radius: 14px; padding: 32px;
}
.wosp-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.wosp-box h3 { font-family: var(--display); font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.wosp-box p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Dlaczego my (icon cards) ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; text-align: center; }
.reason-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--sky);
}
.reason-card h3 { font-family: var(--display); font-weight: 700; margin: 0 0 10px; color: var(--navy); }
.reason-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Opinie marquee ---------- */
.opinie-marquee {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  overflow: hidden; background: var(--bg-soft2); padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.opinie-track { display: flex; width: max-content; animation: scroll-op 32s linear infinite; }
.opinia { flex-shrink: 0; padding: 0 40px; font-style: italic; color: var(--ink-soft); white-space: nowrap; font-size: 0.92rem; }
@keyframes scroll-op { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.opinie-marquee:hover .opinie-track { animation-play-state: paused; }

/* ---------- CTA band (cennik) ---------- */
.cta-simple { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-simple p { color: var(--ink-soft); margin-bottom: 28px; }
.btn-navy {
  display: inline-block; padding: 15px 32px; background: var(--navy); color: #fff;
  border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: 0.2s;
}
.btn-navy:hover { background: var(--sky); transform: translateY(-2px); }

/* ---------- Kariera (accent band) ---------- */
.section-accent {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: #fff; padding: 90px 20px; text-align: center;
}
.section-accent h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 18px; }
.section-accent p { max-width: 64ch; margin: 0 auto; color: rgba(255,255,255,0.9); }

/* ---------- Info summary ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.info-item { text-align: center; padding: 8px; }
.info-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.info-item h3 { font-family: var(--display); font-weight: 700; margin: 0 0 10px; color: var(--navy); font-size: 1.1rem; }
.info-item p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Cover CTA (znajdź specjalistę) ---------- */
.cover-cta {
  position: relative; min-height: 46vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; border-radius: 20px;
}
.cover-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover-cta::after { content: ""; position: absolute; inset: 0; background: rgba(28,40,51,0.55); z-index: -1; }
.cover-cta-inner { position: relative; color: #fff; }
.cover-cta-inner p { font-size: 1.4rem; font-weight: 700; margin: 0 0 22px; font-family: var(--display); }

/* ---------- Fundacja ---------- */
.fundacja-text { max-width: 780px; margin: 0 auto; }
.fundacja-text p { margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer;
}
.faq-question h3 { font-size: 1.02rem; font-weight: 600; margin: 0; color: var(--navy); }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--sky);
  transition: 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--sky); color: #fff; border-color: var(--sky); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-content { padding: 0 4px 22px; }
.faq-answer-content p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 12px; }
.faq-answer-content p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-card { background: var(--bg-soft); border-radius: 16px; padding: 8px 0; }
.contact-row { display: flex; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); width: 90px; flex-shrink: 0; padding-top: 2px; font-weight: 700; }
.contact-row .v { font-weight: 600; color: var(--navy); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px;
  font-family: var(--body); font-size: 0.94rem; line-height: 46px; background: #fff; color: var(--ink);
}
.form-field textarea { height: auto; line-height: 1.5; padding: 12px 14px; min-height: 110px; resize: vertical; }
.form-submit {
  background: var(--sky); color: #fff; border: none; border-radius: 8px; padding: 14px 30px;
  font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--sky-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b7c0cc; padding: 60px 0 30px; margin-top: 100px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #33414f; margin-bottom: 26px; }
.footer-logo { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.2rem; margin: 0 0 14px; }
.footer-top p { text-align: left; font-size: 0.88rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: #b7c0cc; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.78rem; color: #6e7987; flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 90px 16px 30px;
  }
  .hero-photo-bg img {
    object-position: 75% center;
  }
  .slogan-h2 {
    font-size: 1.5rem;
    min-height: 60px;
    margin-bottom: 6px;
  }
  #prefix-text { margin-right: 8px; }
  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }
  .hero-photo-bg::after {
    background: radial-gradient(ellipse 320px 360px at 50% 32%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0) 70%) !important;
  }
  .hero-quickbook {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quickbook-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 10px 14px;
    font-size: 0.76rem;
  }
}