:root {
    /* Modern Maritime Palette */
    --navy-deep: #1C2B4B;
    --navy-light: #2A3C5E;
    --gold-matte: #C5A572;
    --gold-light: #E0CFA7;
    --white-soft: #F8FAFC;
    --white-pure: #FFFFFF;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    color: var(--navy-deep);
    background-color: var(--white-soft);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Hero Parallax --- */
.hero-parallax {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: url('../assets/hero-bg-final.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 43, 75, 0.5);
    /* Navy Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white-pure);
    z-index: 10;
    padding: 0 20px;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--gold-light);
}

.main-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-divider {
    font-size: 2rem;
    color: var(--gold-matte);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--gold-matte);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white-pure);
    font-size: 1.5rem;
    animation: float 2s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 15px);
    }
}

/* --- Waves --- */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    /* Overlap to fix sub-pixel rendering line */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-bottom svg,
.wave-top-inverse svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.shape-fill {
    fill: var(--white-soft);
}

.shape-fill-light {
    fill: var(--white-soft);
}

.wave-top-inverse {
    position: absolute;
    top: -1px;
    /* Overlap to fix sub-pixel rendering line */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

@media (max-width: 768px) {

    .wave-bottom svg,
    .wave-top-inverse svg {
        height: 70px;
    }
}

/* --- Sections --- */
.section-light {
    background-color: var(--white-soft);
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background-color: var(--navy-deep);
    color: var(--white-pure);
    padding: 120px 0 180px 0;
    /* Increased bottom padding for wave overlap */
    position: relative;
    clip-path: none;
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--navy-deep);
}

.section-dark .section-title {
    color: var(--white-pure);
}

.gold-text {
    color: var(--gold-matte) !important;
}

.white-text {
    color: var(--white-pure) !important;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    font-weight: 300;
}

.section-dark .lead-text {
    color: #ccc;
}

/* --- Countdown --- */
.countdown-maritime {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.timer-item {
    text-align: center;
    position: relative;
}

.timer-item span {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-light);
    line-height: 1;
    display: block;
}

.timer-item small {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--gold-matte);
}

.timer-item:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: -25px;
    top: 0;
    font-size: 2.5rem;
    color: var(--gold-matte);
    font-family: var(--font-heading);
}

/* --- Story --- */
.story-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.story-icon {
    font-size: 3rem;
    color: var(--gold-matte);
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

/* --- Timeline --- */
.timeline-maritime {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
    position: relative;
}

.timeline-maritime::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gold-matte);
    opacity: 0.3;
}

.timeline-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-deep);
    border: 2px solid var(--gold-matte);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-matte);
    font-size: 1.5rem;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 45%;
    border-top: 4px solid var(--gold-matte);
    position: relative;
}

.timeline-row .timeline-content {
    margin-top: 10px;
    /* Align slightly with icon */
}

/* Time Badge */
.time-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--navy-deep);
    color: var(--white-pure);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
}

.location {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 5px;
}

.address {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.nav-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--navy-light);
    color: var(--navy-deep);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--navy-deep);
    color: var(--gold-matte);
}


/* --- Accommodation --- */
.hotel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.hotel-card {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--gold-matte);
}

.hotel-card h3 {
    color: var(--navy-deep);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.hotel-card .address {
    margin-bottom: 20px;
    display: block;
}

.hotel-info {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.hotel-info h4 {
    font-size: 1rem;
    color: var(--navy-deep);
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 700;
}

.hotel-price {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.hotel-price strong {
    color: var(--navy-deep);
    display: block;
    margin-bottom: 10px;
}

.hotel-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #888;
    margin-top: 10px;
}

.btn-map {
    display: inline-block;
    background: var(--navy-deep);
    color: var(--white-pure);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.btn-map:hover {
    background: var(--navy-light);
}

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

/* --- Form (Luxury) --- */
.maritime-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    /* Slight glass on dark */
    padding: 40px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    /* Gold border */
}

.form-group-float {
    position: relative;
    margin-bottom: 30px;
}

.form-group-float input,
.form-group-float textarea,
.form-group-float select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: var(--white-pure);
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-radius: 0;
    transition: border-color 0.3s;
}

.form-group-float input:focus,
.form-group-float textarea:focus,
.form-group-float select:focus {
    outline: none;
    border-bottom-color: var(--gold-matte);
}

.form-group-float label {
    position: absolute;
    top: 10px;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-group-float input:focus~label,
.form-group-float input:not(:placeholder-shown)~label,
.form-group-float textarea:focus~label,
.form-group-float textarea:not(:placeholder-shown)~label,
.form-group-float select:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--gold-matte);
}

