/* =========================================================
   modern.css — modernizacijski sloj za Camping Prapratno
   Učitava se NAKON style.css i responsive.css.
   Zadržava postojeće boje (#FF6600, #EA510D, dark header, cyan)
   i sav sadržaj — mijenja samo tipografiju i vizualni "feel".
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- 1. Tipografija ---------- */
body,
.bttn .btn,
input, textarea, select, button,
p, span, a, li, td, th, label, div {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.section-title h3,
.navbar-brand,
.header .navbar .navbar-nav .nav-item .nav-link {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Rev Slider natpisi koriste inline font-family: 'Roboto Condensed' */
[style*="Roboto Condensed"] {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0 !important;
}

/* Mekša, modernija tipografija — manje agresivni letter-spacing/uppercase */
body {
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: 16.5px;
    line-height: 1.75;
    word-spacing: normal;
    color: #5a5a5a;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.section-title h3 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.section-title p {
    font-size: 17px;
    line-height: 1.7;
}

/* Smanji pretjeran uppercase letter-spacing iz .ttu pravila (zadrži uppercase samo gdje ima smisla) */
.ttu, .section-title h3 {
    letter-spacing: -0.01em;
}
.header .navbar .navbar-nav .nav-item .nav-link {
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
}

/* ---------- 2. Header / navigacija ---------- */
.header .navbar.navbar-dark {
    background: rgba(20, 20, 20, 0.82);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}
.header .navbar .navbar-nav .nav-item .nav-link {
    transition: color 0.2s ease, background 0.2s ease;
}
.header .navbar .navbar-nav .nav-item.active .nav-link {
    border-radius: 6px;
}
/* sakrij stari dekorativni FontAwesome "caret" iznad nav linkova — djelovao je dotrajalo */
.header .navbar .navbar-nav .nav-item .nav-link:before {
    display: none !important;
}

/* ---------- 3. Gumbi ---------- */
.bttn .btn,
.btn-primary,
button[type="submit"],
input[type="submit"] {
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    padding: 14px 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.0);
}
.bttn .btn:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.28);
}

/* ---------- 4. Kartice / boxevi — mekši kutovi i sjene ---------- */
.port-box,
.features-box,
.price-box,
.blog-box,
.cta-box,
.aboutus-box,
.single-counter,
.contact-area .contact-form,
.footer-area .news-info {
    border-radius: 14px;
    overflow: hidden;
}

/* Generičke "bijele kartice" sadržaja (npr. 3 stupca ispod slidera) */
.container .row > [class*="col-"] > .text-center,
.container .row > [class*="col-"] > div[style*="box-shadow"] {
    border-radius: 14px;
}

/* Modernije sjene umjesto tvrdih */
[style*="box-shadow"] {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

img {
    border-radius: 10px;
}
/* logo i ikone ne zaokružuj */
.navbar-brand img,
img[src*="logo"],
img[src*="hr.png"],
img[src*="en.png"],
img[src*="icon"],
.flaticon,
img[width="24"] {
    border-radius: 0 !important;
}

/* ---------- 5. Forme / inputi ---------- */
input.form-control,
textarea.form-control,
select.form-control,
.form-control {
    border-radius: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: #FF6600 !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15) !important;
}

/* ---------- 6. Footer ---------- */
.footer-area {
    /* zadržava postojeću tamnu boju, samo malo mekša tipografija */
    letter-spacing: normal;
}
.footer-area a {
    transition: color 0.2s ease;
}

/* ---------- 7. Sitni detalji ---------- */
a {
    transition: color 0.2s ease;
}
hr {
    border-top-color: rgba(0, 0, 0, 0.08);
}
::selection {
    background: #FF6600;
    color: #fff;
}

/* glatko skrolanje za sidrene linkove u navigaciji */
html {
    scroll-behavior: smooth;
}

/* === Hero slider (zamjena za Revolution Slider) === */
.te-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 480px;
    overflow: hidden;
    background: #0a4a5e;
}
.te-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}
.te-hero-slide.is-active { opacity: 1; }
.te-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.te-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 24px 40px;
}
.te-hero-text {
    position: absolute;
    max-width: 880px;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}
.te-hero-text.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.te-hero-kicker {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 1.6vw, 17px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FF6600;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.te-hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 62px);
    line-height: 1.12;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}
.te-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.te-hero-dots button {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.te-hero-dots button.is-active {
    background: #FF6600;
    border-color: #FF6600;
    transform: scale(1.15);
}
.te-hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 3;
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    animation: te-hero-bounce 2s infinite;
}
@keyframes te-hero-bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@media (max-width: 767px) {
    .te-hero { height: 88vh; min-height: 420px; }
    .te-hero-scroll { display: none; }
}

/* === Facilities — modernizirane ikone === */
.feat .hitem {
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 34px 18px 28px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.feat .hitem:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(255,102,0,0.16);
}
/* Velike facility ikone (fa-3x) → okrugli "chip" s blagom narančastom pozadinom */
.feat .hitem .fa-3x {
    font-size: 1.6em !important;
    width: 64px;
    height: 64px;
    line-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,102,0,0.10);
    color: #FF6600 !important;
    margin: 0 4px 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.feat .hitem:hover .fa-3x {
    background: #FF6600;
    color: #fff !important;
    transform: scale(1.06);
}
/* Višestruke ikone u jednoj kartici (WC muški/ženski/invalidi) — malo manje */
.feat .hitem .fa-3x + .fa-3x {
    margin-left: 0;
}
.feat .hitem h4 {
    margin-top: 4px;
    font-size: 1.05rem;
}
/* Tommy logo ostaje netaknut — to je <img>, ne ciljamo ga */
.feat .hitem img {
    max-height: 54px;
    width: auto;
    margin-bottom: 8px;
}

/* === Feature kartice ispod heroja — uzdignute IZNAD heroja ===
   .features-body već ima transform: translateY(-59px), ali roditeljska sekcija
   i hero (.te-hero) stvarali su stacking koji ih je gurnuo iza heroja.
   Eksplicitni z-index podiže ih sigurno na vrh. */
.te-hero { z-index: 1; }
.feature-action {
    position: relative;
    z-index: 5;
}
.features-area .features-body {
    z-index: 6;
    position: relative;
}
/* Sjenu malo pojačati da se vidi odvajanje od heroja */
.features-area .features-body {
    box-shadow: 0 18px 50px -10px rgba(0,0,0,0.28) !important;
    border-radius: 14px;
    overflow: hidden;
}

/* Izjednači visinu sve tri kartice bez obzira na dužinu teksta.
   SEE MORE / Saznaj više dugme se uvijek poravna na dno. */
.feature-action .features-area .row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}
.feature-action .features-area .row > [class*="col-"] {
    display: flex !important;
    align-items: stretch;
}
.feature-action .features-area .features-body {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
}
.feature-action .features-area .features-box {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}
.feature-action .features-area .features-elements {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.feature-action .features-area .features-elements .bttn {
    margin-top: auto !important;
}

/* Brute-force fallback: ako iz nekog razloga flex-stretching ne radi
   (browser cache, override, itd.) — sve tri kartice imaju isti min-height. */
@media (min-width: 992px) {
    .feature-action .features-area .features-body {
        min-height: 360px;
    }
}
