:root {
    --primary: #25b3eb;
    --secondary: #1a1a1b;
    --text-main: #1a1a1b;
    --bg-light: #f4f4f4;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image: url(Media/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-backdrop-filter: brightness(0.35);
    backdrop-filter: brightness(0.35);
}

/* HEADER & LOGO – sticky, large by default; compact when scrolled */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: white;
    border-bottom: 4px solid var(--primary);
    height: 150px;
    display: flex;
    align-items: stretch;
    background: var(--secondary);
    transition: height 0.3s ease;
}

.main-header--scrolled {
    height: 80px;
}

.header-logo-wrap {
    background: white;
    display: flex;
    align-items: center;
    padding: 0 48px 0 32px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    transition: padding 0.3s ease;
}

.main-header--scrolled .header-logo-wrap {
    padding: 0 28px 0 20px;
}

.header-rest {
    flex: 1;
    background: var(--secondary);
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 24px 12px 48px;
    gap: 10px;
    transition: padding 0.3s ease;
}

.main-header--scrolled .header-rest {
    padding: 0 20px 0 28px;
    gap: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px 20px;
    min-height: 44px;
    transition: min-height 0.3s ease;
}

.main-header--scrolled .header-nav {
    min-height: 36px;
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5em 0.75em;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav-link-text {
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-header--scrolled .header-nav-link {
    font-size: 0.75rem;
}

.header-nav-link:hover {
    color: var(--primary);
}

.header-nav-link:hover .header-nav-link-text {
    border-bottom-color: var(--primary);
}

.header-nav-link--btn {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding: 0.5em 0.75em;
}

.header-nav-link--btn:hover {
    color: var(--primary);
    background: rgba(37, 179, 235, 0.2);
    border-bottom-color: var(--primary);
}

.header-nav-link--outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
}

.header-nav-link--outline:hover {
    color: var(--primary);
    background: rgba(37, 179, 235, 0.15);
}

.header-nav-link--outline.header-nav-link--current {
    color: var(--primary);
    font-weight: 700;
}

.header-nav-link--cta {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.header-nav-link--cta:hover {
    background: #1d92c1;
    border-color: #1d92c1;
    color: #fff;
}

/* Hamburger – hidden on desktop */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: color 0.2s;
}

.header-hamburger:hover {
    color: var(--primary);
}

.header-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-rest::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 0;
    bottom: 0;
    width: 35px;
    background: var(--primary);
    transform: skewX(-12deg);
    transform-origin: center;
    z-index: 1;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-header--scrolled .header-rest::before {
    left: -12px;
    width: 26px;
}

.main-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: height 0.3s ease;
}

.main-header--scrolled .main-logo {
    height: 48px;
}

/* HERO – taller, no own background (body parallax shows through) */
.hero {
    padding: 80px 32px 96px;
    min-height: 420px;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

button.hero-btn {
    background: transparent;
}

.hero-btn--primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.hero-btn--primary:hover {
    background: #1d92c1;
    border-color: #1d92c1;
    color: #fff;
}

.hero-btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Reservation modal popup */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: top;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-panel {
    position: relative;
    background: #fff;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border: 2px solid var(--primary);
    transform: translateY(-15%);
    top: 200px;
    height: fit-content;
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #f0f0f0;
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.reservation-form .form-group {
    margin-bottom: 1.25rem;
}

.reservation-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.reservation-form .required {
    color: var(--primary);
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

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

.reservation-form textarea {
    resize: vertical;
    min-height: 80px;
}

.reservation-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.reservation-submit:hover {
    background: #1d92c1;
    border-color: #1d92c1;
}

/* STORITVE – grid, description near icon, blue accents */
.storitve {
    position: relative;
    background: linear-gradient(180deg, #d4ebf7 0%, #e8f4fa 100%);
    padding: 56px 24px 64px;
    border-top: 4px solid var(--primary);
}

.inner-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: var(--secondary);
    border-bottom: 4px solid var(--primary);
    display: inline-block;
}

.storitve-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.storitve-item {
    margin: 0;
    position: relative;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 2px solid rgba(37, 179, 235, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 320px;
}

.storitve-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37, 179, 235, 0.2);
}

/* Header (icon + line + name): centered by default, slides up and fades out on hover */
.storitve-header {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: top 0.35s ease, transform 0.35s ease, opacity 0.3s ease;
    width: 100%;
    opacity: 1;
}

.storitve-item:hover .storitve-header {
    top: 1.5rem;
    transform: translate(-50%, 0);
    opacity: 0;
}

.storitve-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.storitve-item-link:hover .storitve-name,
.storitve-item-link:hover .storitve-icon {
    color: var(--primary);
}

.storitve-item-link:hover .storitve-line {
    background: var(--primary);
}

.storitve-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--primary);
    transition: color 0.2s;
}

.storitve-icon svg {
    width: 28px;
    height: 28px;
}

.storitve-line {
    display: block;
    width: 28px;
    height: 3px;
    margin: 0.5rem 0 0.75rem;
    background: var(--primary);
    transition: background 0.2s;
}