.select-label {
    top: -20px !important;
    /* Always top for select */
    font-size: 0.8rem !important;
    color: var(--gold-matte) !important;
}

.form-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}



.cta-golden {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--gold-matte);
    color: var(--navy-deep);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-golden:hover {
    background: var(--white-pure);
    color: var(--navy-deep);
}

#form-message {
    margin-top: 20px;
    color: var(--gold-matte);
    text-align: center;
}

/* Dark mode overrides for Hotel Cards */
.section-dark .hotel-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--gold-matte);
}

.section-dark .hotel-card h3 {
    color: var(--white-pure);
}

.section-dark .hotel-card .address,
.section-dark .hotel-info,
.section-dark .hotel-info h4,
.section-dark .hotel-price strong {
    color: rgba(255, 255, 255, 0.8);
}

.section-dark .hotel-price {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.section-dark .btn-map {
    background: var(--gold-matte);
    color: var(--navy-deep);
}

.section-dark .btn-map:hover {
    background: var(--white-pure);
}

/* Light Theme Form */
.maritime-form.light-theme {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow instead of border */
    border: none;
    border-top: 4px solid var(--gold-matte);
}

.maritime-form.light-theme .form-group-float input,
.maritime-form.light-theme .form-group-float textarea,
.maritime-form.light-theme .form-group-float select {
    color: var(--navy-deep);
    border-bottom-color: #ddd;
}

.maritime-form.light-theme .form-group-float label {
    color: #888;
}

.maritime-form.light-theme .form-group-float input:focus~label,
.maritime-form.light-theme .form-group-float textarea:focus~label,
.maritime-form.light-theme .select-label {
    color: var(--gold-matte);
}

.maritime-form.light-theme .radio-box label {
    color: var(--navy-deep);
}

.maritime-form.light-theme .radio-box input:checked+label {
    color: var(--gold-matte);
}

.hidden {
    display: none;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.contact-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--gold-matte);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card h4 {
    color: var(--gold-light);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.role {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.contact-link {
    color: var(--white-pure);
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--gold-matte);
}

.subsection-title {
    text-align: center;
    color: var(--white-pure);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Planner Section */
.planner-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.planner-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.planner-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.planner-info {
    padding: 40px;
    text-align: center;
}

.planner-info h4 {
    color: var(--gold-light);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.planner-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.planner-links a {
    color: var(--white-pure);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.planner-links a:hover {
    color: var(--gold-matte);
}

.planner-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.planner-person {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.planner-person strong {
    color: var(--white-pure);
    font-size: 1.1rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--navy-deep);
    color: var(--white-pure);
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom)) 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    border-top: 2px solid var(--gold-matte);
    display: none;
    /* Hidden by default, JS toggles flex */
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.cookie-content {
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--gold-matte);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-content a:hover {
    color: var(--white-pure);
}

.btn-cookie {
    background-color: var(--gold-matte);
    color: var(--navy-deep);
    border: none;
    padding: 10px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-cookie:hover {
    background-color: var(--white-pure);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* --- Privacy Page Mobile Fix --- */
@media (max-width: 768px) {
    .privacy-content {
        margin-top: -40px !important;
        /* Reduce overlap on mobile */
        padding: 30px !important;
        /* More space efficiency */
    }
}

.planner-person a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.planner-person a:hover {
    color: var(--gold-matte);
}

.planner-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

@media (max-width: 768px) {
    .planner-contacts {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Q&A Section --- */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.qa-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 4px solid var(--gold-matte);
    transition: transform 0.3s;
    height: 100%;
}

.qa-card:hover {
    transform: translateY(-5px);
}

.qa-icon {
    font-size: 2.5rem;
    color: var(--navy-deep);
    margin-bottom: 20px;
}

.qa-card h3 {
    color: var(--navy-deep);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    min-height: 3rem;
    /* Align titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.answer-highlight {
    color: var(--gold-matte) !important;
    font-style: italic;
    font-weight: 700;
    font-size: 1.1rem !important;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.answer-date {
    font-size: 1.5rem !important;
    color: var(--navy-deep) !important;
    font-weight: 700;
    margin-top: 10px;
    font-family: var(--font-heading);
}

.color-palette-container {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.color-palette-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.palette-caption {
    font-size: 0.8rem !important;
    color: #999 !important;
    margin-top: 5px;
}

.gift-icon {
    font-size: 2rem;
    color: var(--gold-matte);
    margin-top: 20px;
    opacity: 0.5;
}

/* --- Footer --- */
.footer-maritime {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.separator {
    margin: 0 10px;
}

/* Reverse row for alternating effect (Desktop only) */
@media (min-width: 769px) {
    .timeline-row.reverse {
        flex-direction: row-reverse;
    }

    .timeline-row.reverse .timeline-content {
        text-align: right;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .timeline-maritime::before {
        left: 30px;
    }

    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 0;
    }

    .timeline-icon {
        margin-left: 0;
    }

    .timeline-content {
        width: 100%;
        margin-left: 10px;
    }


}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background: transparent;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Force Hardware Accel for iOS */
}

#main-nav.scrolled {
    background: rgba(28, 43, 75, 0.95);
    /* Deep Navy Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* iOS Safari Fix */
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(197, 165, 114, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-pure);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0;
    /* Hidden initially on hero */
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

#main-nav.scrolled .nav-logo {
    opacity: 1;
    transform: translateY(0);
}

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

.nav-links a {
    color: var(--white-pure);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-matte);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-matte);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid var(--gold-matte);
    padding: 8px 18px;
    border-radius: 2px;
}

.nav-cta:hover {
    background: var(--gold-matte);
    color: var(--navy-deep) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.mobile-menu-btn div {
    width: 30px;
    height: 2px;
    background-color: var(--white-pure);
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.open .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--gold-matte);
}

.mobile-menu-btn.open .bar2 {
    opacity: 0;
}

.mobile-menu-btn.open .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--gold-matte);
}

/* Mobile Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-deep);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

#mobile-menu-overlay.open .mobile-menu-content {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white-pure);
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-link:hover {
    color: var(--gold-matte);
    transform: scale(1.1);
}

.mobile-link.highlight {
    color: var(--gold-matte);
    border-bottom: 2px solid var(--gold-matte);
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white-pure);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1003;
}

.close-menu-btn:hover {
    color: var(--gold-matte);
    transform: rotate(90deg);
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        margin-right: 20px;
    }

    .nav-logo {
        opacity: 1;
        transform: translateY(0);
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation rules moved to 1024px query */
}



/* --- Custom Luxury Checkbox & Radio --- */
.radio-box input,
.checkbox-box input {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.4em;
    height: 1.4em;
    border: 2px solid var(--navy-deep);
    display: grid;
    place-content: center;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-box input {
    border-radius: 50%;
}

.checkbox-box input {
    border-radius: 2px;
}

.radio-box input::before,
.checkbox-box input::before {
    content: "";
    width: 0.8em;
    height: 0.8em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--gold-matte);
}

.radio-box input::before {
    border-radius: 50%;
}

.checkbox-box input::before {
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    box-shadow: inset 1em 1em var(--gold-matte);
    /* checkmark color */
}

.radio-box input:checked,
.checkbox-box input:checked {
    border-color: var(--gold-matte);
}

.radio-box input:checked::before {
    transform: scale(1);
}

.checkbox-box input:checked::before {
    transform: scale(1);
}

/* Hover effects */
.radio-box:hover input,
.checkbox-box:hover input {
    border-color: var(--gold-matte);
}

.radio-box label,
.checkbox-box label {
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    line-height: 1.4;
}

/* Button Refinement */
.cta-golden {
    box-shadow: 0 4px 15px rgba(197, 165, 114, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.cta-golden:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 165, 114, 0.6);
}

/* --- Captain's Log RSVP Redesign --- */
.maritime-form.light-captain-log {
    background: #fffdf5;
    /* Very subtle warm white (paper-like) */
    border: 1px solid rgba(197, 165, 114, 0.4);
    box-shadow:
        0 0 0 4px #fff,
        /* Inner white gap */
        0 0 0 5px rgba(28, 43, 75, 0.1),
        /* Outer subtle border */
        0 20px 40px rgba(0, 0, 0, 0.05);
    /* Soft drop shadow */
    padding: 60px;
    max-width: 800px;
    position: relative;
    border-radius: 2px;
}

.maritime-form.light-captain-log::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(197, 165, 114, 0.3);
    pointer-events: none;
}

.rsvp-section-title {
    font-family: var(--font-heading);
    color: var(--navy-deep);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.rsvp-section-title::after {
    content: '⚓';
    display: block;
    font-size: 1rem;
    color: var(--gold-matte);
    margin-top: 10px;
    opacity: 0.5;
}

/* Option Cards (Yes/No) */
.rsvp-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.rsvp-option-card {
    position: relative;
    background: white;
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rsvp-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--gold-light);
}

.rsvp-option-card input {
    display: none;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--white-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: #94a3b8;
    /* Muted Slate */
    transition: all 0.3s;
}

.card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy-light);
    margin-bottom: 5px;
    font-weight: 700;
}


