/* Forum Nekretnine – site styles */
:root {
    --navy: #0f2a5c;
    --navy-deep: #0a1d42;
    --blue: #3a7bc8;
    --gold: #c9a35b;
    --ink: #1c2433;
    --muted: #5d6879;
    --line: #e3e7ee;
    --bg: #f5f7fa;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(15 42 92 / .06), 0 8px 24px rgb(15 42 92 / .07);
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}

.brand-logo { height: 64px; width: auto; }
.header-right { display: flex; align-items: center; gap: 20px; }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
}
.brand:hover { text-decoration: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.lang { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 999px; }
.lang a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 999px;
}
.lang a:hover { text-decoration: none; color: var(--navy); }
.lang a.active { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgb(58 123 200 / .45), transparent 60%),
        linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #16407f);
    overflow: hidden;
}
.hero::after {
    /* stylizirani obris zgrada */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background:
        linear-gradient(to top, rgb(255 255 255 / .06), transparent),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.06' d='M0 120V80h60V50h40v30h50V30h70v50h40V60h60v20h50V20h30l20-15 20 15h30v60h60V45h80v35h40V55h50v25h60V10h70v70h50V40h60v40h70V60h50v20h60V35h50v85z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-block: 88px 120px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.hero h1 {
    margin: 0 auto;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: 1.05;
    letter-spacing: .01em;
    color: #c9a35b;
}

.tagline {
    margin: 26px auto 36px;
    max-width: 32ch;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 500;
    line-height: 1.3;
    color: #cfe0f7;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    color: var(--navy-deep);
    background: var(--gold);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgb(0 0 0 / .18);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: #d8b46d; transform: translateY(-1px); }

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: 1.15fr .85fr 1.2fr;
    gap: 24px;
    margin-top: -56px;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.card h2 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    align-self: flex-start;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: #eef3fa;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-list div { display: flex; flex-direction: column; min-width: 0; }
.contact-list strong { color: var(--ink); font-weight: 600; }
.contact-list a { font-weight: 500; overflow-wrap: anywhere; }
.label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
address { font-style: normal; }

.hours dl { margin: 0; display: grid; gap: 16px; }
.hours dl > div {
    background: var(--bg);
    border-radius: 12px;
    padding: 18px 20px;
}
.hours dt { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hours dd { margin: 4px 0 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: lining-nums; }

.map {
    flex: 1;
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }
.map-link { margin-top: 14px; font-weight: 500; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #aebbd2;
    font-size: .88rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-block: 22px;
    flex-wrap: wrap;
}
.site-footer a { color: #fff; }

.error-page { padding-block: 80px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .map-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .header-inner { height: 68px; }
    .brand-logo { height: 46px; }
    .brand-name { font-size: 1.3rem; }
    .hero-inner { padding-block: 56px 96px; }
    .cards { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
    .card { padding: 22px; }
    .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}
