/**
 * Port Shipping - Montenegro Maritime Group
 * Corporate Stylesheet (Multi-Page Architecture - Mobile Optimized)
 */

:root {
    --bg-primary: #070d18;
    --bg-secondary: #0c1626;
    --bg-surface: #111e33;
    --bg-surface-hover: #162640;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(212, 175, 55, 0.45);
    
    --gold-accent: #c5a869;
    --gold-muted: #9c834f;
    --gold-light: #dfc893;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, .display-font {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-weight: 700;
}

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

/* Utility Kicker / Label */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 16px;
}

.kicker::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background-color: var(--gold-accent);
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold-accent);
    color: #070d18;
    border-color: var(--gold-accent);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--gold-accent);
    color: var(--gold-light);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Top Utility Bar */
.top-bar {
    background-color: #040810;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar-contact a:hover {
    color: var(--gold-accent);
}

/* Header Navigation */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(7, 13, 24, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

nav.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

nav.nav-links a:hover, nav.nav-links a.active {
    color: var(--gold-accent);
}

nav.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold-accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* Page Header (for Inner Pages) */
.page-header {
    position: relative;
    padding: 70px 0 50px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: url('../images/cruise_hero.jpg') center center/cover no-repeat;
    opacity: 0.15;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 13, 24, 0.8) 0%, #0c1626 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: clamp(26px, 4vw, 40px);
    color: #ffffff;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Styling */
section {
    padding: 70px 0;
    position: relative;
}

.section-intro {
    max-width: 680px;
    margin-bottom: 40px;
}

.section-intro.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: clamp(24px, 3.2vw, 34px);
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    background: url('../images/cruise_hero.jpg') center right/cover no-repeat;
    opacity: 0.32;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #070d18 0%, rgba(7, 13, 24, 0.94) 48%, rgba(7, 13, 24, 0.4) 100%),
                linear-gradient(0deg, #070d18 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero-title span {
    color: var(--gold-accent);
}

.hero-desc {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Stats Strip */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    min-width: 0;
}

.metric-item .number {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.metric-item .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Corporate Partner Logos Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.partner-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.partner-card:hover {
    border-color: var(--border-focus);
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.partner-svg {
    height: 42px;
    width: auto;
    max-width: 100%;
    margin-bottom: 12px;
    fill: #cbd5e1;
    transition: fill 0.2s ease;
}

.partner-card:hover .partner-svg {
    fill: var(--gold-light);
}

.partner-meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.partner-fleet {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Fleet Grid (Used in fleet.php) */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Contact Grid (Used in contact.php) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Process Checklist Grid (Used in process.php) */
.process-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Showcase Feature Component */
.showcase-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.showcase-feature.reverse {
    direction: rtl;
}

.showcase-feature.reverse > * {
    direction: ltr;
}

.showcase-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.showcase-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-img:hover img {
    transform: scale(1.02);
}

.showcase-content {
    padding: 10px 0;
}

.showcase-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 12px;
}

.showcase-content p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.showcase-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.showcase-points li {
    font-size: 13.5px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-points li::before {
    content: '✓';
    color: var(--gold-accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1a2b47;
    color: #ffffff;
    border-color: var(--border-focus);
}

/* Jobs Table */
.jobs-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    min-width: 0;
}

.job-row:hover {
    border-color: var(--border-focus);
    background-color: var(--bg-surface-hover);
    transform: translateY(-1px);
}

.job-ref {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.job-dept {
    font-size: 13px;
    color: var(--text-secondary);
}

.job-contract {
    font-size: 13px;
    color: var(--text-muted);
}

.job-salary {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.job-salary span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}

.job-action .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-col {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px 20px;
    min-width: 0;
}

.step-index {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.process-col h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.process-col p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Forms */
.form-wrapper {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 36px 30px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-field.full {
    grid-column: span 2;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-field label span {
    color: var(--gold-accent);
}

.input-control {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.input-control:focus {
    border-color: var(--gold-accent);
}

select.input-control {
    cursor: pointer;
}

select.input-control option {
    background-color: #0c1626;
    color: #ffffff;
}

textarea.input-control {
    resize: vertical;
    min-height: 90px;
}

.file-box {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.01);
    transition: border-color 0.2s ease;
    display: block;
    width: 100%;
}

.file-box:hover {
    border-color: var(--gold-accent);
}

.file-box input[type="file"] {
    display: none;
}

.file-box-text {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-word;
}

.file-box-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.alert-box {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 24px;
}

.alert-box.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-box.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-block {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
}

.faq-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    color: #ffffff;
    user-select: none;
    gap: 12px;
}

.faq-icon {
    font-size: 18px;
    color: var(--gold-accent);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-block.open .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
}

.faq-block.open .faq-body {
    max-height: 250px;
    padding-bottom: 18px;
}

/* Footer */
footer.site-footer {
    background-color: #040810;
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 24px 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-cols img {
    height: 44px;
    width: auto;
    margin-bottom: 14px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bar {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-feature, .showcase-feature.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
    }
    .showcase-img img {
        height: 280px;
    }
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    .job-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .job-action .btn {
        width: 100%;
    }
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .process-checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav.nav-links, .top-bar {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero {
        padding: 50px 0 40px 0;
        min-height: auto;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-field.full {
        grid-column: span 1;
    }
    .form-wrapper {
        padding: 24px 16px;
    }
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .metric-item .number {
        font-size: 18px;
    }
    .metric-item .label {
        font-size: 10px;
    }
}
