/* =========================================================
   DR EDIT – Pedijatrijska ordinacija / Gyermekorvosi rendelő
   Main stylesheet
   ========================================================= */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #fdfaf8;
    --surface:    #f5ede6;
    --primary:    #5ba9a6;
    --primary-dk: #3d8a87;
    --primary-dkr:#2a6462;
    --secondary:  #3d8a87;
    --accent:     #e0f0ef;
    --text:       #2c2c2c;
    --muted:      #6b7280;
    --border:     #ddd5c8;
    --radius:     16px;
    --shadow:     0 4px 24px rgba(61,138,135,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
}

/* ---- Navigation ---- */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253,250,248,0.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--muted);
    font-size: 0.875rem; padding: 0.4rem 0.9rem;
    border-radius: 999px; transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--accent); color: var(--text); }
.nav-links li.cta a {
    background: var(--primary); color: #fff;
    font-weight: 600; padding: 0.45rem 1.2rem;
}
.nav-links li.cta a:hover { background: var(--primary-dk); }

/* Language switcher */
.lang-switch {
    display: flex; align-items: center;
    gap: 0.1rem; font-size: 0.75rem; font-weight: 700;
    border: 1.5px solid var(--border); border-radius: 999px;
    overflow: hidden; flex-shrink: 0;
}
.lang-switch a, .lang-switch span {
    padding: 0.25rem 0.6rem;
    text-decoration: none; color: var(--muted);
    transition: background 0.15s, color 0.15s;
}
.lang-switch .lang-active {
    background: var(--primary); color: #fff;
}
.lang-switch a:hover { background: var(--accent); color: var(--text); }

/* ---- Buttons ---- */
.btn-fill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--primary); color: #fff;
    text-decoration: none; padding: 0.8rem 1.6rem;
    border-radius: 999px; font-weight: 700; font-size: 0.95rem;
    transition: background 0.18s, transform 0.18s;
}
.btn-fill:hover { background: var(--primary-dk); transform: translateY(-2px); }
.btn-fill.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.875rem; width: 100%; justify-content: center; }
.btn-fill.btn-sm:hover { transform: none; }
.btn-outline {
    display: inline-flex; align-items: center;
    background: transparent; color: var(--secondary);
    text-decoration: none; padding: 0.8rem 1.6rem;
    border-radius: 999px; font-weight: 700; font-size: 0.95rem;
    border: 2px solid var(--secondary); transition: background 0.18s, color 0.18s;
}
.btn-outline:hover { background: var(--secondary); color: #fff; }

/* ---- Wave divider ---- */
.wave { width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; width: 100%; height: 56px; }

/* ---- Section layout ---- */
section { padding: 5rem 2rem; }
.inner { max-width: 1120px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-eyebrow {
    display: inline-block;
    background: var(--accent); color: var(--primary-dk);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.28rem 0.9rem;
    border-radius: 999px; margin-bottom: 0.7rem;
}
.sec-head h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800; color: var(--text); margin-bottom: 0.6rem;
}
.sec-head p { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ---- Hero (homepage) ---- */
.hero {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3rem;
    padding: 5rem 2rem 3rem; max-width: 1120px; margin: 0 auto;
}
.hero-eyebrow {
    display: inline-block;
    background: var(--accent); color: var(--primary-dk);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.3rem 1rem;
    border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800; line-height: 1.15; color: var(--text); margin-bottom: 1rem;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 420px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-photo {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden; aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- About ---- */
.about { background: var(--surface); }
.about-grid {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 4rem; align-items: center;
}
.about-photo-zone {
    width: 260px; height: 300px;
    border-radius: calc(var(--radius) * 2);
    box-shadow: var(--shadow); margin: 0 auto;
    overflow: hidden;
}
.about-photo-zone img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top; display: block;
}
.about-text h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800; color: var(--text); margin-bottom: 0.3rem;
}
.about-text .role { color: var(--primary); font-weight: 600; font-size: 1rem; margin-bottom: 1.4rem; }
.about-text p { color: var(--muted); margin-bottom: 0.9rem; line-height: 1.8; }
.stats { display: flex; gap: 2.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem 1.5rem;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-icon { font-size: 2.2rem; margin-bottom: 0.9rem; display: block; }
.svc-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.svc-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.svc-featured { border-top: 3px solid var(--primary); }
.svc-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    margin-top: 1rem; font-size: 0.825rem; font-weight: 700;
    color: var(--primary); text-decoration: none;
    transition: gap 0.15s, color 0.15s;
}
.svc-link:hover { gap: 0.55rem; color: var(--primary-dk); }

/* ---- Za roditelje / Szülőknek ---- */
.parents { background: var(--surface); }
.parents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.parent-card {
    background: var(--bg); border-radius: var(--radius);
    padding: 1.75rem 1.5rem; border-left: 4px solid var(--primary);
    display: flex; flex-direction: column;
}
.parent-card h3 { font-size: 0.975rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.parent-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.parent-card ul li {
    font-size: 0.875rem; color: var(--muted);
    padding-left: 1.4rem; position: relative; line-height: 1.5;
}
.parent-card ul li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--primary); font-weight: 700;
}
.card-more {
    display: inline-block; margin-top: 1.1rem;
    font-size: 0.8rem; font-weight: 700;
    color: var(--primary); text-decoration: none; transition: color 0.15s;
}
.card-more:hover { color: var(--primary-dk); text-decoration: underline; }

/* ---- Hours ---- */
.hours-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
.day {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem 0.5rem; text-align: center;
}
.day.open { border-color: rgba(91,169,166,0.45); }
.day.closed { opacity: 0.45; }
.d-name {
    display: block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); margin-bottom: 0.45rem;
}
.d-time { display: block; font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.day.closed .d-time { color: var(--muted); font-weight: 400; }

/* ---- Contact ---- */
.contact { background: var(--surface); }
.contact-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5); padding: 3rem;
    max-width: 580px; margin: 0 auto; text-align: center;
    box-shadow: var(--shadow);
}
.big-phone {
    display: inline-block; font-size: 2rem; font-weight: 800;
    color: var(--primary); text-decoration: none;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.25rem; margin-bottom: 1.25rem;
    transition: color 0.18s;
}
.big-phone:hover { color: var(--primary-dk); }
.contact-card address {
    font-style: normal; color: var(--muted);
    line-height: 1.8; margin-bottom: 1.5rem;
}
.contact-card address a { color: var(--primary); text-decoration: none; }
.contact-card address a:hover { text-decoration: underline; }
.contact-note {
    font-size: 0.875rem; color: var(--muted);
    background: var(--surface); border-radius: 10px;
    padding: 1rem 1.25rem; line-height: 1.7; text-align: left;
    margin-bottom: 1.5rem;
}
.map-embed {
    border-radius: 12px; overflow: hidden;
    margin-top: 1.5rem; line-height: 0;
}
.map-embed iframe {
    width: 100%; height: 440px; border: 0; display: block;
}

