:root {
    --primary-color: #d97745;
    --secondary-color: #254f4a;
    --dark-color: #1f2933;
    --light-color: #fffaf5;
    --cream-color: #f8eee5;
    --text-color: #53605f;
    --white-color: #ffffff;
    --shadow: 0 12px 35px rgba(37, 79, 74, 0.12);
}

/* Osnovne postavke */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Zaglavlje i navigacija */
.hero {
    min-height: 720px;
    background: linear-gradient(
        120deg,
        rgba(255, 250, 245, 0.98),
        rgba(248, 238, 229, 0.8)
    );
}

.navbar {
    width: 90%;
    max-width: 1180px;
    min-height: 85px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--secondary-color);
    font-size: 1.35rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Početna sekcija */
.hero-content {
    width: 90%;
    max-width: 1180px;
    min-height: 635px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-text {
    max-width: 570px;
}

.subtitle,
.section-label {
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    margin-bottom: 22px;
    color: var(--secondary-color);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.hero-text > p:not(.subtitle) {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 14px 26px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: bold;
    transition: 0.3s ease;
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image img {
    width: 100%;
    height: 480px;
    border-radius: 180px 180px 25px 25px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* Opće sekcije */
.section {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 0;
}

.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.section-image img {
    width: 100%;
    height: 480px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.section-content h2,
.section-heading h2,
.contact-section h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.section-content p {
    margin-bottom: 18px;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    font-weight: bold;
}

.text-link:hover {
    text-decoration: underline;
}

/* Sekcija brige o psima */
.care-section {
    width: 100%;
    max-width: none;
    padding-right: 5%;
    padding-left: 5%;
    background-color: var(--cream-color);
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.care-cards {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.care-card {
    padding: 34px 28px;
    border-radius: 18px;
    background-color: var(--white-color);
    text-align: center;
    box-shadow: 0 8px 25px rgba(37, 79, 74, 0.06);
    transition: transform 0.3s ease;
}

.care-card:hover {
    transform: translateY(-8px);
}

.card-icon {
    margin-bottom: 12px;
    font-size: 2.4rem;
}

.care-card h3 {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Sekcija pasmina */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.breed-card {
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.breed-card:hover {
    transform: translateY(-8px);
}

.breed-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.breed-card-content {
    padding: 24px;
}

.breed-card h3 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Kontakt sekcija */
.contact-section {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto 100px;
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 25px;
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.contact-section h2 {
    color: var(--white-color);
}

.contact-section .section-label {
    color: #f3b38e;
}

.button-light {
    flex-shrink: 0;
    border-color: var(--white-color);
    background-color: var(--white-color);
    color: var(--secondary-color);
}

.button-light:hover {
    color: var(--white-color);
}

/* Podnožje */
.footer {
    padding: 30px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #183b38;
    color: #dce8e5;
    font-size: 0.9rem;
}

.footer span {
    color: #f3a77e;
}

/* Tablet uređaji */
@media (max-width: 850px) {
    .navbar {
        padding: 20px 0;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content {
        min-height: auto;
        padding: 70px 0 90px;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-image img {
        height: 400px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .section-content {
        text-align: center;
    }

    .care-cards,
    .breed-grid {
        grid-template-columns: 1fr;
    }

    .care-card,
    .breed-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-section {
        align-items: flex-start;
        flex-direction: column;
        padding: 45px 35px;
    }
}

/* Mobiteli */
@media (max-width: 500px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 75px 0;
    }

    .hero-image img,
    .section-image img {
        height: 330px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
    }
}