/* Venice Water Taxi Transfer -- Mobile-First Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Primary */
    --deep-adriatic: #0C4A6E;
    --venetian-gold: #D4A853;
    --gold-light: #E8C87A;
    --canal-teal: #0E7490;
    --lagoon-light: #E0F2FE;
    --marble-white: #FAFBFC;

    /* Secondary */
    --sunset-coral: #E8734A;
    --seafoam: #5EEAD4;
    --warm-sand: #FEF3C7;

    /* Neutrals */
    --charcoal: #1E293B;
    --slate: #475569;
    --stone: #94A3B8;
    --silver: #CBD5E1;
    --mist: #F1F5F9;
    --white: #FFFFFF;

    /* Spacing (8px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Radius */
    --rounded-sm: 4px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-2xl: 24px;
    --rounded-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Gradients */
    --hero-overlay: linear-gradient(180deg, rgba(12, 74, 110, 0.75) 0%, rgba(12, 74, 110, 0.35) 100%);
    --gold-shimmer: linear-gradient(135deg, #D4A853, #E8C87A);
    --ocean-depth: linear-gradient(135deg, #0C4A6E, #0E7490);
}

/* ============================================
   RESET & BASE (mobile-first)
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--charcoal);
    background: var(--marble-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

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

a {
    color: var(--canal-teal);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover {
    color: var(--deep-adriatic);
    text-decoration: underline;
}

/* Typography — mobile defaults */
h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-4);
}

h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-3);
}

h4 {
    font-size: 1.125rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: var(--space-8);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

section {
    padding: var(--space-12) 0;
}

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

/* ============================================
   HEADER & NAV — Mobile First
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-3) 0;
    transition: all 300ms ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2) 0;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.boat-icon {
    width: 28px;
    height: 14px;
    background: var(--deep-adriatic);
    clip-path: polygon(0% 100%, 15% 25%, 85% 25%, 100% 100%);
}

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

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--deep-adriatic);
    line-height: 1;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--slate);
    text-transform: uppercase;
}

/* Header nav links and CTA compact on mobile */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-links {
    display: none;
    /* hidden on mobile */
    list-style: none;
    gap: var(--space-6);
    align-items: center;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    text-decoration: none;
    color: var(--canal-teal);
}

.nav-book-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    color: var(--deep-adriatic);
    font-size: 1.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: var(--space-20) var(--space-8) var(--space-8);
    transition: right 400ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--mist);
}

.mobile-menu a:hover {
    text-decoration: none;
    color: var(--canal-teal);
}

.mobile-menu .btn {
    margin-top: var(--space-4);
    text-align: center;
}

.menu-close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--charcoal);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--rounded-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gold-shimmer);
    color: var(--charcoal);
    box-shadow: 0 4px 14px rgba(212, 168, 83, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
    filter: brightness(1.05);
    text-decoration: none;
    color: var(--charcoal);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--deep-adriatic);
    text-decoration: none;
}

.btn-secondary-dark {
    background: transparent;
    color: var(--deep-adriatic);
    border: 2px solid var(--deep-adriatic);
}

.btn-secondary-dark:hover {
    background: var(--deep-adriatic);
    color: var(--white);
    text-decoration: none;
}

/* ============================================
   HERO — Mobile First
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    text-align: center;
    padding: var(--space-20) var(--space-4) var(--space-12);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-4);
}

.hero-para {
    font-size: 1rem;
    margin-bottom: var(--space-8);
    opacity: 0.95;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust-band {
    background: var(--white);
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.trust-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    justify-items: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-1);
    padding: var(--space-2);
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-number {
    font-weight: 700;
    color: var(--deep-adriatic);
    font-size: 1rem;
}

.trust-label {
    font-size: 0.8125rem;
    color: var(--slate);
}

/* ============================================
   HOW IT WORKS — Steps
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.step-card {
    text-align: center;
    padding: var(--space-6);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rounded-full);
    background: var(--lagoon-light);
    color: var(--deep-adriatic);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.step-card p {
    color: var(--slate);
    font-size: 0.9375rem;
}

/* ============================================
   PHOTO GALLERY — Horizontal Scroll
   ============================================ */
.gallery-section {
    background: var(--mist);
}

.gallery-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-4) 0 var(--space-6);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 280px;
    max-width: 340px;
    flex-shrink: 0;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Nav Arrows (desktop only, hidden on mobile) */
