﻿/* =========================================================
   ELARIS WEBSITE CSS
   Premium turistička agencija za vile i kuće za odmor
   ========================================================= */


/* =========================================================
   01. ROOT VARIABLES
   Boje, sjene, radiusi i širine stranice
   ========================================================= */

:root {
    --blue: #062b5f;
    --blue-2: #0a3d7a;
    --gold: #b99155;
    --gold-2: #d8c19b;
    --ink: #14213d;
    --muted: #617087;
    --bg: #f7f4ef;
    --white: #ffffff;
    --line: rgba(6, 43, 95, .12);
    --shadow: 0 24px 60px rgba(6, 43, 95, .12);
    --radius: 24px;
    --max: 1160px;
}


/* =========================================================
   02. RESET / BASE
   Osnovne postavke stranice
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}


/* =========================================================
   03. ACCESSIBILITY
   Skip link za tipkovnicu i screen readere
   ========================================================= */

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--blue);
    color: var(--white);
    border-radius: 999px;
}

    .skip-link:focus {
        left: 12px;
    }


/* =========================================================
   04. GLOBAL LAYOUT
   Container i sekcije
   ========================================================= */

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

section {
    padding: 92px 0;
}


/* =========================================================
   05. TYPOGRAPHY
   Naslovi, lead tekst i osnovni tekstualni stilovi
   ========================================================= */

h1,
h2,
h3 {
    line-height: 1.08;
    color: var(--blue);
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(42px, 6vw, 78px);
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.035em;
}

h3 {
    font-size: 24px;
    letter-spacing: -.02em;
}

.lead {
    font-size: clamp(18px, 2vw, 22px);
    color: #33415f;
    margin: 0 0 28px;
    max-width: 690px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 16px;
}


/* =========================================================
   06. TOPBAR
   Gornja informativna traka
   ========================================================= */

.topbar {
    background: var(--blue);
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}

    .topbar .container {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 8px 0;
        flex-wrap: wrap;
    }


/* =========================================================
   07. HEADER / NAVIGATION
   Logo, navigacija i sticky header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 200px;
}

    .brand img {
        width: 48px;
        height: 52px;
        object-fit: contain;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .18em;
    color: var(--blue);
    font-size: 30px;
    text-transform: uppercase;
}

.brand-sub {
    margin-top: 6px;
    color: var(--gold);
    letter-spacing: .16em;
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: #26334d;
}

nav a {
    text-decoration: none;
}

    nav a:hover {
        color: var(--blue-2);
    }


/* =========================================================
   08. BUTTONS
   CTA gumbi
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(6, 43, 95, .22);
}

    .btn-primary:hover {
        background: var(--blue-2);
    }

    .btn-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 110deg, transparent 0%, rgba(255, 255, 255, .18) 42%, transparent 70% );
        transform: translateX(-120%);
        transition: transform .65s ease;
    }

    .btn-primary:hover::after {
        transform: translateX(120%);
    }

.btn-secondary {
    background: rgba(185, 145, 85, .14);
    color: var(--blue);
    border: 1px solid rgba(185, 145, 85, .35);
}

.btn-light {
    background: var(--white);
    color: var(--blue);
}


/* =========================================================
   09. HERO SECTION
   Glavna naslovna sekcija s pozadinskom slikom
   Slika mora biti u:
   wwwroot/assets/img/elaris-hero.png
   ========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient( 90deg, rgba(6, 22, 39, 0.92) 0%, rgba(6, 22, 39, 0.82) 34%, rgba(6, 22, 39, 0.52) 58%, rgba(6, 22, 39, 0.18) 100% ), url('/assets/img/elaris-hero.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--white);
}

    /* Dodatni overlay za premium dubinu i bolju čitljivost */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient(circle at 20% 30%, rgba(185, 145, 85, 0.20), transparent 34%), linear-gradient(180deg, rgba(6, 22, 39, 0.10), rgba(6, 22, 39, 0.32));
        pointer-events: none;
    }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 720px) 1fr;
    gap: 54px;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 96px 0;
}