.storitve-name {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Description + image – visible on hover; image fills upper half of card */
.storitve-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
}

.storitve-item:hover .storitve-detail {
    opacity: 1;
    visibility: visible;
}

.storitve-detail img {
    width: 100%;
    height: 50%;
    min-height: 0;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

@media (min-width: 601px) {
    .storitve-item {
        aspect-ratio: 1;
        min-height: 0;
    }
    .storitve-detail img {
        height: 65%;
    }
}

.storitve-detail p {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #444;
    flex: 1;
    overflow: auto;
}

.storitve-detail .storitve-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.storitve-detail .storitve-link:hover {
    text-decoration: underline;
}

/* Storitve mobile popup – overlays only the Storitve section */
.storitve-popup {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.storitve-popup.storitve-popup--open {
    display: flex;
}

.storitve-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.storitve-popup-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid var(--primary);
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.storitve-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.storitve-popup-close:hover {
    background: var(--secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.storitve-popup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.storitve-popup-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.storitve-popup-content img {
    max-height: 250px;
    width: 100%;
    flex: 0 0 50%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.storitve-popup-text {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.storitve-popup-text strong {
    font-weight: 700;
    color: var(--secondary);
}

.storitve-popup-text p {
    display: inline;
    margin: 0;
    padding: 0;
}

.storitve-popup-content p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    padding: 0;
}

.storitve-popup-content .storitve-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.storitve-popup-content .storitve-link:hover {
    text-decoration: underline;
}

.storitve-item-expand-close {
    display: none;
}

/* NAŠE DELO – horizontal sliding gallery */
.nase-delo {
    background: rgba(0, 0, 0, 0.25);
    padding: 56px 0 64px;
    border-top: 4px solid var(--primary);
}

.nase-delo .section-title {
    color: #fff;
}

.gallery-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-top: 1rem;
    scrollbar-width: none;
}

.gallery-scroll-wrap.gallery-auto-scrolling {
    scroll-snap-type: none;
}

.gallery-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.gallery-scrollbar {
    padding: 0 24px 1rem;
    max-width: 50vw;
    margin: 0.5rem auto 0 auto;
}

.gallery-scrollbar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.gallery-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    min-width: 32px;
    max-width: 100px;
    background: var(--primary);
    border-radius: 4px;
    cursor: grab;
}

.gallery-scrollbar-thumb:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 0.2rem;
    padding: 0 24px 1rem;
    width: max-content;
    min-width: 100%;
}

.gallery-item {
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    width: min(400px, 85vw);
    overflow: hidden;
    border: 2px solid rgba(37, 179, 235, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37, 179, 235, 0.25);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 280;
    object-fit: cover;
}

/* FOOTER */
.main-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.9);
    border-top: 4px solid var(--primary);
    padding: 2.5rem 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-business-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
}

.footer-tagline {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.footer-hours {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.footer-hours dt {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.15rem;
}

.footer-hours dd {
    margin: 0 0 0.15rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 0.25rem;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--primary);
}

.footer-copy {
    margin: 1rem 0 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-map-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.footer-map {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.footer-map-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s, color 0.2s;
}

.footer-map-link:hover {
    background: rgba(0, 0, 0, 0.35);
    color: var(--primary);
}

/* Current nav link (subpages) */
.header-nav-link--current {
    font-weight: 700;
    color: var(--primary);
}

/* HISTORY / SUBPAGE */
.history-page {
    min-height: 60vh;
}

.history-hero {
    background: linear-gradient(180deg, #d4ebf7 0%, #e8f4fa 100%);
    padding: 5rem 24px 3rem;
    border-top: 4px solid var(--primary);
    text-align: center;
}

.history-title {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--secondary);
    border-bottom: 4px solid var(--primary);
    display: inline-block;
}

.history-lead {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
    opacity: 0.9;
}

.history-content-section {
    padding: 2.5rem 24px 4rem;
}

.timeline-intro,
.timeline-outro {
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #fff;
}

.timeline-intro {
    font-size: 1.15rem;
}

.timeline-outro {
    margin-top: 2.5rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-outro a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.timeline-outro a:hover {
    text-decoration: underline;
}

/* Timeline: vertical blue line + milestones */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: translateX(-2px);
    border-radius: 2px;
}

.timeline-milestone {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    gap: 0 2rem;
    align-items: start;
    margin-bottom: 2rem;
    min-height: 100px;
}

.timeline-milestone:last-child {
    margin-bottom: 0;
}

.timeline-milestone-content {
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--primary);
}

.timeline-milestone--right .timeline-milestone-content {
    border-left: none;
    border-right: 3px solid var(--primary);
}

.timeline-milestone-spacer {
    /* empty cell; grid placement only */
}

.timeline-milestone-marker {
    width: 20px;
    height: 20px;
    margin-top: 1.5rem;
    background: var(--primary);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Left: content in column 1, marker in 2, spacer in 3 */
.timeline-milestone--left .timeline-milestone-content {
    grid-column: 1;
    grid-row: 1;
}

.timeline-milestone--left .timeline-milestone-marker {
    grid-column: 2;
    grid-row: 1;
}

.timeline-milestone--left .timeline-milestone-spacer {
    grid-column: 3;
    grid-row: 1;
}

/* Right: spacer in 1, marker in 2, content in 3 */
.timeline-milestone--right .timeline-milestone-spacer {
    grid-column: 1;
    grid-row: 1;
}

.timeline-milestone--right .timeline-milestone-marker {
    grid-column: 2;
    grid-row: 1;
}

.timeline-milestone--right .timeline-milestone-content {
    grid-column: 3;
    grid-row: 1;
}

.timeline-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.timeline-milestone-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary);
}

