/* ===============================
   BARVE
================================= */
:root {
    --bg-page: #F7E9E6;
    --bg-section: #FBF4F2;
    --bg-card: #FFFFFF;

    --text: #2B2326;
    --accent: #C59AA4;
    --accent-soft: #F2E2E6;

    --border: #E6D4D1;
    --shadow: rgba(43, 35, 38, 0.10);
    --footer-bg: #1F191B;
}

/* ===============================
   OSNOVA
================================= */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

main {
    flex: 1;
    width: min(100%, 1200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ===============================
   HEADER
================================= */
.topbar {
    width: 100%;
    background-color: var(--accent);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-line {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-link picture {
    display: block;
}

.logo {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 4px;
}

.motto {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.topnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.topnav a {
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topnav a:hover {
    color: #E8C7CF;
}

/* ===============================
   INTRO
================================= */
.intro {
    margin-top: 2em;
    width: 100%;
    padding: 2.4em 1em;
    text-align: center;
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
    box-sizing: border-box;
}

.intro h2 {
    font-size: 2em;
    color: var(--text);
    margin: 0;
}

.intro p {
    max-width: 700px;
    margin: 1em auto;
    color: rgba(43, 35, 38, 0.78);
    line-height: 1.6;
}

.btn {
    display: inline-block;
    margin-top: 1em;
    padding: 0.7em 1.5em;
    border-radius: 999px;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background-color: #B58490;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(197, 154, 164, 0.22);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--accent-soft);
    color: var(--text);
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1em;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* ===============================
   SPLOŠNE SEKCIJE / KARTICE
================================= */
.content {
    width: 100%;
    margin: 2.5em auto 3.6em;
    padding: 2em;
    background-color: var(--bg-section);
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
    box-sizing: border-box;
}

.content.columns-3,
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;
}

.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2em;
}

.cards-grid {
    align-items: stretch;
}

.column {
    min-width: 0;
    box-sizing: border-box;
    background-color: var(--bg-card);
    padding: 1.4em;
    border-radius: 14px;
    box-shadow: 0 6px 18px var(--shadow);
}

.column h3 {
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    line-height: 1.2;
}

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

.column li {
    margin-bottom: 0.7em;
    line-height: 1.5;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.5em;
}

.section-heading h2 {
    margin-bottom: 0.5em;
}

.section-heading p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(43, 35, 38, 0.78);
}

.section-cta {
    margin-top: 1.6em;
    text-align: center;
}

.section-cta-spaced {
    margin-top: 2.2em;
}

/* ===============================
   HOMEPAGE
================================= */
.hero {
    margin-top: 2em;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
    overflow: hidden;
    background-color: var(--bg-card);
}

.hero picture {
    display: block;
}

.hero-img {
    width: 100%;
    height: clamp(260px, 40vw, 460px);
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: min(620px, calc(100% - 36px));
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-kicker,
.feature-banner-kicker {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-title,
.feature-banner-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.hero-text,
.feature-banner-text {
    margin: 10px 0 0;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 12px;
}

.feature-banner {
    margin-top: 1.6em;
    padding: 2em;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(251, 244, 242, 0.95));
    box-shadow: 0 6px 18px var(--shadow);
}

.feature-banner-content {
    max-width: 820px;
}

.feature-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.35em;
}

.service-card,
.process-card,
.preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-section,
.process-section,
.gallery-preview {
    overflow: hidden;
}

.process-card p {
    margin: 0;
    line-height: 1.6;
    color: rgba(43, 35, 38, 0.82);
}

.gallery-preview-grid {
    align-items: start;
    margin-bottom: 2.4em;
}

.gallery-preview-cta {
    margin-top: 0;
}

.preview-card {
    padding: 0;
    overflow: hidden;
    height: auto;
    min-height: 0;
    align-self: start;
}

.preview-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.preview-card picture,
.gallery-photo-frame picture {
    display: block;
    width: 100%;
}

.preview-card .project-title {
    margin: 0;
    padding: 0.9em 1.1em 0.55em;
    color: var(--text);
    font-size: 1.1rem;
}

/* ===============================
   KONTAKTNI OBRAZEC
================================= */
.form-wrapper {
    max-width: 900px;
    margin: 2.5em auto 3.6em;
    padding: 2em;
}

.form-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 10px 28px var(--shadow);
    border: 1px solid rgba(230, 212, 209, 0.7);
    padding: 2em;
}

.form-card h3 {
    color: var(--accent);
    margin-bottom: 0.4em;
}

.form-intro {
    margin: 0 0 1.6em;
    color: rgba(43, 35, 38, 0.78);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.45em;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.95em 1em;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #fff;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(43, 35, 38, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(197, 154, 164, 0.16);
    background-color: #fffdfd;
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-btn {
    align-self: flex-start;
    margin-top: 0.3em;
    border: none;
    cursor: pointer;
    padding: 0.9em 1.8em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 6px 16px rgba(197, 154, 164, 0.22);
}

.form-success {
    margin: 0 0 1.2em;
    border-radius: 12px;
    background-color: #f4fbf4;
    border: 1px solid #cfe8cf;
    color: #2f6b2f;
    font-weight: 500;
}

.form-error {
    margin: 0 0 1.2em;
    padding: 0.9em 1em;
    border-radius: 12px;
    background-color: #fff4f4;
    border: 1px solid #e7c9c9;
    color: #8a2f2f;
    font-weight: 500;
}

.form-privacy,
.form-privacy p {
    margin: 0.4em 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.legal-updated {
    margin-top: 1.6em;
    opacity: 0.8;
}

.form-privacy {
    margin: 0.6em 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.form-privacy a,
.legal-content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.form-privacy a:hover,
.form-privacy a:focus,
.legal-content a:hover,
.legal-content a:focus {
    border-bottom-color: currentColor;
    text-decoration: none;
    opacity: 0.7;
}

/* ===============================
   GALERIJA
================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em;
}

.project-card {
    margin: 0;
    padding: 1.4em 1.4em 1.6em;
    min-height: 220px;
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--shadow);
}

.project-title {
    margin: 0;
    font-size: 1.2rem;
}

.project-title a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.project-title a:hover {
    text-decoration: underline;
}

.project-divider {
    height: 1px;
    margin: 0.6em 0 0.9em;
    background-color: var(--border);
}

.project-meta {
    margin-bottom: 0.4em;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(43, 35, 38, 0.70);
}

.project-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

/* ===============================
   GALERIJA - CAROUSELI
================================= */
.gallery-page {
    padding-bottom: 1.4em;
    margin: 0 auto;
}

.gallery-group {
    overflow: hidden;
}
.gallery-group + .gallery-group {
    margin-top: 0;
}
.gallery-group-heading {
    margin-bottom: 1.8em;
}
.gallery-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    background-color: var(--bg-section);
}
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    background-color: var(--bg-section);
}
.carousel-track {
    --carousel-gap: 1.2em;
    display: flex;
    gap: var(--carousel-gap);
    align-items: stretch;
    transition: transform 0.35s ease;
    will-change: transform;
    background-color: var(--bg-section);
}
.gallery-photo-card {
    flex: 0 0 var(--slide-width, calc((100% - (2 * var(--carousel-gap))) / 3));
    width: var(--slide-width, calc((100% - (2 * var(--carousel-gap))) / 3));
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0.9em;
    background: var(--bg-section);
    border-radius: 14px;
    box-sizing: border-box;
}
.gallery-photo-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.9em;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 6px 18px var(--shadow);
    box-sizing: border-box;
}
.gallery-photo-frame {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}
.gallery-photo-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}
.gallery-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-photo-title {
    margin: 0.75em 0 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: 0 6px 18px var(--shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0;
}
.carousel-btn[hidden] {
    display: none !important;
}
.carousel-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.carousel-btn-prev span {
    transform: translate(-1.5px, -2px);
}
.carousel-btn-next span {
    transform: translate(1.5px, -2px);
}
.carousel-btn-prev {
    left: 0.4em;
}
.carousel-btn-next {
    right: 0.4em;
}
.carousel-btn:hover {
    background: #fff;
}
.lightbox-open {
    overflow: hidden;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
}
.lightbox[hidden] {
    display: none;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 16, 18, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    max-height: calc(100vh - 3rem);
    margin: 1.5rem auto;
    padding: 1rem 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.03);
}
.lightbox-nav span {
    font-size: 2rem;
    line-height: 1;
}
.lightbox-nav-prev {
    left: 1rem;
}
.lightbox-nav-next {
    right: 1rem;
}
.lightbox-nav[hidden] {
    display: none;
}
.lightbox-close {
    align-self: flex-end;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(197, 154, 164, 0.2);
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}
.lightbox-caption {
    margin: 0.9rem 0 0;
    text-align: center;
    color: var(--text);
}
.lightbox-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45em;
    min-height: 14px;
    margin-top: 0.9rem;
}
.lightbox-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(197, 154, 164, 0.35);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.lightbox-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}
.carousel-meta {
    display: none;
    margin-top: 0.9em;
    text-align: center;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45em;
    min-height: 14px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(197, 154, 164, 0.35);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

/* ===============================
   FOOTER
================================= */
footer {
    width: 100%;
    margin-top: 3em;
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5em 30px 2em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5em;
    align-items: start;
}

.footer-col h3 {
    margin: 0 0 0.8em;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.6em;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 30px 1.4em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 900px) {
    .carousel-meta {
        display: block;
    }

    .topbar-inner {
        gap: 10px;
    }

    .motto {
        white-space: normal;
    }

    .content.columns-3,
    .cards-grid-3,
    .columns-2,
    .projects-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 1.8em;
    }

    .hero-title,
    .feature-banner-title {
        font-size: 1.7em;
    }

    .preview-card {
        min-height: 0;
    }

    .preview-image {
        height: 300px;
    }

    .gallery-photo {
        max-height: none;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.4em;
    }

    .form-btn {
        width: 100%;
        align-self: stretch;
    }

    .gallery-group {
        padding-top: 1.8em;
        padding-bottom: 1.8em;
    }
    
    .gallery-carousel {
        padding: 0;
    }
    
    .gallery-photo-card {
        margin: 0;
        box-sizing: border-box;
    }

    .gallery-photo-card-inner {
        padding: 0.9em;
    }
    
    .gallery-photo-frame {
        aspect-ratio: 4 / 5;
    }

    .lightbox-dialog {
        width: min(96vw, 1100px);
        max-height: calc(100vh - 1.5rem);
        margin: 0.75rem auto;
        padding: 0.75rem 0.75rem 1rem;
    }

    .lightbox-image {
        max-height: calc(100vh - 8rem);
    }

    .lightbox-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    main {
        padding: 0 18px;
    }

    .section-cta-spaced,
    .gallery-preview-cta {
        margin-top: 1.8em;
    }

    .topbar-inner,
    .footer-inner,
    .footer-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .content,
    .form-wrapper,
    .feature-banner {
        padding: 1.2em;
    }

    .topnav ul {
        gap: 16px;
        flex-wrap: wrap;
    }

    .feature-banner-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-banner-actions .btn {
        text-align: left;
    }

    .gallery-group-heading {
        margin-bottom: 1.3em;
    }
}

@media (max-width: 600px) {
    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-img {
        height: 260px;
    }

    .hero-overlay {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: none;
        margin: 0;
        padding: 16px 14px;
        border-radius: 0 0 10px 10px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-title,
    .feature-banner-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 480px) {
    .gallery-photo-card {
        padding-left: 0.75em;
        padding-right: 0.75em;
    }

    .gallery-photo-frame {
        max-height: none;
    }
}
