/*
Theme Name: Renić – Svečana dvorana
Theme URI: https://www.renic.hr
Author: Renić
Description: Moderna, jednostranična WordPress tema za svečanu dvoranu i pečenjarnicu Renić. Sav sadržaj i sve slike uređuju se kroz Izgled → Customizer.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renic
*/

:root {
    --renic-bordo: #6b1f2a;
    --renic-bordo-dark: #4a1520;
    --renic-gold: #c9a227;
    --renic-gold-light: #e4c766;
    --renic-cream: #faf6f0;
    --renic-cream-dark: #f0e8db;
    --renic-text: #2b2320;
    --renic-text-light: #6b5f57;
    --renic-white: #ffffff;
    --renic-shadow: rgba(43, 35, 32, 0.12);
    --renic-radius: 6px;
    --renic-max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--renic-text);
    background: var(--renic-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--renic-bordo-dark);
}

.renic-container {
    max-width: var(--renic-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.renic-section {
    padding: 100px 0;
}

.renic-section--alt {
    background: var(--renic-cream-dark);
}

.renic-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--renic-gold);
    font-weight: 700;
    margin-bottom: 14px;
}

.renic-section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 22px;
}

.renic-section-title--center {
    text-align: center;
}

.renic-lede {
    max-width: 720px;
    color: var(--renic-text-light);
    font-size: 17px;
}

.renic-lede--center {
    margin: 0 auto 50px;
    text-align: center;
}

.renic-btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: var(--renic-radius);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.renic-btn--primary {
    background: var(--renic-gold);
    color: var(--renic-bordo-dark);
}

.renic-btn--primary:hover {
    background: var(--renic-gold-light);
    transform: translateY(-2px);
}

.renic-btn--outline {
    border-color: var(--renic-white);
    color: var(--renic-white);
}

.renic-btn--outline:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.renic-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.renic-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.renic-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(250, 246, 240, 0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 22px 0;
}

.renic-header.is-scrolled {
    background: rgba(250, 246, 240, 0.96);
    box-shadow: 0 2px 18px var(--renic-shadow);
    padding: 12px 0;
}

.renic-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.renic-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--renic-bordo);
    letter-spacing: 0.5px;
}

.renic-header.is-scrolled .renic-logo,
.renic-header.is-scrolled .renic-nav a,
.renic-header.is-scrolled .renic-menu-toggle span {
    color: var(--renic-bordo-dark);
}

.renic-logo img {
    max-height: 46px;
}

.renic-nav {
    display: flex;
    gap: 34px;
}

.renic-nav a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--renic-white);
    position: relative;
    padding-bottom: 4px;
}

.renic-header.is-scrolled .renic-nav a {
    color: var(--renic-text);
}

.renic-nav a.is-active {
    color: var(--renic-gold);
}

.renic-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.renic-menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--renic-white);
    display: block;
}

.renic-header.is-scrolled .renic-menu-toggle span {
    background: var(--renic-bordo-dark);
}

/* Kad je korisnik prijavljen u WordPress, admin traka (#wpadminbar) je
   fiksna na vrhu i inače bi prekrila gornji dio našeg fiksnog menija —
   zato meni pomičemo ispod nje. */
body.admin-bar .renic-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .renic-header {
        top: 46px;
    }
}

/* Hero */
.renic-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, var(--renic-bordo) 0%, var(--renic-bordo-dark) 55%, #2f0f16 100%);
    color: var(--renic-white);
    overflow: hidden;
}

.renic-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
}

.renic-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(201,162,39,0.18) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(201,162,39,0.14) 0, transparent 40%);
}

.renic-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    text-align: center;
    width: 100%;
}

