/* =============================================================================
   Boka Cruises — page.css (Faza 9.3)
   Generic internal page styles: page hero, breadcrumb, prose, page-specific
   blocks za About/Contact/FAQ/Blog/Team/Gallery/Legal.
   ============================================================================= */

/* =============================================================================
   1. Page hero (bredbrand) — sve internal stranice imaju ovo iznad fold-a
   ============================================================================= */
.page-hero {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
    background: var(--bc-gradient-sea);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.page-hero--image {
    padding-block: clamp(5rem, 10vw, 8rem);
}
.page-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bc-bg-image, none) center/cover no-repeat;
    z-index: 0;
}
.page-hero--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 61, 84, 0.4) 0%, rgba(15, 61, 84, 0.75) 100%);
    z-index: 1;
}
.page-hero__inner {
    position: relative;
    z-index: 2;
}
.page-hero__eyebrow {
    color: var(--bc-primary-soft);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: var(--bc-fs-sm);
    font-weight: 700;
    margin-bottom: var(--bc-space-3);
}
.page-hero__title {
    color: #fff;
    font-size: var(--bc-fs-4xl);
    margin-bottom: var(--bc-space-3);
    line-height: var(--bc-lh-tight);
}
.page-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--bc-fs-lg);
    line-height: var(--bc-lh-relaxed);
    max-width: 720px;
    margin: 0 auto;
}

/* =============================================================================
   2. Breadcrumb
   ============================================================================= */
.breadcrumb {
    padding: var(--bc-space-3) 0;
    background: var(--bc-bg-soft);
    border-bottom: 1px solid var(--bc-border);
}
.breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bc-space-2);
    font-size: var(--bc-fs-sm);
}
.breadcrumb__list li {
    display: flex;
    align-items: center;
}
.breadcrumb__list li + li::before {
    content: '›';
    margin: 0 var(--bc-space-2);
    color: var(--bc-text-muted);
}
.breadcrumb a {
    color: var(--bc-text-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--bc-primary); }
.breadcrumb__list li[aria-current="page"] {
    color: var(--bc-text);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   2.1 Default page-body (generic CMS page) + reduced spacing after breadcrumb
   -----------------------------------------------------------------------------
   Breadcrumb već razdvaja vizualno (border-bottom + bg-soft fill), pa ne treba
   pun --bc-section-y razmak (48-96px) između breadcrumb-a i prvog body bloka.
   Industry standard (Booking, Airbnb, Viator): 16-32px razmak. */

.page-body { padding: var(--bc-section-y) 0; }
.page-body__prose {
    max-width: var(--bc-container-narrow);
    margin: 0 auto;
}

/* Univerzalno smanjenje top padding-a kad body sekcija slijedi ODMAH iza
   breadcrumb-a. Adjacent sibling selektor — ne dira sekcije koje nisu prve. */
.breadcrumb + .page-body,
.breadcrumb + .blog-page,
.breadcrumb + .blog-detail,
.breadcrumb + .about-story,
.breadcrumb + .contact-section,
.breadcrumb + .contact-suite,
.breadcrumb + .faq-page,
.breadcrumb + .team-page,
.breadcrumb + .gallery-page,
.breadcrumb + .legal-page,
.breadcrumb + .testimonials-page {
    padding-top: clamp(1rem, 2.5vw, 2rem); /* 16-32px umjesto 48-96px */
}

/* =============================================================================
   3. Prose (rich text body — blog, legal, about)
   ============================================================================= */
.prose {
    color: var(--bc-text);
    line-height: var(--bc-lh-relaxed);
    font-size: var(--bc-fs-md);
}
.prose > * + * { margin-top: var(--bc-space-4); }
.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: var(--bc-space-6);
    margin-bottom: var(--bc-space-3);
    color: var(--bc-secondary);
}
.prose h1 { font-size: var(--bc-fs-3xl); }
.prose h2 { font-size: var(--bc-fs-2xl); }
.prose h3 { font-size: var(--bc-fs-xl); }
.prose h4 { font-size: var(--bc-fs-lg); }
.prose p { margin-bottom: var(--bc-space-4); }
.prose ul, .prose ol { padding-left: var(--bc-space-5); margin-bottom: var(--bc-space-4); }
.prose li { margin-bottom: var(--bc-space-2); }
.prose img {
    border-radius: var(--bc-radius-md);
    margin: var(--bc-space-5) auto;
    max-width: 100%;
}
.prose blockquote {
    border-left: 4px solid var(--bc-primary);
    padding: var(--bc-space-3) var(--bc-space-5);
    margin: var(--bc-space-5) 0;
    background: var(--bc-bg-soft);
    border-radius: 0 var(--bc-radius-md) var(--bc-radius-md) 0;
    font-style: italic;
    color: var(--bc-text-muted);
}
.prose code {
    background: var(--bc-bg-soft);
    padding: 0.15rem 0.4rem;
    border-radius: var(--bc-radius-sm);
    font-family: var(--bc-font-mono);
    font-size: 0.9em;
    color: var(--bc-secondary);
}
.prose pre {
    background: var(--bc-secondary-dk);
    color: #fff;
    padding: var(--bc-space-4);
    border-radius: var(--bc-radius-md);
    overflow-x: auto;
    margin: var(--bc-space-5) 0;
}
.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.prose a {
    color: var(--bc-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--bc-primary-dk); }