/* Hero tekst mora biti bijel jer je preko slike */
.hero h1 {
    color: var(--white);
    max-width: 820px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero .lead {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
}

.hero .eyebrow {
    color: var(--gold-2);
}

/* Hero CTA gumbi */
.hero .btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

    .hero .btn-primary:hover {
        background: #c8a66d;
    }

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

    .hero .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.20);
    }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 32px 0;
}


/* =========================================================
   10. HERO TRUST CARDS
   Male kartice ispod CTA gumba
   ========================================================= */

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
    max-width: 720px;
}

.trust-card {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

    .trust-card strong {
        display: block;
        color: var(--gold-2);
        font-size: 24px;
        line-height: 1.1;
    }

    .trust-card span {
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
    }


/* =========================================================
   11. HERO OLD VISUAL CARD
   Stara ilustracijska kartica.
   Skrivamo je u hero sekciji jer sada hero ima pravu pozadinsku sliku.
   HTML može ostati isti.
   ========================================================= */

.hero .visual-card {
    display: none;
}


/* =========================================================
   12. VISUAL CARD COMPONENT
   Ostavljeno ako se koristi negdje drugdje na webu
   ========================================================= */

.visual-card {
    position: relative;
    background: linear-gradient(160deg, var(--blue), #0b3f81);
    border-radius: 34px;
    padding: 28px;
    min-height: 520px;
    box-shadow: var(--shadow);
    color: var(--white);
    overflow: hidden;
}

    .visual-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
        background-size: 34px 34px;
    }

.villa-card {
    position: relative;
    height: 100%;
    border-radius: 26px;
    background: linear-gradient(rgba(10, 35, 72, .16), rgba(10, 35, 72, .38)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 680"><rect fill="%23f7f4ef" width="900" height="680"/><path fill="%23d8c19b" d="M0 500c180-80 320-80 500-10s280 40 400-20v210H0z"/><path fill="%23062b5f" d="M180 390h420v170H180z"/><path fill="%230a3d7a" d="M130 398l270-190 270 190z"/><rect fill="%23ffffff" x="245" y="430" width="70" height="80"/><rect fill="%23ffffff" x="365" y="430" width="70" height="80"/><rect fill="%23ffffff" x="485" y="430" width="70" height="80"/><circle fill="%23b99155" cx="720" cy="130" r="62"/></svg>') center / cover;
    min-height: 464px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
}

.floating-panel {
    position: relative;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border-radius: 22px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-metric {
    padding: 12px;
    background: #f6f8fb;
    border-radius: 14px;
}

    .mini-metric b {
        display: block;
        color: var(--blue);
        font-size: 20px;
    }

    .mini-metric small {
        color: var(--muted);
    }


/* =========================================================
   13. SECTION HEADERS
   Uvodni tekstovi sekcija
   ========================================================= */

.section-head {
    max-width: 780px;
    margin-bottom: 42px;
}

    .section-head p {
        color: var(--muted);
        font-size: 18px;
        margin: 0;
    }


/* =========================================================
   14. CARDS
   Kartice za modele, usluge i prednosti
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 35px rgba(6, 43, 95, .06);
}

    .card .num {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(185, 145, 85, .14);
        color: var(--gold);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .card ul {
        padding-left: 19px;
        margin: 18px 0 0;
        color: #43516b;
    }

    .card li + li {
        margin-top: 8px;
    }


/* =========================================================
   15. BACKGROUND HELPERS
   Pomoćne klase za pozadinu sekcija
   ========================================================= */

.bg-soft {
    background: var(--bg);
}

.blue-section {
    background: linear-gradient(135deg, var(--blue), #0a3d7a);
    color: var(--white);
}

    .blue-section h2,
    .blue-section h3 {
        color: var(--white);
    }

    .blue-section p {
        color: rgba(255, 255, 255, .82);
    }


/* =========================================================
   16. SPLIT LAYOUT
   Dvostupčani layout za tekst + značajke
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 48px;
    align-items: center;
}


/* =========================================================
   17. FEATURE LIST
   Prednosti, tehnologija, transparentnost
   ========================================================= */

.feature-list {
    display: grid;
    gap: 14px;
}

.feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}

    .feature p {
        margin: 4px 0 0;
        color: var(--muted);
    }

.icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}


/* =========================================================
   18. PROCESS
   Koraci suradnje
   ========================================================= */

.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.step {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 22px;
}

    .step strong {
        color: var(--gold-2);
        font-size: 28px;
        display: block;
    }


/* =========================================================
   19. SERVICE AREAS / KEYWORD GRID
   Sekcije za usluge i SEO područja
   ========================================================= */

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-area {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}


/* =========================================================
   20. FAQ
   Česta pitanja
   ========================================================= */

.faq {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--blue);
}

details p {
    color: var(--muted);
    margin: 12px 0 0;
}


/* =========================================================
   21. CONTACT
   Kontakt forma i kontakt blokovi
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.contact-box {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 700;
    color: var(--blue);
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(6, 43, 95, .18);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    margin-top: 6px;
    background: var(--white);
}

textarea {
    min-height: 128px;
    resize: vertical;
}

.note {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}


/* =========================================================
   22. BLOG
   Blog kartice i layout
   ========================================================= */

.blog-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 35px rgba(6, 43, 95, .06);
}

    .blog-card.featured {
        background: linear-gradient(135deg, #fff, #f8f4ec);
    }

.blog-meta {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--muted);
}

