/*
Theme Name: Kraljeve Zemlje
Theme URI: https://example.com
Author: 
Author URI: 
Description: Custom WordPress tema za "Kraljeve Zemlje" - rustik/vintage stil sa hero sekcijom sa pozadinskom fotografijom, navigacijom i tri feature kolone (Zemlja, Baština, Zajednica). Sav tekst i slike se menjaju kroz Izgled → Prilagodi (Customizer).
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kraljeve-zemlje
*/

/* ==========================================================================
   1. RESET & OSNOVNE POSTAVKE
   ========================================================================== */

* {
    box-sizing: border-box;
}

:root {
    --color-green-dark: #1e3c1e;
    --color-green: #3a6b1f;
    --color-green-light: #5c8f2e;
    --color-brown-dark: #3d2818;
    --color-brown: #5c3a21;
    --color-brown-light: #7a4f2c;
    --color-gold-dark: #8a5c00;
    --color-gold: #c08400;
    --color-gold-light: #dba635;
    --color-cream: #efe0c5;
    --color-cream-dark: #ddc99e;
    --color-text-dark: #362a1c;
    --color-white: #ffffff;
    --font-display: 'Cinzel', 'Georgia', serif;
    --font-body: 'EB Garamond', 'Georgia', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.33 0 0 0 0 0.26 0 0 0 0 0.16 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 20px;
}

/* ==========================================================================
   2. HEADER / NAVIGACIJA
   ========================================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 30px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding img.custom-logo {
    max-height: 100px !important;
    width: auto !important;
    height: auto;
}

.crown-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    fill: var(--color-brown-dark);
}

.site-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brown-dark);
}

.site-title a {
    color: var(--color-brown-dark);
}

.main-navigation ul {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--color-brown-dark);
    font-family: var(--font-body);
    font-size: 17px;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.2s ease;
    cursor: default;
}

.main-navigation a:hover,
.main-navigation a:active,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-brown-dark);
    font-size: 30px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SEKCIJA
   ========================================================================== */

.hero {
    position: relative;
    min-height: 780px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 100px;
    background-color: #6b7c5e;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,15,0.35) 0%, rgba(20,30,15,0.15) 45%, rgba(20,30,15,0.45) 100%);
    z-index: 1;
}

/* Placeholder pozadina dok korisnik ne postavi svoju fotografiju kroz Customizer */
.hero.hero--placeholder {
    background-image:
        linear-gradient(180deg, rgba(210,225,235,0.55) 0%, rgba(150,175,150,0.35) 40%, rgba(90,110,75,0.55) 100%),
        radial-gradient(ellipse at 20% 85%, #cfd9b8 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, #b7c79a 0%, transparent 55%),
        linear-gradient(180deg, #a9c3d4 0%, #8ba888 35%, #6d8461 70%, #5a6f4c 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 68px;
    color: var(--color-white);
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
    margin-bottom: 22px;
    line-height: 1.1;
}

.hero-title::after {
    content: "";
    display: block;
    width: 260px;
    height: 1px;
    background: rgba(255,255,255,0.6);
    margin: 22px auto 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 26px;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 46px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.03em;
    padding: 18px 40px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.btn-green {
    background: linear-gradient(180deg, var(--color-green-light), var(--color-green-dark));
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-brown {
    background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark));
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.25);
}

/* ==========================================================================
   4. FEATURES SEKCIJA (Zemlja / Baština / Zajednica)
   ========================================================================== */

.features {
    background: var(--color-cream);
    padding: 45px 0 40px;
    border-top: 1px solid var(--color-cream-dark);
}

.features .container {
    max-width: 900px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--color-cream-dark);
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    width: 170px;
    height: 170px;
    margin: 0 auto 8px;
    color: var(--color-brown);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-brown);
    stroke-width: 1.4;
}

.feature-item h3 {
    font-size: 26px;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.feature-item h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-brown-light);
    margin: 12px auto 16px;
}

.feature-item p {
    font-size: 18px;
    color: var(--color-text-dark);
    margin: 0;
}

/* ==========================================================================
   4b. PROJEKTI (naslovna sekcija + arhiva + kartice)
   ========================================================================== */

.projects-section {
    background-color: var(--color-cream-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.33 0 0 0 0 0.26 0 0 0 0 0.16 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    padding: 85px 0 90px;
}

.projects-section .section-title {
    text-align: center;
    font-size: 40px;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.projects-section .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-brown-light);
    margin: 18px auto 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
}

.project-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(61,40,24,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(61,40,24,0.18);
}

.project-card-thumb {
    height: 210px;
    background-color: #cbd6b6;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card-thumb.no-image {
    background: linear-gradient(135deg, var(--color-green-light), var(--color-brown-light));
}

.project-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(61,40,24,0.85);
    color: var(--color-white);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    font-family: var(--font-display);
}

.project-card-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body h3 {
    font-size: 23px;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.project-card-body p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-dark);
    margin: 0 0 18px;
    flex: 1;
}

.project-card-link {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-green-dark);
    border-bottom: 1px solid var(--color-green-dark);
    align-self: flex-start;
}

.projects-more-link {
    text-align: center;
    margin-top: 50px;
}