/* =============================================================================
   4. About page specifics
   ============================================================================= */
.about-story {
    padding: var(--bc-section-y) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.about-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--bc-space-7);
    /* #070 v2 (2026-05-24): align-items: start umjesto stretch.
       Stretch pristup (slika popunjava cijelu visinu teksta) je problem zato
       što razne lokale imaju različitu dužinu teksta — EN je 10-15% duži
       od CG i pravi prazan prostor ispod slike (slika nije mogla da se
       stretchne pravilno u svim browser-ima/situacijama).
       
       Novi pristup (Booking.com / Airbnb / Tripadvisor "story" pattern):
       slika ima FIKSAN aspect-ratio nezavisan od dužine teksta. Tekst desno
       preuzima svoju prirodnu visinu, ne dijeli dimenzije sa slikom. Kombinujemo
       sa position: sticky tako da slika "prati" user-a dok skrolla tekst —
       premium feel bez ikakve praznine. */
    align-items: start;
}
@media (max-width: 991.98px) {
    .about-story__grid {
        grid-template-columns: 1fr;
        gap: var(--bc-space-5);
    }
}
.about-story__img {
    border-radius: var(--bc-radius-xl);
    overflow: hidden;
    box-shadow: var(--bc-shadow-3);
    /* #070 v4 (2026-05-24): padding-top hack umjesto aspect-ratio.
       aspect-ratio + position: sticky + position: absolute child kombinacija
       je dala rendering edge case gdje img ostaje na svom intrinsic ratio.
       Padding-top hack (radi od 2010-ih, 100% kompatibilno):
         - parent dobija fiksnu visinu kroz padding-top:125% (= 5/4 = 4:5 ratio)
         - parent je position:relative anchor za absolute child
         - img sa position:absolute + inset:0 GARANTOVANO popuni 100%
       Sticky positioning radi i sa relative parent-om. */
    position: sticky;
    top: calc(var(--bc-header-h, 72px) + 1rem);
}
.about-story__img::before {
    content: '';
    display: block;
    padding-top: 125%; /* 4:5 portrait ratio (5÷4 = 1.25) */
}
.about-story__img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 991.98px) {
    /* Mobile: stack layout — slika gore (landscape ratio), tekst dolje.
       Sticky se gasi (single column nema scroll context). */
    .about-story__img {
        position: relative;
    }
    .about-story__img::before {
        padding-top: 62.5%; /* 16:10 landscape (10÷16 = 0.625) */
    }
}

