/* ====================================================
   LA MER ESTATE · BRAND SYSTEM
   One source of truth for every page.
   Edit here, every page updates.
   ==================================================== */

:root {
  --ivory: #faf7ee;          /* near-white warm — page ground */
  --ivory-soft: #f4ede0;     /* lightest variation */
  --cream: #efe6d2;          /* a hair richer, for small accents */
  --teal: #2a5e63;           /* brand primary depth */
  --teal-deep: #14383d;      /* dark mode + logo color */
  --brass: #a37f3f;          /* accent only */
  --brass-light: #c4a35e;
  --ink: #1f2a2c;
  --ink-soft: #6a6359;
  --line: rgba(20, 56, 61, 0.10);

  --display: 'Cinzel', 'Trajan Pro', serif;
  --serif: 'EB Garamond', 'Garamond', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  --container: 1680px;
  --gutter: clamp(28px, 3.5vw, 72px);
}

/* ====================================================
   RESET
   ==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s ease; }
a:hover { opacity: 0.65; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ====================================================
   LAYOUT
   ==================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ====================================================
   TYPOGRAPHY HELPERS
   ==================================================== */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
}
.eyebrow.center { display: block; text-align: center; }

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.04;
  color: var(--teal-deep);
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.08;
  color: var(--teal-deep);
}
.headline em { font-style: italic; color: var(--brass); font-weight: 500; }

/* Body lede — used for sub-titles, intro paragraphs, and section lead text.
   Upright (not italic), larger, looser. Designed for 40+ readers. */
.body-lede {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
}
.body-lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.body-lede em { font-style: italic; color: var(--brass); }

/* ====================================================
   PLACEHOLDERS · with image override
   ==================================================== */
.placeholder {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.015) 0 2px, transparent 2px 18px);
}
.placeholder.dark {
  background: linear-gradient(160deg, #2a5e63 0%, #14383d 100%);
}
.placeholder.warm {
  background: linear-gradient(180deg, #efe6d2 0%, #e2d4b8 100%);
}
.placeholder.light {
  background: linear-gradient(180deg, #faf7ee 0%, #efe6d2 100%);
}
.ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(20, 56, 61, 0.35);
  pointer-events: none;
}
.placeholder.dark .ph-label { color: rgba(250, 247, 238, 0.4); }
/* Filled placeholders: real image fills the slot */
.placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
}
.placeholder:has(img)::before { display: none; }
.placeholder:has(img) .ph-label { display: none; }

/* ====================================================
   NAV · used on every page
   ==================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--gutter);
  border-bottom-color: var(--line);
}
.nav.solid {
  /* Pages without a dark hero get an ivory nav from the start */
  background: rgba(250, 247, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.solid .nav-brand { color: var(--teal-deep); }
.nav.solid .nav-brand-mark { filter: none; }
.nav.solid .nav-links a { color: var(--ink); }
.nav.solid .nav-cta { color: var(--teal-deep); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  transition: color .4s ease;
}
.nav.scrolled .nav-brand { color: var(--teal-deep); }
.nav-brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}
.nav.scrolled .nav-brand-mark { filter: none; }
.nav-brand-text {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.32em;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ivory);
  transition: color .4s ease, border-color .4s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav.scrolled .nav-links a { color: var(--ink); }
/* Current page indicator */
.nav-links a.active,
.nav-links a.active:hover {
  color: var(--brass-light);
  border-bottom-color: var(--brass-light);
  opacity: 1;
}
.nav.scrolled .nav-links a.active,
.nav.scrolled .nav-links a.active:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.nav-cta {
  font-family: var(--sans);
  padding: 12px 22px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: all .35s ease;
}
.nav.scrolled .nav-cta { color: var(--teal-deep); }
.nav-cta:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ivory) !important;
  opacity: 1;
}

/* ====================================================
   FORMS · used on Contact + any enquire blocks
   ==================================================== */
.contact-form {
  background: var(--ivory-soft);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
}
.contact-form h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  margin: 18px 0 28px;
  font-weight: 500;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color .3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--brass); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.submit-btn {
  margin-top: 16px;
  padding: 16px 32px;
  background: var(--teal-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  width: 100%;
  transition: background .35s ease;
}
.submit-btn:hover { background: var(--brass); }
.form-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-top: 18px;
  line-height: 1.5;
}

/* ====================================================
   FOOTER · used on every page
   ==================================================== */
footer {
  background: var(--teal-deep);
  color: rgba(250, 247, 238, 0.7);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 238, 0.12);
}
.footer-brand img {
  width: 180px;
  filter: brightness(0) invert(1) opacity(0.95);
  margin-bottom: 28px;
}
.footer-brand h4 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--ivory);
  margin-bottom: 18px;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 247, 238, 0.5);
}

/* ====================================================
   REVEAL ANIMATION
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ====================================================
   EMPTY PLACEHOLDER · clearly intentional, on-brand
   Use class .placeholder.empty when we know what should
   go in the slot but don't yet have the image.
   ==================================================== */
.placeholder.empty {
  background:
    repeating-linear-gradient(135deg, var(--cream) 0 2px, var(--ivory-soft) 2px 18px);
  border: 1px dashed rgba(20, 56, 61, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.placeholder.empty::before { display: none; }
.placeholder.empty .empty-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
}
.placeholder.empty .empty-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.6;
  text-align: center;
  max-width: 28ch;
  line-height: 1.4;
}

/* ====================================================
   COMMON SUBPAGE HERO · smaller than homepage
   Use class .page-hero on inner sub-pages
   ==================================================== */
.page-hero {
  min-height: 60vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: #14383d;
  z-index: -1;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 56, 61, 0.30) 0%, rgba(20, 56, 61, 0.10) 35%, rgba(20, 56, 61, 0.75) 100%);
  pointer-events: none;
}
.page-hero-content {
  width: 100%;
  padding: 0 var(--gutter) clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--ivory);
}
.page-hero .hero-sub {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
  line-height: 1.6;
  color: rgba(250, 247, 238, 0.92);
  max-width: 50ch;
}

/* ====================================================
   MOBILE NAV — hamburger + drawer
   ==================================================== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform .4s ease, opacity .3s ease, background-color .4s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav.scrolled .nav-toggle span,
.nav.solid .nav-toggle span { background: var(--teal-deep); }
/* Open state — turns into an X (and bars are ivory on dark drawer) */
.nav-toggle.open span { background: var(--ivory); }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--teal-deep);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  padding: 80px var(--gutter) 40px;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}
.nav-drawer a {
  font-family: var(--display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  letter-spacing: 0.18em;
  color: var(--ivory);
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav-drawer a:hover,
.nav-drawer a.active { border-bottom-color: var(--brass-light); color: var(--brass-light); }
.nav-drawer .drawer-cta {
  margin-top: clamp(32px, 6vw, 56px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 16px 36px;
  border: 1px solid var(--ivory);
  text-decoration: none;
}
.nav-drawer .drawer-cta:hover {
  background: var(--brass);
  border-color: var(--brass);
}
.nav-drawer .drawer-foot {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 247, 238, 0.5);
}
body.lm-nav-open { overflow: hidden; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