.blog-card a.read-more {
    margin-top: auto;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.blog-side {
    display: grid;
    gap: 22px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .topic-tags span {
        border: 1px solid rgba(185, 145, 85, .35);
        background: rgba(185, 145, 85, .10);
        color: var(--blue);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 700;
    }


/* =========================================================
   23. FOOTER
   Donji dio stranice
   ========================================================= */

footer {
    background: #061f43;
    color: rgba(255, 255, 255, .78);
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 28px;
}

footer a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}

footer h2,
footer h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .footer-brand img {
        width: 48px;
        height: 52px;
        object-fit: contain;
    }

.legal {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
}


/* =========================================================
   24. ANIMATIONS
   Lagane animacije, nenametljive i performance friendly
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.float-soft {
    animation: floatSoft 7s ease-in-out infinite;
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================================
   25. HOVER EFFECTS
   Hover efekti za kartice i elemente
   ========================================================= */

.card,
.service-area,
.feature,
.blog-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .card:hover,
    .service-area:hover,
    .feature:hover,
    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 44px rgba(6, 43, 95, .10);
        border-color: rgba(185, 145, 85, .34);
    }


/* =========================================================
   26. REDUCED MOTION
   Za korisnike koji ne žele animacije
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   27. RESPONSIVE - TABLET
   Layout za tablete i manje ekrane
   ========================================================= */

@media (max-width: 980px) {
    nav ul {
        display: none;
    }

    .hero {
        min-height: auto;
        background: linear-gradient( 180deg, rgba(6, 22, 39, 0.90) 0%, rgba(6, 22, 39, 0.78) 55%, rgba(6, 22, 39, 0.56) 100% ), url('/assets/img/elaris-hero.png');
        background-size: cover;
        background-position: center right;
    }

    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding: 90px 0 72px;
    }

    .cards,
    .process,
    .footer-grid,
    .blog-layout {
        grid-template-columns: 1fr 1fr;
    }

    .visual-card {
        min-height: auto;
    }
}


/* =========================================================
   28. RESPONSIVE - MOBILE
   Layout za mobitele
   ========================================================= */

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, var(--max));
    }

    .brand-sub {
        display: none;
    }

    .topbar .container {
        justify-content: center;
        text-align: center;
    }

    .hero {
        background: linear-gradient( 180deg, rgba(6, 22, 39, 0.94) 0%, rgba(6, 22, 39, 0.84) 55%, rgba(6, 22, 39, 0.66) 100% ), url('/assets/img/elaris-hero.png');
        background-size: cover;
        background-position: center;
    }

    .hero-grid {
        padding: 72px 0 58px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 56px);
    }

    .hero .lead {
        font-size: 18px;
    }

    .trust-row,
    .cards,
    .process,
    .keyword-grid,
    .footer-grid,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 66px 0;
    }
}
