/* ============================================
   SARISA LOGISTIK — Style Sheet
   Modern Industrial Design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary — steel blue from logo */
    --color-primary: #2C7DA0;
    --color-primary-light: #3A9BC5;
    --color-primary-dark: #1E5A75;

    /* Neutrals — dark industrial */
    --color-bg: #0F0F0F;
    --color-bg-section: #141414;
    --color-bg-card: #1C1C1C;
    --color-bg-card-hover: #242424;
    --color-border: #2A2A2A;

    /* Steel gray */
    --color-steel: #A0A0A0;
    --color-steel-light: #C0C0C0;

    /* Text */
    --color-text: #B8B8B8;
    --color-text-heading: #FFFFFF;
    --color-text-muted: #707070;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;

    /* Transitions */
    --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);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
}

.section:nth-child(even) {
    background-color: var(--color-bg-section);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-xs);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--space-sm) auto var(--space-md);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-size: 1.05rem;
}

/* ---------- Button ---------- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 125, 160, 0.3);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

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

/* Navigation */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-steel-light);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Admin login icon */
.admin-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: all var(--transition);
}

.admin-login-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-btn:first-child {
    border-radius: 2px 0 0 2px;
}

.lang-btn:last-child {
    border-radius: 0 2px 2px 0;
}

.lang-btn:hover {
    color: var(--color-text);
    border-color: var(--color-steel);
}

.lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-steel-light);
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav open */
.nav-open .main-nav {
    display: flex;
}

.nav-open .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-open .nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.nav-open .nav-link {
    font-size: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(44, 125, 160, 0.15) 100%),
        url('../images/site/logo.jpg') center/cover no-repeat;
    background-color: var(--color-bg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.015) 2px,
            rgba(255, 255, 255, 0.015) 4px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: var(--space-lg) var(--space-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--color-steel-light);
    margin-bottom: var(--space-md);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-sm);
    text-align: center;
    transition: border-color var(--transition);
}

.stat-card:hover {
    border-color: var(--color-primary);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: 4px;
    border: 1px solid var(--color-border);
    max-width: 400px;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-md);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

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

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.gallery-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    padding: var(--space-lg) 0;
}

.gallery-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Full gallery page */
.gallery-page {
    padding-top: calc(var(--header-height) + var(--space-lg));
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    z-index: 10;
}

.lightbox-prev { left: var(--space-sm); }
.lightbox-next { right: var(--space-sm); }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.contact-person-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.contact-person-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-md);
}

.contact-person-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.contact-person-name {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.contact-person-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-person-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-person-links a:hover {
    color: var(--color-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

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

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem var(--space-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.contact-form .btn {
    align-self: flex-start;
    width: 100%;
}

.contact-form .btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-status {
    min-height: 1.4em;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-status.success {
    color: #5fbf7a;
}

.form-status.error {
    color: #d96b6b;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.footer-logo {
    height: 56px;
    width: auto;
    border-radius: 4px;
}

.footer-brand p {
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.about-stats .reveal:nth-child(2) { transition-delay: 0.1s; }
.about-stats .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Body lock (lightbox open) ---------- */
body.no-scroll {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .about-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

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

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

    .contact-person-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-form .btn {
        width: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }

    .hamburger {
        display: none;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
