/* ============================================
   PANTRANS LOGISTIKA — Main Stylesheet
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    --red: #d42626;
    --red-dark: #b01e1e;
    --dark: #2d2d2d;
    --dark-bg: #3d3d3d;
    --darker-bg: #333333;
    --light-bg: #f1f0ee;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-light: #cccccc;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Roboto Slab', 'Georgia', serif;
    --container-max: 1100px;
    --header-height: 98px;
    --transition: 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- STRIPE BORDER (Airmail Envelope) ---------- */
.stripe-border {
    width: 100%;
    height: 18px;
    background: repeating-linear-gradient(
        -45deg,
        var(--red),
        var(--red) 10px,
        var(--light-bg) 10px,
        var(--light-bg) 20px
    );
    flex-shrink: 0;
}

.stripe-border--top {
    position: relative;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--light-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 24px;
    flex-shrink: 0;
}

.lang-btn {
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
    color: var(--red);
}

.lang-btn.active {
    color: var(--white);
    background: var(--red);
}

.lang-separator {
    color: #ccc;
    font-weight: 400;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    margin-top: var(--header-height);
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height));
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(52px, 10vw, 110px);
    font-weight: 900;
    line-height: 0.95;
    color: var(--text-dark);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.text-red {
    color: var(--red);
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 38, 38, 0.3);
}

.btn--secondary {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn--secondary:hover {
    background: #444;
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--full {
    width: 100%;
}

/* ---------- SECTION LABELS ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-label--center {
    justify-content: center;
}

.label-square {
    width: 12px;
    height: 12px;
    background: var(--red);
    flex-shrink: 0;
}

.label-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-heading--center {
    text-align: center;
}

.section-heading--light {
    color: var(--white);
}

/* ---------- ACCENT LINE ---------- */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 24px 0;
}

/* ---------- O NAS (ABOUT) SECTION ---------- */
.about-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .section-label .label-text {
    color: var(--text-muted);
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
}

.about-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 8px;
}

.about-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.card-accent-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    margin-bottom: 28px;
}

.card-row {
    margin-bottom: 20px;
}

.card-row:last-child {
    margin-bottom: 0;
}

.card-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-value {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.card-value strong {
    font-weight: 700;
}

/* ---------- STORITVE (SERVICES) SECTION ---------- */
.services-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.services-section .section-label .label-text {
    color: var(--text-light);
}

.services-section .section-heading {
    color: var(--white);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 36px 28px;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- ZAKAJ PANTRANS (WHY US) SECTION ---------- */
.why-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.why-section .section-label .label-text {
    color: var(--text-muted);
}

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

.why-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.why-accent-line {
    width: 50px;
    height: 4px;
    background: var(--red);
    margin-bottom: 24px;
}

.why-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- DELOVNI ČAS (WORKING HOURS) SECTION ---------- */
.hours-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.hours-section .section-label .label-text {
    color: var(--text-light);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.hours-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 40px 28px;
    text-align: center;
    transition: transform var(--transition), background var(--transition);
}

.hours-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.hours-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.hours-icon svg {
    width: 100%;
    height: 100%;
}

.hours-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hours-time {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.hours-time--italic {
    font-style: italic;
}

/* ---------- KONTAKT (CONTACT) SECTION ---------- */
.contact-section {
    padding: 100px 0 80px;
    background: var(--dark-bg);
}

.contact-section .section-label .label-text {
    color: var(--text-light);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 32px 20px;
    text-align: center;
    transition: transform var(--transition), background var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
}

.contact-card-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-card-value {
    font-size: 14px;
    color: var(--white);
    line-height: 1.6;
}

/* ---------- MAP ---------- */
.map-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--darker-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --header-height: 88px;
    }

    .header-inner {
        height: 70px;
    }

    .nav-list {
        gap: 4px;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 8px;
        letter-spacing: 1px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .why-grid .why-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 83px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 15px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--light-bg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 100px 32px 40px;
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 14px 0;
        letter-spacing: 2px;
        border-bottom: 1px solid #eee;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 70px);
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 24px);
    }

    .hero-description br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid .why-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

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

    .about-heading {
        font-size: clamp(28px, 8vw, 40px);
    }

    .section-heading {
        font-size: clamp(26px, 7vw, 40px);
    }

    .header-inner {
        height: 65px;
    }

    .logo-img {
        max-height: 40px;
    }
}

/* Mobile overlay backdrop */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
