/*
Theme Name: Mareluce Emergent
Theme URI: https://mareluce.com/
Author: Mareluce
Description: Premium bilingual marine-lighting experience based on the approved Mareluce Emergent design.
Version: 1.0.3
Text Domain: mareluce-emergent
*/

:root {
  --ml-navy: #030712;
  --ml-navy-soft: #07101f;
  --ml-ink: #0b1020;
  --ml-white: #f7f6f1;
  --ml-muted: #a9afbd;
  --ml-line: rgba(255, 255, 255, 0.15);
  --ml-gold: #d9bd8c;
  --ml-serif: "Cormorant Garamond", Georgia, serif;
  --ml-sans: "Outfit", Arial, sans-serif;
  --ml-container: min(1180px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ml-navy); }
body.ml-site {
  margin: 0;
  overflow-x: hidden;
  color: var(--ml-white);
  background: var(--ml-navy);
  font-family: var(--ml-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.ml-site.admin-bar .ml-header { top: 32px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.ml-site h1, .ml-site h2, .ml-site h3, .ml-site p { margin-top: 0; }
.ml-site h1, .ml-site h2, .ml-site h3 {
  font-family: var(--ml-serif);
  font-weight: 300;
  line-height: .98;
}
.ml-site h2 { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.04em; }
.ml-site h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.025em; }
.ml-container { width: var(--ml-container); margin-inline: auto; }
.ml-section { position: relative; padding: 150px 0; scroll-margin-top: 88px; }
.ml-eyebrow {
  margin-bottom: 32px;
  color: var(--ml-gold);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.ml-grain {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.32) 0 .55px, transparent .8px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.24) 0 .45px, transparent .7px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.ml-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 3.8vw;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.ml-header.is-scrolled {
  border-color: rgba(255,255,255,.1);
  background: rgba(3,7,18,.82);
  backdrop-filter: blur(18px);
}
.ml-logo-button {
  display: flex;
  align-items: center;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ml-logo { width: clamp(190px, 17vw, 250px); height: auto; }
.ml-nav { display: flex; gap: clamp(24px, 3.1vw, 50px); }
.ml-nav button, .ml-mobile-menu button {
  padding: 10px 0;
  border: 0;
  color: rgba(255,255,255,.72);
  background: none;
  font-size: .84rem;
  font-weight: 300;
  cursor: pointer;
  transition: color .25s ease;
}
.ml-nav button:hover, .ml-mobile-menu button:hover { color: #fff; }
.ml-header-actions { display: flex; align-items: center; justify-self: end; gap: 24px; }
.ml-language { display: flex; align-items: center; gap: 8px; font-size: .65rem; letter-spacing: .14em; }
.ml-language button { padding: 4px; border: 0; color: rgba(255,255,255,.35); background: none; cursor: pointer; }
.ml-language button.is-active { color: #fff; }
.ml-language span { color: rgba(255,255,255,.2); }
.ml-dealer-button {
  min-height: 42px;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(3,7,18,.18);
  font-size: .63rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s, background .25s;
}
.ml-dealer-button:hover { color: var(--ml-navy); background: var(--ml-white); }
.ml-menu-toggle { display: none; width: 36px; height: 36px; padding: 8px; border: 0; background: none; cursor: pointer; }
.ml-menu-toggle span { display: block; width: 100%; height: 1px; margin: 6px 0; background: #fff; }
.ml-mobile-menu { display: none; }

.ml-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.ml-hero__image, .ml-hero__veil { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.ml-hero__image { object-fit: cover; transform: scale(1.04); will-change: transform; }
.ml-hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,7,18,.54) 0%, rgba(3,7,18,.15) 58%, rgba(3,7,18,.38) 100%),
    linear-gradient(180deg, rgba(3,7,18,.46) 0%, rgba(3,7,18,.12) 48%, var(--ml-navy) 100%);
}
.ml-hero__content { width: 58%; padding: clamp(128px, 15vh, 180px) 0 82px 3.8vw; }
.ml-hero__eyebrow { margin-bottom: 28px; color: rgba(255,255,255,.72); }
.ml-hero__title { margin: 0 0 38px; font-size: clamp(5rem, 10.7vw, 10.5rem); letter-spacing: -.055em; }
.ml-hero__title span { display: block; overflow: hidden; animation: ml-rise 1.05s cubic-bezier(.2,.8,.2,1) both; }
.ml-hero__title span:nth-child(2) { animation-delay: .08s; }
.ml-hero__title span:nth-child(3) { animation-delay: .16s; }
.ml-hero__intro { max-width: 590px; margin-bottom: 38px; color: rgba(255,255,255,.72); font-size: clamp(.95rem, 1.25vw, 1.16rem); }
.ml-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ml-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s, color .25s, background .25s, border-color .25s;
}
.ml-button:hover { transform: translateY(-2px); }
.ml-button--light { border-color: var(--ml-white); color: var(--ml-navy); background: var(--ml-white); }
.ml-button--light:hover { color: var(--ml-white); background: transparent; }
.ml-button--ghost { color: var(--ml-white); background: rgba(3,7,18,.16); }
.ml-button--ghost:hover { border-color: var(--ml-white); background: rgba(3,7,18,.42); }
.ml-scroll-cue {
  position: absolute;
  right: 49%;
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  color: rgba(255,255,255,.5);
  background: none;
  font-size: .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
}
.ml-scroll-cue i { display: block; width: 1px; height: 42px; background: linear-gradient(#fff, transparent); }
@keyframes ml-rise { from { opacity: 0; transform: translateY(55px); } to { opacity: 1; transform: translateY(0); } }

.ml-marquee {
  overflow: hidden;
  padding: 56px 0;
  border-block: 1px solid rgba(255,255,255,.05);
  background: #050b1c;
}
.ml-marquee div {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: ml-marquee var(--ml-marquee-duration, 38s) linear infinite;
}
.ml-marquee span {
  flex: none;
  padding: 0 32px;
  color: transparent;
  font-family: var(--ml-serif);
  font-size: 60px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
}
@keyframes ml-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (min-width: 768px) {
  .ml-marquee { padding-block: 80px; }
  .ml-marquee span { font-size: 96px; }
}

@media (min-width: 1024px) {
  .ml-marquee span { font-size: 128px; }
}

[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.ml-experience { background: var(--ml-navy); }
.ml-experience__grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(60px, 9vw, 145px); }
.ml-copy h2 { max-width: 690px; margin-bottom: 42px; }
.ml-copy > p:last-child { max-width: 590px; color: var(--ml-muted); font-size: 1.04rem; }
.ml-editorial-image { position: relative; margin: 0; }
.ml-editorial-image::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,255,255,.18); }
.ml-editorial-image img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.72) contrast(1.04); }
.ml-editorial-image figcaption { position: absolute; right: 22px; bottom: 20px; left: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.75); font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; }
.ml-editorial-image em { font-family: var(--ml-serif); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }

