* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg-body);
}

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

li {
    padding: 5px 0;
    margin: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-header);
    border-bottom: 1px solid #eef2f7;
    height: var(--header-height);
}

header .inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    gap: 16px;
}

section {
    scroll-margin-top: var(--header-height);
}

.logo {
    font-weight: 900;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
}
.logo img {
    margin-right: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.2rem;
    border-radius: 14px;
    background: var(--brand);
    color: var(--text-on-brand);
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    border: none
}
.btn:hover {
    background: var(--brand-hover);
}
.btn.secondary:hover {
    background: var(--accent-hover);
}
@media (max-width: 768px) {
    .btn {
        padding: .7rem .7rem;
        font-size: .9rem;
    }
}

.btn.secondary {
    background: var(--accent);
    color: var(--text-on-accent);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--ring);
    color: var(--ink)
}

/* Hamburger button */
.hamburger {
    display: none;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    padding: 0px;
}

nav a {
    margin: 0 10px;
    font-weight: 600
}
nav a:hover {
    color: var(--brand-hover);
}

/* Mobile styles */
@media (max-width: 760px) {
    nav {
        display: none; /* hide menu by default */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px; right: 12px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }
    nav.show {
        display: flex; /* visible when toggled */
    }
    nav a {
        display: block;
        margin: 0;
        padding: 15px 10px;
        border-bottom: 1px solid #e5e7eb;
    }
    .hamburger {
        display: inline-flex;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: grid;
    place-items: center;
    background: linear-gradient(
            180deg,
            #0b1324 0%,
            #102443 100%
    ); /* fallback only */
    color: #fff;
    text-align: center;
   padding: 40px 16px;
}

/* Hero background container */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* Overlay for better text readability */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            180deg,
            var(--hero-overlay-grad1) 0%,
            var(--hero-overlay-grad2) 100%
    );
    pointer-events: none;
    width: 100%;
    height: 100%;
}


/* Background slides setup */
.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;

}

/* Stagger each image by 6 seconds (24s total / 4 images) */
/*
    animation: slideshow 24s ease-in-out infinite;
    animation-delay: 0s;
 */

/*
.hero-bg .bg-slide:nth-child(2) {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
}
*/

.hero-bg .bg-slide:nth-child(1) {
    animation: slideshow-v1 24s ease-in-out infinite;
    animation-delay: 0s;
}
.hero-bg .bg-slide:nth-child(2) {
    animation: slideshow-v2 24s ease-in-out infinite;
    animation-delay: 6s;
}
.hero-bg .bg-slide:nth-child(3) {
    animation: slideshow-v3 24s ease-in-out infinite;
    animation-delay: 12s;
}
.hero-bg .bg-slide:nth-child(4) {
    animation: slideshow-v4 24s ease-in-out infinite;
    animation-delay: 18s;
}

/* CUSTOM */
/*
.hero-bg .bg-slide:nth-child(1) {
    animation: slideshow-v1 24s ease-in-out infinite;
    animation-delay: 0s;
}
.hero-bg .bg-slide:nth-child(2) {
    animation: slideshow-v2 24s ease-in-out infinite;
    animation-delay: 6s;
}
.hero-bg .bg-slide:nth-child(3) {
    animation: slideshow-v3 24s ease-in-out infinite;
    animation-delay: 12s;
}
.hero-bg .bg-slide:nth-child(4) {
    animation: slideshow-v4 24s ease-in-out infinite;
    animation-delay: 18s;
}
 */

/* ORIGINAL */
/*
.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow 24s ease-in-out infinite;
}
.hero-bg .bg-slide:nth-child(2) { animation-delay: 0s; }
.hero-bg .bg-slide:nth-child(2) { animation-delay: 6s; }
.hero-bg .bg-slide:nth-child(3) { animation-delay: 12s; }
.hero-bg .bg-slide:nth-child(4) { animation-delay: 18s; }
*/


@keyframes slideshow-v1 {
    0% {
        opacity: 0;
        transform: scale(2) translateX(20%) translateY(0);
    }
    2% {
        opacity: 1;
        transform: scale(2) translateX(20%) translateY(0);
    }
    25% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
    27% {
        opacity: 0;
        transform: scale(1) translateX(0) translateY(0);
    }
}
@keyframes slideshow-v2 {
    0% {
        opacity: 0;
        transform: scale(2) translateX(-20%) translateY(20%)
    }
    2% {
        opacity: 1;
        transform: scale(2) translateX(-20%) translateY(20%)
    }
    25% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
    27% {
        opacity: 0;
        transform: scale(1) translateX(0) translateY(0);
    }
}
@keyframes slideshow-v3 {
    0% {
        opacity: 0;
        transform: scale(2) translateX(6%) translateY(0%);
    }
    2% {
        opacity: 1;
        transform: scale(2) translateX(6%) translateY(0%);
    }
    25% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
    27% {
        opacity: 0;
        transform: scale(1) translateX(0) translateY(0);
    }
}
@keyframes slideshow-v4 {
    0% {
        opacity: 0;
        transform: scale(1.7) translateX(14%) translateY(0);
    }
    2% {
        opacity: 1;
        transform: scale(1.7) translateX(14%) translateY(0);
    }
    25% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0);
    }
    27% {
        opacity: 0;
        transform: scale(1) translateX(0) translateY(0);
    }
}





