/* =========================================================
   Maris Yacht Charters — Luxury Yacht Charter Site
   Shared styles
   ========================================================= */

:root {
  --navy-900: #0a1929;
  --navy-800: #0f2237;
  --navy-700: #16304a;
  --charcoal: #1f2a37;
  --gold: #c9a961;
  --gold-bright: #d9bd7a;
  --gold-dim: #8a7340;
  --cream: #f5f1e8;
  --cream-soft: #faf7ef;
  --ivory: #fffdf7;
  --muted: #8a93a3;
  --line: rgba(201, 169, 97, 0.25);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px -10px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --container: 1200px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

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

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

/* ---------- Eyebrow / accent text ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(201, 169, 97, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy-900); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--ivory); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: transparent;
  transition: all 0.3s ease;
}
.nav.scrolled,
.nav.solid {
  background: rgba(10, 25, 41, 0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.05em;
}
.logo .gold { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-900) !important;
  padding: 0.7rem 1.4rem !important;
  letter-spacing: 0.18em !important;
}
.nav-cta:hover { background: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  font-size: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1929 0%, #16304a 50%, #1a3a5c 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
}

/* Subtle ocean wave pattern */
.hero-bg svg { width: 100%; height: 100%; opacity: 0.4; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero h1 .italic { font-style: italic; color: var(--gold); }

.hero p.subtitle {
  font-size: 1.15rem;
  color: rgba(245, 241, 232, 0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- Section base ---------- */
section { padding: 6rem 0; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Value props ---------- */
.values {
  background: var(--cream-soft);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}
.value {
  text-align: center;
  padding: 1rem;
}
.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
}
.value h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.value p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Featured Fleet ---------- */
.fleet-preview { background: var(--ivory); }

.yacht-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.yacht-card {
  background: var(--cream-soft);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}
.yacht-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}

.yacht-img {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.yacht-img svg { width: 100%; height: 100%; }

.yacht-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 25, 41, 0.85);
  color: var(--gold);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.yacht-info {
  padding: 2rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.yacht-info h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.yacht-info .yacht-type {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.yacht-specs {
  display: flex;
  gap: 1.5rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.yacht-specs span strong { color: var(--navy-900); display: block; font-size: 1rem; }
.yacht-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy-900);
  margin-top: auto;
}
.yacht-price .per { font-size: 0.85rem; color: var(--muted); font-family: var(--sans); }
.yacht-cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}
.yacht-cta .btn { flex: 1; padding: 0.75rem 1rem; font-size: 0.7rem; }

/* ---------- Experience / CTA strip ---------- */
.experience {
  background: var(--navy-900);
  color: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.12), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.08), transparent 50%);
}
.experience .container { position: relative; z-index: 1; }
.experience h2 { color: var(--ivory); margin-bottom: 1.5rem; }
.experience p {
  color: rgba(245, 241, 232, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream-soft); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.testimonial {
  padding: 2.5rem;
  background: var(--ivory);
  position: relative;
  border-top: 2px solid var(--gold);
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.testimonial-author { font-weight: 500; color: var(--navy-900); }
.testimonial-source { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-900);
  color: rgba(245, 241, 232, 0.7);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
footer h4 {
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; }
footer a:hover { color: var(--gold); }
footer p { font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--ivory);
  padding: 11rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 169, 97, 0.15), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); margin-bottom: 1rem; }
.page-hero p { color: rgba(245, 241, 232, 0.8); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Fleet page ---------- */
.fleet-filters {
  background: var(--cream-soft);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--navy-900);
  color: var(--gold);
  border-color: var(--navy-900);
}

/* ---------- Booking form ---------- */
.booking-section { background: var(--ivory); }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.booking-form {
  background: var(--cream-soft);
  padding: 3rem;
  border-top: 3px solid var(--gold);
}

.form-group { margin-bottom: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.booking-summary {
  position: sticky;
  top: 100px;
  padding: 2.5rem;
  border: 1px solid var(--line);
}
.booking-summary h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.booking-summary .summary-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.summary-row .label { color: var(--muted); }
.summary-row .value { color: var(--navy-900); font-weight: 500; }
.summary-row.total {
  font-size: 1.2rem;
  font-family: var(--serif);
  border-bottom: none;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--navy-900);
}
.summary-row.total .value { color: var(--gold); font-size: 1.5rem; }

.booking-submit {
  width: 100%;
  margin-top: 2rem;
  padding: 1.15rem;
  font-size: 0.85rem;
}

.confirmation {
  display: none;
  text-align: center;
  padding: 3rem;
  background: var(--cream-soft);
  border-top: 3px solid var(--gold);
}
.confirmation.show { display: block; }
.confirmation .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 2rem;
}
.confirmation h2 { margin-bottom: 1rem; }
.confirmation .ref {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 1rem 0;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gold);
}

/* ---------- About page ---------- */
.about-intro { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-grid img,
.about-image {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.about-grid p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.25rem; }

.crew { background: var(--cream-soft); }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.crew-member { text-align: center; }
.crew-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 4rem;
  font-style: italic;
}
.crew-member h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.crew-member .role {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.crew-member p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}
.contact-info h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-detail h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact-detail p { margin-bottom: 0; color: var(--charcoal); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    transition: right 0.3s ease;
    gap: 1.75rem;
  }
  .nav-links.open { right: 0; }
  .booking-grid,
  .about-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .booking-summary { position: static; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 4rem 0; }
  .about-image { height: 320px; }
  .booking-form { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
