:root {
    --nav-h: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(1200px 600px at 50% -50%, rgba(34, 211, 238, 0.22), transparent 65%),
        radial-gradient(900px 500px at 100% 10%, rgba(232, 141, 86, 0.14), transparent 70%),
        linear-gradient(#001a2d, #001a2d);
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    letter-spacing: -0.02em;
}

section {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Hero background sizing (image itself is injected inline from Twig) */
.hero-bg {
    background-size: cover;
    background-position: center;
}

.glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-light {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 43, 73, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms cubic-bezier(.2, .8, .2, 1), transform 700ms cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal.reveal-in {
        transition: none;
    }
}

/* Navigation state (added via JS) */
.nav-scrolled {
    background: rgba(0, 26, 45, 0.78);
    box-shadow: 0 18px 40px -22px rgba(0,0,0,.6);
}

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

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* ================================================
   VESSEL GALLERY MARQUEE (home page)
   ================================================ */

.vessel-marquee {
    position: relative;
}

.vessel-marquee__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
    cursor: grab;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
}

.vessel-marquee__viewport.is-dragging {
    cursor: grabbing;
}

.vessel-marquee__viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.vessel-marquee__track {
    display: flex;
    align-items: flex-start;
    width: max-content;
}

.vessel-marquee__group {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-right: 1.25rem; /* keep consistent spacing between loop copies */
}

.vessel-marquee__item {
    flex: 0 0 auto;
    width: clamp(220px, 32vw, 320px);
}

.vessel-marquee__img {
    width: 100%;
    height: 13rem; /* ~ Tailwind h-52 */
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.5);
}

.vessel-marquee__caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.vessel-marquee__arrow {
    position: absolute;
    top: 6.5rem; /* vertical center of the image (13rem / 2) */
    transform: translateY(-50%);

    height: 2.75rem;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: background 200ms ease, transform 200ms ease;
}

.vessel-marquee__arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.02);
}

.vessel-marquee__arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.vessel-marquee__arrow--prev {
    left: 0.25rem;
}

.vessel-marquee__arrow--next {
    right: 0.25rem;
}

@media (min-width: 768px) {
    .vessel-marquee__viewport {
        padding-left: 3.25rem;
        padding-right: 3.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vessel-marquee__viewport {
        scroll-behavior: auto;
    }
}

/* ================================================
   RESERVATION FORM STYLES
   ================================================ */

/* Form container styling */
.glass form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form field groups */
.glass .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form labels */
.glass form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.glass form label .required {
    color: #e88d56;
}

/* Text inputs, selects, and textareas */
.glass form input[type="text"],
.glass form input[type="email"],
.glass form input[type="tel"],
.glass form select,
.glass form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.glass form input[type="text"]::placeholder,
.glass form input[type="email"]::placeholder,
.glass form input[type="tel"]::placeholder,
.glass form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass form input[type="text"]:focus,
.glass form input[type="email"]:focus,
.glass form input[type="tel"]:focus,
.glass form select:focus,
.glass form textarea:focus {
    outline: none;
    border-color: rgba(232, 141, 86, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(232, 141, 86, 0.15);
}

/* Select dropdown styling */
.glass form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.glass form select option {
    background: #001a2d;
    color: white;
}

/* Radio & Checkbox button styling */
.glass form .form-radio,
.glass form .form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/*
 * Grav "checkboxes" fields render as: input + label (siblings) repeated.
 * Structure: <input type="checkbox"> <label style="display:inline">text</label>
 * We hide the actual checkbox inputs and use a pseudo-element on the label to create a visual checkbox,
 * making the layout match the radio buttons style (one full-width card per option).
 */
.glass form .checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Hide the actual checkbox inputs but keep them accessible */
.glass form .checkboxes > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style each label as a full-width card with a pseudo-checkbox inside */
.glass form .checkboxes > label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

/* Create a visual checkbox using ::before pseudo-element */
.glass form .checkboxes > label::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.glass form .checkboxes > label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Selected state - style the pseudo-checkbox when the hidden input is checked */
.glass form .checkboxes > input[type="checkbox"]:checked + label {
    background: rgba(232, 141, 86, 0.15);
    border-color: rgba(232, 141, 86, 0.4);
}

.glass form .checkboxes > input[type="checkbox"]:checked + label::before {
    border-color: #e88d56;
    background: #e88d56;
}

/* Checkmark inside the pseudo-checkbox when checked */
.glass form .checkboxes > input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: calc(0.75rem + 0.125rem + 0.125rem);
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    line-height: 1;
}

.glass form .form-radio label,
.glass form .form-checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.glass form .form-radio label:hover,
.glass form .form-checkboxes label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass form input[type="radio"],
.glass form input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.glass form input[type="radio"] {
    border-radius: 50%;
}

.glass form input[type="checkbox"] {
    border-radius: 0.25rem;
}

.glass form input[type="radio"]:checked,
.glass form input[type="checkbox"]:checked {
    border-color: #e88d56;
    background: #e88d56;
}

.glass form input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: white;
}

.glass form input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: white;
}

.glass form .form-radio label:has(input:checked),
.glass form .form-checkboxes label:has(input:checked) {
    background: rgba(232, 141, 86, 0.15);
    border-color: rgba(232, 141, 86, 0.4);
}

/* Help text */
.glass form .form-help {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Submit button */
.glass form button[type="submit"],
.glass form input[type="submit"] {
    margin-top: 1rem;
}

/* Form grid layout for desktop */
@media (min-width: 640px) {
    .glass form .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Form success/error messages */
.glass form .form-message {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.glass form .form-message.success {
    background: rgba(167, 243, 208, 0.15);
    border: 1px solid rgba(167, 243, 208, 0.3);
    color: #a7f3d0;
}

.glass form .form-message.error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

/* Validation error states */
.glass form input.invalid,
.glass form select.invalid,
.glass form textarea.invalid {
    border-color: rgba(248, 113, 113, 0.6);
}

.glass form .validation-message {
    font-size: 0.75rem;
    color: #fca5a5;
    margin-top: 0.25rem;
}