/* Slideshow with Ken Burns effect and crossfade */
@keyframes slideshow {
    0% {
        opacity: 0;
        transform: scale(1.0) translateX(0) translateY(0);
    }
    2% {
        opacity: 1;
        transform: scale(1.0) translateX(0) translateY(0);
    }
    25% {
        opacity: 1;
        transform: scale(1.1) translateX(-2%) translateY(-1%);
    }
    27% {
        opacity: 0;
        transform: scale(1.1) translateX(-2%) translateY(-1%);
    }
    100% {
        opacity: 0;
        transform: scale(1.1) translateX(-2%) translateY(-1%);
    }
}

/* Foreground content above images */
.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 10px
}

.hero p {
    opacity: .9;
    max-width: 720px;
    margin: 0 auto 16px
}

.cta-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 18px
}

.section-title {
    font-size: 1.6rem;
    margin: 0 0 14px;
    color: var(--brand-2nd);
}

h3 {
    color: var(--brand-3rd);
}

.grid {
    display: grid;
    grid-template-columns:repeat(12, 1fr);
    gap: 18px
}

.card {
    grid-column: span 4;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(2, 8, 20, .05);
    padding: 18px
}
.card.card-half-width-on-widescreen {
    grid-column: span 6;
}

@media (max-width: 960px) {
    .card {
        grid-column: span 6
    }
}

@media (max-width: 768px) {
    .card.card-half-width-on-widescreen, .card {
        grid-column: span 12
    }
}

.price {
    font-weight: 800
}

.muted {
    color: var(--muted)
}

.banner {
    display: block;
}
.banner img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

.map-wrap-charter {
    height: 200px;
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.map-wrap {
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

footer {
    margin-top: 40px;
    background: var(--bg-footer);
    color: var(--text-footer);
}

footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 18px;
    display: grid;
    gap: 18px;
    grid-template-columns:repeat(12, 1fr)
}

footer .col {
    grid-column: span 4
}

@media (max-width: 768px) {
    footer .col {
        grid-column: span 12
    }
}

.notice {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    color: var(--notice);
    padding: 12px 14px;
    border-radius: 12px
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 10;
}

.modal {
    max-width: 720px;
    max-height: calc(90vh - 75px);
    top: calc(5vh + 75px);
    position: absolute;
    overflow: auto;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(2, 8, 23, .3);
    color: #0f172a; /* Force dark text for light modal background */
}

.modal header {
    position: relative;
    border-bottom: none;
    display: block;
    background: transparent; /* Ensure transparent background */
}

.modal h3 {
    margin: 0 0 6px;
    color: #0f172a; /* Force dark text for title */
    background: transparent; /* Ensure transparent background */
}

.modal .muted {
    color: #64748b; /* Force muted dark text for subtitle */
    background: transparent; /* Ensure transparent background */
}

.modal .notice {
    background: #f1f5f9; /* Force light grey background like light theme */
    border: 1px solid #e2e8f0; /* Force light grey border like light theme */
    color: #0f172a; /* Force dark text like light theme */
}

.modal .notice.success {
    background-color: lightgreen;
}
.modal .notice.error {
    background-color: lightcoral;
}

.modal .close {
    position: absolute;
    right: -5px;
    top: -5px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer
}

label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
input:user-invalid, textarea:user-invalid, select:user-invalid {
    border-color: #dc3545;
}

.row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}
.row .field-full {
    grid-column: 1 / -1; /* Span from first to last column */
}

@media (max-width: 768px) {
    .row {
        grid-template-columns:1fr
    }
}

/* Weight inputs styling */
.weight-inputs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

/* Force 4 columns on larger screens */
@media (min-width: 768px) {
    .weight-inputs-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.weight-input-group {
    display: flex;
    flex-direction: column;
}

.weight-input-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

@media (max-width: 768px) {
    .weight-inputs-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Modal subtitle spacing fix for mobile/embedded views */
.modal-subtitle {
    margin: 0 0 16px 0 !important;
    padding-bottom: 8px;
    line-height: 1.4;
    font-size: 0.85rem;
}

