/**
 * Ribarske Večeri - Design System
 * Minimalistička paleta boja - samo 3 boje
 * 
 * Colors (Uprošćena paleta):
 * Primary: #009FE3 (Dunav plava - za sve akcione elemente, navigaciju, linkove, dugmad)
 * Text: #1D1D1B (Tamno siva - za sve tekstove)
 * Background: #FFFFFF (Bela - za pozadinu)
 * White: #FFFFFF (Bela - za tekst na tamnoj pozadini)
 * 
 * Fonts:
 * Heading: 'Merriweather', serif (težine: 700, 900)
 * Body: 'Source Sans Pro', sans-serif (težine: 400, 600)
 */

/* ===============================================
   Font Import
=============================================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Source+Sans+Pro:wght@400;600&display=swap');

/* ===============================================
   CSS Variables & Root - MINIMALISTIČKA PALETA
=============================================== */
:root {
    /* Glavna boja - za sve akcione elemente */
    --primary-color: #009FE3;
    
    /* Boja teksta - za sve tekstove */
    --text-color: #1D1D1B;
    
    /* Boja pozadine - bela */
    --background-color: #FFFFFF;
    
    /* Bela - za tekst na tamnoj pozadini */
    --white: #FFFFFF;
    
    /* Tipografija */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Osnovne veličine */
    --base-font-size: 16px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===============================================
   Typography
=============================================== */

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--base-font-size);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Svi naslovi koriste boju iz logoa - Bakarno-narandžasta */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: #C05E2D;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

strong, b {
    font-weight: 600;
}

/* Linkovi koriste primarnu boju */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--primary-color);
    opacity: 0.8;
    text-decoration: underline;
}

/* ===============================================
   Navigation - Glavni Meni
=============================================== */

/* Navbar - bela pozadina */
.navbar {
    background-color: var(--background-color) !important;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-dark {
    background-color: var(--background-color) !important;
}

.bg-primary-dark {
    background-color: var(--background-color) !important;
}

/* Navbar linkovi - primarna boja */
.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-color) !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-nav .nav-link i {
    font-size: 0.9em;
    margin-right: 0.5rem;
}

/* Hover efekti - svetlija primarna boja */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 159, 227, 0.1);
    text-decoration: none;
}

/* Underline efekat */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Dropdown menu */
.navbar-nav .dropdown-menu {
    background-color: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(0, 159, 227, 0.1);
    color: var(--primary-color);
}

.navbar-nav .dropdown-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.navbar-nav .dropdown-item:hover i {
    color: var(--primary-color);
}

/* Navbar toggler */
.navbar-toggler {
    border-color: var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 159, 227, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    max-height: 100px;
    height: auto;
    width: auto;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ===============================================
   Topbar
=============================================== */

.topbar {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.topbar a,
.topbar .text-white,
.topbar i,
.topbar .topbar-link {
    color: var(--white) !important;
}

.topbar a:hover,
.topbar .topbar-link:hover {
    color: var(--white) !important;
    opacity: 0.8;
}

.topbar-separator {
    color: rgba(255, 255, 255, 0.5);
}

.topbar .social-icon {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.topbar .social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border-color: var(--white);
}

/* ===============================================
   Section Title
=============================================== */

.section-title {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.section-title h2.title,
.section-title h1.title {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-color); /* Primarna boja za glavni tekst */
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(192, 94, 45, 0.1);
    border-left: 4px solid #C05E2D;
    border-radius: var(--radius-md);
}

.section-title h2.title span,
.section-title h1.title span {
    font-style: italic;
    font-weight: 700;
    color: #C05E2D; /* Bakarno-narandžasta za span */
    position: relative;
    z-index: 1;
}

.section-title h5 {
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
    color: #C05E2D;
}

.section-title .title-desc {
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.67;
    margin-bottom: 1rem;
    color: var(--text-color);
    margin-top: var(--spacing-sm);
}

.section-title .title-header {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title.with-desc .title-header {
    margin-bottom: 3.25rem;
}

.section-title.with-desc .title-header:before {
    width: 3.25rem;
    bottom: -1.25rem;
    height: 4px;
    left: 0;
    top: auto;
    position: absolute;
    content: '';
    background-color: #C05E2D;
    border-radius: 2px;
}

.section-title.with-desc.text-center .title-header:before {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
}

.section-title.text-right.with-desc .title-header:before {
    left: auto;
    right: 0;
    margin-left: 0;
}

/* ===============================================
   Buttons
=============================================== */

button, .btn, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    font-weight: 700;
}

.btn {
    padding: 12px 32px;
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Primarna dugmad */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color);
    opacity: 0.9;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Sekundarna dugmad */
.btn-secondary {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ===============================================
   Mobile Menu (Offcanvas)
=============================================== */

.offcanvas.bg-primary-dark {
    background-color: var(--background-color) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
    color: var(--primary-color) !important;
}

.mobile-nav .nav-link {
    color: var(--primary-color) !important;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background-color: rgba(0, 159, 227, 0.1);
    color: var(--primary-color) !important;
}

/* ===============================================
   Footer
=============================================== */

.footer-modern,
.footer-modern.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.footer-modern .text-white,
.footer-modern h5,
.footer-modern h4,
.footer-modern h3 {
    color: var(--white) !important;
}

.footer-modern .text-white-50,
.footer-modern .footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-modern .footer-link:hover {
    color: var(--white) !important;
    opacity: 1;
}

.footer-modern .text-secondary {
    color: var(--white) !important;
    opacity: 0.8;
}

.footer-bottom,
.footer-bottom.bg-primary-dark {
    background-color: var(--primary-color) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .text-white,
.footer-bottom .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-bottom a {
    color: var(--white) !important;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

.social-icon {
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white) !important;
}

/* ===============================================
   Responsive Typography & Mobile Styles
=============================================== */
@media (max-width: 768px) {
    /* Typography */
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    
    /* Section Title - iste boje kao desktop */
    .section-title h2.title,
    .section-title h1.title {
        font-size: 1.75rem;
        padding: 0.4rem 1rem;
        color: #C05E2D;
        background-color: rgba(192, 94, 45, 0.1);
        border-left: 4px solid #C05E2D;
    }
    
    .section-title h2.title span,
    .section-title h1.title span {
        color: #C05E2D;
    }
    
    .section-title h5 {
        color: #C05E2D;
    }
    
    /* Navbar - iste boje kao desktop */
    .navbar {
        background-color: var(--background-color) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(0, 159, 227, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-toggler {
        border-color: var(--primary-color);
    }
    
    /* Topbar - iste boje kao desktop */
    .topbar {
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
    }
    
    .topbar a,
    .topbar .text-white,
    .topbar i,
    .topbar .topbar-link {
        color: var(--white) !important;
    }
    
    .topbar-separator {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .topbar .social-icon {
        color: var(--white) !important;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    /* Mobile Menu - iste boje kao desktop navbar */
    .offcanvas.bg-primary-dark {
        background-color: var(--background-color) !important;
    }
    
    .offcanvas-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .offcanvas-title {
        color: var(--primary-color) !important;
    }
    
    .mobile-nav .nav-link {
        color: var(--primary-color) !important;
    }
    
    .mobile-nav .nav-link:hover,
    .mobile-nav .nav-link.active {
        background-color: rgba(0, 159, 227, 0.1);
        color: var(--primary-color) !important;
    }
}
