/* ============================================
   Black Watch Sailing — Elegant Nautical Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0d1b2a;
  --navy-light: #1b2d45;
  --navy-mid: #142236;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dark: #b8923e;
  --sand: #f5f0e8;
  --sand-dark: #e8dcc8;
  --white: #ffffff;
  --text-light: #e0ddd6;
  --text-dark: #2c2c2c;
  --text-muted: #8899aa;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Google Fonts Placeholder (loaded in HTML) --- */

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.5) 0%,
    rgba(13, 27, 42, 0.3) 40%,
    rgba(13, 27, 42, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content h1 .gold {
  color: var(--gold);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Page Hero (shorter, for inner pages) */
.page-hero {
  height: 50vh;
  min-height: 380px;
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--gold);
}

.btn-dark:hover {
  background: var(--navy-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-mid {
  background: var(--navy-mid);
  color: var(--white);
}

.section-light {
  background: var(--sand);
  color: var(--text-dark);
}

.section-white {
  background: var(--white);
  color: var(--text-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-dark .section-title h2,
.section-mid .section-title h2 {
  color: var(--gold);
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-light .section-title p,
.section-white .section-title p {
  color: #666;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.card-body p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Dark card variant */
.card-dark {
  background: var(--navy-light);
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.card-dark .card-body h3 {
  color: var(--gold);
}

.card-dark .card-body p {
  color: var(--text-muted);
}

/* ============================================
   CHARTER PRICING
   ============================================ */
.pricing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 168, 83, 0.15);
}

.pricing-card.featured {
  border-color: var(--gold);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 0 0 8px 8px;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 16px 0 4px;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 20px;
}

.pricing-card .features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card .features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe3;
  color: #555;
  font-size: 0.92rem;
  padding-left: 24px;
  position: relative;
}

.pricing-card .features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ============================================
   GALLERY / PHOTO GRID
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.photo-grid-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.photo-grid-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.05);
}

.photo-grid-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-grid-item:hover .overlay {
  opacity: 1;
}

/* Video embeds */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-light);
}

.video-card video {
  width: 100%;
  display: block;
}

.video-card .video-label {
  padding: 16px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   HISTORY / VESSEL SPECS
   ============================================ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.spec-item {
  text-align: center;
  padding: 24px;
  background: rgba(212, 168, 83, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.spec-item .spec-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.spec-item .spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   CONTACT / MAP
   ============================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--gold);
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Directions */
.directions-list {
  list-style: none;
}

.directions-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.directions-list li strong {
  color: var(--gold);
  min-width: 160px;
  flex-shrink: 0;
}

/* ============================================
   CREW
   ============================================ */
.crew-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.crew-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.crew-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.crew-bio h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.crew-bio p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(212, 168, 83, 0.15);
  padding: 48px 0 24px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.8rem;
  color: #556;
}

/* ============================================
   LIGHTBOX (simple)
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .crew-main { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .hero { min-height: 500px; }
  .page-hero { min-height: 320px; }

  .section { padding: 56px 0; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .directions-list li {
    flex-direction: column;
    gap: 4px;
  }

  .directions-list li strong {
    min-width: auto;
  }

  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .logo-text { font-size: 1.05rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
  .pricing-card { padding: 24px; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.inline-flex { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Tabbed content (for gallery) */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gold);
  color: var(--navy);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   NEWS
   ============================================ */
.news-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}

.news-item img {
  border-radius: 8px;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.news-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   SVG LOGO STYLING
   ============================================ */
.logo svg {
  width: 40px;
  height: 40px;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 48px;
  }
}

/* Scroll indicator on hero */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold);
  opacity: 0.7;
  animation: bobble 2s infinite;
  font-size: 1.5rem;
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
