/*
Theme Name: Astra Child - Klinika Linea
Theme URI: https://klinika.digitalgo.pl
Description: Motyw potomny Astra dla klinika.digitalgo.pl (demo portfolio)
Author: Daria Katarzyna Krol
Author URI: https://digitalgo.pl
Template: astra
Version: 1.0.0
Text Domain: astra-child-klinika
*/

/* ============================================================ */
/* 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 {
    display: none !important;
}
.site-footer.footer-sml-devices,
.ast-small-footer {
    display: none !important;
}
#colophon {
    display: none !important;
}
body { padding-top: 0 !important; }

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600;6..96,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #FAF8F4;
  --cream-dark: #F1ECE2;
  --ink: #2B2620;
  --ink-soft: #6B6459;
  --sage: #5C6E5A;
  --sage-dark: #445243;
  --brass: #B08D57;
  --line: #E4DED2;
  --charcoal: #201D19;

  --display: 'Bodoni Moda', serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
a { color: inherit; }
a:hover { color: inherit !important; }
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(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--sage); }
.main-nav { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brass);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--sage-dark); }

.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: 1px; background: var(--ink); transition: 0.25s;
}
.mobile-toggle::before { top: 15px; }
.mobile-toggle span { top: 20px; }
.mobile-toggle::after { top: 25px; }
.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: 82px 0 0 0;
    background: var(--cream); flex-direction: column; padding: 40px 32px; gap: 28px;
    font-size: 1.2rem; z-index: 99; text-transform: none;
  }
  .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; padding: 90px 0 0; overflow: hidden; }
.hero-eyebrow {
  font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 22px; font-weight: 600;
}
.hero h1 {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.1; margin: 0 0 26px; max-width: 14ch;
}
.hero-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 44px; text-align: left; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; background: var(--sage); color: #fff; text-decoration: none;
  border-radius: 2px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  border-radius: 2px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  transition: 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }

.hero .btn-ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.hero .btn-ghost:hover {
    border-color: #fff !important;
}

.hero .hero-lede { color: var(--ink-soft) !important; }
.hero .hero-eyebrow { color: var(--brass) !important; }

.hero-photo-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 750px 900px at 0% 45%, var(--cream) 0%, var(--cream) 25%, rgba(250,248,244,0.6) 50%, rgba(250,248,244,0) 75%);
}

.below-hero-photo {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 420px;
    overflow: hidden;
}
.below-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Section shell ---------- */
.section { padding: 110px 0 80px; }
.section-tight { padding: 70px 0; }
.section-dark { background: var(--charcoal); color: #F1ECE2; }
.section-dark p { color: #B7B0A2; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; font-weight: 600; }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; max-width: 18ch; }
.section-link { text-decoration: none; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; white-space: nowrap; font-weight: 600; }

/* ---------- Treatment card ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--line); }
.treat-card {
  background: var(--cream); padding: 44px 36px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; min-height: 300px; transition: background 0.3s;
}
.treat-card:hover { background: #fff; }
.treat-num { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--brass); margin-bottom: 24px; }
.treat-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0 0 14px; }
.treat-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.treat-arrow { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

/* ---------- Philosophy / dark quote ---------- */
.philosophy { text-align: center; max-width: 800px; margin: 0 auto; }
.philosophy blockquote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; margin: 0 0 28px;
}
.philosophy cite { font-style: normal; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { text-align: left; }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; margin-bottom: 20px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin: 0 0 4px; }
.team-role { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brass); margin: 0 0 10px; font-weight: 600; }
.team-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 560px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-1 { grid-row: 1 / 3; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sage); color: #fff; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 2rem; margin: 0; max-width: 16ch; }
.btn-white { background: #fff; color: var(--sage-dark); text-decoration: none; padding: 15px 30px; border-radius: 2px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Booking form (kontakt) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 12px 0; }
.contact-row { display: flex; gap: 16px; padding: 20px 30px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); width: 90px; flex-shrink: 0; padding-top: 2px; font-weight: 600; }
.contact-row .v { font-weight: 500; }
.contact-row .v a { text-decoration: none; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; font-weight: 600; }
.form-field input, .form-field select {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 2px; padding: 0 15px;
  font-family: var(--body); font-size: 0.95rem; line-height: 48px; background: #fff; color: var(--ink);
}
.form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px;
  font-family: var(--body); font-size: 0.95rem; background: #fff; color: var(--ink);
  resize: vertical; min-height: 110px;
}
.form-submit {
  background: var(--sage); color: #fff; border: none; border-radius: 2px; padding: 15px 32px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--sage-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #B7B0A2; padding: 64px 0 32px; margin-top: 0px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #3A352E; margin-bottom: 28px; }
.footer-logo { font-family: var(--display); font-style: italic; color: #fff; font-size: 1.4rem; margin: 0 0 16px; }
.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.08em; color: #fff; margin: 0 0 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: #B7B0A2; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.78rem; color: #6E695E; 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); }

.groupon-strip {
    background: var(--cream-dark);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
    text-align: center;
}
.groupon-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 600;
    margin: 0 0 10px;
    text-align: center !important;
}
.groupon-text {
    color: var(--ink-soft);
    font-size: 0.92rem;
    max-width: 44ch;
    margin: 0 auto 18px;
    text-align: center;
}
.groupon-link {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff !important;
    background: #7CC000;
    padding: 12px 28px;
    border-radius: 4px;
    border: none;
    transition: background 0.2s;
}
.groupon-link:hover {
    background: #68A300;
}

.mobile-cta-band {
    display: none;
}

@media (max-width: 900px) {
  .treat-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery-item-1 { grid-row: auto; grid-column: 1 / 3; height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0 48px; }
}

@media (max-width: 900px) {
    body, #page, .hfeed.site {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    section.hero .btn-ghost {
        color: var(--ink) !important;
        border-color: var(--ink) !important;
    }

    .hero-photo-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        height: 480px;
        z-index: -1;
    }

    .hero .hero-photo-bg::after {
    background: radial-gradient(ellipse 420px 560px at 0% 35%, var(--cream) 0%, var(--cream) 28%, rgba(250,248,244,0.6) 50%, rgba(250,248,244,0) 70%) !important;
}

    .hero-overlay-text {
        position: relative;
        z-index: 2;
        padding-top: 40px;
    }

    .hero .hero-actions {
        display: none;
    }

    .mobile-cta-band {
        display: block;
        padding: 50px 0;
        text-align: center;
    }
    .mobile-cta-band .wrap {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    .mobile-cta-band .btn-primary,
    .mobile-cta-band .btn-ghost {
        display: flex;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        color: var(--ink);
        border-color: var(--ink);
    }
    .mobile-cta-band .btn-primary {
        color: #fff;
    }
}