.ml-craft { background: #050a16; }
.ml-section-heading { display: grid; grid-template-columns: .35fr 1fr; align-items: start; margin-bottom: 90px; }
.ml-section-heading h2 { max-width: 850px; margin: 0; }
.ml-craft__grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: clamp(55px, 8vw, 125px); }
.ml-craft__image { position: sticky; top: 120px; margin: 0; }
.ml-craft__image img { width: 100%; min-height: 660px; object-fit: cover; filter: grayscale(.1) saturate(.7); }
.ml-craft__image figcaption { position: absolute; right: 22px; bottom: 22px; left: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.75); font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; }
.ml-feature { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 42px 0 48px; border-top: 1px solid var(--ml-line); }
.ml-feature:last-child { border-bottom: 1px solid var(--ml-line); }
.ml-feature__number { color: var(--ml-gold); font-family: var(--ml-serif); font-size: 1.15rem; }
.ml-feature h3 { margin-bottom: 18px; }
.ml-feature p { max-width: 610px; margin: 0; color: var(--ml-muted); }

.ml-collections {
  color: var(--ml-white);
  background-color: #050b18;
  background-image:
    radial-gradient(circle at 18% 14%, rgba(41,73,108,.2), transparent 31%),
    radial-gradient(circle at 82% 72%, rgba(20,42,70,.2), transparent 36%),
    linear-gradient(145deg, rgba(5,12,27,.96), rgba(3,7,18,.99));
}
.ml-collections .ml-eyebrow { color: var(--ml-gold); }
.ml-collections__intro { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 70px; margin-bottom: 80px; }
.ml-collections__intro h2 { max-width: 750px; margin: 0; }
.ml-collections__intro > div:last-child p { color: var(--ml-muted); }
.ml-text-link { display: inline-block; margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.ml-collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.ml-collection-card { position: relative; min-height: clamp(260px, 24vw, 350px); overflow: hidden; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); color: var(--ml-white); background: linear-gradient(145deg, rgba(18,32,53,.32), rgba(5,10,22,.1)); text-decoration: none; }
.ml-collection-card img { width: 100%; height: 100%; object-fit: contain; padding: 34px 22px 66px; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.ml-collection-card:hover img { transform: scale(1.08); filter: drop-shadow(0 15px 16px rgba(0,0,0,.38)); }
.ml-collection-card__number { position: absolute; top: 16px; left: 18px; color: rgba(255,255,255,.42); font-size: .6rem; letter-spacing: .16em; }
.ml-collection-card__name { position: absolute; right: 38px; bottom: 20px; left: 18px; font-family: var(--ml-sans); font-size: clamp(.88rem, 1.15vw, 1.1rem); font-weight: 300; }
.ml-collection-card__arrow { position: absolute; right: 18px; bottom: 20px; transition: transform .25s; }
.ml-collection-card:hover .ml-collection-card__arrow { transform: translate(3px,-3px); }

.ml-onboard { min-height: 1050px; overflow: hidden; background: var(--ml-navy); }
.ml-onboard__backdrop { position: absolute; inset: 0; }
.ml-onboard__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ml-navy) 0%, rgba(3,7,18,.5) 38%, rgba(3,7,18,.82) 100%); }
.ml-onboard__backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .56; }
.ml-onboard__content { position: relative; z-index: 1; }
.ml-onboard__intro { max-width: 890px; }
.ml-onboard__intro h2 { margin-bottom: 30px; }
.ml-onboard__intro > p:last-child { color: var(--ml-muted); font-size: 1.1rem; }
.ml-onboard__yacht { max-width: 940px; margin: 40px auto -28px; }
.ml-onboard__yacht img { width: 100%; filter: drop-shadow(0 34px 45px rgba(0,0,0,.46)); }
.ml-onboard__features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ml-line); }
.ml-onboard__features article { padding: 34px 34px 12px 0; }
.ml-onboard__features article + article { padding-left: 34px; border-left: 1px solid var(--ml-line); }
.ml-onboard__features span { color: var(--ml-gold); font-family: var(--ml-serif); }
.ml-onboard__features h3 { margin: 20px 0; font-size: 2rem; }
.ml-onboard__features p { color: var(--ml-muted); font-size: .92rem; }

