/* Shared visual layer for Mert Yachting pages. Keeps page content intact while
   unifying the navigation, rhythm, cards, and mobile behavior. */

:root {
    --navy: #0a1833;
    --gold: #caa24a;
    --gold-light: #fff7e3;
    --sea: #0f766e;
    --coral: #e56b5f;
    --text-dark: #172033;
    --text-muted: #5c667a;
    --bg-body: #f6f8fb;
    --surface: #ffffff;
    --line: rgba(23, 32, 51, 0.1);
    --shadow-soft: 0 16px 45px rgba(10, 24, 51, 0.08);
    --shadow-card: 0 10px 28px rgba(10, 24, 51, 0.07);
    --radius-card: 8px;
    --radius-control: 12px;
    --transition: all 0.25s ease;
    --transition-smooth: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-body);
}

body {
    min-height: 100vh;
    margin: 0 !important;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.07) 0, rgba(246, 248, 251, 0) 360px),
        var(--bg-body) !important;
    color: var(--text-dark) !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body,
body * {
    letter-spacing: 0 !important;
}

img {
    max-width: 100%;
}

a {
    text-underline-offset: 3px;
}

header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    width: 100%;
    padding: 10px 12px 8px !important;
    display: flex !important;
    justify-content: center !important;
    background: linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(246, 248, 251, 0.72) 72%, transparent);
}

body > .nav-menu {
    position: sticky !important;
    top: 10px !important;
    z-index: 1000 !important;
    margin: 10px auto 0 !important;
}

.nav-menu {
    width: min(calc(100% - 24px), 980px) !important;
    max-width: 980px !important;
    min-height: 56px;
    margin: 0 auto !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 30px rgba(10, 24, 51, 0.12) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px;
    padding: 11px 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    color: var(--navy) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: var(--transition) !important;
}

.nav-item:hover,
.nav-item:active,
.nav-item.active {
    background: var(--navy) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(10, 24, 51, 0.18) !important;
}

main {
    flex: 1;
}

.page-header,
.contact-hero,
.hero-section {
    width: min(100%, 860px) !important;
    margin: 0 auto !important;
    padding: 44px 20px 28px !important;
    text-align: center;
}

.tagline,
.contact-hero .tagline,
.hero-section > span {
    color: var(--sea) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.page-header h1,
.contact-hero h1,
.hero-section h1 {
    margin: 10px 0 12px !important;
    color: var(--navy) !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 2.15rem !important;
    line-height: 1.1 !important;
}

.page-header p,
.contact-hero p,
.hero-section p {
    margin: 0 auto !important;
    max-width: 680px;
    color: var(--text-muted) !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
}

.main-container,
.services-section,
.gallery-section,
.testimonials-section,
.bays-container,
.tours-container,
.main-contact-container,
.details-section,
.specs-grid {
    width: min(100% - 28px, 1100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.main-container,
.contact-form-wrapper,
.details-section {
    border-radius: var(--radius-card) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-soft) !important;
}

.main-container {
    margin-top: 16px !important;
    margin-bottom: 42px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.94) !important;
}

.slide,
.gallery-item,
.card-image-wrapper,
.bay-image-wrapper,
.tour-image {
    border-radius: var(--radius-card) !important;
}

.feature-item,
.service-card,
.testimonial-card,
.bay-row,
.tour-card,
.spec-card,
.info-card {
    border-radius: var(--radius-card) !important;
    border: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--shadow-card) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.feature-item:hover,
.service-card:hover,
.testimonial-card:hover,
.bay-row:hover,
.tour-card:hover,
.spec-card:hover,
.info-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(15, 118, 110, 0.28) !important;
    box-shadow: 0 18px 40px rgba(10, 24, 51, 0.1) !important;
}

.content-section h2,
.secondary-title,
.gallery-title,
.testimonials-header h2,
.bay-content h2,
.tour-content h2,
.details-section h2,
.info-content h3 {
    color: var(--navy) !important;
}

.description,
.feature-text p,
.card-content p,
.testimonial-card p,
.bay-content p,
.tour-details,
.info-content p,
.detail-label,
.footer-info {
    color: var(--text-muted) !important;
}

.description,
.content-section p,
.contact-hero p,
.page-header p,
.hero-section p {
    text-align: left !important;
}

.icon-box,
.info-icon,
.spec-card i {
    background: var(--gold-light) !important;
    color: var(--sea) !important;
}

.btn-book,
.submit-btn,
.wa-link-btn,
.wa-btn {
    min-height: 48px;
    border-radius: 999px !important;
    background: var(--navy) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(10, 24, 51, 0.18);
}

.btn-book:hover,
.submit-btn:hover,
.wa-link-btn:hover,
.wa-btn:hover {
    background: var(--sea) !important;
}

.tour-badge {
    border-radius: 999px !important;
    background: var(--coral) !important;
    color: #fff !important;
}

.bays-container,
.tours-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bay-content p {
    text-align: left !important;
}

.premium-footer {
    margin-top: 56px !important;
    padding: 54px 20px 34px !important;
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
    border-top: 1px solid var(--line) !important;
    background: #fff !important;
    box-shadow: 0 -10px 34px rgba(10, 24, 51, 0.06) !important;
}

