/* ===========================
   V OČAS NA LODI - Stylesheet
   =========================== */

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

:root {
    --primary: #1a6b8a;
    --primary-dark: #145a75;
    --secondary: #2d8f4e;
    --accent: #f4a261;
    --accent-hover: #e8913a;
    --bg: #f8fffe;
    --bg-alt: #f0f9f7;
    --text: #1a1a2e;
    --text-light: #4a4a5e;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

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

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

img, svg {
    max-width: 100%;
    height: auto;
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: background var(--transition), box-shadow var(--transition);
}

.nav--transparent {
    background: transparent;
    box-shadow: none;
}

.nav--transparent .nav__link,
.nav--transparent .nav__phone span,
.nav--transparent .nav__logo span {
    color: var(--white);
}

.nav--transparent .nav__phone svg {
    color: var(--white);
}

.nav--transparent .nav__hamburger span {
    background: var(--white);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

.nav__menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav__link {
    display: block;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--primary);
    background: rgba(26, 107, 138, 0.08);
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
}

.nav__phone:hover {
    color: var(--accent);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 107, 138, 0.2) 50%,
        rgba(26, 26, 46, 0.4) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

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

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    letter-spacing: 0.3px;
}

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

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
}

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

.btn--secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section--light {
    background: var(--bg);
}

.section--wave {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* --- About --- */
.about__text {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
}

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

.about__feature {
    text-align: center;
    padding: 30px 20px;
}

.about__feature-icon {
    margin-bottom: 20px;
}

.about__feature h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.about__feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Boats --- */
.boats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.boat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(26, 107, 138, 0.08);
}

.boat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.boat-card__icon {
    margin-bottom: 20px;
}

.boat-card__title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.boat-card__capacity {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.boat-card__desc {
    color: var(--text-light);
    font-size: 0.93rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.boat-card__price {
    font-size: 1.05rem;
    color: var(--text);
}

.boat-card__price strong {
    font-size: 1.3rem;
    color: var(--primary);
}

.boat-card--extra {
    border: 2px dashed rgba(26, 107, 138, 0.2);
    background: rgba(26, 107, 138, 0.02);
}

/* --- Pricing --- */
.pricing {
    max-width: 800px;
    margin: 0 auto;
}

.pricing__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing__table thead {
    background: var(--primary);
    color: var(--white);
}

.pricing__table th {
    padding: 18px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    letter-spacing: 0.5px;
}

.pricing__table th:last-child {
    text-align: right;
}

.pricing__table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(26, 107, 138, 0.08);
    vertical-align: middle;
}

.pricing__table tbody tr:last-child td {
    border-bottom: none;
}

.pricing__table tbody tr:hover {
    background: rgba(26, 107, 138, 0.03);
}

.pricing__route {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.pricing__price {
    text-align: right;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    white-space: nowrap;
}

.pricing__highlight {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.08) 0%, rgba(244, 162, 97, 0.15) 100%);
}

.pricing__highlight td {
    border-bottom: none;
}

.pricing__highlight .pricing__price {
    color: var(--accent-hover);
    font-size: 1.1rem;
}

.pricing__note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* --- Route --- */
.route {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.route__map {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.route__svg {
    width: 100%;
    height: auto;
}

.route__info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.route__info p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.route__details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.route__details li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.route__details li svg {
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.gallery__item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery__placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 75vh;
}

.lightbox__content svg {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: var(--radius);
}

.lightbox__caption {
    color: var(--white);
    margin-top: 16px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    z-index: 2001;
}

.lightbox__close:hover {
    color: var(--accent);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

/* --- Contact --- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
}

.contact__item a {
    color: var(--primary);
    font-weight: 500;
}

.contact__item span {
    color: var(--text-light);
}

.contact__map {
    margin-top: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.contact__form-wrapper h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__group label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form__group input,
.form__group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(26, 107, 138, 0.15);
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--bg);
}

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

.form__group textarea {
    resize: vertical;
}

.contact__form .btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.form__note {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin-top: 4px;
}

/* --- Footer --- */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 14px;
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__links h4,
.footer__social h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer__links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__social-icons {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: var(--accent);
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Tablet */
@media (max-width: 1024px) {
    .boats {
        grid-template-columns: repeat(2, 1fr);
    }

    .route {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

/* Mobile */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        gap: 0;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__menu .nav__link {
        color: var(--text);
        padding: 14px 16px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav__phone {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .about__features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .pricing__table th,
    .pricing__table td {
        padding: 14px 16px;
    }

    .pricing__table thead {
        display: none;
    }

    .pricing__table,
    .pricing__table tbody,
    .pricing__table tr,
    .pricing__table td {
        display: block;
        width: 100%;
    }

    .pricing__table tr {
        margin-bottom: 12px;
        background: var(--white);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .pricing__table td {
        border-bottom: none;
        text-align: left;
    }

    .pricing__price {
        text-align: left;
        padding-top: 0;
        font-size: 1.15rem;
    }

    .pricing__highlight {
        border: 2px solid var(--accent);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .contact__form-wrapper {
        padding: 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .lightbox__prev,
    .lightbox__next {
        padding: 12px 14px;
        font-size: 1.5rem;
    }

    .lightbox__prev { left: 10px; }
    .lightbox__next { right: 10px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .boat-card {
        padding: 24px 18px;
    }
}
