/*
Theme Name: Nele Krunic Law Firm
Theme URI: #
Author: Dejan Calic
Author URI: #
Description: Premium WordPress theme for a law firm.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nelekrunic
*/



/* Osnovni Reset i Varijable inspirisane vizitkartom */
:root {
    --bg-color: #0d0d0d;
    --bg-darker: #050505;
    --bg-card: #151515;

    /* Metalik zlatna paleta */
    --gold: #c9a05b;
    --gold-light: #f3d489;
    --gold-dark: #8c6522;
    --gold-gradient: linear-gradient(135deg, #a67c33 0%, #e2c073 40%, #fef5a6 50%, #d8b05d 60%, #875f1f 100%);

    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-signature: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: 16px;
}

@media (min-width: 2500px) {
    html {
        font-size: 1.3vw;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 10%, #1f1b18 0%, #0d0d0d 60%);
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-padding {
    padding: 6.25rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-heading {
    text-align: center;
    margin-bottom: 3.75rem;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.9375rem;
    font-weight: 300;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
}

@media screen and (max-width: 420px) {
    .section-heading h2 {
        font-size: 2rem;
    }
}

.section-heading h2 span {
    font-weight: 600;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p {
    color: var(--gold);
    font-size: 1rem;
    max-width: 37.5rem;
    margin: 0 auto;
    font-style: italic;
    letter-spacing: 0.0625rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
}

/* Dugmići */
.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    padding: 0.75rem 1.875rem;
    border-radius: 1.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(201, 160, 91, 0.2);
}

.btn-gold:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1.25rem rgba(201, 160, 91, 0.4);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold-light);
    padding: 0.625rem 1.75rem;
    border-radius: 1.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 0.125rem solid var(--gold);
    display: inline-block;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-gold-outline:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #000;
}

/* Header & Navigacija */
header {
    background-color: rgba(26, 25, 25, 0.95);
    backdrop-filter: blur(0.625rem);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.9375rem 0;
    border-bottom: 0.0625rem solid rgba(201, 160, 91, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}

.logo-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.125rem;
}

.logo-icon img {
    max-width: 4rem;
}

/* Naziv kancelarije pored logoa.
   Namerno zasebna klasa (.brand-text), a ne .logo-text koju vec koristi footer. */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0.9375rem;
    border-left: 0.0625rem solid rgba(201, 160, 91, 0.35);
    line-height: 1.3;
}

.brand-office {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-main);
    white-space: nowrap;
}

/* Uzak pojas: meni je jos uvek razvucen (6-7 stavki + SR|EN) ali ekran je premali
   da stane i naziv. Ispod 992px meni postaje hamburger pa prostora ima napretek.
   Mereno: bez ovoga su se stavke menija lomile u dva reda na ~1150-1260px. */
@media (min-width: 62.0625rem) and (max-width: 75rem) {
    .brand-text {
        display: none;
    }
}

/* Vrlo uski telefoni */
@media (max-width: 26rem) {
    .brand-text {
        padding-left: 0.625rem;
    }

    .brand-office {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }

    .brand-name {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.875rem;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    color: #e0e0e0;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold-light);
}

/* Prekidač jezika SR | EN (poslednja stavka menija) */
.nav-links .lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.25rem;
    border-left: 0.0625rem solid rgba(201, 160, 91, 0.35);
}