.about-values {
    padding: clamp(2rem, 4vw, 3rem) 0 var(--bc-section-y);
    background: var(--bc-bg-soft);
}
.about-values__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bc-space-5);
}
@media (max-width: 991.98px) {
    .about-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .about-values__grid { grid-template-columns: 1fr; }
}
.value-card {
    text-align: center;
    padding: var(--bc-space-5);
}
.value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--bc-primary-soft);
    color: var(--bc-primary-dk);
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: var(--bc-space-3);
}
.value-card h3 {
    color: var(--bc-secondary);
    margin-bottom: var(--bc-space-2);
    font-size: var(--bc-fs-lg);
}
.value-card p {
    color: var(--bc-text-muted);
    line-height: var(--bc-lh-relaxed);
    margin: 0;
}

/* =============================================================================
   5. Contact page (forma + info + mapa)
   ============================================================================= */
.contact-section {
    padding: var(--bc-section-y) 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--bc-space-7);
}
@media (max-width: 991.98px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--bc-space-5);
    }
}

.contact-info {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-xl);
    padding: var(--bc-space-6);
    box-shadow: var(--bc-shadow-1);
}
.contact-info__row {
    display: flex;
    align-items: flex-start;
    gap: var(--bc-space-3);
    padding: var(--bc-space-3) 0;
    border-bottom: 1px solid var(--bc-border);
}
.contact-info__row:last-child { border-bottom: 0; }
.contact-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bc-primary-soft);
    color: var(--bc-primary-dk);
    flex-shrink: 0;
    font-size: 1.2rem;
}
.contact-info__label {
    display: block;
    color: var(--bc-text-muted);
    font-size: var(--bc-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: var(--bc-space-1);
}
.contact-info__value {
    color: var(--bc-text);
    font-size: var(--bc-fs-base);
    font-weight: 600;
    text-decoration: none;
}
.contact-info__value:hover { color: var(--bc-primary); }

.contact-form {
    background: var(--bc-bg);
    padding: var(--bc-space-6);
    border-radius: var(--bc-radius-xl);
    border: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow-1);
}

.contact-map {
    margin-top: var(--bc-space-6);
    border-radius: var(--bc-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    box-shadow: var(--bc-shadow-2);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =============================================================================
   6. FAQ page
   ============================================================================= */
.faq-page {
    padding: var(--bc-section-y) 0;
}
.faq-page__categories {
    display: flex;
    gap: var(--bc-space-2);
    flex-wrap: wrap;
    margin-bottom: var(--bc-space-6);
    justify-content: center;
}
.faq-page__category {
    padding: 0.5rem 1.1rem;
    background: var(--bc-bg-soft);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-pill);
    color: var(--bc-text);
    font-size: var(--bc-fs-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--bc-transition-fast),
                color var(--bc-transition-fast),
                border-color var(--bc-transition-fast);
}
.faq-page__category:hover,
.faq-page__category.is-active {
    background: var(--bc-primary);
    color: #fff;
    border-color: var(--bc-primary);
}

/* =============================================================================
   7. Blog index + detail
   ============================================================================= */
.blog-page {
    padding: var(--bc-section-y) 0;
}
.blog-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bc-space-5);
}
@media (max-width: 1023.98px) {
    .blog-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
    .blog-page__grid { grid-template-columns: 1fr; }
}