/* Legacy page-content (e.g. if used elsewhere) */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary);
}

.page-content-intro {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--secondary);
    margin: 2rem 0 0.75rem 0;
}

.page-content h2:first-of-type {
    margin-top: 0;
}

.page-content p {
    margin: 0 0 1rem 0;
}

.page-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content-outro {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
    body { background-attachment: scroll; }
    .hero { padding: 56px 20px 64px; min-height: 320px; }
    .hero-actions { flex-direction: column; }
    .hero-btn { width: 100%; max-width: 260px; text-align: center; box-sizing: border-box; }
    .storitve { padding: 36px 16px 44px; }
    .nase-delo { padding: 36px 0 44px; }
    .gallery-track { padding: 0 16px 1rem; gap: 0.2rem; }
    .storitve-list { grid-template-columns: repeat(2, 1fr); gap: 1rem; position: relative; min-height: 200px; }
    .storitve-item { padding: 1rem 0.75rem; min-height: 140px; cursor: pointer; }
    .storitve-item .storitve-detail {
        display: none;
    }
    .storitve-item .storitve-header {
        opacity: 1;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .storitve-item:hover .storitve-header {
        opacity: 1;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .main-header { height: auto; min-height: 100px; flex-wrap: wrap; }
    .main-header--scrolled { min-height: 72px; }
    .header-logo-wrap { padding: 16px 28px 16px 20px; clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); -webkit-clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); }
    .main-header--scrolled .header-logo-wrap { padding: 12px 20px 12px 16px; }
    .header-rest { padding: 12px 20px 12px 28px; }
    .main-header--scrolled .header-rest { padding: 10px 16px 10px 20px; }
    .header-rest::before { width: 30px; left:101px }
    .main-header--scrolled .header-rest::before { width: 22px; left: 69px; }
    .main-logo { height: 65px; }
    .main-header--scrolled .main-logo { height: 42px; }
    /* Mobile: hamburger menu */
    .header-hamburger { display: flex; }
    .header-rest { position: static; }
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        min-height: 0;
        background: var(--secondary);
        border-top: 2px solid var(--primary);
        padding: 0.5rem 0 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 99;
    }
    .main-header--nav-open .header-nav {
        max-height: 280px;
        opacity: 1;
        visibility: visible;
    }
    .header-nav-link,
    .header-nav-link--btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        border-radius: 0;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    .header-nav-link:hover,
    .header-nav-link--btn:hover {
        background: rgba(37, 179, 235, 0.15);
        border-left-color: var(--primary);
    }
    .header-nav-link--outline {
        border: none;
        border-left: 3px solid var(--primary);
        margin: 0;
    }
    .header-nav-link--cta {
        width: auto;
        background: var(--primary);
        color: #fff;
        border-left-color: var(--primary);
        margin: 0.25rem auto 0;
    }
    .header-nav-link--cta:hover {
        background: #1d92c1;
        border-left-color: #1d92c1;
        color: #fff;
    }
    .main-header--nav-open .header-hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .main-header--nav-open .header-hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .main-header--nav-open .header-hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .history-hero { padding: 3.5rem 20px 2rem; }
    .history-title { font-size: 1.5rem; }
    .history-content-section { padding: 1.5rem 20px 3rem; }
    .timeline-line { left: 12px; transform: none; }
    .timeline-milestone {
        grid-template-columns: 24px 1fr;
        gap: 0 1rem;
        margin-bottom: 1.5rem;
        min-height: 0;
    }
    .timeline-milestone-spacer { display: none; }
    .timeline-milestone--left .timeline-milestone-content,
    .timeline-milestone--right .timeline-milestone-content {
        grid-column: 2;
        border-left: 3px solid var(--primary);
        border-right: none;
    }
    .timeline-milestone--left .timeline-milestone-marker,
    .timeline-milestone--right .timeline-milestone-marker {
        grid-column: 1;
        margin-top: 1.25rem;
        margin-left: 2px;
    }
    .timeline-milestone--left .timeline-milestone-spacer,
    .timeline-milestone--right .timeline-milestone-spacer {
        display: none;
    }
    .main-footer { padding: 1.5rem 20px; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .footer-info { align-items: center; }
    .footer-business-name { text-align: center; }
    .footer-contact { justify-content: center; }
    .footer-contact-link { font-size: 0.85rem; }
    .footer-copy { font-size: 0.75rem; text-align: center; }
    .footer-map { height: 200px; }
}
