/* ============================================
   MELITA PRIVATE — Jets & Yachts
   ============================================ */

:root {
  --ink: #0b1220;            /* deep midnight navy */
  --ink-soft: #101a2c;
  --ink-raised: #16223a;
  --line: rgba(198, 168, 108, 0.22);
  --gold: #c6a86c;           /* champagne gold */
  --gold-bright: #e0c68d;
  --cream: #f3efe6;
  --cream-dim: rgba(243, 239, 230, 0.68);
  --cream-faint: rgba(243, 239, 230, 0.42);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

.display {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: 0.01em;
}

.display em {
  font-style: italic;
  color: var(--gold-bright);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h2 em { font-style: italic; color: var(--gold-bright); }

.lede {
  font-size: 1.06rem;
  color: var(--cream-dim);
  max-width: 58ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }

.btn--solid {
  background: var(--gold);
  color: var(--ink);
}

.btn--solid::before { background: var(--gold-bright); transform: scaleX(1); z-index: -1; }
.btn--solid:hover { color: var(--ink); }

.text-link {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: border-color 0.3s, color 0.3s;
}

.text-link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.logo span { color: var(--gold); }

.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--cream-faint);
  margin-top: 0.1rem;
}

.main-nav {
  display: flex;
  gap: 2.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--cream-dim);
  transition: color 0.3s;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.header-cta { display: flex; align-items: center; gap: 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-phone {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

.header-cta .btn { padding: 0.75rem 1.6rem; font-size: 0.66rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: heroDrift 8s var(--ease) both;
}

@keyframes heroDrift {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.25) 45%, var(--ink) 100%);
}

.hero-inner { padding: 8rem 1rem 6rem; }

.hero .eyebrow { animation: rise 1.2s 0.2s var(--ease) both; }
.hero h1 { animation: rise 1.2s 0.4s var(--ease) both; }
.hero .hero-sub { animation: rise 1.2s 0.65s var(--ease) both; }
.hero .hero-actions { animation: rise 1.2s 0.85s var(--ease) both; }

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

.hero-sub {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-dim);
  line-height: 2.2;
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 7rem 0; }

.section-head {
  margin-bottom: 4rem;
  max-width: 720px;
}

.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1.4rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Enquiry ---------- */

.enquiry {
  background: #ffffff;
  border-block: 1px solid rgba(11, 18, 32, 0.08);
}

.enquiry h2 { color: var(--ink); }
.enquiry h2 em { color: #9c7a34; }
.enquiry .eyebrow { color: #9c7a34; }
.enquiry .lede { color: rgba(11, 18, 32, 0.66); }

.enquiry .field input,
.enquiry .field select,
.enquiry .field textarea {
  border-bottom-color: rgba(11, 18, 32, 0.28);
  color: var(--ink);
}

.enquiry .field input:focus,
.enquiry .field select:focus,
.enquiry .field textarea:focus { border-bottom-color: #9c7a34; }
.enquiry .field input::placeholder,
.enquiry .field textarea::placeholder { color: rgba(11, 18, 32, 0.38); }
.enquiry .field select option { background: #ffffff; color: var(--ink); }
.enquiry .field label { color: #9c7a34; }
.enquiry .enquiry-note { color: rgba(11, 18, 32, 0.5); }

.enquiry .btn--solid {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.enquiry .btn--solid::before { background: #9c7a34; }
.enquiry .btn--solid:hover { color: var(--ink); }

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

.assurance-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.assurance-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: rgba(11, 18, 32, 0.78);
}

.assurance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.85rem;
  height: 1px;
  background: #9c7a34;
}

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  resize: vertical;
}

.phone-row {
  display: flex;
  gap: 1rem;
}

.phone-row select { flex: 0 0 9.5rem; min-width: 0; }
.phone-row input { flex: 1; min-width: 0; }

.field input:focus, .field select:focus { border-color: var(--gold); }
.field input::placeholder { color: var(--cream-faint); }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-soft); }

.enquiry-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 1rem; }

.enquiry-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

/* ---------- Dual fleet panels ---------- */

.fleet-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fleet-panels.single { grid-template-columns: 1fr; }
.fleet-panels.single .panel { min-height: 480px; }

.panel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 2.8rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
}