/* Blog detail */
.blog-detail {
    padding: var(--bc-section-y) 0;
}
.blog-detail__inner {
    max-width: var(--bc-container-narrow);
    margin: 0 auto;
}
.blog-detail__meta {
    display: flex;
    align-items: center;
    gap: var(--bc-space-3);
    color: var(--bc-text-muted);
    font-size: var(--bc-fs-sm);
    margin-bottom: var(--bc-space-3);
    flex-wrap: wrap;
}
.blog-detail__meta i { color: var(--bc-primary); }
.blog-detail__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: var(--bc-space-5);
    color: var(--bc-secondary);
}
.blog-detail__hero {
    margin-bottom: var(--bc-space-6);
    border-radius: var(--bc-radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.blog-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-detail__share {
    margin-top: var(--bc-space-7);
    padding-top: var(--bc-space-5);
    border-top: 1px solid var(--bc-border);
    display: flex;
    align-items: center;
    gap: var(--bc-space-3);
    flex-wrap: wrap;
}
.blog-detail__share-label {
    font-weight: 700;
    color: var(--bc-secondary);
}

/* =============================================================================
   8. Team page (cards grid)
   ============================================================================= */
.team-page {
    padding: var(--bc-section-y) 0;
}
.team-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bc-space-5);
}
@media (max-width: 1023.98px) {
    .team-page__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .team-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) {
    .team-page__grid { grid-template-columns: 1fr; }
}

.team-card {
    text-align: center;
    background: var(--bc-bg);
    border-radius: var(--bc-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bc-border);
    transition: transform var(--bc-transition-base),
                box-shadow var(--bc-transition-base);
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bc-shadow-3);
}
.team-card__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bc-bg-soft);
}
.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--bc-ease-out);
}
.team-card:hover .team-card__photo img {
    transform: scale(1.05);
}
.team-card__body {
    padding: var(--bc-space-4);
}
.team-card__name {
    color: var(--bc-secondary);
    font-size: var(--bc-fs-md);
    font-weight: 700;
    margin-bottom: var(--bc-space-1);
}
.team-card__role {
    color: var(--bc-primary);
    font-size: var(--bc-fs-sm);
    font-weight: 600;
    margin-bottom: var(--bc-space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.team-card__contact {
    display: flex;
    justify-content: center;
    gap: var(--bc-space-2);
}
.team-card__contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bc-bg-soft);
    color: var(--bc-secondary);
    border-radius: 50%;
    transition: background var(--bc-transition-fast),
                color var(--bc-transition-fast);
}
.team-card__contact a:hover {
    background: var(--bc-primary);
    color: #fff;
}

/* =============================================================================
   9. Gallery (Fancybox lightbox grid)
   ============================================================================= */
.gallery-page {
    padding: var(--bc-section-y) 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bc-space-3);
}
@media (max-width: 1023.98px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--bc-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bc-ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
    content: '\F4D7'; /* bi-arrows-fullscreen */
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 61, 84, 0.6);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity var(--bc-transition-base);
}
.gallery-item:hover::after {
    opacity: 1;
}

/* =============================================================================
   10. Legal pages (privacy, terms, cookies)
   ============================================================================= */
.legal-page {
    padding: var(--bc-section-y) 0;
}
.legal-page__inner {
    max-width: var(--bc-container-narrow);
    margin: 0 auto;
}
.legal-page__meta {
    color: var(--bc-text-muted);
    font-size: var(--bc-fs-sm);
    margin-bottom: var(--bc-space-5);
    padding-bottom: var(--bc-space-3);
    border-bottom: 1px solid var(--bc-border);
}

/* =============================================================================
   11. Testimonials full page
   ============================================================================= */
.testimonials-page {
    padding: var(--bc-section-y) 0;
}
.testimonials-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bc-space-5);
}
@media (max-width: 1023.98px) { .testimonials-page__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px)  { .testimonials-page__grid { grid-template-columns: 1fr; } }

/* =============================================================================
   12. CTA banner (reusable, na bottom-u svake page)
   ============================================================================= */
.cta-banner {
    padding: var(--bc-section-y-sm) 0;
    background: var(--bc-gradient-sunset);
    color: #fff;
    text-align: center;
}
.cta-banner h2 {
    color: #fff;
    margin-bottom: var(--bc-space-3);
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--bc-space-5);
    max-width: 580px;
    margin-inline: auto;
}
.cta-banner__actions {
    display: flex;
    gap: var(--bc-space-3);
    justify-content: center;
    flex-wrap: wrap;
}