.renic-hero__eyebrow {
    color: var(--renic-gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.renic-hero h1 {
    color: var(--renic-white);
    font-size: clamp(36px, 6vw, 68px);
    max-width: 900px;
    margin: 0 auto 24px;
}

.renic-hero p {
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: rgba(255,255,255,0.88);
}

.renic-hero__actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.renic-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

/* O nama */
.renic-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.renic-about__image {
    border-radius: var(--renic-radius);
    overflow: hidden;
    box-shadow: 0 20px 45px var(--renic-shadow);
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, var(--renic-bordo) 0%, var(--renic-gold) 130%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.renic-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.renic-about__placeholder {
    color: rgba(255,255,255,0.85);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    text-align: center;
    padding: 30px;
}

.renic-about__text p {
    color: var(--renic-text-light);
    margin-bottom: 16px;
    white-space: pre-line;
}

/* Pečenjarnica */
.renic-pecenjarnica {
    background: var(--renic-bordo-dark);
    color: var(--renic-white);
}

.renic-pecenjarnica .renic-section-title,
.renic-pecenjarnica .renic-eyebrow {
    color: var(--renic-white);
}

.renic-pecenjarnica .renic-eyebrow {
    color: var(--renic-gold-light);
}

.renic-pecenjarnica__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.renic-pecenjarnica p {
    color: rgba(255,255,255,0.82);
    white-space: pre-line;
    margin-bottom: 20px;
}

.renic-price-list {
    list-style: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: var(--renic-radius);
    padding: 30px 32px;
}

.renic-price-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.18);
    font-weight: 600;
}

.renic-price-list li:last-child {
    border-bottom: none;
}

.renic-price-list span.renic-price {
    color: var(--renic-gold-light);
    white-space: nowrap;
}

/* Galerija (koristi se i za male galerije: Pečenjarnica, Apartmani, Viksa) */
.renic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.renic-gallery__item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--renic-radius);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(145deg, var(--renic-cream-dark), var(--renic-gold-light));
}

.renic-gallery__item img,
.renic-gallery__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.renic-gallery__item:hover img,
.renic-gallery__item:hover video {
    transform: scale(1.06);
}

.renic-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: rgba(20, 12, 10, 0.65);
    color: var(--renic-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
}

.renic-gallery__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--renic-bordo-dark);
    font-weight: 600;
    opacity: 0.75;
}

.renic-mini-gallery {
    margin-top: 50px;
}

.renic-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 10, 0.6);
    color: var(--renic-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
}

/* Lightbox */
.renic-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 10, 0.92);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.renic-lightbox.is-open {
    display: flex;
}

.renic-lightbox img,
.renic-lightbox video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 4px;
}

.renic-lightbox__close {
    position: absolute;
    top: 26px;
    right: 34px;
    color: var(--renic-white);
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
}

.renic-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--renic-white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.renic-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.renic-lightbox__nav--prev {
    left: 20px;
}

.renic-lightbox__nav--next {
    right: 20px;
}

@media (max-width: 640px) {
    .renic-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .renic-lightbox__nav--prev {
        left: 8px;
    }

    .renic-lightbox__nav--next {
        right: 8px;
    }
}

/* Kontakt */
.renic-kontakt {
    background: var(--renic-bordo-dark);
    color: var(--renic-white);
}

.renic-kontakt .renic-eyebrow {
    color: var(--renic-gold-light);
}

.renic-kontakt .renic-section-title {
    color: var(--renic-white);
}

.renic-kontakt__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.renic-kontakt__list {
    list-style: none;
}

.renic-kontakt__list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    display: flex;
    gap: 14px;
}

.renic-kontakt__list li:last-child {
    border-bottom: none;
}

.renic-kontakt__label {
    color: var(--renic-gold-light);
    font-weight: 700;
    min-width: 90px;
    display: inline-block;
}

.renic-kontakt__map {
    border-radius: var(--renic-radius);
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.renic-kontakt__map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* Footer */
.renic-footer {
    background: #2f0f16;
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

.renic-footer a {
    color: var(--renic-gold-light);
}

/* Responsive */
@media (max-width: 900px) {
    .renic-about,
    .renic-pecenjarnica__grid,
    .renic-kontakt__grid {
        grid-template-columns: 1fr;
    }

    .renic-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .renic-nav {
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        width: 260px;
        background: var(--renic-cream);
        flex-direction: column;
        padding: 100px 30px;
        gap: 26px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
    }

    .renic-nav.is-open {
        right: 0;
    }

    .renic-nav a {
        color: var(--renic-text) !important;
    }

    .renic-menu-toggle {
        display: flex;
    }

    .renic-section {
        padding: 70px 0;
    }
}
