/*
Theme Name: Logofonika
Theme URI: https://logofonika.rs
Author: Miloš (za Ivana Ivankovića)
Description: Namenska tema za sajt logopedske prakse Logofonika. Lagana, bez roditeljske teme.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: logofonika
*/

/* ================= DESIGN TOKENS ================= */
:root {
  --brand:        #17788A;
  --brand-dark:   #0F5563;
  --brand-soft:   #E4F1F3;
  --accent:       #F4A259;
  --accent-soft:  #FCE9D6;
  --ink:          #1E2B30;
  --muted:        #566469;
  --bg:           #FFFFFF;
  --bg-alt:       #F1F7F8;
  --line:         #E1EAEC;
  --white:        #FFFFFF;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 3px rgba(15, 85, 99, .08), 0 1px 2px rgba(15, 85, 99, .06);
  --shadow-md:    0 8px 24px rgba(15, 85, 99, .10);
  --shadow-lg:    0 18px 48px rgba(15, 85, 99, .16);

  --container:    1120px;
  --font-head:    "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ================= RESET-ISH ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: .3rem 0; }

/* ================= LAYOUT ================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .6rem;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--accent { background: var(--accent); color: #3a2410; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #ef9542; }

/* ================= NOTICE BAR ================= */
.site-notice {
  background: var(--accent);
  color: #3a2410;
  font-size: .87rem;
  line-height: 1.4;
  text-align: center;
  padding: 8px 0;
}
.site-notice a { color: var(--brand-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-notice a:hover { text-decoration: underline; }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.site-brand { display: inline-flex; align-items: center; gap: .55rem; }
.site-brand img, .site-brand svg { height: 42px; width: auto; }
.site-brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; color: var(--ink); }
.site-brand:hover { text-decoration: none; }

/* full logo lockup */
.brand-full { display: inline-block; }
.brand-full__img { display: block; height: auto; max-width: 100%; }
.brand-lockup { width: min(320px, 68%); margin: 0 auto 24px; }
.site-footer__logo-chip { display: inline-block; background: #fff; padding: 14px 20px; border-radius: 14px; }
.site-footer__logo-chip .brand-full__img { width: 168px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: .5rem .85rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--brand-soft); text-decoration: none; color: var(--brand-dark); }
.site-nav a.current { color: var(--brand-dark); font-weight: 600; }
.site-nav .btn { margin-left: 8px; padding: .6rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* nav dropdown */
.nav-group { position: relative; }
.nav-group__top::after { content: "▾"; font-size: .7em; margin-left: .35em; vertical-align: middle; }
.nav-group__menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 6px; display: none; z-index: 120;
}
.nav-group:hover .nav-group__menu,
.nav-group:focus-within .nav-group__menu { display: block; }
.nav-group__menu a { display: block; padding: .55rem .8rem; border-radius: 7px; font-size: .93rem; }
.nav-group__menu a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }

/* ================= HERO ================= */
.hero { padding: clamp(52px, 7vw, 96px) 0; background:
  radial-gradient(1100px 420px at 78% -8%, var(--brand-soft), transparent 60%),
  radial-gradient(760px 360px at 6% 108%, var(--accent-soft), transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin-bottom: .5rem; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px;
}
.hero__card h3 { margin-bottom: .2rem; }
.hero__meta { display: grid; gap: 14px; margin-top: 8px; }
.hero__meta div { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; }
.hero__meta svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }

/* ================= CARDS / GRID ================= */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--brand-dark);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ================= PAGE CONTENT ================= */
.page-hero { padding: clamp(40px, 5vw, 66px) 0 clamp(24px, 3vw, 36px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose--wide { max-width: 900px; }

/* ================= VIDEO (edukacija) ================= */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  aspect-ratio: 16 / 9; background: #0a2e36; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.video-card video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 940px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ================= ABOUT (foto logopeda) ================= */
.about__photos { position: relative; }
.about__photos::before {
  content: ""; position: absolute; right: -16px; top: -16px;
  width: 60%; aspect-ratio: 1 / 1; background: var(--brand-soft);
  border-radius: 26px; z-index: 0;
}
.about__photo-main {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.about__photo-inset {
  position: absolute; z-index: 2; right: -20px; bottom: -28px;
  width: 45%; height: auto; border-radius: var(--radius);
  border: 6px solid var(--white); box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) {
  .about { gap: 40px !important; }
  .about__photos { margin-bottom: 14px; }
  .about__photo-inset { right: -6px; bottom: -16px; width: 40%; border-width: 4px; }
}

/* ================= BIO PORTRAIT + GALERIJA ================= */
.bio-portrait {
  float: right; width: 44%; max-width: 300px; margin: 6px 0 18px 30px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .bio-portrait { float: none; width: 100%; max-width: none; margin: 0 0 18px; }
}

.photo-gallery { columns: 3; column-gap: 16px; }
.photo-gallery a {
  display: block; margin: 0 0 16px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); break-inside: avoid;
}
.photo-gallery img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.photo-gallery a:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .photo-gallery { columns: 2; } }
@media (max-width: 520px) { .photo-gallery { columns: 1; } }

/* ================= SUBNAV (podsekcije) ================= */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.subnav a {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.subnav a:hover { background: var(--brand); color: var(--white); text-decoration: none; }

.card__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--brand); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: 12px;
}