/* Arhiva projekata */
.projects-archive-header {
    text-align: center;
    margin-bottom: 20px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.projects-filter a {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.03em;
    padding: 8px 18px;
    border: 1px solid var(--color-brown-light);
    border-radius: 20px;
    color: var(--color-brown-dark);
}

.projects-filter a.active,
.projects-filter a:hover {
    background: var(--color-brown-dark);
    color: var(--color-white);
    border-color: var(--color-brown-dark);
}

/* Single projekat */
.single-project-thumb {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 34px;
}

.single-project-meta {
    display: inline-block;
    background: var(--color-brown);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    margin-bottom: 20px;
}

/* ==========================================================================
   4c. OBRAZAC ZA UČLANJENJE
   ========================================================================== */

.kz-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.kz-form {
    background: var(--color-white);
    border: 1px solid var(--color-cream-dark);
    border-radius: 6px;
    padding: 44px 40px;
    box-shadow: 0 10px 30px rgba(61,40,24,0.08);
}

.kz-form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.kz-form-row {
    margin-bottom: 24px;
}

.kz-form-row label {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--color-brown-dark);
    margin-bottom: 8px;
}

.kz-form-row input[type="text"],
.kz-form-row input[type="email"],
.kz-form-row textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 17px;
    border: 1px solid var(--color-cream-dark);
    background: var(--color-cream);
    border-radius: 3px;
    color: var(--color-text-dark);
}

.kz-form-row input:focus,
.kz-form-row textarea:focus {
    outline: none;
    border-color: var(--color-green);
    background: var(--color-white);
}

.kz-form button[type="submit"] {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}

.kz-form-message {
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 17px;
    text-align: center;
}

.kz-form-success {
    background: #e5f1e0;
    border: 1px solid var(--color-green);
    color: var(--color-green-dark);
}

.kz-form-error {
    background: #f7e5e0;
    border: 1px solid #a13333;
    color: #a13333;
}

/* ==========================================================================
   5. GENERIČKI SADRŽAJ (ostale stranice / blog)
   ========================================================================== */

.page-content-wrap {
    padding: 190px 0 90px;
    min-height: 50vh;
}

.page-content-wrap .entry-title {
    font-size: 44px;
    color: var(--color-brown-dark);
    margin-bottom: 30px;
}

.page-content-wrap .entry-content {
    font-size: 19px;
    max-width: 900px;
}

.page-content-wrap .entry-content p {
    margin-bottom: 22px;
}

article + article {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-cream-dark);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-brown-dark);
    color: var(--color-cream);
    padding: 50px 0 30px;
    text-align: center;
}

.site-footer .footer-branding {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-navigation a {
    color: var(--color-cream);
    font-size: 15px;
    opacity: 0.85;
}

.footer-navigation a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-social {
    margin-bottom: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(242,233,213,0.12);
    color: var(--color-cream);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: var(--color-cream);
    color: var(--color-brown-dark);
}

.site-footer .copyright {
    font-size: 14px;
    opacity: 0.65;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .hero { min-height: 600px; padding: 130px 20px 70px; }
    .hero-title { font-size: 44px; }
    .hero-title::after { width: 180px; margin-top: 16px; }
    .hero-subtitle { font-size: 20px; margin-bottom: 34px; }
    .features { padding: 60px 0 50px; }
    .features-grid { grid-template-columns: 1fr; gap: 50px; }
    .feature-item { border-right: none; border-bottom: 1px solid var(--color-cream-dark); padding-bottom: 40px; }
    .feature-item:last-child { border-bottom: none; padding-bottom: 0; }
    .feature-icon { width: 140px; height: 140px; }

    .projects-section { padding: 60px 0 60px; }
    .projects-section .section-title { font-size: 32px; margin-bottom: 6px; }
    .projects-section .section-title::after { margin-bottom: 36px; }

    .page-content-wrap { padding: 165px 0 60px; }
    .page-content-wrap .entry-title { font-size: 34px; }

    .kz-form { padding: 32px 24px; }

    .site-title { font-size: 18px; }
    .site-branding img.custom-logo { max-height: 95px !important; }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    .main-navigation.is-open { display: block; }
    .main-navigation ul {
        flex-direction: column;
        gap: 14px;
        background: rgba(40,35,25,0.92);
        padding: 20px;
        margin-top: 14px;
        border-radius: 4px;
    }
    .main-navigation ul a {
        color: var(--color-cream);
    }
    .main-navigation ul .current-menu-item > a {
        border-bottom-color: var(--color-cream);
    }
    .menu-toggle { display: inline-block; }
    .header-inner { position: relative; }
}

@media (max-width: 600px) {
    .site-header { padding: 20px 0; }
    .hero { min-height: 520px; padding: 110px 18px 60px; }
    .hero-title { font-size: 30px; }
    .hero-title::after { width: 130px; }
    .hero-subtitle { font-size: 17px; margin-bottom: 28px; }
    .hero-buttons { flex-direction: row; flex-wrap: nowrap; gap: 10px; justify-content: center; }
    .btn { flex: 1 1 0; max-width: 180px; text-align: center; padding: 12px 10px; font-size: 14px; }
    .container { padding: 0 22px; }

    .feature-icon { width: 120px; height: 120px; }
    .feature-item h3 { font-size: 22px; }
    .feature-item p { font-size: 16px; }

    .projects-section .section-title { font-size: 26px; }
    .project-card-body { padding: 18px 20px 22px; }

    .page-content-wrap { padding: 150px 0 50px; }
    .page-content-wrap .entry-title { font-size: 28px; }

    .kz-form { padding: 26px 18px; }
    .kz-form-row input, .kz-form-row textarea { font-size: 16px; }

    .site-footer { padding: 36px 0 24px; }
}