.nav-links .lang-switch a {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links .lang-switch a.current {
    color: var(--gold);
    font-weight: 600;
}

.nav-links .lang-switch a:hover {
    color: var(--gold-light);
}

.lang-sep {
    color: rgba(201, 160, 91, 0.35);
    font-size: 0.75rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

/* Uzak desktop (992-1344px): zbijeniji meni da sve stavke + SR|EN stanu u jedan red.
   Mora da stoji POSLE osnovnih .nav-links pravila. */
@media (min-width: 62.0625rem) and (max-width: 84rem) {
    .nav-links {
        gap: 1.1rem;
    }

    .nav-links li a {
        font-size: 0.78rem;
    }

    .nav-links .lang-switch {
        padding-left: 0.9rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 37.5rem;
    overflow: hidden;
}

.slides {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(13, 13, 13, 0.7) 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    padding: 0 1.25rem;
    transform: translateY(1.25rem);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-signature {
    font-family: var(--font-signature);
    font-size: 3.5rem;
    color: var(--gold-light);
    margin-bottom: 0.625rem;
    text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.25rem;
    color: #fff;
}

.slide-content h1 span {
    font-weight: 700;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 0.0625rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3.125rem;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: 0.0625rem solid var(--gold);
    color: var(--gold);
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.3125rem);
}

.slider-controls button:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #000;
}

/* Blog */
.blog-card {
    background: var(--bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 0.0625rem solid rgba(201, 160, 91, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-0.625rem);
    border-color: var(--gold);
}

.blog-img {
    height: 13.75rem;
    background-size: cover;
    background-position: center;
    border-bottom: 0.125rem solid var(--gold);
}

.blog-content {
    padding: 1.875rem;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.9375rem;
    color: #fff;
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--gold-light);
}

/* Pagination */
.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    margin: 0 0.3125rem;
    border: 0.0625rem solid rgba(201, 160, 91, 0.4);
    color: var(--gold);
    border-radius: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0.25rem 0.9375rem rgba(201, 160, 91, 0.3);
}

.pagination-wrapper .next.page-numbers,
.pagination-wrapper .prev.page-numbers {
    border-color: var(--gold);
}

/* Tim - Premijum Dizajn sa 3D Flip Efektom */
.team-card {
    background: transparent;
    position: relative;
    border-radius: 0.25rem;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    cursor: pointer;
    min-height: 28rem;
    display: block;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.team-card.flipped .team-card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.25rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 0.0625rem solid rgba(201, 160, 91, 0.1);
}

.team-card-front {
    z-index: 2;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.team-card.flipped .team-card-front {
    pointer-events: none;
}

.team-card.flipped .team-card-back {
    pointer-events: auto;
}

.team-card:not(.flipped):hover .team-card-front {
    border-color: rgba(201, 160, 91, 0.4);
    box-shadow: 0 0.9375rem 1.875rem rgba(0, 0, 0, 0.6);
    -webkit-transform: translateY(-0.5rem) rotateY(0deg);
    transform: translateY(-0.5rem) rotateY(0deg);
    transition: all 2s;
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(80%) contrast(1.1);
}

.team-card:not(.flipped):hover .team-img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
    z-index: 1;
}

.team-social {
    position: absolute;
    bottom: -3.125rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
    z-index: 2;
    transition: bottom 0.4s ease;
}

.team-card:not(.flipped):hover .team-social {
    bottom: 1.5625rem;
    transition: all 2s;
}

.team-social a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(0.3125rem);
    border: 0.0625rem solid var(--gold);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-0.1875rem);
}

.team-info {
    position: relative;
    padding: 1.25rem;
    text-align: center;
    background: var(--bg-card);
    z-index: 2;
}

.team-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 0.125rem;
    background: var(--gold-gradient);
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.625rem;
    letter-spacing: 0.0625rem;
}

.team-info .role {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1562rem;
    font-weight: 500;
}

/* Stil za poleđinu (Back) */
.team-card-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 2.5rem 1.875rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--gold) !important;
    pointer-events: none;
}

.team-card-close {
    position: absolute;
    top: 0.9375rem;
    right: 0.9375rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0.0625rem solid transparent;
}

.team-card-close:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 160, 91, 0.1);
}

.team-card-back-content h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    border-bottom: 0.0625rem solid rgba(201, 160, 91, 0.2);
    padding-bottom: 0.625rem;
}

.team-card-back-content h4 {
    color: #fff;
    margin-top: 0.9375rem;
    margin-bottom: 0.3125rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

.team-card-back-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}


