/* ============================================
   Rock Star Yachts Charters — Master Stylesheet
   Dark Luxury Nautical Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-dark: #0a1628;
  --bg-darker: #060f1d;
  --bg-card: #0f1f35;
  --bg-card-hover: #142842;
  --gold: #d4a853;
  --gold-light: #e8c674;
  --gold-dark: #b8923f;
  --white: #ffffff;
  --text-light: #c8d0dc;
  --text-muted: #8899aa;
  --overlay: rgba(10, 22, 40, 0.7);
  --overlay-dark: rgba(6, 15, 29, 0.85);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

/* --- Reset & Base --- */
html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-top: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Header --- */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-darker);
  transition: box-shadow 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo img {
  max-height: 50px;
  width: auto;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 10px 15px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* Dropdown */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-darker);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 10px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--bg-card);
}

/* Nav CTA button */
.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

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

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
}

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-inner {
  min-height: 80vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 35px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inner-page hero (shorter) */
.hero-inner {
  min-height: 80vh;
}

/* --- Section Base --- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-content .btn {
  font-size: 0.8rem;
  padding: 10px 25px;
}

/* --- About / Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.two-col-text .section-title {
  text-align: left;
}

.two-col-text .section-title::after {
  left: 0;
  transform: none;
}

.two-col-text .subtitle {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
}

.two-col-text p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 25px;
}

.two-col-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- What's Included / Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 40px;
}

.features-grid li {
  position: relative;
  padding-left: 30px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 2;
}

.features-grid li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Cruise Highlights / Icon Grid --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.highlight-item {
  padding: 30px 15px;
}

.highlight-item .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  color: var(--gold);
}

.highlight-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* --- Rate Cards --- */
.rate-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.rate-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 15px;
}

.rate-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.rate-card .price-detail {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.rate-card ul {
  margin-bottom: 30px;
}

.rate-card ul li {
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid #2a3a50;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--bg-card);
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 25px;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.comparison-table thead th {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-align: left;
}

.comparison-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 0.95rem;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-card);
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-darker);
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

.blog-card-content {
  padding: 25px;
}

.blog-card-content .meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.blog-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--white);
}

.blog-card-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

/* --- Cancellation / Ordered Steps --- */
.policy-steps {
  counter-reset: step;
  padding: 0;
}

.policy-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 60px;
  margin-bottom: 15px;
  background: var(--bg-card);
  border-radius: 8px;
  color: var(--text-light);
}

.policy-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-darker);
  padding: 60px 20px 0;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col .footer-logo {
  max-height: 45px;
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col .contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-col .contact-item .label {
  color: var(--gold);
  font-weight: 600;
  min-width: 55px;
}

.footer-col .social-links {
  display: flex;
  gap: 12px;
}

.footer-col .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-col .social-links a:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Mobile Sticky CTA Bar --- */
.mobile-cta-bar {
  display: none;
}

/* --- Responsive --- */

/* 1024px */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .two-col {
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    gap: 0;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

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

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 15px;
    min-width: 0;
    background: transparent;
  }

  .nav-cta {
    margin-top: 20px;
    width: 100%;
  }

  .nav-cta .btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 50px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .two-col-image {
    order: -1;
  }

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

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

  .gallery-grid img {
    height: 180px;
  }

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

  /* Mobile sticky CTA */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-darker);
    padding: 10px 15px;
    gap: 10px;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.8rem;
  }

  /* Extra bottom padding for sticky bar */
  .footer {
    padding-bottom: 80px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}

/* 480px */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 15px;
  }

  .hero {
    min-height: 75vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 35px;
  }

  .card-content {
    padding: 20px;
  }

  .rate-card .price {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.85rem;
  }

  .cta-banner {
    padding: 40px 15px;
  }

  .cta-banner h2 {
    font-size: 1.3rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