/* ---- Footer ---- */
footer {
    background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary-dkr) 100%);
    color: #fff; text-align: center; padding: 3rem 2rem 2.5rem;
}
.footer-logo { margin-bottom: 1.25rem; }
.footer-logo img { height: 48px; }
.footer-links {
    display: flex; justify-content: center; gap: 1.5rem;
    flex-wrap: wrap; margin-bottom: 1.5rem; list-style: none;
}
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }
.footer-name { font-size: 0.825rem; opacity: 0.85; margin-bottom: 0.4rem; }
.footer-legal { font-size: 0.72rem; opacity: 0.6; letter-spacing: 0.04em; }
.footer-privacy { margin-top: 0.75rem; }
.footer-privacy a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.72rem; }
.footer-privacy a:hover { color: #fff; text-decoration: underline; }

/* ---- Subpage: page banner ---- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
    padding: 3.5rem 2rem 2.5rem; color: #fff;
}
.page-banner .inner { max-width: 1120px; margin: 0 auto; }
.breadcrumb {
    font-size: 0.8rem; opacity: 0.75; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }
.page-banner h1 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem;
}
.page-banner p { font-size: 1rem; opacity: 0.85; max-width: 560px; }

/* ---- Subpage: content layout ---- */
.content-wrap {
    max-width: 1120px; margin: 0 auto;
    padding: 4rem 2rem;
    display: grid; grid-template-columns: 1fr 300px;
    gap: 4rem; align-items: start;
}

/* ---- Subpage: article ---- */
article h2 {
    font-size: 1.35rem; font-weight: 800;
    color: var(--text); margin: 2rem 0 0.75rem;
}
article h2:first-child { margin-top: 0; }
article p { color: var(--muted); line-height: 1.85; margin-bottom: 1.1rem; font-size: 1rem; }
article p strong { color: var(--text); font-weight: 600; }

.age-blocks { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.age-block {
    display: grid; grid-template-columns: 130px 1fr;
    gap: 1rem; align-items: start;
    background: var(--surface); border-radius: var(--radius);
    border-left: 4px solid var(--primary); padding: 1.1rem 1.25rem;
}
.age-label {
    font-size: 0.825rem; font-weight: 800; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.1rem;
}
.age-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.age-desc strong { color: var(--text); }

.article-img {
    float: right; margin: 0 0 1.5rem 2rem;
    width: 220px; border-radius: calc(var(--radius) * 1.5);
    box-shadow: var(--shadow); overflow: hidden;
}
.article-img img { width: 100%; display: block; }
.article-img figcaption {
    font-size: 0.72rem; color: var(--muted);
    text-align: center; padding: 0.5rem 0.75rem;
    background: var(--surface);
}

.disclaimer {
    background: var(--accent); border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    font-size: 0.82rem; color: var(--primary-dkr); line-height: 1.65;
    border-left: 4px solid var(--primary);
}

/* ---- Subpage: sidebar ---- */
aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid var(--border);
}
.aside-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.9rem; }
.aside-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.75rem; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.aside-links li a {
    font-size: 0.85rem; color: var(--primary); text-decoration: none;
    display: flex; align-items: center; gap: 0.4rem;
}
.aside-links li a:hover { color: var(--primary-dk); text-decoration: underline; }