/* Honeypot - nevidljivo polje za hvatanje botova.
   Namerno NE koristimo display:none jer ga neki boti prepoznaju i preskacu. */
.nk-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Usluge */
#usluge {
    background: url("assets/usluge-bg.png");
}

.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 62rem) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Kartica usluge je 3D flip kontejner - sam po sebi providan.
   Vizuelni izgled nose prednja i zadnja strana. */
.service-card {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0.75rem;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    transition: min-height 0.5s ease;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card.flipped .service-card-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    background: var(--bg-card);
    padding: 2.5rem 1.875rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 0.0625rem solid rgba(201, 160, 91, 0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* Prednja strana je u toku dokumenta pa ona odredjuje visinu kartice. */
.service-card-front {
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

/* Zadnja strana prekriva istu povrsinu, okrenuta za 180 stepeni. */
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Zlatna linija na vrhu pri prelasku misem */
.service-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.1875rem;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card.is-flippable {
    cursor: pointer;
}

.service-card.is-flippable:hover .service-card-front {
    background-color: #1a1a1a;
}

.service-card.is-flippable:hover .service-card-front::before {
    opacity: 1;
}

.service-card.is-flippable:focus-visible {
    outline: 0.125rem solid var(--gold);
    outline-offset: 0.25rem;
}

/* Oznaka "Detaljnije" / "Nazad" - vidi se samo kad kartica moze da se okrene */
.service-toggle {
    display: none;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    color: var(--gold);
}

.service-card.is-flippable .service-toggle {
    display: block;
}

.service-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.service-card.is-flippable:hover .service-card-front .service-toggle i {
    transform: translateX(0.25rem);
}

.service-close {
    cursor: pointer;
}

/* Ikone iz vizitkarte stil */
.service-icon-wrapper {
    width: 4.375rem;
    height: 4.375rem;
    margin: 0 auto 1.5625rem auto;
    border-radius: 1.25rem;
    background: var(--bg-color);
    border: 0.0625rem solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0.625rem rgba(201, 160, 91, 0.1);
}

.service-icon {
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.9375rem;
    letter-spacing: 0.0625rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Samo prednja strana skraceno na 3 reda. Zadnja prikazuje ceo tekst. */
.service-card-front p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 0.0625rem solid rgba(201, 160, 91, 0.3);
    border-radius: 1.25rem;
    overflow: hidden;
}

.contact-info {
    padding: 3.75rem 3.125rem;
    display: flex;
    flex-direction: column;
    gap: 2.1875rem;
    position: relative;
}

@media screen and (max-width: 420px) {
    .contact-info {
        padding: 3.75rem 0.125rem;
    }
}

/* Vizitkarta vertikalna zlatna linija */
.contact-info::before {
    content: '';
    position: absolute;
    left: 6.3rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 0.125rem;
    background: var(--gold-gradient);
    opacity: 0.5;
    z-index: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5625rem;
    z-index: 1;
}

.icon-box {
    width: 2.8125rem;
    height: 3.75rem;
    border-radius: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box i {
    font-size: 1.2rem;
    color: var(--gold-light);
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    font-weight: 400;
}

.info-item p {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 300;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 25rem;
    border-left: 0.0625rem solid rgba(201, 160, 91, 0.3);
}

/* Forma Pravni Savetnik */
.form-section {
    position: relative;
    padding-top: 9.375rem;
}

.form-container {
    max-width: 50rem;
    position: relative;
    z-index: 2;
}

.form-content {
    background: var(--bg-card);
    padding: 3.75rem;
    border-radius: 1.25rem;
    border: 0.0625rem solid rgba(201, 160, 91, 0.3);
    text-align: center;
    position: relative;
}

/* Zlatna pločica na vrhu forme slična vizitkarti.
   Tekst dolazi iz data-signature u front-page.php, da bi se prevodio. */
.form-content::before {
    content: attr(data-signature);
    font-family: var(--font-signature);
    white-space: nowrap;
    position: absolute;
    top: -1.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    padding: 0.625rem 2.5rem;
    border-radius: 1.875rem;
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    border: 0.125rem solid #fff;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.5);
}

.form-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.625rem;
    margin-top: 1.25rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
}

.form-content h2 span {
    font-weight: 600;
    color: var(--gold);
}

.form-content>p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5625rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9375rem;
    background: var(--bg-color);
    border: 0.0625rem solid rgba(201, 160, 91, 0.3);
    color: var(--text-main);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0.625rem rgba(201, 160, 91, 0.1);
}

.form-btn {
    width: 100%;
    font-size: 1rem;
    padding: 1.125rem;
    margin-top: 0.625rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

/* Obavestenje o obradi podataka ispod dugmeta forme — ceo tekst, sitno i prigušeno */
.form-privacy-notice {
    margin-top: 1.5rem;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    opacity: 0.85;
}

.form-privacy-notice p {
    margin-bottom: 0.5rem;
}

.form-privacy-notice p:last-child {
    margin-bottom: 0;
}

.form-privacy-notice a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.form-privacy-notice a:hover,
.form-privacy-notice a:focus-visible {
    color: var(--gold-light);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 3.75rem 0 1.25rem;
    border-top: 0.0625rem solid rgba(201, 160, 91, 0.2);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.footer-logo .logo-icon img {
    width: 6rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8125rem;
    height: 2.8125rem;
    background: var(--bg-card);
    border: 0.0625rem solid rgba(201, 160, 91, 0.3);
    border-radius: 50%;
    color: var(--gold);
    margin-left: 0.9375rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #000;
    transform: translateY(-0.1875rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5625rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 0.0625rem;
}

.footer-links {
    margin-top: 0.625rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
}

/* Obicne stranice (page.php) — npr. Politika privatnosti */
.page-section {
    padding-top: 150px;
    min-height: 80vh;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1.05rem;
}

.page-body h2 {
    color: var(--gold);
    font-size: 1.35rem;
    margin: 2.5rem 0 1rem;
}

.page-body h3 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul {
    margin: 0 0 1.25rem 1.5rem;
    list-style: disc;
}

.page-body li {
    margin-bottom: 0.35rem;
}

.page-body li::marker {
    color: var(--gold);
}

.page-body a {
    color: var(--gold);
}

.page-body .back-to-home {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 160, 91, 0.3);
}

.page-body .back-to-home a {
    text-decoration: none;
}

/* Responsivnost */
@media (max-width: 62rem) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 18.75rem;
        border-left: none;
        border-top: 0.0625rem solid rgba(201, 160, 91, 0.3);
    }
}

@media (max-width: 48rem) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 62rem) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 1.875rem 0;
        gap: 1.25rem;
        border-bottom: 0.0625rem solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links .lang-switch {
        border-left: 0;
        padding-left: 0;
        padding-top: 1.25rem;
        border-top: 0.0625rem solid rgba(201, 160, 91, 0.2);
    }

    .nav-links .lang-switch a {
        font-size: 0.85rem;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-signature {
        font-size: 2.5rem;
    }

    .slider-controls {
        padding: 0 1.25rem;
    }

    .contact-info::before {
        display: none;
    }

    .form-content {
        padding: 3.125rem 1.25rem 1.875rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.875rem;
    }

    .footer-social a {
        margin: 0 0.3125rem;
    }
}

/* Plocica iznad forme - natpis je dug, pa se na uzim ekranima smanjuje
   da ne bude sira od same forme. */
@media (max-width: 48rem) {
    .form-content::before {
        font-size: 1.05rem;
        padding: 0.5rem 1.25rem;
        top: -1.5rem;
    }
}

@media (max-width: 26rem) {
    .form-content::before {
        font-size: 0.88rem;
        padding: 0.45rem 1rem;
        top: -1.25rem;
        border-width: 0.09375rem;
    }
}
