/*
Theme Name: Regesta
Theme URI:
Author: Regesta
Description: Tema za Agenciju za arhiviranje Regesta
Version: 1.0
*/

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2e4a;
    --navy-dark: #111f33;
    --gold: #c9a84c;
    --gold-light: #e6c97a;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --border: #dde3ea;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================
   LAYOUT
===================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--gold);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 600px;
}

.section-header {
    margin-bottom: 0;
}

/* =====================
   NAVIGATION
===================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 31, 51, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: all 0.3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--navy-dark);
    font-weight: 900;
}

.nav-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy-dark) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy-dark) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* =====================
   HERO
===================== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a5f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 68px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '★';
    font-size: 10px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--gold);
}

.hero h2 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.35;
}

.hero h2 span {
    color: var(--gold);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(10px);
}

.hero-card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.hero-service-item:last-child {
    border-bottom: none;
}

.hero-service-icon {
    width: 34px;
    height: 34px;
    background: rgba(201,168,76,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* =====================
   O NAMA
===================== */
.about {
    background: var(--white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: 16px;
    padding: 48px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: 140px;
    color: rgba(201,168,76,0.12);
    font-family: Georgia, serif;
    line-height: 1;
}

.about-box-years {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.about-box-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.about-box-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 90px;
    height: 90px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    font-weight: 800;
    font-size: 0.7rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.about-badge strong {
    font-size: 1.3rem;
    display: block;
}

.about-content .section-subtitle {
    margin-bottom: 28px;
}

.about-list {
    list-style: none;
    margin-bottom: 32px;
}

.about-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
    font-size: 0.97rem;
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.about-info-box {
    background: var(--light-bg);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-info-box strong {
    color: var(--navy);
}

/* =====================
   USLUGE
===================== */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26,46,74,0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* =====================
   KLIJENTI
===================== */
.clients {
    background: var(--white);
}

.clients-intro {
    max-width: 680px;
}

.clients-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 48px;
}

.clients-category {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border);
}

.clients-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.clients-category-icon {
    font-size: 20px;
}

.clients-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clients-list li {
    font-size: 0.88rem;
    color: var(--text);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.clients-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.clients-note {
    margin-top: 36px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-light);
    font-style: italic;
}

.clients-note strong {
    color: var(--gold);
    font-style: normal;
}

/* =====================
   KONTAKT
===================== */
.contact {
    background: var(--light-bg);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-info-sub {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-item-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-item-value {
    font-size: 0.97rem;
    color: var(--text);
    font-weight: 600;
}

.contact-item-value a {
    color: var(--text);
}

.contact-item-value a:hover {
    color: var(--gold);
}

.contact-link-btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.contact-link-btn:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
    transform: translateY(-1px);
}

.contact-free-note {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: var(--white);
    font-size: 0.92rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-free-note-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-free-note strong {
    display: block;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(26,46,74,0.06);
}

.contact-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,46,74,0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 0.97rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,46,74,0.2);
}

/* =====================
   FOOTER
===================== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.65);
    padding: 40px 0;
    border-top: 2px solid var(--gold);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--navy-dark);
    font-weight: 900;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.85rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child:nth-child(3n+1) {
        grid-column: auto;
    }

    .clients-categories {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        padding: 16px;
        border-bottom: 2px solid var(--gold);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child:nth-child(3n+1) {
        grid-column: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================
   PRE I POSLE SEKCIJA
   =========================== */
.before-after {
    background: #f8f9fb;
    padding: 80px 0;
}

.ba-tabs {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ba-tab {
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid #1e3a78;
    background: transparent;
    color: #1e3a78;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ba-tab:hover {
    background: #e8edf5;
}

.ba-tab.active {
    background: #1e3a78;
    color: #fff;
}

.ba-panels {
    margin-top: 32px;
}

.ba-panel {
    display: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(30,58,120,0.08);
    padding: 32px;
}

.ba-panel.active {
    display: block;
}

.ba-images {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ba-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ba-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
}

.ba-tag--before {
    background: #fee2e2;
    color: #b91c1c;
}

.ba-tag--after {
    background: #dcfce7;
    color: #15803d;
}

.ba-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: #e8edf5;
}

.ba-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-arrow {
    font-size: 2rem;
    color: #1e3a78;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ba-images {
        flex-direction: column;
    }
    .ba-arrow {
        transform: rotate(90deg);
    }
    .ba-tab {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Social links - footer */
.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-social-link:hover {
    opacity: 0.82;
    text-decoration: none;
}

.footer-social-viber {
    background: #7360F2;
    color: #fff;
}

.footer-social-facebook {
    background: #1877F2;
    color: #fff;
}

/* Social icons - contact section */
.contact-icon-viber svg,
.contact-icon-facebook svg {
    display: block;
}
