/* Avaluo Design System - Tanker.hr Inspired */
:root {
    /* Color Palette */
    --color-primary: #24393A;
    /* Avaluo Brand Teal */
    /* Tanker Purple */
    --color-secondary: #060606;
    /* Rich Black */
    --color-text: #191919;
    --color-text-light: #555555;
    --color-white: #FFFFFF;
    --color-bg-light: #F7F7F7;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 100px;

    /* Typography */
    --font-stack: 'Jost', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.py-lg {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.py-xl {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.section-title {
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
    border-radius: 0;
    /* Boxy like Tanker */
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* Header (Tanker Layout) */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 90px;
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    position: relative;
    padding: 10px 0;
}

/* Numbered Navigation */
/* Numbered Navigation - Removed numbers as requested */
nav a::before {
    content: '';
    /* content: attr(data-number); */
    font-size: 10px;
    color: var(--color-primary);
    margin-right: 0;
    font-weight: 700;
}

nav a:hover,
nav a.active {
    color: var(--color-primary);
}

.header-cta {
    margin-left: 20px;
}

/* Hero Section (Split/Asymmetric) */
.hero {
    position: relative;
    padding: 150px 0 100px;
    background: #fdfdfd;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
    padding-right: 50px;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-light);
    margin: 20px 0 30px;
}

/* Page Header (Subpages) */
.page-header {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 6, 0.7);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 42px;
}

.page-header .subtitle {
    color: #ccc;
    font-size: 18px;
}

/* Grid Systems */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Service Card (Icon Top) */
.service-icon-box {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.service-icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary);
}

.service-icon-box h3 {
    margin-top: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 15px;
}

.service-icon-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.service-icon-box p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Content Sections */
.about-section {
    background: var(--color-bg-light);
}

/* Footer (Tanker Dark) */
footer {
    background-color: var(--color-secondary);
    color: #888;
    padding: 80px 0 40px;
    font-size: 14px;
}

footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: #888;
}

footer a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}


.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    color: #555;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {

    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .hero-bg {
        width: 100%;
        height: 300px;
        position: relative;
        clip-path: none;
        order: -1;
    }

    .hero {
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        padding: 50px 20px;
    }
}

@media (max-width: 576px) {

    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Contact Section & Form */
.contact-section {
    position: relative;
    background: #fff;
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info-block p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-details-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details-item strong {
    min-width: 100px;
    color: var(--color-secondary);
    display: block;
}

/* Form Styles */
.contact-form {
    background: var(--color-bg-light);
    padding: 50px;
    border-radius: 4px;
    /* Slight roundness or 0 for strict Tanker style */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-secondary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: all 0.3s;
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(137, 66, 142, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    nav.active ul {
        display: flex;
    }

    .header-cta {
        display: none;
        /* Hide button in mobile menu for cleaner look or style it differently */
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Service Card Icons */
.service-icon-box img.service-icon {
    width: 60px;
    height: 60px;
    object-fit: none;
    /* Using as sprite */
    margin-bottom: 20px;
}

/* Define sprite positions - assuming 4 quadrant layout in 1024x1024 img */
.icon-procjena {
    object-position: 0 0;
}

.icon-etaziranje {
    object-position: 100% 0;
}

.icon-legal {
    object-position: 0 100%;
}

.icon-savjet {
    object-position: 100% 100%;
}


/* Refactored Service Cards for Images */
/* Refactored Service Cards */
.service-icon-box {
    display: flex;
    flex-direction: column;
}

/* Image Cards (Homepage) */
a.service-icon-box {
    padding: 0;
}

/* Text Cards (Subpages like Etaziranje) */
div.service-icon-box {
    padding: 30px;
}

.service-icon-box img.service-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.service-content {
    padding: 30px;
}

.service-icon-box h3 {
    margin-top: 0;
    /* Reset margin since it's in a padded container now */
}


/* Extra small devices (phones, less than 400px) */
@media (max-width: 400px) {
    header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 0 10px;
    }

    .logo img {
        height: 25px;
        /* Even smaller for very narrow screens */
    }

    .menu-toggle {
        transform: scale(0.9);
    }
}

/* Typography Enhancement */
.about-section h2 {
    font-weight: 300;
    /* More elegant, lighter weight */
    letter-spacing: 1px;
}

/* Mobile Footer Fix - Moved to end */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Featured Service Layout (New Homepage) */
.featured-service {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: all 0.3s ease;
}

.featured-service:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary);
}

.featured-image-container {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.featured-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.featured-list {
    margin-top: 20px;
}

.featured-list h4 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 15px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-list ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.featured-list li {
    margin-bottom: 5px;
}

/* Other Services Grid (Smaller squares below) */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .featured-service {
        flex-direction: column;
    }

    .featured-image-container {
        height: 300px;
        min-height: auto;
    }

    .featured-content {
        padding: 30px;
    }

    .other-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .other-services-grid {
        grid-template-columns: 1fr;
    }
}