/* Professional Polished CSS - Inspired by Modern Professional Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a3a5f;
    --primary-medium: #2c5a7f;
    --primary-light: #3a6a9f;
    --accent-blue: #4a8bc2;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

/* Header and Navigation */
header {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0 1rem;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0;
}

nav ul li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
    display: inline-block;
    border: 1px solid transparent;
    box-sizing: border-box;
}

nav a:hover,
nav a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* Language Selector */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    overflow: visible;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
    margin: 0;
}

.lang-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
    box-sizing: border-box;
}

.lang-link:hover,
.lang-link:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.lang-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.lang-link::after {
    display: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.6rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background-color: var(--primary-dark);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
}

/* Invisible prostor ispod dropdown linka da se izbjegne treperenje */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
    border: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
}

.dropdown-menu a::after {
    display: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
    font-weight: normal;
}

.breadcrumb a {
    color: var(--primary-medium);
    text-decoration: none;
    font-weight: 500;
    border-bottom: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-medium);
}

/* Typography */
h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--primary-dark);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin: 1.75rem 0 1rem;
    color: var(--primary-medium);
    line-height: 1.4;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    max-width: 70ch;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    max-width: 100%;
    line-height: 1.6;
    font-weight: 400;
}

/* Links */
a {
    color: var(--primary-medium);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover,
a:focus {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-medium);
    outline: none;
}

/* Lists */
ul, ol {
    margin-left: 1.75rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
    line-height: 1.7;
}

ul li::marker {
    color: var(--primary-medium);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-medium);
    max-width: 100%;
    margin: 0 auto 2rem;
    max-width: 800px;
}

/* Story Section */
.story-section {
    background-color: var(--bg-light);
    padding: 4rem 3rem;
    border-radius: 12px;
    margin: 4rem 0;
    box-shadow: var(--shadow-sm);
}

.story-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 600;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-image {
    text-align: center;
}

.story-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-medium);
    box-shadow: var(--shadow-md);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    max-width: 100%;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: #fff;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover,
.btn:focus {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-medium);
    color: var(--primary-medium);
}

.btn-secondary:hover {
    background: var(--primary-medium);
    color: #fff;
}

/* Features List */
.features-list {
    list-style: none;
    margin-left: 0;
    max-width: 70ch;
}

.features-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-medium);
    font-weight: bold;
    font-size: 1.3rem;
    top: -2px;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-medium);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.faq-item h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.faq-item p {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-homepage {
    margin: 3rem 0;
    padding: 2rem 0;
}

.faq-homepage h2 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.faq-homepage h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-medium);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    max-width: 650px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 4px rgba(44, 90, 127, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

/* Language Combination Section */
.language-combination {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.language-combination ul {
    max-width: 100%;
}

.language-combination li {
    font-size: 1.05rem;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.why-choose h2 {
    text-align: center;
    margin-top: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #e8f0f8 0%, #d4e4f4 100%);
    padding: 3.5rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta h2 {
    margin-top: 0;
    font-size: 2.25rem;
}

.cta p {
    max-width: 100%;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 3rem 1.5rem 2rem;
    margin-top: 5rem;
}

footer p {
    margin-bottom: 1.5rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

footer nav {
    margin-top: 1.5rem;
}

footer nav ul {
    gap: 1.5rem;
    justify-content: center;
}

footer nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer nav a:hover,
footer nav a:focus {
    color: #fff;
    opacity: 1;
    outline: none;
}

footer nav a::after {
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 968px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }
    
    .language-selector {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .story-section {
        padding: 3rem 2rem;
    }
    
    .story-section h2 {
        font-size: 2rem;
    }
    
    .cta {
        padding: 2.5rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .story-section {
        padding: 2rem 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    nav,
    .btn,
    .contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .hero {
        background: white;
        box-shadow: none;
    }
}