/* Checked State */
.rsvp-option-card input:checked~.card-content .icon-circle {
    background: var(--gold-matte);
    color: var(--navy-deep);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.2);
}

.rsvp-option-card input:checked~.card-content .card-title {
    color: var(--navy-deep);
}

.rsvp-option-card:has(input:checked) {
    border-color: var(--gold-matte);
    background: #fff;
    box-shadow: 0 10px 30px rgba(197, 165, 114, 0.15);
}

/* Inputs & Grid */
.rsvp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group-minimal {
    position: relative;
}

.form-group-minimal input,
.form-group-minimal select,
.form-group-minimal textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background: transparent;
    color: var(--navy-deep);
    border-radius: 0;
    transition: border-color 0.3s;
}

.form-group-minimal input:focus,
.form-group-minimal select:focus,
.form-group-minimal textarea:focus {
    outline: none;
    border-bottom-color: var(--gold-matte);
}

.form-group-minimal label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #94a3b8;
    pointer-events: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: 0.3s ease all;
}

.form-group-minimal input:focus~label,
.form-group-minimal input:not(:placeholder-shown)~label,
.form-group-minimal textarea:focus~label,
.form-group-minimal textarea:not(:placeholder-shown)~label {
    top: -15px;
    font-size: 0.75rem;
    color: var(--gold-matte);
    letter-spacing: 1px;
}