/* ================= MEDIA / CALLOUT ================= */
.media-wide {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.figure { margin: 0 0 34px; }
.figure figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }

.callout {
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 22px 26px; margin: 8px 0 0;
}
.callout h3 { margin-bottom: .5rem; }
.callout ul { margin: 0; padding-left: 1.2rem; }
.callout li { margin: .35rem 0; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.contact-list b { display: block; font-family: var(--font-head); }
.contact-list a { color: var(--ink); }

/* ================= FOOTER ================= */
.site-footer { background: var(--brand-dark); color: #D6E9EC; padding: 48px 0 28px; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand p { color: #A9CDD3; font-size: .93rem; margin: .6rem 0 0; }
.site-footer nav { display: grid; gap: 8px; font-size: .95rem; }
.site-footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #9BC3CA; }

/* ================= MAINTENANCE (sajt u pripremi) ================= */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; text-align: center; background:
  radial-gradient(900px 380px at 70% 0%, var(--brand-soft), transparent 62%),
  radial-gradient(680px 320px at 10% 100%, var(--accent-soft), transparent 55%); }
.maint__inner { max-width: 520px; }
.maint__mark { width: 82px; height: 82px; margin: 0 auto 22px; }
.maint__logo { width: min(280px, 72vw); height: auto; margin: 0 auto 26px; display: block; }
.maint h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); }
.maint p { color: var(--muted); }
.maint__contact { margin-top: 26px; display: inline-grid; gap: 10px; font-family: var(--font-head); font-weight: 500; }
.maint__contact a { color: var(--brand-dark); }

/* ================= UTIL ================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .site-nav.is-open .btn { margin: 8px 0 0; justify-content: center; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav-group__menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-group__top::after { display: none; }
}

/* ================= VEŽBE / ACCORDION ================= */
.ex { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--white); overflow: hidden; }
.ex > summary {
  cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ex > summary::-webkit-details-marker { display: none; }
.ex > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.ex[open] > summary::after { content: "\2013"; }
.ex[open] > summary { border-bottom: 1px solid var(--line); }
.ex__body { padding: 6px 20px 22px; }
.ex__body h4 { font-family: var(--font-head); margin: 20px 0 6px; font-size: .95rem; color: var(--brand-dark); }
.wordlist { color: var(--muted); font-size: .95rem; line-height: 1.95; margin: 0; }
.wordlist--cols { columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .wordlist--cols { columns: 1; } }