.panel-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
}

.panel:hover .panel-media { transform: scale(1.06); }

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,18,32,0.1) 30%, rgba(11,18,32,0.92) 100%);
}

.panel-body { max-width: 40ch; }

.panel-body h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.panel-body p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

/* ---------- Programs ---------- */

.programs { background: var(--ink-soft); border-block: 1px solid var(--line); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.program-card {
  border: 1px solid var(--line);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--ink);
  transition: transform 0.5s var(--ease), border-color 0.5s;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.program-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

.program-card h3 { font-size: 1.6rem; }

.program-card p {
  color: var(--cream-dim);
  font-size: 0.92rem;
  flex-grow: 1;
}

/* ---------- Malta editorial ---------- */

.malta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.malta-figure {
  position: relative;
}

.malta-figure .frame {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.malta-figure::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--line);
  z-index: -1;
}

.malta-copy p {
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
}

.malta-copy .coords {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 2rem 0;
  display: block;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  border-block: 1px solid var(--line);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat .value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--gold-bright);
  line-height: 1;
}

/* Big claims band under the hero */
.claims-strip {
  background: var(--ink-soft);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 4.5rem 0;
}

.claims-strip .value {
  font-size: clamp(3.2rem, 6.5vw, 5.2rem);
}

.claims-strip .label {
  font-size: 0.76rem;
  color: var(--cream-dim);
}

.stat .label {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* ---------- Promise / CTA ---------- */

.promise {
  position: relative;
  text-align: center;
  isolation: isolate;
  padding: 10rem 0;
}

.promise-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.promise::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 32, 0.82);
}

.promise h2 { max-width: 22ch; margin-inline: auto; }
.promise .lede { margin: 1.6rem auto 2.6rem; }

/* ---------- Values (About) ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  border-top: 1px solid var(--gold);
  padding-top: 1.8rem;
}

.value-card h3 { font-size: 1.9rem; margin-bottom: 0.9rem; color: var(--gold-bright); }
.value-card p { color: var(--cream-dim); font-size: 0.94rem; }

/* ---------- Story (About) ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
}

.story-copy p { color: var(--cream-dim); margin-bottom: 1.4rem; }

.story-copy p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.6rem;
  color: var(--gold-bright);
}

.page-hero { min-height: 64svh; }

/* ---------- Fleet pages ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fleet-card {
  border: 1px solid var(--line);
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}

.fleet-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.fleet-card .thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
}

.fleet-card:hover .thumb { transform: scale(1.05); }

.fleet-card .thumb-wrap { overflow: hidden; }

.fleet-card .body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-grow: 1;
}

.fleet-card h3 { font-size: 1.5rem; }

.fleet-card .desc {
  color: var(--cream-dim);
  font-size: 0.9rem;
  flex-grow: 1;
}

.fleet-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 960px) {
  .fleet-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--cream-faint);
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  font-weight: 400;
}

.footer-col li { margin-bottom: 0.7rem; }

.footer-col a {
  font-size: 0.88rem;
  color: var(--cream-dim);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.74rem;
  color: var(--cream-faint);
  letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 18, 32, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(198, 168, 108, 0.12);
    color: var(--cream);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .enquiry-grid, .malta-grid, .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .fleet-panels { grid-template-columns: 1fr; }
  .program-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { min-height: 440px; }
  section { padding: 4.5rem 0; }
  .promise-media { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .enquiry-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.15rem; }
  .logo small { letter-spacing: 0.22em; }
  .header-cta .btn { padding: 0.65rem 1.1rem; font-size: 0.6rem; }
}
