/* =========================================================
   Igraonica Moja Roda — stylesheet
   Playful, child-friendly design. Mobile-first.
   ========================================================= */

:root {
    --coral:      #ff5e7e;
    --coral-dark: #ef3f63;
    --orange:     #ff9f43;
    --yellow:     #ffd34e;
    --teal:       #18c5c0;
    --teal-dark:  #0fa39e;
    --purple:     #7c5cff;
    --ink:        #2c2150;
    --ink-soft:   #5a5475;
    --cream:      #fff8f0;
    --tint:       #fff1f4;
    --white:      #ffffff;
    --border:     #f0e6df;

    --shadow-sm: 0 4px 14px rgba(44, 33, 80, .08);
    --shadow-md: 0 14px 38px rgba(44, 33, 80, .12);
    --shadow-lg: 0 24px 60px rgba(44, 33, 80, .18);

    --radius:    18px;
    --radius-lg: 28px;

    --head: 'Baloo 2', system-ui, sans-serif;
    --body: 'Nunito', system-ui, sans-serif;

    --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--head); font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
    color: var(--teal-dark);
    background: rgba(24, 197, 192, .12);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--head); font-weight: 700; font-size: 1rem;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(255, 94, 126, .4); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--coral-dark); border-color: var(--coral); }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--coral-dark); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 248, 240, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 65px; width: auto; display: block; }
.brand-logo--footer { height: 100px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 { font-family: var(--head); font-size: .68rem; letter-spacing: .22em; color: var(--teal-dark); font-weight: 700; }
.brand-line2 { font-family: var(--head); font-size: 1.35rem; font-weight: 800; color: var(--ink); }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    font-family: var(--head); font-weight: 600; color: var(--ink);
    padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.site-nav a:hover { text-decoration: none; background: var(--tint); color: var(--coral-dark); }
.site-nav a.active { color: var(--coral-dark); }
.nav-cta { background: var(--coral); color: #fff !important; box-shadow: 0 8px 16px rgba(255,94,126,.35); }
.nav-cta:hover { background: var(--coral-dark) !important; }
.nav-social { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.social-btn {
    display: inline-grid; place-items: center;
    transition: transform .18s ease, filter .2s ease;
}
.social-btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.08); filter: saturate(1.15); }
.social-btn svg { width: 32px; height: 32px; }
.social-btn--ig { color: #d62976; }

.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 110px; background: linear-gradient(160deg, #fff4ec 0%, #ffe9f0 55%, #eafcfb 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: .25em; }
.accent { color: var(--coral); }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--head); font-size: 1.5rem; color: var(--purple); }
.hero-stats span { font-size: .9rem; color: var(--ink-soft); }

.hero-blobs .blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 1; }
.blob--1 { width: 280px; height: 280px; background: var(--yellow); top: -60px; right: 8%; }
.blob--2 { width: 220px; height: 220px; background: var(--teal); bottom: -40px; left: -40px; }
.blob--3 { width: 160px; height: 160px; background: var(--coral); top: 40%; right: 40%; opacity: .35; }

.hero-card {
    position: relative; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; width: 100%;
    border-radius: 40% 60% 58% 42% / 48% 42% 58% 52%;
    box-shadow: var(--shadow-lg); overflow: hidden;
    border: 6px solid #fff;
    animation: morph 12s ease-in-out infinite;
}
.hero-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.floaty { position: absolute; font-size: 2.4rem; animation: bob 4s ease-in-out infinite; }
.floaty--1 { top: 6%; left: 8%; animation-delay: .2s; }
.floaty--2 { bottom: 8%; left: 14%; animation-delay: 1s; }
.floaty--3 { top: 12%; right: 6%; animation-delay: 1.6s; }
.floaty--4 { bottom: 12%; right: 8%; animation-delay: .6s; }

@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes morph {
    0%,100% { border-radius: 40% 60% 58% 42% / 48% 42% 58% 52%; }
    50% { border-radius: 58% 42% 40% 60% / 55% 58% 42% 45%; }
}

