/* =============================================================
   ODVJETNIK SVEBOR MILKOVIĆ — style.css

   FONT: Trenutno se koristi 'Chakra Petch' kao vizualni placeholder
   za 'Microgramma' (geometrijski sans, sličan karaktera Eurostile/
   Microgramma). Kad klijent dostavi licencu i font datoteke, dodaj
   @font-face blok ispod i zamijeni vrijednost --font-primary.
   ============================================================= */

/* @font-face — MICROGRAMMA (aktiviraj kad klijent dostavi licence)
@font-face {
    font-family: 'Microgramma';
    src: url('fonts/Microgramma-Bold.woff2') format('woff2'),
         url('fonts/Microgramma-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/

/* ---- CSS VARIJABLE ---- */
:root {
    --black:       #000000;
    --dark:        #1a1a1a;
    --card-bg:     #2a2a2a;
    --gold:        #b8972a;
    --gold-light:  #d4a832;
    --white:       #ffffff;
    --text-muted:  #aaaaaa;
    --border:      #333333;

    /* Zamijeni 'Chakra Petch' s 'Microgramma' kad klijent dostavi font */
    --font-primary: 'Chakra Petch', sans-serif;

    --header-height: 72px;
    --transition: 0.28s ease;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: var(--font-primary);
}

/* =====================================================================
   HEADER
   ===================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.logo-m {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}

.logo-pretitle {
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

.logo-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* ---- Navigacija ---- */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Language switcher ---- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-sep {
    color: var(--border);
    font-size: 0.72rem;
    user-select: none;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0;
    transition: color var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--gold);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hero slika — zamijeni URL kad klijent dostavi finalnu fotografiju */
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: heroFadeIn 1.2s ease both;
}

.hero-m {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 80px rgba(184, 151, 42, 0.25);
}

.hero-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.25rem;
    gap: 0.3rem;
}

.hero-pretitle {
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-fullname {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   SEKCIJE — zajedničko
   ===================================================================== */
.section {
    padding: 6rem 0;
    border-top: 1px solid var(--gold);
    scroll-margin-top: var(--header-height);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3.5rem;
}

/* =====================================================================
   KARTICE — grid
   ===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 28px rgba(184, 151, 42, 0.12);
}

.card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.card-list li {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    padding-left: 1.25rem;
    position: relative;
}

.card-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.8;
}

/* =====================================================================
   KONTAKT
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

/* ---- Kontakt info ---- */
.contact-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.contact-details p {
    font-size: 0.78rem;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.contact-address {
    color: var(--text-muted) !important;
    margin-bottom: 0.4rem;
}

.contact-label {
    color: var(--text-muted);
    margin-right: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-details a {
    color: var(--white);
    transition: color var(--transition);
}

.contact-details a:hover {
    color: var(--gold);
}

.contact-bank {
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    margin-top: -0.3rem;
}

/* ---- Gumbi ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---- Forma ---- */
.contact-form-wrap {
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 151, 42, 0.12);
}

/* ---- Poruka forme ---- */
.form-message {
    margin-top: 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(184, 151, 42, 0.08);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.form-message.error {
    display: block;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid #c0392b;
    color: #e55039;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    border-top: 1px solid var(--gold);
    padding: 2rem;
    text-align: center;
}

.footer-copy {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* =====================================================================
   ANIMACIJE — scroll fade-in
   ===================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered ulaz kartica */
.cards-grid .card:nth-child(2)  { transition-delay: 0.05s; }
.cards-grid .card:nth-child(3)  { transition-delay: 0.10s; }
.cards-grid .card:nth-child(4)  { transition-delay: 0.15s; }
.cards-grid .card:nth-child(5)  { transition-delay: 0.20s; }
.cards-grid .card:nth-child(6)  { transition-delay: 0.25s; }
.cards-grid .card:nth-child(7)  { transition-delay: 0.30s; }
.cards-grid .card:nth-child(8)  { transition-delay: 0.35s; }
.cards-grid .card:nth-child(9)  { transition-delay: 0.40s; }
.cards-grid .card:nth-child(10) { transition-delay: 0.45s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablet: 2 stupca kartica */
@media (max-width: 960px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Hamburger menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
        z-index: 999;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 0.25em;
    }

    .lang-btn {
        font-size: 1rem;
    }

    .lang-sep {
        font-size: 1rem;
    }

    /* Parallax ne radi dobro na iOS */
    .hero {
        background-attachment: scroll;
    }

    .section {
        padding: 4rem 0;
    }

    .header-inner {
        padding: 0 1.25rem;
    }
}

/* Mobitel: 1 stupac — bez equaliziranja visina */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: unset !important;
    }

    .logo-m {
        font-size: 2.2rem;
    }

    .logo-name {
        font-size: 0.68rem;
    }

    .section-title {
        font-size: 0.82rem;
        letter-spacing: 0.15em;
        margin-bottom: 2.5rem;
    }

    .contact-grid {
        gap: 2rem;
    }
}
