@font-face {
  font-family: 'trend-sans-w00-four';
  src: url('../fonts/trend-sans-w00-four.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Marcellus';
  src: url('../fonts/marcellus-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bitter';
  src: url('../fonts/bitter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bitter';
  src: url('../fonts/bitter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wix-teal-top: #436778;
  --wix-teal-mid: #143d4f;
  --wix-teal-deep: #103546;
  --wix-orange: #d95829;
  --wix-white: #ffffff;
}

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

html, body {
  min-height: 100%;
  background: linear-gradient(180deg, var(--wix-teal-top) 0%, var(--wix-teal-mid) 260px, var(--wix-teal-deep) 100%);
  background-attachment: fixed;
  color: var(--wix-orange);
  font-family: 'Marcellus', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation (Faithful to Wix Master Page) */
.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 20px 18px;
  text-align: center;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 34px;
}

.main-nav a {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--wix-white);
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--wix-orange);
}

/* Dropdown for About -> Our Captains & More -> Video / Contact */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #103f54;
  min-width: 170px;
  padding: 8px 0;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 19px;
  white-space: nowrap;
}

.brand-title {
  font-family: 'trend-sans-w00-four', sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.12;
  font-weight: 400;
  color: var(--wix-orange);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.brand-subtitle {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  color: var(--wix-white);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

/* Main Content Area */
.page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 20px 60px;
}

/* Home Page */
.home-hero-painting {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.home-hero-painting img {
  width: 100%;
  max-width: 952px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Page Headings */
.page-heading {
  font-family: 'Marcellus', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  color: var(--wix-orange);
  text-align: center;
  margin: 12px 0 32px;
}

/* Two-Column Layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 780px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.wix-prose p {
  font-family: 'Marcellus', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--wix-orange);
  margin-bottom: 18px;
}

.wix-prose ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.wix-prose li {
  font-family: 'Marcellus', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--wix-orange);
  margin-bottom: 16px;
}

.wix-link-cta {
  display: inline-block;
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--wix-orange);
  text-decoration: underline;
  margin: 12px 0 22px;
}

.wix-link-cta:hover {
  color: var(--wix-white);
}

/* Stacked images on About page */
.image-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-stack img {
  width: 100%;
  height: auto;
  display: block;
}

/* Captains Page */
.captain-row {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.captain-row.reverse {
  grid-template-columns: 1fr 440px;
}

@media (max-width: 820px) {
  .captain-row,
  .captain-row.reverse {
    grid-template-columns: 1fr;
  }
}

.captain-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.captain-bio h2 {
  font-family: 'Marcellus', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--wix-orange);
  text-align: center;
  margin-bottom: 20px;
}

.captain-bio p {
  font-family: 'Marcellus', serif;
  font-size: 17px;
  line-height: 1.58;
  color: var(--wix-orange);
  margin-bottom: 10px;
}

/* Sailing Charters */
.charters-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 44px;
  align-items: start;
}

@media (max-width: 820px) {
  .charters-layout {
    grid-template-columns: 1fr;
  }
}

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

.charters-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.charters-figure figcaption {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--wix-orange);
  margin-top: 10px;
}

/* Other Services */
.services-intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.services-intro h2 {
  font-family: 'Marcellus', serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 18px;
}

.services-intro p {
  font-size: 17px;
  line-height: 1.65;
}

.service-row {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 54px;
}

.service-row.reverse {
  grid-template-columns: 1fr 480px;
}

@media (max-width: 820px) {
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
  }
}

.service-row img {
  width: 100%;
  height: auto;
  display: block;
}

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

.service-text h3 {
  font-family: 'Marcellus', serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 16px;
}

.service-text p {
  font-size: 16px;
  line-height: 1.58;
  margin-bottom: 14px;
}

.service-text em {
  font-style: italic;
}

/* Gallery Grid */
.gallery-intro {
  text-align: center;
  font-size: 20px;
  margin: 12px auto 34px;
  max-width: 760px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 12px 14px;
  background: rgba(16, 53, 70, 0.92);
}

.gallery-caption h3 {
  font-size: 18px;
  font-weight: 400;
  color: var(--wix-orange);
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 14px;
  color: #e2e8f0;
}

/* Video Page */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.video-card {
  background: rgba(8, 28, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  text-align: center;
}

.video-card video {
  width: 100%;
  max-height: 460px;
  background: #000;
  display: block;
  margin-bottom: 12px;
}

.video-card h3 {
  font-size: 19px;
  font-weight: 400;
  color: var(--wix-orange);
}

.video-card span {
  font-size: 13px;
  color: #cbd5e1;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 820px;
  margin: 20px auto 0;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #94a3b8;
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  color: #0f172a;
}

.contact-form button {
  background: var(--wix-orange);
  color: #fff;
  border: none;
  padding: 11px 32px;
  font-family: 'Marcellus', serif;
  font-size: 18px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  text-align: center;
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-bar img {
  width: 28px;
  height: 28px;
  display: block;
}

.copyright {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  color: var(--wix-orange);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 960px;
  max-height: 90vh;
  text-align: center;
  position: relative;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.lightbox-caption {
  color: #fff;
  margin-top: 12px;
  font-size: 18px;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: #fff;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Phone & Touch Device Refinements (Standard HTML5/CSS3 Top Navbar Pattern) */
.rcm-mobile-bar {
  display: none;
}

@media (max-width: 860px) {
  html, body {
    background-attachment: scroll;
  }
  .site-header {
    padding: 0 0 16px;
    position: relative;
  }
  .rcm-mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(12, 41, 56, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 20px;
  }
  .rcm-mobile-brand {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    color: var(--wix-orange);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .rcm-mobile-toggle {
    background: none;
    color: var(--wix-white);
    border: none;
    font-size: 26px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 41, 56, 0.98);
    border-bottom: 2px solid var(--wix-orange);
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
  .main-nav.nav-open {
    display: flex;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .brand-title {
    font-size: clamp(28px, 8.2vw, 46px);
    word-break: break-word;
    padding: 0 16px;
  }
  .brand-subtitle {
    padding: 0 16px;
  }
  .page-container {
    padding: 8px 16px 44px;
  }
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}