/* ---------- Wave divider ---------- */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider path { fill: var(--cream); }
.wave-divider--light path { fill: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.about-media {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 6px solid #fff;
}
.about-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.about-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); background: #fff; }
.about-photo img { width: 100%; height: 350px; object-fit: cover; display: block; }
.about-photo figcaption { font-family: var(--head); font-weight: 600; color: var(--ink-soft); text-align: center; padding: 14px 16px; }
@media (max-width: 700px) { .about-gallery { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 24px; height: 24px; background: var(--teal); color: #fff;
    border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
    background: var(--white); border-radius: var(--radius-lg); padding: 30px 24px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    margin-bottom: 16px; background: var(--tint); color: var(--coral-dark);
}
.card-icon svg { width: 32px; height: 32px; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    padding: 36px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    text-align: center; display: flex; flex-direction: column;
}
.price-card--featured {
    border: 2px solid var(--coral); box-shadow: var(--shadow-md); transform: translateY(-8px);
    background: linear-gradient(170deg, #fff, var(--tint));
}
.badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--coral); color: #fff; font-family: var(--head); font-weight: 700;
    font-size: .8rem; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price { margin: 10px 0 18px; }
.price strong { font-family: var(--head); font-size: 2.8rem; color: var(--purple); display: block; }
.price span { color: var(--ink-soft); font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; text-align: left; }
.price-card ul li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonials .cards { grid-template-columns: repeat(3, 1fr); }
.quote-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stars { color: var(--yellow); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p { font-style: italic; color: var(--ink); }
.quote-author { font-family: var(--head); font-weight: 700; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--purple), var(--coral)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- Map ---------- */
.map-embed {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 6px solid #fff;
    line-height: 0;
}
.map-embed iframe { width: 100%; height: 440px; border: 0; display: block; filter: saturate(1.05); }
@media (max-width: 560px) { .map-embed iframe { height: 320px; } }

/* ---------- Blizanci ---------- */
.blizanci-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.blizanci-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.blizanci-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.blizanci-text .btn { margin-top: 8px; }
@media (max-width: 920px) { .blizanci-inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; padding: 70px 0 90px; text-align: center;
    background: linear-gradient(160deg, #fff4ec, #ffe9f0 60%, #eafcfb);
}
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 36em; margin-inline: auto; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.gallery-item {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius); aspect-ratio: 1/1;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    background: var(--white); cursor: zoom-in;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,33,80,.35), transparent 55%);
    opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: var(--coral); box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(8px) scale(.85);
    transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translateY(0) scale(1); }
.gallery-zoom svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 14, 40, .9); backdrop-filter: blur(6px);
    padding: 24px; animation: lb-fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-figure img {
    max-width: 92vw; max-height: 80vh; width: auto; height: auto;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
}
.lb-figure figcaption {
    color: #fff; font-family: var(--head); font-weight: 600;
    margin-top: 14px; font-size: 1.05rem;
}
.lb-close, .lb-nav {
    position: absolute; z-index: 1001;
    border: none; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.14); border-radius: 50%;
    display: grid; place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--coral); transform: scale(1.08); }
.lb-close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.6rem; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .lb-nav { width: 44px; height: 44px; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------- Empty state (gallery) ---------- */
.empty-state {
    text-align: center; max-width: 540px; margin: 0 auto; padding: 50px 30px;
    background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius-lg);
}
.empty-emoji { margin-bottom: 12px; color: var(--coral); }
.empty-emoji svg { width: 72px; height: 72px; margin: 0 auto; }
.empty-state p { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
    flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tint);
    display: grid; place-items: center; color: var(--coral-dark);
}
.ci-icon svg { width: 22px; height: 22px; }
.contact-form-wrap {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.hp-field {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { font-family: var(--head); font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
    font-family: var(--body); font-size: 1rem; padding: 12px 14px;
    border: 2px solid var(--border); border-radius: 12px; background: var(--cream);
    transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,94,126,.15); background: #fff;
}
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--success { background: #e3f9ee; color: #0e7a4a; border: 1px solid #b8ecd0; }
.alert--error { background: #fdecef; color: #c0263f; border: 1px solid #f7c7d0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--darkteal); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding: 60px 0 40px; }
.brand--footer .brand-line2, .brand--footer .brand-line1 { color: var(--teal-dark); }
.footer-brand p { color: var(--ink-soft); max-width: 16em; }
.footer-col h3 { color: var(--teal-dark); font-size: 1.05rem; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.fc-icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--teal); }
.footer-links a, .footer-contact a { color: var(--darkteal)}
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); text-decoration: none; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; color: #fff; margin-top: 14px; font-weight: 700; }
.footer-ig:hover { color: var(--yellow); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: .9rem; color: #9a92bd; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-inner, .about-inner, .contact-grid { grid-template-columns: 1fr; }
    .hero-card { order: -1; max-width: 300px; }
    .cards, .price-cards, .testimonials .cards { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .site-nav {
        position: fixed; inset: 76px 0 auto 0; background: var(--cream);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .site-nav ul { flex-direction: column; align-items: stretch; padding: 14px 22px 22px; gap: 4px; }
    .site-nav a { display: block; padding: 12px 14px; }
    .nav-ig a { padding: 12px 14px; }
    .nav-toggle:checked ~ .site-nav { max-height: 460px; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .section { padding: 56px 0; }
    .cards, .price-cards, .testimonials .cards, .form-grid { grid-template-columns: 1fr; }
    .price-card--featured { transform: none; }
    .hero-stats { gap: 18px; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
}
