/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Primary page background: use the same gray gradient as the models navigation so the whole site
   reads with the primary gray tone */
body {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-white {
    background: white;
    color: #1e3a8a;
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Header divider line (appears on all pages) */
.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.25); /* visible over dark/transparent hero */
    pointer-events: none;
}

/* When header gets a light background while scrolled, use darker divider */
.header.scrolled::after {
    background: rgba(0, 0, 0, 0.12);
}

/* Ensure divider remains visible for pages using static header layout */
.static-header .header::after {
    background: rgba(0, 0, 0, 0.12);
}

.header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* On light header (scrolled/static), switch links and hamburger to dark for contrast */
.header.scrolled .nav-link,
.static-header .nav-link {
    color: #1f2937; /* slate-800 */
    text-shadow: none;
}

.header.scrolled .nav-link:hover,
.static-header .nav-link:hover {
    color: #1e3a8a;
}

.header.scrolled .bar,
.static-header .bar {
    background: #1f2937;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff; /* default: white over transparent/dark hero */
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nav-link:hover {
    color: #e5e7eb; /* slightly lighter on hover over dark */
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 1rem 0;
    z-index: 1500; /* ensure dropdown overlays videos/sections below */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff; /* white bars by default over dark/transparent hero */
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* allow vertical page panning by default while letting JS manage horizontal swipes */
    overflow: hidden;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    position: absolute;
        bottom: 8rem;
        left: 4rem;
    color: white;
    z-index: 1;
    text-align: left;
    max-width: 600px;
}

    /* Mobile: ensure hero background images (slides) fully cover the viewport
       so images are not cut in half on slide 2 or others. This forces the
       hero background to occupy the full viewport height and keeps object-fit:cover. */
    @media (max-width: 768px) {
        .hero {
            height: 100vh;
            min-height: 100vh;
        }

        .hero-slide {
            min-height: 100vh;
            height: 100vh;
        }

        .hero-background {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }

        .hero-background img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover; /* fill the area without distortion */
            object-position: center center;
        }

        /* Ensure the video slide also fills mobile hero area */
        .hero-video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            background: #000; /* keep letterboxing clean when preserving aspect */
        }

        .hero-video video {
            width: 100%;
            height: 100%;
            object-fit: cover; /* fill the screen with no black bars */
            object-position: 75% center; /* bias framing so the boat stays visible */
            display: block;
            background: transparent;
        }

        /* Slightly reduce hero-content bottom spacing on mobile so text doesn't overlap the image awkwardly */
        .hero-content {
            bottom: 4rem;
            left: 1.25rem;
            right: 1.25rem;
            max-width: calc(100% - 2.5rem);
            text-align: center;
        }

        .hero-title {
            font-size: 2rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }
    }

.hero-model {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) rotate(45deg) translateY(0);
    }
    40% {
        transform: translateX(-50%) rotate(45deg) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) rotate(45deg) translateY(-5px);
    }
}


/* Slide Navigation */
.slide-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Respect safe-area insets on notch devices so arrows don't get cut off */
    padding: 0 calc(1rem + env(safe-area-inset-left, 0px)) calc(1rem + env(safe-area-inset-right, 0px));
    z-index: 30; /* bring above most content like videos */
    pointer-events: none;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    backdrop-filter: blur(10px);
    /* ensure a large, easy-to-touch hit area on mobile */
    min-width: 44px;
    min-height: 44px;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.section-indicators {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
}

.indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #1e3a8a;
    border-color: white;
    transform: scale(1.1);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.indicator.active:hover {
    background: #3b82f6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}


/* Models Section */
.models {
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.models-container {
    display: flex;
    height: 100vh;
}

/* Left Side - Navigation */
.models-navigation {
    flex: 0 0 55%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.models-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.model-item {
    margin-bottom: 3rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.model-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.model-shadow {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(30, 58, 138, 0.1);
    z-index: 1;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.model-link {
    color: #1e3a8a;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.model-item:hover .model-name {
    transform: scale(1.05);
    color: #2563eb;
}

.model-item:hover .model-shadow {
    transform: scale(1.05) translate(5px, 5px);
    opacity: 0.2;
}

.model-item:hover .model-link {
    color: #2563eb;
}

.model-item.active .model-name {
    transform: scale(1.1);
    color: #1e40af;
}

.model-item.active .model-shadow {
    transform: scale(1.1) translate(8px, 8px);
    opacity: 0.3;
}

/* Brand Icon */
.brand-icon {
    position: absolute;
    bottom: 4rem;
    left: 6rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    background: #2563eb;
}

.icon-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Right Side - Image */
.models-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* center the image container so boat stays visible */
}

.model-image {
     flex: 0 0 35%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000; /* opcional: fundo neutro atrás da imagem */
}

.model-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.model-image.active {
    opacity: 1;
}

.model-image img {
   width: 100%;
  height: auto; /* 🔹 mantém proporção original */
  max-height: 100%; /* impede que ultrapasse o container */
  object-fit: contain; /* 🔹 mostra a imagem inteira */
  object-position: center center;
  transform: none; 
  filter: brightness(1.05) contrast(1.05);
}

/* Video Section */
.video-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* ensure video sits behind overlay/content but remains visible */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* prevent video from blocking header/menus */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1; /* above video */
    pointer-events: none; /* don't block taps */
}

.video-content {
    text-align: center;
    color: white;
    z-index: 2; /* above overlay */
    max-width: 800px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.video-category {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.video-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
}

.video-play-button {
    margin-top: 0;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.9);
    border: 3px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: rgba(30, 58, 138, 1);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn i {
    margin-left: 3px;
}

/* Boats for Sale Section */
.boats-for-sale {
    padding: 6rem 0;
    background: #f8fafc;
}

/* Boat Gallery Section */
.boat-gallery {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.gallery-slide.active .gallery-image img {
    animation: zoomInOut 15s ease-in-out infinite;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: -1;
}

.gallery-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

.gallery-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.gallery-text-animated {
    margin-bottom: 3rem;
}

.animated-text-line {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    animation: textFragment 3s ease-in-out infinite;
    opacity: 0.9;
}

.animated-text-line:nth-child(1) {
    animation-delay: 0s;
}

.animated-text-line:nth-child(2) {
    animation-delay: 0.5s;
}

.animated-text-line:nth-child(3) {
    animation-delay: 1s;
}

.animated-text-line:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes textFragment {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.gallery-button {
    display: inline-block;
    background: rgba(50, 50, 50, 0.9);
    color: white;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.gallery-logo {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
}

.gallery-logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-logo-circle:hover {
    transform: scale(1.1);
    background: rgba(50, 50, 50, 1);
}

.gallery-logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-arrow-prev {
    left: 2rem;
}

.gallery-arrow-next {
    right: 2rem;
}

@media (min-width: 769px) {
    .gallery-arrow-prev {
        left: 1rem;
    }

    .gallery-arrow-next {
        right: 1rem;
    }
}

.gallery-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-indicator.active {
    background: white;
    transform: scale(1.3);
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.boat-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.boat-card.featured {
    border: 3px solid #fbbf24;
}

.boat-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.boat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.boat-status.new {
    background: #10b981;
}

.boat-info {
    padding: 2rem;
}

.boat-info h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.boat-location {
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boat-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.boat-specs span {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boat-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

/* Contact Hero */
.contact-hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.contact-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 1.5rem;
}

.contact-hero-content h1 {
    color: #ffffff;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Contact Location + Dotted Map */
.contact-location {
    padding: 5rem 0 4rem;
}

.contact-location-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.location-title {
    color: #223b6b;
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-line {
    color: #475569;
    margin-bottom: 0.75rem;
}

.location-map-btn {
    display: inline-block;
    border: 2px solid #223b6b;
    color: #223b6b;
    text-decoration: none;
    padding: 14px 22px;
    margin-top: 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.location-map-btn:hover {
    background: #223b6b;
    color: #ffffff;
}

.location-left a { color: #223b6b; text-decoration: none; }
.location-left a:hover { text-decoration: underline; }

.location-right { position: relative; }

.dotted-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 1px 1px, #d7dce2 1px, transparent 1.6px) 0 0/10px 10px,
        radial-gradient(circle at 1px 1px, #e8edf2 1px, transparent 1.6px) 5px 5px/10px 10px;
    border-radius: 8px;
    overflow: hidden;
}

.dotted-map img.map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

/* Marcador sobre o Brasil (posicionado por porcentagem) */
.map-marker {
    position: absolute;
    /* Ajuste refinado para o Brasil (América do Sul) */
    left: 29%;
    top: 68%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
}

.map-marker .pin {
    position: absolute;
    inset: 0;
    background: #223b6b;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 6px rgba(34, 59, 107, 0.25);
}

.map-marker .pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #223b6b;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(0.6); }
    70% { opacity: 0; transform: scale(2.3); }
    100% { opacity: 0; transform: scale(2.3); }
}

@media (max-width: 992px) {
    .contact-location-grid { grid-template-columns: 1fr; }
    .location-title { font-size: 2.4rem; }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1e3a8a;
    width: 30px;
}

.contact-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #64748b;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Newsletter (minimal, like the screenshot) */
#newsletter {
    background: transparent;
}

#newsletter .section-header {
    margin-bottom: 3rem;
}

#newsletter .section-title {
    color: #223b6b;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 3rem;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-panel {
    background: #e7ecef;
    padding: 6rem 3rem;
    min-height: 520px;
}

.newsletter-form {
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #334155;
    padding: 8px 4px;
    background: transparent;
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-submit {
    background: transparent;
    color: #223b6b;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.newsletter-submit:hover {
    color: #0f172a;
}

.newsletter-social {
    margin-top: 28px;
}

#newsletter .newsletter-social a {
    width: auto;
    height: auto;
    background: transparent;
    color: #223b6b;
    font-size: 22px;
}

#newsletter .newsletter-social a:hover {
    color: #0f172a;
    transform: none;
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
          position: fixed;
          /* Use transform-based off-canvas positioning to avoid creating horizontal scrollbars
              (transform does not affect layout). The menu is placed at right:0 and translated
              100% to hide it; when active the translation is removed. */
          right: 0;
          left: auto;
          top: 0;
          transform: translateX(100%);
          will-change: transform;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
          transition: transform 0.28s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    /* Inside the mobile menu (white background), use dark link colors */
    .nav-menu .nav-link {
        color: #1f2937 !important;
        text-shadow: none !important;
    }
    .nav-menu .nav-link:hover {
        color: #1e3a8a !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* On mobile hide the header logo image so only the hamburger (nav-toggle) remains visible */
    .nav-logo {
        display: none;
    }

    /* Ensure the hamburger is aligned to the right and above content on mobile */
    .nav-container {
        justify-content: flex-end;
        padding-right: 1rem;
    }

    .nav-toggle {
        z-index: 1200;
        margin-left: 0;
    }

    /* When menu is open, switch hamburger bars to dark for contrast over white panel */
    .nav-menu.active + .nav-toggle .bar {
        background: #1f2937 !important;
    }

    /* When menu is active make sure it overlays the content fully and is readable */
    .nav-menu.active {
        /* Remove the translate so the menu is visible; this avoids horizontal scrolling */
        transform: translateX(0);
        top: 0;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }

    /* Prevent any accidental horizontal page scrolling on small screens */
    html, body {
        overflow-x: hidden;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        bottom: 6rem;
        left: 2rem;
        right: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    /* Reduce contact hero photo size on small screens so it doesn't dominate the viewport */
    .contact-hero {
        min-height: 32vh;
        height: auto;
    }

    .contact-hero-bg img {
        width: 100%;
        height: 32vh;
        object-fit: cover;
        display: block;
    }

    .contact-hero-content h1 {
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
        line-height: 1.05;
    }

    /* Mobile: center hero text vertically and stack content for better readability on phones */
    .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    text-align: center;
    max-width: 92vw;
    width: 92vw;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.05;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-model {
        font-size: 1rem;
    }

    .section-indicators {
        bottom: 3rem;
        right: 2rem;
    }

    .indicator {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .slide-navigation {
        padding: 0 1rem;
    }


    .models-container {
        flex-direction: column;
        height: auto;
    }

    /* Mobile (Opção B): simplifica a seção de modelos — esconde a coluna de imagem e mostra uma lista compacta */
    .models-image {
        display: none;
    }

    .models-navigation {
        flex: none;
        width: 100%;
        padding: 2rem 1rem;
        order: 1;
    }

    .models {
        height: auto;
        overflow: visible;
    }

    .model-item {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .model-name {
        font-size: 1.6rem;
    }

    .model-link {
        display: inline-block;
        margin-top: 0.5rem;
    }

    .brand-icon {
        display: none;
    }

    /* Quando a seção tiver a classe preview-image, exiba a imagem em mobile como preview acima da lista */
    .models.preview-image .models-image {
        display: block;
        height: 50vh;
        order: 1;
        margin-bottom: 1rem;
    }

    .models.preview-image .models-navigation {
        order: 2;
    }

    /* Close button for preview (mobile) */
    .models-close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0,0,0,0.6);
        color: white;
        border: none;
        font-size: 24px;
        line-height: 1;
        display: none; /* shown only in preview state */
        align-items: center;
        justify-content: center;
        z-index: 20;
        cursor: pointer;
    }

    .models.preview-image .models-close-btn {
        display: flex;
    }

    /* Slightly enlarge hit area on mobile */
    @media (max-width: 480px) {
        .models-close-btn {
            width: 48px;
            height: 48px;
            font-size: 28px;
            top: 10px;
            right: 10px;
        }
    }

    .models-navigation {
        flex: none;
        padding: 3rem 2rem;
        order: 2;
    }

    .models-image {
        flex: none;
        height: 50vh;
        order: 1;
    }

    .model-image {
        left: 0;
        width: 100%;
    }

    .model-image img {
        /* mobile: keep boat visible and centered */
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        transform: none;
        filter: brightness(1.05) contrast(1.05);
    }

    /* Make boat cards and gallery images scale sensibly on phones.
       Use object-fit: contain so the whole boat is always visible (no cropping).
       We set the image to fit the container height and allow width to auto-scale
       so the aspect ratio is preserved. Add a dark background on the image
       containers to avoid white letterboxing. */
    .boat-image,
    .gallery-image {
        background-color: #000; /* dark neutral background behind contained images */
    }

    .boat-image img,
    .gallery-image img {
        width: auto;          /* allow width to scale according to aspect ratio */
        height: 100%;         /* fill container height while preserving aspect ratio */
        max-width: 100%;
        object-fit: contain;  /* default: show whole boat without cropping */
        object-position: center center;
        display: block;
    }

    /* Boats for Sale: remove black bars on mobile by covering container */
    .boats-for-sale .boat-image {
        background-color: transparent; /* no letterbox background */
    }
    .boats-for-sale .boat-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;            /* fill container, no bars */
        object-position: center center; /* balanced framing */
    }

    .model-name {
        font-size: 2rem;
    }

    .models-title {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .model-item {
        margin-bottom: 2rem;
    }

    .brand-icon {
        position: static;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }

    .video-title {
        font-size: 2.5rem;
    }

    .video-category {
        font-size: 1rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .boats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .animated-text-line {
        font-size: 1.2rem;
    }

    .gallery-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .gallery-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .gallery-arrow-prev {
        left: 1rem;
    }

    .gallery-arrow-next {
        right: 1rem;
    }

    .gallery-logo {
        bottom: 1rem;
        left: 1rem;
    }

    .gallery-logo-circle {
        width: 50px;
        height: 50px;
    }

    /* Video section: full-bleed video on mobile (no black bars) */
    .video-section {
        height: 100vh; /* keep full viewport height */
        background: transparent; /* no letterbox background */
    }

    .video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* fill container, crop edges to remove black bars */
        object-position: 75% center; /* bias framing to the right on mobile */
        background: transparent;
    }

    /* Video overlay content sizing/tweaks */
    .video-content {
        padding: 0 1rem;
        max-width: 90vw;
    }

    .video-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }

    .video-category {
        font-size: 0.95rem;
        letter-spacing: 0.08em;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .boat-price {
        flex-direction: column;
        align-items: stretch;
    }

    .boat-specs {
        justify-content: center;
    }

    #newsletter .section-title {
        font-size: 2rem;
    }
    .newsletter-form {
        max-width: 100%;
    }
    .newsletter-panel {
        padding: 4rem 1.25rem;
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Further refine video overlay on very small screens */
    .video-content {
        padding: 0 0.75rem;
        max-width: 92vw;
    }

    .video-title {
        font-size: 1.15rem;
        line-height: 1.35;
        margin-bottom: 1rem;
        text-wrap: balance;
    }

    .video-category {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Hide the Boat Gallery section on small screens to remove the section from mobile UX */
@media (max-width: 768px) {
    .boat-gallery,
    #boat-gallery {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling enhancement */
html {
    scroll-padding-top: 80px;
}     

/* Desktop-only: remove black backdrop behind model images and shift image to the left so the boat is favored */
@media (min-width: 769px) {
    .model-image {
        /* remove the black fallback so page background shows instead of black bars */
        background-color: #8c8c8c;
    }

    .model-image img {
        /* shift the contained image toward the left on desktop so the boat is more visible
           still uses object-fit: contain (no cropping) but biases the composition */
        object-position: 20% center;
    }

    /* Desktop: make header static only on pages that opt-in via body.static-header
       so other pages keep the default fixed + hide-on-scroll behavior. */
    .static-header .header {
        position: static;
        top: auto;
        width: 100%;
        transform: none !important;
        transition: none !important;
    }

    /* When JS toggles .header.hidden we neutralize the hide behavior for pages with .static-header */
    .static-header .header.hidden {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}