/* ---- Vaccination timeline ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0.75rem; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
    position: absolute; left: calc(-2rem - 5.5px); top: 0.7rem;
    width: 14px; height: 14px;
    background: var(--primary); border: 3px solid var(--bg);
    border-radius: 50%; box-shadow: 0 0 0 2px var(--primary);
}
.tl-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.4rem;
    transition: box-shadow 0.18s;
}
.tl-card:hover { box-shadow: var(--shadow); }
.tl-age {
    display: inline-block;
    background: var(--accent); color: var(--primary-dk);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.2rem 0.75rem;
    border-radius: 999px; margin-bottom: 0.6rem;
}
.tl-vaccines { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.tl-vaccines li {
    font-size: 0.9rem; color: var(--text);
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.tl-vaccines li::before {
    content: '💉'; font-size: 0.75rem; margin-top: 0.15rem; flex-shrink: 0;
}
.tl-vaccines .vac-note { font-size: 0.82rem; color: var(--muted); }
.tl-group-label {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    margin: 2rem 0 1rem; padding-left: 0.25rem;
}
.tl-group-label:first-child { margin-top: 0; }

/* ---- Gallery / Splide ---- */
.gallery { background: var(--surface); }

.splide { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.splide__slide picture { display: block; }
.splide__slide img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* Arrow positioning — duplicated here so it works if only splide-core is loaded */
.splide__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1;
    background: rgba(253,250,248,0.88);
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    opacity: 1; transition: background 0.18s;
}
.splide__arrow--prev { left: 1rem; }
.splide__arrow--next { right: 1rem; }
.splide__arrow--prev svg { transform: scaleX(-1); }
.splide__arrow svg { fill: var(--primary-dk); width: 1.1rem; height: 1.1rem; }
.splide__arrow:hover:not(:disabled) { background: #fff; }
.splide__arrow:disabled { opacity: 0.3; }

/* Pagination positioning + sizing */
.splide__pagination {
    position: absolute; bottom: 0.75rem; left: 0; right: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; pointer-events: none;
    margin: 0; padding: 0;
}
.splide__pagination li { display: inline-block; list-style: none; margin: 0; pointer-events: auto; }
.splide__pagination__page {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
    display: inline-block; cursor: pointer; margin: 0 5px;
    background: rgba(255,255,255,0.55); opacity: 1;
    transition: transform 0.2s, background 0.2s;
}
.splide__pagination__page.is-active { background: #fff; transform: scale(1.35); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .nav-links li.cta { display: none; }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3.5rem; }
    .hero-photo { max-width: 400px; margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-sub { margin: 0 auto 2rem; }
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .stats { justify-content: center; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .parents-grid { grid-template-columns: 1fr; }
    .hours-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    .content-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .article-img { float: none; width: 100%; margin: 0 0 1.5rem; max-width: 380px; }
}
@media (max-width: 600px) {
    nav { padding: 0.75rem 1.25rem; }
    section { padding: 3.5rem 1.25rem; }
    .svc-grid { grid-template-columns: 1fr; }
    .hours-row { grid-template-columns: repeat(3, 1fr); }
    .contact-card { padding: 2rem 1.5rem; }
    .big-phone { font-size: 1.5rem; }
    .content-wrap { padding: 2.5rem 1.25rem; }
    .age-block { grid-template-columns: 1fr; gap: 0.35rem; }
    .timeline { padding-left: 1.5rem; }
    .tl-dot { left: -2rem; }
    .nav-links { gap: 0.2rem; }
    .nav-links a { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
}
