/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette: warm paper, graphite text, muted mountain blue/brown */
    --c-paper: #f9f8f6;
    --c-surface: #ffffff;
    --c-graphite: #222222;
    --c-ink: #333333;
    --c-muted: #666666;
    --c-mountain-blue: #4a5c68;
    --c-accent: #c49a6c;
    --c-border: #e0deda;
    
    --f-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --f-serif: 'Instrument Serif', Georgia, serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    
    --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--f-sans);
    color: var(--c-ink);
    background-color: var(--c-paper);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--c-graphite);
    line-height: 1.1;
}

.serif-italic {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

/* Nav */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--c-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

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

.nav-links a:not(.btn-primary-sm) {
    font-size: 0.9rem;
    color: var(--c-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--c-graphite);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-graphite);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:first-child { top: 0; }
.mobile-menu-toggle span:last-child { bottom: 0; }

/* Buttons */
.btn-primary, .btn-primary-sm, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--c-graphite);
    color: white;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--c-graphite);
}

.btn-primary:hover {
    background: var(--c-mountain-blue);
    border-color: var(--c-mountain-blue);
}

.btn-primary-sm {
    background: var(--c-graphite);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary-sm:hover {
    background: var(--c-mountain-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--c-graphite);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--c-border);
}

.btn-secondary:hover {
    border-color: var(--c-graphite);
}

.btn-block {
    width: 100%;
}

/* Editorial Map-Board Hero */
.hero-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 5rem; /* offset nav */
    border-bottom: 1px solid var(--c-border);
}

.hero-content {
    padding: var(--space-xl) var(--space-md) var(--space-md) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--c-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-title .serif-italic {
    font-size: 1.1em;
    color: var(--c-mountain-blue);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--c-muted);
    max-width: 450px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--space-xl);
}

.proximity-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--c-border);
    padding-top: 1.5rem;
}

.prox-item {
    display: flex;
    flex-direction: column;
}

.prox-value {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    color: var(--c-graphite);
}

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

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Timeline Rail Section (Signature Detail) */
.timeline-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--c-surface);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--f-serif);
    font-size: 3rem;
    margin-bottom: var(--space-xs);
}

.section-desc {
    color: var(--c-muted);
    font-size: 1.1rem;
}

.timeline-rail {
    display: flex;
    border-left: 2px solid var(--c-border);
    margin-left: 1rem;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    opacity: 0.6;
}

.timeline-item:hover,
.timeline-item:focus,
.timeline-item.active {
    opacity: 1;
}