/* Static label for select */
.static-label {
    top: -15px !important;
    font-size: 0.75rem !important;
    color: var(--gold-matte) !important;
    letter-spacing: 1px;
}

.full-width {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

/* Hotel Option (Block) */
.hotel-option-block {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: all 0.3s;
    grid-column: 1 / -1;
}

.hotel-option-block:hover {
    border-color: var(--gold-light);
}

.hotel-option-block input {
    display: none;
}

.checkmark-box {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    transition: all 0.2s;
    flex-shrink: 0;
}

.hotel-option-block input:checked~.checkmark-box {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.hotel-text {
    display: flex;
    flex-direction: column;
}

.hotel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-deep);
    font-size: 1.1rem;
}

.hotel-desc {
    font-size: 0.9rem;
    color: #64748b;
}

/* Submit Button */
.form-actions {
    text-align: center;
}

.btn-rsvp-submit {
    background: var(--navy-deep);
    color: var(--white-pure);
    border: none;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(28, 43, 75, 0.2);
}

.btn-rsvp-submit:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(197, 165, 114, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {

    .rsvp-options-grid,
    .rsvp-details-grid {
        grid-template-columns: 1fr;
    }

    .maritime-form.light-captain-log {
        padding: 30px 20px;
    }
}

/* --- Login Page Styles (Moved from index.php) --- */
html,
body {
    margin: 0;
    /* height: 100%; removed to fix scroll listener on home.php */
}

/* Ensure login container takes full height but allows scrolling if needed on small screens */
.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../assets/hero-bg-final.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 43, 75, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

.login-title {
    font-family: 'Cinzel', serif;
    color: var(--white-pure);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-input-group {
    position: relative;
    margin-bottom: 2rem;
}

.login-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: all 0.3s;
}

.login-input:focus {
    border-bottom-color: var(--gold-matte);
    background: rgba(255, 255, 255, 0.15);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-btn {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border: none;
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.login-btn:hover {
    background: var(--white-pure);
    transform: translateY(-2px);
}

.error-msg {
    color: #ff6b6b;
    margin-top: 1rem;
    font-size: 0.9rem;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.error-msg.visible {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s;
}

.login-btn.success {
    background-color: #2ecc71;
    color: white;
    transform: scale(1.05);
    border-color: #2ecc71;
}

/* Responsive Login */
@media (max-width: 600px) {
    .login-box {
        padding: 2rem;
        width: 95%;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

/* --- Responsive Styles for Home Sections --- */
@media (max-width: 768px) {

    /* Global Typography & Spacing */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 20px;
    }

    .lead-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Grids to Single Column */
    .contact-grid,
    .qa-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Hero Adjustments */
    .main-title {
        font-size: 2.5rem;
        /* Overrides existing 3rem for better fit */

    }

    .pre-title {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Timeline Adjustments (Refining existing) */
    .timeline-maritime::before {
        left: 20px;
        /* Align line */
    }

    .timeline-row {
        gap: 15px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-width: 2px;
    }

    .timeline-content {
        padding: 20px;
        width: calc(100% - 30px);
        /* Adjust for smaller icon/gap */
        margin-left: 0;
    }

    .time-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 10px;
        background: var(--gold-matte);
        /* Make it pop more on mobile */
    }

    /* Planner Section inside Contact */
    .planner-card {
        border-radius: 4px;
    }

    .planner-img-wrapper {
        height: 200px;
    }

    .planner-info {
        padding: 25px 15px;
    }

    .planner-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Accommodation Grid reuse */
    .hotel-grid {
        gap: 30px;
    }

    /* Footer */
    .footer-maritime {
        padding: 30px 20px;
        font-size: 0.8rem;
    }
}

/* --- Strict Landscape Mode (Mobile/Short Screens) --- */
@media (max-height: 600px) and (orientation: landscape) {

    /* Force Hamburger Menu */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        margin-right: 20px;
    }

    /* Compact Hero Section */
    .hero-parallax {
        height: 100vh;
        min-height: auto;
        /* Allow it to be short */
        align-items: center;
    }

    .hero-content {
        padding-top: 40px;
        /* Account for navbar */
        transform: scale(0.9);
        /* Slight overall scale down if needed */
    }

    .main-title {
        font-size: 8vh !important;
        /* Responsive to height */
        margin-bottom: 5px;
        line-height: 1.1;
    }

    .pre-title {
        font-size: 2.5vh;
        margin-bottom: 5px;
    }

    .hero-divider {
        margin: 5px 0;
        font-size: 1.5rem;
    }

    .hero-divider::before,
    .hero-divider::after {
        width: 30px;
    }

    .scroll-down {
        bottom: 10px;
        font-size: 1.2rem;
    }

    /* Scrollable Mobile Menu */
    #mobile-menu-overlay {
        align-items: flex-start;
        /* Start from top to allow scrolling */
        overflow-y: auto;
        /* Enable vertical scroll */
        padding: 60px 0;
        /* Add top/bottom padding */
    }

    .mobile-menu-content {
        gap: 15px;
        /* Reduce gap */
        transform: translateY(0);
        /* Ensure visibility */
    }

    .mobile-link {
        font-size: 1.2rem;
        /* Smaller font */
        padding: 5px 0;
        /* Smaller touch target spacing */
    }
}

/* --- Privacy Page Fixes --- */
.privacy-content {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--gold-matte);
    margin-top: -20px;
    /* Reduced overlap for desktop to show wave */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .privacy-content {
        margin-top: -40px !important;
        padding: 20px 15px !important;
        /* Maximized width for text */
    }

    .subsection-title,
    .privacy-section-title {
        font-size: 1.1rem !important;
        hyphens: manual;
        /* Disable auto hyphenation */
        -webkit-hyphens: manual;
        word-break: normal;
    }

    .section-dark {
        padding: 100px 0 120px 0;
        /* Compact padding for mobile wave */
    }
}


/* --- Fix for iOS/Touch Devices (Parallax Bug) --- */
@media (hover: none) and (pointer: coarse) {
    .hero-parallax {
        background-attachment: scroll !important;
        background-position: center top !important;
    }
}