/* BookingBoats.eu — Sea theme design system */

:root {
    --ocean-deep: #053B50;
    --ocean-mid: #0A4D68;
    --sea-teal: #088395;
    --aqua: #05BFDB;
    --foam: #00FFCA;
    --sand: #F5F0E8;
    --white: #FFFFFF;
    --text-dark: #1a2e35;
    --text-muted: #5a6f78;
    --shadow: 0 8px 32px rgba(5, 59, 80, 0.12);
    --shadow-lg: 0 16px 48px rgba(5, 59, 80, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
    --font: 'Outfit', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--sand);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--sea-teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--aqua);
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--foam);
    color: var(--ocean-deep);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sea-teal), var(--aqua));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(8, 131, 149, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(8, 131, 149, 0.45);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 59, 80, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 191, 219, 0.15);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(5, 59, 80, 0.98);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo-text {
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover { color: var(--foam); }

.logo-accent { color: var(--aqua); }

.logo-icon { color: var(--foam); }

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: rgba(5, 191, 219, 0.2);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mobile-nav-footer {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.2rem;
}

.lang-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--ocean-deep);
    background: var(--foam);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header-cta { display: none; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 59, 80, 0.7) 0%, rgba(10, 77, 104, 0.85) 50%, var(--ocean-deep) 100%),
        url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}

.hero-waves {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    color: var(--white);
    pointer-events: none;
    line-height: 0;
}

.hero-waves svg {
    display: block;
    width: 100%;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--ocean-deep);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-alt {
    background: var(--white);
}

.hero + section {
    position: relative;
    z-index: 3;
    margin-top: -2px;
}

.section-dark {
    background: var(--ocean-deep);
    color: var(--white);
}

.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255, 255, 255, 0.75); }

/* Service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--ocean-mid);
    margin: 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 59, 80, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

.service-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(5, 59, 80, 0.85);
    color: var(--foam);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-size: 1.25rem;
    color: var(--ocean-deep);
    margin-bottom: 0.5rem;
}

.service-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.service-features li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sea-teal);
    font-weight: 700;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.service-price {
    font-weight: 700;
    color: var(--sea-teal);
    font-size: 1.1rem;
}

.service-price small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--aqua);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.review-card blockquote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.review-author {
    font-weight: 600;
    color: var(--ocean-deep);
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--ocean-mid), var(--sea-teal));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
    color: var(--white);
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Booking form */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.booking-form-card,
.calendar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ocean-deep);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e8ec;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-check input {
    margin-top: 0.3rem;
    accent-color: var(--sea-teal);
}

.form-check label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-display {
    background: linear-gradient(135deg, rgba(8, 131, 149, 0.08), rgba(5, 191, 219, 0.08));
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display strong {
    font-size: 1.25rem;
    color: var(--sea-teal);
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Calendar */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-size: 1.1rem;
    color: var(--ocean-deep);
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e8ec;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
    color: var(--ocean-deep);
    transition: all var(--transition);
}

.calendar-nav button:hover {
    border-color: var(--aqua);
    background: rgba(5, 191, 219, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    font-family: var(--font);
    color: var(--text-dark);
}

.calendar-day:hover:not(.disabled):not(.booked) {
    background: rgba(5, 191, 219, 0.15);
}

.calendar-day.selected {
    background: var(--sea-teal);
    color: var(--white);
    animation: calendarPulse 1.5s ease infinite;
}

.calendar-day.booked {
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--aqua);
}

.calendar-day.empty {
    cursor: default;
}

@keyframes calendarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(8, 131, 149, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(8, 131, 149, 0); }
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    color: var(--ocean-deep);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--sea-teal), var(--aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

/* Footer */
.site-footer {
    background: var(--ocean-deep);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-top: 4rem;
}

.footer-waves {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    color: var(--sand);
    transform: rotate(180deg);
}

.footer-waves svg {
    width: 100%;
    height: 100%;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-nav h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 0.3rem 0;
}

.footer-nav a:hover { color: var(--foam); }

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover { color: var(--foam); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Reveal animations — initial state handled by GSAP */
.reveal {
    will-change: transform, opacity;
}

/* Admin */
.admin-body {
    background: #f0f4f6;
    min-height: 100vh;
}

.admin-header {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 1rem 0;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--foam);
}

.admin-content {
    padding: 2rem 0;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 480px;
    margin: 4rem auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--ocean-deep);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions button,
.admin-actions select {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font);
}

/* Responsive */
@media (max-width: 900px) {
    .booking-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .logo-text {
        font-size: 0.95rem;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: auto;
        flex: none;
        flex-direction: column;
        background: var(--ocean-deep);
        padding: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .lang-switcher--bar {
        display: flex;
        gap: 0.1rem;
        padding: 0.15rem;
    }

    .lang-switcher--bar .lang-btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.65rem;
        min-width: 2rem;
        text-align: center;
    }

    .header-tools {
        gap: 0.5rem;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .lang-switcher--menu {
        justify-content: center;
        width: 100%;
    }

    .lang-switcher--menu .lang-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 400px) {
    .logo-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
