/* ============================================================
   FIZIKA·ONLINE — dizajn inspirisan Calendly-jem
   Paleta izvučena iz fotografije (jesen, maslinasto zeleno)
   ============================================================ */

:root {
    /* Boje iz slike */
    --olive:       #4a5320;   /* pulover — primarna */
    --olive-deep:  #353d16;   /* tamnija verzija */
    --olive-soft:  #6b7433;   /* svetlija za hover */
    --gold:        #e8a93c;   /* jesenje lišće — akcenat */
    --gold-deep:   #d1901f;
    --sand:        #f4efe4;   /* kamel pantalone — pozadina sekcija */
    --cream:       #fbf9f3;   /* glavna pozadina */
    --ink:         #24281a;   /* tekst */
    --ink-soft:    #5c6150;   /* sekundarni tekst */
    --white:       #ffffff;
    --card-border: #e9e4d6;

    --radius:      18px;
    --radius-lg:   28px;
    --shadow-sm:   0 2px 8px rgba(52, 60, 22, .06);
    --shadow-md:   0 8px 28px rgba(52, 60, 22, .10);
    --transition:  .25s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .eyebrow, .logo, .price-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 96px 0; }
.bg-sand { background: var(--sand); }

/* ---------- Tipografija ---------- */
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--olive); position: relative; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
p  { color: var(--ink-soft); }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--olive);
    background: rgba(74, 83, 32, .09);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* ---------- Dugmad (Calendly stil) ---------- */
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 28px;
    border-radius: 999px;           /* pilaste */
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition), color var(--transition);
    text-align: center;
}
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn:hover { transform: translateY(-2px); }

.btn-accent {
    background: var(--gold);
    color: var(--olive-deep);
    box-shadow: 0 6px 18px rgba(232, 169, 60, .35);
}
.btn-accent:hover { background: var(--gold-deep); box-shadow: 0 10px 24px rgba(232, 169, 60, .45); }

.btn-primary {
    background: var(--olive);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(74, 83, 32, .28);
}
.btn-primary:hover { background: var(--olive-deep); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--card-border);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--olive); color: var(--olive); }

.btn-light {
    background: var(--white);
    color: var(--olive-deep);
    font-size: 1.05rem;
    padding: 16px 36px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.btn-light:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(251, 249, 243, .85);
    backdrop-filter: blur(12px);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { font-size: 1.35rem; font-weight: 800; color: var(--olive); }
.logo span { color: var(--gold-deep); font-weight: 600; }
.logo-light { color: var(--cream); }
.logo-light span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--olive); }

/* hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2.5px; background: var(--ink);
    border-radius: 2px; transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 85% 15%, rgba(232, 169, 60, .14), transparent),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(74, 83, 32, .08), transparent),
        var(--cream);
    padding: 150px 0 140px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.hero-text > p { font-size: 1.15rem; max-width: 480px; margin: 20px 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
    display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--card-border);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-size: 2rem; font-weight: 800; color: var(--olive); font-family: 'Plus Jakarta Sans';
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--gold-deep); }
.stat small { color: var(--ink-soft); font-size: .82rem; }

/* slika u hero-u */
.hero-image { position: relative; }
.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}
.hero-badge {
    position: absolute; bottom: -20px; left: -20px;
    background: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; gap: 2px;
    animation: float 4s ease-in-out infinite;
}
.hero-badge strong { font-size: .95rem; color: var(--ink); }
.hero-badge span { font-size: .8rem; color: var(--ink-soft); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* talas na danu hero-a */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; fill: var(--cream); }

/* ---------- Benefiti ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card, .service-card, .price-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover, .service-card:hover, .price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    background: var(--sand);
    border-radius: 16px;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.feature-card p { font-size: .95rem; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { margin-top: 12px; }

/* ---------- O meni ---------- */
.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.about-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.check-list { margin: 20px 0 32px; display: grid; gap: 10px; font-weight: 500; color: var(--ink); }
.check-list li::marker { content: ""; }

/* ---------- Usluge ---------- */
.service-card { display: flex; flex-direction: column; position: relative; }
.service-card h3 { font-size: 1.3rem; margin: 14px 0 16px; }
.service-card ul { display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.service-card li { color: var(--ink-soft); font-size: .95rem; padding-left: 18px; position: relative; }
.service-card li::before {
    content: "→";
    position: absolute; left: 0; color: var(--gold-deep); font-weight: 700;
}
.service-card.featured {
    border: 2px solid var(--olive);
    box-shadow: 0 12px 36px rgba(74, 83, 32, .16);
}

.service-tag {
    display: inline-block; align-self: flex-start;
    font-size: .75rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--sand); color: var(--ink-soft);
    padding: 5px 12px; border-radius: 999px;
}
.tag-gold { background: var(--gold); color: var(--olive-deep); }

/* ---------- Cene ---------- */
.price-card { text-align: center; position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.2rem; }
.price { margin: 18px 0 8px; display: flex; flex-direction: column; }
.price-num { font-size: 2.6rem; font-weight: 800; color: var(--olive); line-height: 1; }
.price-unit { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; font-family: 'Inter'; }
.price-card p { font-size: .92rem; margin-bottom: 28px; flex: 1; }
.price-card.featured { border: 2px solid var(--gold); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-card .service-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); align-self: center; }

/* ---------- Calendly ---------- */
.booking { background: var(--cream); }
.calendly-frame {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-q {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 26px;
    background: none; border: none; cursor: pointer;
    font-family: 'Plus Jakarta Sans'; font-size: 1.02rem; font-weight: 700;
    color: var(--ink); text-align: left;
}
.faq-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--sand);
    font-size: 1rem; color: var(--olive);
    transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-a p { padding: 0 26px 24px; font-size: .95rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
    text-align: center;
    padding: 88px 0;
}
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255, 255, 255, .75); margin: 16px 0 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--olive-deep); color: rgba(255, 255, 255, .75); }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 32px; padding: 56px 24px 32px;
}
.footer-brand p { color: rgba(255, 255, 255, .6); font-size: .9rem; margin-top: 12px; max-width: 340px; }
.footer-links { display: flex; gap: 28px; font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; padding-bottom: 32px; font-size: .85rem; }

/* ============================================================
   ANIMACIJE — scroll reveal
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1),
                transform .7s cubic-bezier(.4, 0, .2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; }
    .hero-image { max-width: 420px; margin: 0 auto; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        transform: translateY(-12px);
        opacity: 0; pointer-events: none;
        transition: var(--transition);
    }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 14px 24px; width: 100%; }
    .nav-links .btn { margin: 10px 24px; width: calc(100% - 48px); }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-6px); }
}

/* poštovanje prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge { animation: none; }
}