@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;
}

.header-main {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
    height: 60px;
    /* Thinner header */
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 44px;
    /* Slightly larger for SVG */
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.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: 85vh;
    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: 120px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 3.5rem;
    font-weight: 300;
}

/* 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, transparent 40%, rgba(0, 0, 0, 0.95) 95%);
    z-index: 1;
}

.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, rgba(184, 134, 11, 0.05) 0%, rgba(0, 0, 0, 0.95) 95%);
}

.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.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;
    }
}