.time-marker {
    position: absolute;
    left: -1px;
    top: 0;
    transform: translateX(-50%);
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.timeline-item.active .time-marker,
.timeline-item:hover .time-marker {
    border-color: var(--c-graphite);
    background: var(--c-graphite);
    color: white;
}

.timeline-content {
    max-width: 600px;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.timeline-content p {
    color: var(--c-muted);
    margin-bottom: 1.5rem;
}

.timeline-content img {
    border-radius: var(--radius-sm);
    aspect-ratio: 16/9;
    object-fit: cover;
    display: none;
    transform: translateY(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.timeline-item.active .timeline-content img {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 900px) {
    .timeline-rail {
        flex-direction: row;
        border-left: none;
        border-top: 2px solid var(--c-border);
        margin-left: 0;
        margin-top: 2rem;
        padding-top: 3rem;
        gap: 0;
    }
    
    .timeline-item {
        flex: 1;
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .time-marker {
        left: 0;
        top: -3rem;
        transform: translateY(-50%);
    }
    
    .timeline-item.active .timeline-content img {
        position: absolute;
        top: -350px; /* Position image above rail */
        right: 0;
        width: 400px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Gallery Section */
.gallery-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--c-paper);
    overflow: hidden;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.gallery-caption {
    max-width: 600px;
    margin: var(--space-md) auto 0;
    text-align: center;
    font-family: var(--f-serif);
    font-size: 1.5rem;
    color: var(--c-graphite);
}

/* Contact Section */
.contact-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding-right: var(--space-lg);
}

.contact-info h2 {
    font-family: var(--f-serif);
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.company-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

address {
    font-style: normal;
    color: var(--c-muted);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--c-border);
    padding-top: var(--space-md);
}

.contact-link {
    display: flex;
    flex-direction: column;
}

.link-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 0.2rem;
}

.link-value {
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover .link-value {
    color: var(--c-mountain-blue);
}

.contact-box {
    background: var(--c-paper);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-box > p {
    color: var(--c-muted);
    margin-bottom: 1.5rem;
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--c-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--c-border);
}

.or-divider::before { margin-right: .5em; }
.or-divider::after { margin-left: .5em; }

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.simple-form input, .simple-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--c-surface);
}

.simple-form input:focus, .simple-form textarea:focus {
    outline: none;
    border-color: var(--c-graphite);
}

/* Footer */
.site-footer {
    background: var(--c-graphite);
    color: var(--c-surface);
    padding: var(--space-md);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    color: rgba(255,255,255,0.6);
}

.footer-pitch {
    color: rgba(255,255,255,0.6);
}

.footer-pitch a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-pitch a:hover {
    color: white;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh;
    }
    
    .hero-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item.active .timeline-content img {
        position: static;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .proximity-strip {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* === PASS 2 UI REVIEW FIXES === */
html, body { overscroll-behavior-y: none; background: var(--c-paper); }
.logo { font-family: var(--f-serif); font-size: 1.45rem; letter-spacing: .01em; }
.hero-board { min-height: calc(100vh - 72px); padding-top: 72px; align-items: stretch; }
.hero-content { align-self: center; padding-top: clamp(30px,4vh,54px); padding-bottom: clamp(30px,4vh,54px); }
.hero-title { font-size: clamp(3.9rem, 7.7vw, 8rem); letter-spacing: -.055em; }
.hero-badge { background: rgba(249,248,246,.92); backdrop-filter: blur(8px); border: 1px solid var(--c-border); border-radius: 999px; display: inline-flex; padding: 8px 14px; }
.hero-img-wrapper { height: calc(100vh - 72px); align-self: stretch; }
.hero-img { height: 100%; width: 100%; object-fit: cover; object-position: center top; filter: saturate(1.04) contrast(1.04); }
.interactive-card:hover { z-index: 4; }
.interactive-card img, .feature-card img { transition: transform .45s ease, opacity .25s ease; }
.interactive-card:hover img, .feature-card:hover img { transform: scale(1.025); }
.feature-card, .interactive-card { overflow: hidden; }
.proximity-strip { background: rgba(249,248,246,.96); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); position: relative; z-index: 2; }
.map-embed { max-width: 1240px; margin: 60px auto; padding: 0 24px; }
.map-embed iframe { width: 100%; min-height: 360px; border: 0; border-radius: 18px; }
.hero-content, .hero-img-wrapper, .feature-grid, .location-section { animation: fadeUp .8s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform:none; } }


/* === SATEL TIMELINE FIX: no line-through pills, no content-covering popup === */
.timeline-section {
    padding: clamp(72px, 9vw, 128px) var(--space-md);
    background: var(--c-surface);
    overflow: hidden;
}
.timeline-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 34px);
    border: 0 !important;
    margin: 0;
    padding: 0;
}
.timeline-item {
    position: relative;
    padding: 0;
    opacity: 1;
    cursor: default;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.time-marker {
    position: static;
    transform: none !important;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: var(--c-surface);
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 0 0 8px var(--c-surface); /* hides any nearby hairline cleanly */
    z-index: 2;
}
.timeline-item.active .time-marker,
.timeline-item:hover .time-marker,
.timeline-item:focus .time-marker {
    background: var(--c-graphite);
    color: #fff;
    border-color: var(--c-graphite);
}
.timeline-content {
    max-width: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.timeline-content h3 {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.02;
    margin: 0 0 14px;
    padding-top: 0;
    letter-spacing: -0.035em;
}
.timeline-content p {
    margin: 0;
    color: var(--c-muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.55;
}
.timeline-content img {
    order: -1;
    display: block !important;
    width: 100%;
    height: clamp(180px, 18vw, 260px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    box-shadow: none;
    margin-bottom: 18px;
    transition: transform .45s cubic-bezier(.16,1,.3,1), filter .35s ease, box-shadow .35s ease;
}
.timeline-item:hover .timeline-content img,
.timeline-item:focus .timeline-content img {
    transform: translateY(-4px) scale(1.012) !important;
    filter: saturate(1.05) contrast(1.03);
    box-shadow: 0 18px 42px rgba(34,34,34,.10);
}
@media (min-width: 900px) {
    .timeline-rail {
        border-top: 0 !important;
        margin-top: 2rem;
        padding-top: 0;
    }
    .timeline-item {
        padding-top: 0;
    }
    .timeline-item.active .timeline-content img {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
    }
}
@media (max-width: 900px) {
    .timeline-rail { grid-template-columns: 1fr; }
    .timeline-content img { height: 220px; }
}


/* Word-safe Slovak typography: never split words like Tatrami into Tatr/ami. */
:where(h1,h2,h3,h4,p,a,span,li,strong,button,label,input,textarea) {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

:where(h1,h2,h3,h4) {
    text-wrap: balance;
}

:where(p,li,.lead,.brand-desc) {
    text-wrap: pretty;
}

.nowrap { white-space: nowrap; }
