/* Ferryline Landing Page - Static CSS */

/* CSS Variables - Design System */
:root {
    /* Colors */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(210, 20%, 15%);
    --card: hsl(210, 20%, 100%);
    --card-foreground: hsl(210, 20%, 15%);
    --primary: hsl(210, 85%, 25%);
    --primary-foreground: hsl(210, 20%, 98%);
    --primary-light: hsl(210, 85%, 35%);
    --primary-dark: hsl(210, 85%, 15%);
    --secondary: hsl(200, 50%, 88%);
    --secondary-foreground: hsl(210, 20%, 15%);
    --muted: hsl(210, 30%, 94%);
    --muted-foreground: hsl(210, 15%, 55%);
    --accent: hsl(195, 100%, 45%);
    --accent-foreground: hsl(210, 20%, 98%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(210, 25%, 90%);
    --input: hsl(210, 25%, 95%);
    --ring: hsl(210, 85%, 25%);
    
    /* Maritime Colors */
    --ocean-blue: hsl(210, 85%, 25%);
    --ocean-light: hsl(200, 85%, 65%);
    --ocean-deep: hsl(220, 90%, 15%);
    --foam-white: hsl(210, 20%, 98%);
    --wave-blue: hsl(195, 100%, 45%);
    
    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, hsl(210, 85%, 25%), hsl(195, 100%, 45%));
    --gradient-hero: linear-gradient(135deg, hsl(210, 85%, 15%, 0.8), hsl(195, 100%, 25%, 0.6));
    --gradient-wave: linear-gradient(90deg, hsl(195, 100%, 45%, 0.1), hsl(210, 85%, 25%, 0.1));
    --gradient-accent: linear-gradient(135deg, hsl(210, 85%, 25%), hsl(195, 100%, 45%));
    
    /* Shadows */
    --shadow-ocean: 0 10px 30px -10px hsl(210, 85%, 25%, 0.3);
    --shadow-wave: 0 4px 20px -5px hsl(195, 100%, 45%, 0.4);
    --shadow-depth: 0 20px 60px -15px hsl(210, 85%, 15%, 0.4);
    
    /* Radius */
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    direction: rtl;
}

.section {
    padding: 5rem 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out;
}

.animate-wave {
    animation: wave 6s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 4rem;
    height: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-ocean {
    background: var(--gradient-ocean);
    color: var(--primary-foreground);
}

.btn-wave {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
}

.btn-hero {
    background: var(--gradient-ocean);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-depth);
}
.btn-hero:hover {
    color:var(--gradient-ocean);
    background: var(--primary-foreground);
}

.btn-hero-outline {
    background: hsl(210, 20%, 98%, 0.1);
    color: var(--primary-foreground);
    border: 1px solid hsl(210, 20%, 98%, 0.3);
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: hsl(210, 20%, 98%, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background: hsl(210, 30%, 94%);
}

.btn-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 7px;
    background: hsl(210, 85%, 25%, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-swap:hover {
    background: hsl(210, 85%, 25%, 0.2);
}

/* Cards */
.card {
    background: var(--card);
    border: none !important;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.info-card {
    background: hsl(210, 20%, 100%, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(210, 25%, 90%, 0.5);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: var(--shadow-wave);
    transform: scale(1.05);
}

.info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}

.info-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(210, 20%, 98%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(210, 25%, 90%, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header-cta {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/ferry-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: var(--gradient-wave);
    animation: wave 6s ease-in-out infinite;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    justify-content: center;
}

.hero-text {
    max-width: 64rem;
    
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-foreground);
    line-height: 1.2;
}

.text-wave {
    color: var(--wave-blue);
}

.hero-description {
    font-size: 1.3rem;
    color: hsl(210, 20%, 98%, 0.9);
    margin-bottom: 1rem;
    max-width: 42rem;
  
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
}

.scroll-indicator-inner {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsl(210, 20%, 98%, 0.5);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: hsl(210, 20%, 98%, 0.7);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {

        font-size: 2.5rem;
        max-width: 400px;

    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .hero-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 992px) {
    .hero-title {

        font-size: 3rem;
        max-width: 400px;

    }

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

.section-booking {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-title-primary {
    color: var(--primary);
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Routes Section */
.routes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.route-card {
    overflow: hidden;
    box-shadow: var(--shadow-ocean);
    transition: all 0.3s;
}

.route-card:hover {
    box-shadow: var(--shadow-depth);
    transform: scale(1.02);
}

.route-header {
    position: relative;
}

.route-header-content {
    padding: 10px;
    gap: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.gradient-ocean {
    background: var(--gradient-ocean);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.route-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-popular {
    background: var(--wave-blue);
    color: var(--primary-foreground);
}

.badge-return {
    background: var(--accent);
    color: var(--primary-foreground);
}

.route-body {
    padding: 1.5rem;
}

.route-details {
    margin-bottom: 1.5rem;
}

.route-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.route-detail .icon {
    color: var(--primary);
}

.route-highlights {
    margin-bottom: 1.5rem;
}

.route-highlights-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.route-list {
    list-style: none;
}

.route-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.route-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--wave-blue);
    border-radius: 50%;
}

.route-bullet.accent {
    background: var(--accent);
}

@media (min-width: 1024px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Route Info */
.route-info {
    margin-top: 4rem;
    text-align: center;
}

.info-card-large {
    display: inline-block;
    padding: 2rem;
    background: var(--gradient-wave);
    border: none;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Booking Section */
.booking-container {
    max-width: 44rem;
    margin: 0 auto;
}

.booking-card {
    padding: 1rem;
    box-shadow: var(--shadow-depth);
}

.booking-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px hsl(210, 85%, 25%, 0.1);
}

.form-swap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.btn-search {
    margin-top: auto;
    height: 2.5rem;
}

.price-info {
    background: hsl(200, 50%, 88%, 0.5);
    border-radius: var(--radius);
    padding: 1rem 0.5rem;
    border: 1px solid hsl(210, 25%, 90%, 0.5);
}

.price-grid {
    display: flex;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    justify-content: space-between;
}

.price-grid .price-item {
    width:106px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin:0px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-row.form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-row:first-child {
        grid-template-columns: 1fr auto 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--primary-foreground);
}

.footer-content {
    padding: 4rem 0;
}

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

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: hsl(210, 20%, 98%, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: var(--primary-foreground);
    border-radius: var(--radius);
    transition: background 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: hsl(210, 20%, 98%, 0.2);
}

.footer-section {
    margin-top: 1rem;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-contact,
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item,
.hours-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item .icon,
.hours-item .icon {
    color: var(--wave-blue);
    margin-top: 0.25rem;
}

.contact-text,
.hours-day {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-subtext,
.hours-time {
    font-size: 0.875rem;
    color: hsl(210, 20%, 98%, 0.7);
}

.hours-spacer {
    width: 1.25rem;
}

.footer-notice {
    margin-top: 1.5rem;
    background: hsl(210, 20%, 98%, 0.1);
    border: 1px solid hsl(210, 20%, 98%, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
}

.notice-text {
    font-size: 0.875rem;
    color: hsl(210, 20%, 98%, 0.9);
}

.footer-bottom {
    border-top: 1px solid hsl(210, 20%, 98%, 0.2);
}

.footer-bottom-content {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: hsl(210, 20%, 98%, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-link {
    color: hsl(210, 20%, 98%, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-foreground);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}