@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #B8860B;
    /* Dark Goldenrod */
    --primary-light: #DAA520;
    --bg-dark: #0A0A0A;
    --bg-card: #161616;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header (Two-bar Layout) */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0;
    text-align: center;
}

.header-top span {
    margin: 0 1.5rem;
}

/* Navigation */
.header-main {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    /* Ensure alignment */
}

.nav-links li {
    position: relative;
    /* For dropdown positioning */
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    /* Add padding for better hover target */
}

.nav-links a:hover {
    color: var(--primary-light);
    /* Changed from --accent to --primary-light */
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-dark);
    min-width: 350px;
    /* Widened to fit long keywords */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-top: 2px solid var(--primary);
    /* Changed from --accent to --primary */
    top: 100%;
    /* Position right below the parent li */
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    /* Slightly smaller text for submenu */
}

.dropdown-content a:hover {
    background-color: rgba(184, 134, 11, 0.1);
    /* Subtle background on hover */
    color: var(--primary-light);
    /* Changed from --accent to --primary-light */
    padding-left: 20px;
    /* Slight transition effect */
}

.nav-links li a {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero {
    height: 110vh !important;
    /* Forces 110vh override */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../img/osnovni-hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    /* Slightly smaller than 4rem, but elegant */
    font-weight: 700;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 0;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Feature Wrapper (Full Width Breakout) */
.feature-wrapper-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.feature-wrapper-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Reduced opacity (more visible image) */
    z-index: 0;
}

.feature-wrapper-bg .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Feature List tweaks for dark background */
.feature-wrapper-bg h2 {
    color: #fff !important;
    /* Force white title on dark bg */
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list li {
    background: rgba(30, 30, 30, 0.9);
    /* Less transparent (more solid) */
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--accent);
    color: #ddd;
}

.feature-list li strong {
    color: #fff;
    /* Ensure bold text is white and visible */
    font-weight: 700;
}

/* Services Grid */
.services {
    padding: 2rem 0 10rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.service-card {
    height: 480px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-card);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-content {
    padding: 3rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Backgrounds */
.card-church {
    background: url('../img/kategorija-cerkev.png') center/cover;
}

.card-funeral {
    background: url('../img/kategorija-pokopalisce.png') center/cover;
}

.card-healthcare {
    background: url('../img/kategorija-zdravstvo.png') center/cover;
}

.card-meeting {
    background: url('../img/kategorija-sejna-soba.png') center/cover;
}

.card-evac {
    background: url('../img/kategorija-evac.png') center/cover;
}

.card-school {
    background: url('../img/kategorija-sole-v2.png') center/cover;
}

.card-hospitality {
    background: url('../img/kategorija-gostinstvo.png') center/cover;
}

.card-stadium {
    background: url('../img/kategorija-stadion.png') center/cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.3);
}

/* Footer Refined */
footer {
    background: #030303;
    padding: 8rem 0 3rem;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    margin-bottom: 6rem;
}

.footer-col h4 {
    margin-bottom: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.footer-col p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .header-contact {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
}

/* Clients Carousel Section */
.clients-section {
    padding: 20px 0;
    background-color: #ffffff;
    overflow: hidden;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.clients-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.clients-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 1rem;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 90s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    flex-shrink: 0;
}

.client-logo img {
    max-width: 100%;
    max-height: 100px;
    filter: none;
    opacity: 1;
    transition: none;
}


.client-logo-text {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logo-text:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .clients-section h2 {
        font-size: 1.8rem;
    }

    .client-logo,
    .client-logo-text {
        width: 180px;
        padding: 0 25px;
    }
}

/* Gallery Grid for Subpages */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}