/* ==========================================================================
   Right Coast Marine — Production Stylesheet (styles.css)
   Easy to edit: change colors in :root below to update the entire site.
   ========================================================================== */

@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: '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: #ff7a4d;
  --wix-orange-btn: #b53f15;
  --wix-orange-light: #ff8559;
  --wix-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #cbd5e1;
}

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

html {
  scroll-behavior: smooth;
}

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(--text-light);
  font-family: 'Marcellus', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: 60px;
}

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

/* Sticky Navigation Header */
.site-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 31, 46, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 114, 52, 0.32);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header-nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wix-orange);
  white-space: nowrap;
  font-weight: 400;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-brand:hover {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--wix-white);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 2px;
  background-color: var(--wix-orange);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-call-btn {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--wix-white);
  background: rgba(224, 114, 52, 0.16);
  border: 1px solid var(--wix-orange);
  border-radius: 4px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-call-btn:hover {
  background: var(--wix-orange);
  color: #0b2231;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--wix-white);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle-btn:hover,
.nav-toggle-btn:focus {
  border-color: var(--wix-orange);
  color: var(--wix-orange);
  outline: none;
}

/* Hero Typography Banner */
.hero-brand-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 16px;
  text-align: center;
}

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

.brand-subtitle {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  color: var(--wix-white);
  letter-spacing: 0.02em;
  margin: 0 auto 22px;
  max-width: 820px;
  line-height: 1.5;
}

#home,
#about,
#charters,
#captains,
#services,
#contact,
.section-divider {
  scroll-margin-top: 76px;
}

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

.page-container p,
.page-container li {
  color: var(--text-light);
  font-size: 19px;
  line-height: 1.68;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-container strong {
  color: var(--wix-orange-light);
}

.section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 56px 0 42px;
  padding-top: 36px;
}

.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;
}

/* Hero Painting */
.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;
}

/* About Section */
.about-section {
  max-width: 860px;
  margin: 32px auto 36px;
}

.about-intro {
  text-align: center;
  margin-bottom: 24px;
}

.services-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(9, 30, 42, 0.55);
  padding: 24px 30px;
  border-radius: 10px;
  border-left: 3px solid var(--wix-orange);
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

.services-box ul {
  list-style: none;
  padding-left: 0;
}

.services-box li {
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.services-box li:last-child {
  margin-bottom: 0;
}

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

.charters-layout .page-heading {
  margin-top: 0;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wix-orange-btn);
  color: var(--wix-white);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 6px;
  transition: filter 0.2s;
}

/* ==========================================================================
   Local Lucide CSS Icons (Usage in HTML: <i class="icon icon-mail"></i>)
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-message-square {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.icon-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.icon-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.icon-anchor {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E");
}

.cta-pill:hover {
  filter: brightness(1.1);
}

.cta-pill.secondary {
  background: #1c526b;
  border: 1px solid var(--wix-white);
}

.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-white);
  margin-top: 10px;
}

/* Our Captains */
.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;
  margin-bottom: 0;
}

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

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

/* Yacht Delivery & Marine 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;
  color: var(--wix-orange);
  margin-bottom: 18px;
}

.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;
  margin-bottom: 0;
}

.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;
  color: var(--wix-orange);
  margin-bottom: 16px;
}

.service-text p.caption {
  color: var(--text-muted);
  font-style: italic;
}

/* Contact Section */
.contact-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
  max-width: 760px;
  margin: 20px auto 0;
}

.contact-layout img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.contact-details {
  margin-bottom: 24px;
}

.contact-details a.email-link {
  text-decoration: underline;
}

.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-btn);
  color: var(--wix-white);
  border: none;
  padding: 11px 32px;
  font-family: 'Marcellus', serif;
  font-size: 18px;
  cursor: pointer;
}

/* Gallery Page */
.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: var(--text-light);
  margin-bottom: 0;
}

/* 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: var(--wix-white);
  margin-top: 12px;
  font-size: 18px;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: var(--wix-white);
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 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);
}

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

.footer-contact {
  color: var(--wix-white);
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-contact a {
  text-decoration: underline;
  color: #ff9d78;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--wix-white);
  font-size: 16px;
  text-decoration: underline;
  transition: color 0.18s ease;
}

.social-link:hover {
  color: var(--wix-orange-light);
}

.social-bar svg,
.social-bar img {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.social-bar img {
  filter: brightness(0) invert(1);
}

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

/* Mobile & Tablet Responsive Layout */
@media (max-width: 980px) {
  html, body {
    background-attachment: scroll;
  }
  body {
    padding-top: 56px;
  }
  #home,
  #about,
  #charters,
  #captains,
  #services,
  #contact,
  .section-divider {
    scroll-margin-top: 66px;
  }
  .header-nav-container {
    height: 56px;
    padding: 0 16px;
  }
  .nav-brand {
    font-size: 17px;
  }
  .nav-toggle-btn {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 29, 41, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--wix-orange);
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  }
  .main-nav.nav-open {
    display: flex;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 22px;
    font-size: 17px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .main-nav a.active {
    background: rgba(224, 114, 52, 0.12);
  }
  .main-nav a.active::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    border-radius: 0;
  }
  .hero-brand-header {
    padding: 24px 16px 12px;
  }
  .brand-title {
    font-size: clamp(28px, 8.2vw, 48px);
    word-break: break-word;
    padding: 0 12px;
    margin-bottom: 12px;
  }
  .brand-subtitle {
    padding: 0 12px;
    font-size: 14px;
    margin-bottom: 16px;
  }
  .page-container {
    padding: 8px 16px 44px;
  }
  .services-box {
    padding: 20px 18px;
    border-radius: 8px;
  }
  .services-box li {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 10px;
  }
  .charters-layout,
  .captain-row,
  .captain-row.reverse,
  .service-row,
  .service-row.reverse,
  .contact-layout,
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    gap: 28px;
  }
  .contact-layout > div:first-child {
    order: 2;
  }
  .contact-layout > div:last-child {
    order: 1;
  }
}

@media (max-width: 480px) {
  .nav-call-btn {
    font-size: 12px;
    padding: 5px 9px;
  }
  .services-box {
    padding: 16px 14px;
  }
  .services-box li {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .nav-brand {
    font-size: 15px;
  }
  .nav-call-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .section-divider {
    margin: 36px 0 28px;
    padding-top: 24px;
  }
}