.gallery-nav {
    display: none;
}

/* ============================================
   GYG WIDGET
   ============================================ */
.widget-section {
    background: var(--white);
}

.widget-wrapper {
    max-width: 600px;
    margin: var(--space-8) auto 0;
}

/* ============================================
   COMPARISON TABLE — responsive
   ============================================ */
.comparison-section {
    background: var(--marble-white);
}

.comparison-wrapper {
    margin-top: var(--space-8);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

th,
td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--mist);
    font-size: 0.875rem;
}

th {
    background: var(--mist);
    color: var(--slate);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
}

.highlight-col {
    background: var(--lagoon-light);
    font-weight: 600;
}

.recommended-badge {
    display: inline-block;
    background: var(--venetian-gold);
    color: var(--white);
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: var(--rounded-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: var(--space-2);
    vertical-align: middle;
}

/* ============================================
   REVIEWS CAROUSEL
   ============================================ */
.reviews-section {
    background: var(--lagoon-light);
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.aggregate-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--slate);
}

.aggregate-stars {
    color: var(--venetian-gold);
}

.reviews-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: var(--space-2) 0 var(--space-8);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: transform 200ms ease, box-shadow 200ms ease;
    border: 1px solid var(--mist);
}

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

.stars {
    color: var(--venetian-gold);
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
}

.review-text {
    color: var(--slate);
    margin-bottom: var(--space-4);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviewer-info {
    border-top: 1px solid var(--mist);
    padding-top: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.reviewer-country {
    font-size: 0.75rem;
    color: var(--stone);
}

.review-date {
    font-size: 0.6875rem;
    color: var(--stone);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
    background: var(--marble-white);
}

.faq-item {
    border-bottom: 1px solid var(--silver);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    padding: var(--space-5) 0;
    gap: var(--space-4);
    min-height: 44px;
}

.faq-question:hover {
    color: var(--canal-teal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
    color: var(--slate);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-answer p {
    padding-bottom: var(--space-5);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.chevron {
    transition: transform 300ms ease;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--stone);
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-section {
    background: var(--ocean-depth);
    color: var(--white);
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--deep-adriatic);
    color: var(--white);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-logo .logo-main {
    color: var(--white);
}

.footer-logo .logo-sub {
    color: var(--silver);
}

.footer-logo .boat-icon {
    background: var(--white);
}

.footer-links h4 {
    margin-bottom: var(--space-4);
    font-family: inherit;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--venetian-gold);
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--silver);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-desc {
    font-size: 0.8125rem;
    color: var(--stone);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    font-size: 0.75rem;
    color: var(--stone);
    text-align: center;
}

.footer-legal {
    margin-top: var(--space-3);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.footer-legal a {
    color: var(--stone);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--space-3) var(--space-4);
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 300ms ease-out;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.cta-price-label {
    display: flex;
    flex-direction: column;
}

.price-small {
    font-size: 0.6875rem;
    color: var(--slate);
}

.price-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-adriatic);
}

.sticky-cta .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--space-20);
}

.error-code {
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: var(--venetian-gold);
    line-height: 1;
    margin-bottom: var(--space-4);
}

/* ============================================
   DESKTOP BREAKPOINTS
   ============================================ */

/* sm: 640px */
@media (min-width: 640px) {
    .trust-flex {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .gallery-item {
        min-width: 320px;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* md: 768px */
@media (min-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.125rem;
        margin-bottom: var(--space-5);
    }

    section {
        padding: var(--space-16) 0;
    }

    .hero-para {
        font-size: 1.0625rem;
    }

    .review-card {
        min-width: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .footer-legal {
        margin-top: 0;
    }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: var(--space-6);
    }

    section {
        padding: var(--space-20) 0;
    }

    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-book-btn {
        padding: 10px 24px;
        font-size: 0.9375rem;
    }

    .logo-main {
        font-size: 1.125rem;
        letter-spacing: 0.15em;
    }

    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }

    .boat-icon {
        width: 32px;
        height: 16px;
    }

    .hero {
        text-align: left;
        justify-content: flex-start;
    }

    .hero-content {
        max-width: 640px;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .gallery-item {
        min-width: 360px;
    }

    .gallery-nav {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    /* Hide sticky CTA on desktop */
    .sticky-cta {
        display: none !important;
    }
}

/* xl: 1280px */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }
}