.ml-distribution { min-height: 900px; overflow: hidden; }
.ml-distribution__image { position: absolute; inset: 0; }
.ml-distribution__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,7,18,.96), rgba(3,7,18,.78) 52%, rgba(3,7,18,.45)); }
.ml-distribution__image img { width: 100%; height: 100%; object-fit: cover; }
.ml-distribution__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(70px, 10vw, 155px); }
.ml-distribution__copy h2 { margin-bottom: 34px; }
.ml-distribution__copy > p:not(.ml-eyebrow) { color: var(--ml-muted); }
.ml-distribution__copy ul { margin: 38px 0 0; padding: 0; list-style: none; }
.ml-distribution__copy li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.ml-distribution__copy li::before { content: ""; position: absolute; top: 23px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ml-gold); }
.ml-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ml-form input, .ml-form textarea {
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: .88rem;
  transition: border-color .25s;
}
.ml-form input:focus, .ml-form textarea:focus { border-color: #fff; }
.ml-form input::placeholder, .ml-form textarea::placeholder { color: rgba(255,255,255,.52); }
.ml-form textarea, .ml-form .ml-button { grid-column: 1 / -1; }
.ml-form textarea { resize: vertical; }
.ml-form .ml-button { justify-self: start; margin-top: 28px; }
.ml-form--glass { padding: clamp(34px, 4.5vw, 62px); border: 1px solid rgba(255,255,255,.18); background: rgba(3,7,18,.42); backdrop-filter: blur(12px); }
.ml-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ml-contact { background: #050a16; }
.ml-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(80px, 12vw, 180px); }
.ml-contact__copy h2 { max-width: 590px; margin-bottom: 34px; }
.ml-contact__copy > p:not(.ml-eyebrow) { color: var(--ml-muted); }
.ml-contact__details { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 48px; }
.ml-contact__details a { font-family: var(--ml-serif); font-size: 1.7rem; text-decoration: none; }
.ml-contact__details span, .ml-contact__details small { color: var(--ml-muted); }
.ml-contact__details small { margin-top: 12px; }
.ml-form--contact { align-content: start; padding-top: 36px; }

.ml-footer { border-top: 1px solid var(--ml-line); background: var(--ml-navy); }
.ml-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 150px; }
.ml-footer img { width: 210px; }
.ml-footer p { margin: 0; color: var(--ml-muted); }
.ml-footer a { font-size: .65rem; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }
.ml-footer__tagline { display: inline-flex; align-items: center; gap: 10px; }
.ml-footer__tagline span { color: inherit; }
.ml-italian-flag { display: inline-block; flex: 0 0 auto; width: 23px; height: 14px; border: 1px solid rgba(255,255,255,.28); background: linear-gradient(90deg, #169b62 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666%); box-shadow: 0 2px 7px rgba(0,0,0,.28); }
.ml-footer__copyright { grid-column: 1 / -1; padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.42); font-size: .68rem; }
.ml-toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; max-width: 400px; padding: 18px 24px; border: 1px solid rgba(255,255,255,.25); background: #0c1423; box-shadow: 0 15px 45px rgba(0,0,0,.35); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.ml-toast.is-visible { opacity: 1; transform: translateY(0); }
.ml-toast.is-success { border-left: 3px solid #8cc7a1; }
.ml-toast.is-error { border-left: 3px solid #cf7a7a; }

@media (max-width: 1100px) {
  :root { --ml-container: min(100% - 56px, 1000px); }
  .ml-header { grid-template-columns: 1fr auto; }
  .ml-nav { display: none; }
  .ml-dealer-button { display: none; }
  .ml-menu-toggle { display: block; }
  .ml-mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 28px 30px;
    border-bottom: 1px solid var(--ml-line);
    background: rgba(3,7,18,.96);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .ml-mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .ml-mobile-menu button { text-align: left; font-size: 1rem; }
  .ml-hero__content { width: 74%; }
  .ml-scroll-cue { right: 28px; }
}

@media (max-width: 780px) {
  :root { --ml-container: calc(100% - 40px); }
  body.ml-site.admin-bar .ml-header { top: 46px; }
  .ml-section { padding: 100px 0; }
  .ml-site h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .ml-header { min-height: 74px; padding-inline: 20px; }
  .ml-logo { width: 190px; }
  .ml-header-actions { gap: 10px; }
  .ml-hero { min-height: 920px; }
  .ml-hero__content { width: 100%; padding: 145px 20px 130px; }
  .ml-hero__title { margin-top: 60px; font-size: clamp(4rem, 20vw, 6rem); }
  .ml-hero__intro { max-width: 520px; }
  .ml-hero__actions { flex-direction: column; align-items: stretch; max-width: 340px; }
  .ml-scroll-cue { display: none; }
  .ml-experience__grid, .ml-craft__grid, .ml-distribution__grid, .ml-contact__grid { grid-template-columns: 1fr; }
  .ml-experience__grid { gap: 80px; }
  .ml-section-heading { grid-template-columns: 1fr; margin-bottom: 55px; }
  .ml-section-heading .ml-eyebrow { margin-bottom: 24px; }
  .ml-craft__grid { gap: 55px; }
  .ml-craft__image { position: relative; top: auto; }
  .ml-craft__image img { min-height: 520px; }
  .ml-feature { grid-template-columns: 50px 1fr; }
  .ml-collections__intro { grid-template-columns: 1fr; gap: 30px; margin-bottom: 55px; }
  .ml-collection-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-collection-card { min-height: 260px; }
  .ml-onboard { min-height: auto; }
  .ml-onboard__features { grid-template-columns: 1fr; }
  .ml-onboard__features article, .ml-onboard__features article + article { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--ml-line); }
  .ml-distribution__image::after { background: rgba(3,7,18,.82); }
  .ml-distribution__grid { gap: 58px; }
  .ml-contact__grid { gap: 60px; }
  .ml-footer__inner { grid-template-columns: 1fr; gap: 14px; padding-top: 55px; }
  .ml-footer__copyright { margin-top: 28px; }
}

@media (max-width: 520px) {
  .ml-language { gap: 4px; }
  .ml-logo { width: 165px; }
  .ml-hero { min-height: 860px; }
  .ml-hero__title { font-size: 4.3rem; }
  .ml-hero__eyebrow { margin-bottom: 10px; }
  .ml-editorial-image::before { inset: -10px 10px 10px -10px; }
  .ml-collection-grid { grid-template-columns: 1fr; }
  .ml-collection-card { min-height: 320px; }
  .ml-form { grid-template-columns: 1fr; }
  .ml-form input, .ml-form textarea, .ml-form .ml-button { grid-column: 1; }
  .ml-form--glass { padding: 28px 22px; }
  .ml-contact__details a { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