.footer-container {
    width: min(100%, 980px) !important;
}

.footer-info {
    align-items: center;
}

.footer-info-item {
    color: var(--text-muted) !important;
}

.footer-info-item i,
.social-icon:hover {
    color: var(--sea) !important;
}

.social-icon {
    border-radius: 999px !important;
}

#wa-persistent-widget {
    right: 14px !important;
    bottom: 14px !important;
    z-index: 1200 !important;
    transform: none !important;
}

.chat-bubble {
    width: min(280px, calc(100vw - 28px)) !important;
    border-radius: var(--radius-card) !important;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(10, 24, 51, 0.18) !important;
}

.chat-header {
    background: var(--sea) !important;
}

.form-control {
    min-height: 48px;
    border-radius: var(--radius-control) !important;
}

.map-section {
    border-top-color: var(--sea) !important;
}

.testimonials-section {
    margin-top: 22px !important;
    margin-bottom: 54px !important;
    overflow: hidden;
}

.testimonials-header {
    max-width: 720px;
    margin: 0 auto 22px;
    padding: 0 12px;
    text-align: center;
}

.testimonials-header h2 {
    margin: 8px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.12;
}

.testimonials-marquee {
    position: relative;
    overflow: hidden;
    padding: 6px 0 18px;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: testimonials-slide 48s linear infinite;
    will-change: transform;
}

.testimonials-marquee:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonial-card {
    width: min(340px, calc(100vw - 54px));
    min-height: 320px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.05rem;
    line-height: 1;
}

.testimonial-card p {
    margin: 18px 0 22px;
    font-size: 0.95rem;
    line-height: 1.72;
    text-align: left !important;
}

.testimonial-card h3 {
    margin: auto 0 0;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

@keyframes testimonials-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 86px;
    }

    header {
        padding: 8px 10px 6px !important;
    }

    body > .nav-menu {
        top: 8px !important;
    }

    .nav-menu {
        width: calc(100% - 8px) !important;
        min-height: 52px;
        padding: 5px !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible !important;
    }

    .nav-item {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 3px !important;
        font-size: 0.64rem !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .page-header,
    .contact-hero,
    .hero-section {
        padding: 34px 18px 22px !important;
    }

    .page-header h1,
    .contact-hero h1,
    .hero-section h1 {
        font-size: 1.85rem !important;
    }

    .page-header p,
    .contact-hero p,
    .hero-section p {
        font-size: 0.95rem !important;
    }

    .main-container,
    .services-section,
    .gallery-section,
    .testimonials-section,
    .bays-container,
    .tours-container,
    .main-contact-container,
    .details-section,
    .specs-grid {
        width: calc(100% - 20px) !important;
    }

    .main-container {
        padding: 12px !important;
        gap: 24px !important;
    }

    .slider-wrapper,
    .gallery-wrapper {
        gap: 10px !important;
        scroll-padding-left: 12px;
    }

    .slide {
        min-width: 86% !important;
        aspect-ratio: 4 / 5 !important;
    }

    .service-card,
    .testimonial-card,
    .bay-row,
    .tour-card,
    .info-card,
    .contact-form-wrapper,
    .details-section {
        padding: 14px !important;
    }

    .testimonials-header h2 {
        font-size: 1.75rem;
    }

    .testimonials-track {
        gap: 12px;
        animation-duration: 58s;
    }

    .testimonial-card {
        min-height: 350px;
        padding: 18px !important;
    }

    .tour-content,
    .bay-content,
    .card-content {
        padding: 16px 6px 8px !important;
    }

    .contact-form-wrapper {
        padding: 18px !important;
    }

    .details-table {
        gap: 0 !important;
    }

    .detail-item {
        gap: 14px;
        align-items: flex-start;
    }

    .detail-value {
        text-align: right;
    }

    .premium-footer {
        margin-top: 42px !important;
        padding: 42px 18px 28px !important;
    }

    .footer-info {
        flex-direction: column;
        gap: 12px !important;
    }

    #wa-persistent-widget {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        align-items: stretch !important;
    }

    .chat-bubble {
        width: 100% !important;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: stretch;
    }

    .chat-header {
        padding: 11px 14px !important;
    }

    .chat-body {
        display: none !important;
    }

    .wa-link-btn,
    .wa-btn {
        min-width: 142px;
        min-height: 100%;
        padding: 12px 14px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        border-radius: 0 !important;
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    header {
        padding-top: 18px !important;
    }

    body > .nav-menu {
        top: 18px !important;
    }

    .nav-menu {
        justify-content: center !important;
    }

    .nav-item {
        font-size: 0.88rem !important;
    }

    .page-header,
    .contact-hero,
    .hero-section {
        padding: 64px 24px 40px !important;
    }

    .page-header h1,
    .contact-hero h1,
    .hero-section h1 {
        font-size: 3rem !important;
    }

    .main-container {
        padding: 28px !important;
    }
}

@media (min-width: 992px) {
    .main-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 38px !important;
        align-items: center !important;
    }
}
