/* =========================================================================
   Manx Fake Hotel — boutique coastal demo site
   Light mode. Editorial. Sea-mist + sand + slate ink + brass accent.
   ========================================================================= */

:root {
  /* Palette */
  --sand:        #f7f3ec;   /* page background */
  --sand-deep:   #efe7da;   /* alternate sections */
  --cream:       #fffdf8;   /* cards / surfaces */
  --ink:         #20302e;   /* primary text (deep slate green) */
  --ink-soft:    #4a5b57;   /* secondary text */
  --mist:        #7c9a8e;   /* muted sea-mist */
  --sea:         #2f5d56;   /* deep teal for headings/buttons */
  --sea-deep:    #213f3a;
  --brass:       #b6873f;   /* accent */
  --brass-soft:  #d9b878;
  --line:        #d9cfbf;   /* hairlines */
  --shadow:      24px 32px 60px -28px rgba(33, 63, 58, .35);
  --shadow-sm:   0 10px 30px -18px rgba(33, 63, 58, .45);

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 26px;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  font-optical-sizing: auto;
}

/* subtle paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
section { position: relative; z-index: 2; }

/* ---------- Demo banner ---------- */
.demo-banner {
  position: relative;
  z-index: 5;
  background: var(--sea-deep);
  color: var(--brass-soft);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  font-weight: 600;
}
.demo-banner strong { color: #fff; font-weight: 600; }
.demo-banner a { color: var(--brass-soft); border-bottom: 1px solid rgba(217,184,120,.5); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  color: var(--sea);
}
.brand .sub {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mist); font-weight: 600;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--brass); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 860px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--sea); color: #fdfbf6;
  transition: transform .18s ease, box-shadow .25s ease, background .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); background: var(--sea-deep); }
.btn.ghost {
  background: transparent; color: var(--sea);
  border: 1.5px solid var(--sea); box-shadow: none;
}
.btn.ghost:hover { background: var(--sea); color: #fdfbf6; }
.btn.brass { background: var(--brass); }
.btn.brass:hover { background: #9c7333; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); font-weight: 700; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 34px; height: 1.5px; background: var(--brass-soft);
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 400;
  letter-spacing: -.022em;
}
.hero h1 em {
  font-style: italic; color: var(--sea); font-weight: 500;
}
.hero-lede {
  font-size: 18.5px; color: var(--ink-soft); max-width: 30em;
  margin: 22px 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; display: flex; gap: 38px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-meta .stat .n {
  font-family: var(--font-display); font-size: 30px; color: var(--sea); font-weight: 500;
}
.hero-meta .stat .l {
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist);
}

/* Hero visual — layered "postcard" */
.hero-visual { position: relative; }
.postcard {
  position: relative; border-radius: var(--radius-lg);
  background: var(--cream); padding: 18px; box-shadow: var(--shadow);
  transform: rotate(1.6deg);
}
.postcard .frame {
  border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; position: relative;
  background:
    radial-gradient(120% 80% at 70% 10%, #cfe0d6 0%, transparent 55%),
    linear-gradient(170deg, #3f6f66 0%, #2f5d56 42%, #1f413c 100%);
}
.postcard .frame .sun {
  position: absolute; top: 16%; right: 18%;
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, var(--brass-soft), #e7c98c 60%, transparent 72%);
  box-shadow: 0 0 60px 16px rgba(217,184,120,.35);
}
.postcard .frame .hills {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background:
    radial-gradient(120% 120% at 20% 100%, #244b44 0 40%, transparent 42%),
    radial-gradient(120% 130% at 78% 100%, #1c3a35 0 46%, transparent 48%);
}
.postcard .frame .sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgba(124,154,142,.0), rgba(11,30,28,.55));
}
.postcard .caption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 6px 4px;
}
.postcard .caption .place {
  font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--sea);
}
.postcard .caption .stamp {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
}
.postcard-tag {
  position: absolute; bottom: -22px; left: -26px;
  background: var(--brass); color: #fff; font-weight: 600;
  font-size: 13px; padding: 12px 18px; border-radius: 100px;
  box-shadow: var(--shadow-sm); transform: rotate(-3deg);
}
.postcard-tag span { opacity: .8; font-weight: 500; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
}

/* ---------- Section headers ---------- */
.sec-head { max-width: 38em; margin-bottom: 46px; }
.sec-eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); font-weight: 700; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); }
.sec-head p { color: var(--ink-soft); font-size: 17.5px; }

/* ---------- Rooms ---------- */
.rooms { padding: 30px 0 90px; }
.room-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 26px;
}
.room {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-img { aspect-ratio: 5/4; position: relative; }
.room-img .price {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,253,248,.92); color: var(--sea);
  font-weight: 700; font-size: 14px; padding: 7px 13px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.room-img .price small { color: var(--mist); font-weight: 500; }
.room-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.room-body h3 { font-size: 23px; }
.room-body .kicker {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); font-weight: 700; margin-bottom: 8px;
}
.room-body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.room-feats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.room-feats span {
  font-size: 12px; color: var(--ink-soft); background: var(--sand-deep);
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line);
}
/* room "imagery" via gradients (no external assets needed) */
.room-img.r1 { background: linear-gradient(155deg, #6f8f84, #2f5d56); }
.room-img.r2 { background: linear-gradient(155deg, #c9a86b, #8a6a30); }
.room-img.r3 { background: linear-gradient(155deg, #5b7c9a, #2c4a63); }
.room-img.r4 { background: linear-gradient(155deg, #9a6f7c, #5e3a47); }
.room-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(0deg, rgba(0,0,0,.18), transparent 45%);
}

/* ---------- Amenities ---------- */
.amenities { background: var(--sand-deep); padding: 84px 0; border-block: 1px solid var(--line); }
.amen-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 40px;
  margin-top: 10px;
}
.amen {
  display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line);
}
.amen .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--cream);
  border: 1px solid var(--line); color: var(--sea);
}
.amen .ico svg { width: 22px; height: 22px; }
.amen h4 { font-size: 19px; margin-bottom: 4px; }
.amen p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Booking / Contact CTA ---------- */
.booking { padding: 96px 0; }
.booking-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: #f3efe6; border-radius: var(--radius-lg); padding: 64px 56px;
  box-shadow: var(--shadow);
}
.booking-card::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,184,120,.28), transparent 70%);
}
.booking-card .sec-eyebrow { color: var(--brass-soft); }
.booking-card h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); max-width: 12em; }
.booking-card p { color: #d4ddd8; max-width: 34em; font-size: 17.5px; }
.booking-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.booking-card .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.booking-card .btn.ghost:hover { background: #fff; color: var(--sea); }
.booking-note {
  margin-top: 26px; font-size: 13px; color: rgba(243,239,230,.7);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Footer ---------- */
.footer { background: var(--sea-deep); color: #c8d3ce; padding: 64px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px;
}
.footer .mark { font-family: var(--font-display); font-size: 26px; color: #fff; margin-bottom: 10px; }
.footer p { font-size: 14.5px; max-width: 28em; color: #aebcb6; }
.footer h5 {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-soft); margin: 0 0 16px; font-weight: 700; font-family: var(--font-body);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 14.5px; color: #c8d3ce; transition: color .2s; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #8ea29a;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Reveal on load (staggered) ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Chat + Voice widgets (bottom-right)
   ========================================================================= */
.mfh-dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: var(--font-body);
}
.mfh-launcher {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: none;
  background: var(--sea); color: #fdfbf6; font-weight: 600; font-size: 15px;
  padding: 14px 20px; border-radius: 100px;
  box-shadow: 0 16px 36px -12px rgba(33,63,58,.6);
  transition: transform .18s ease, background .2s;
}
.mfh-launcher:hover { transform: translateY(-2px); background: var(--sea-deep); }
.mfh-launcher.voice { background: var(--brass); }
.mfh-launcher.voice:hover { background: #9c7333; }
.mfh-launcher svg { width: 19px; height: 19px; }

/* Chat panel */
.mfh-panel {
  width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px);
  background: var(--cream); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(33,63,58,.55); border: 1px solid var(--line);
  display: none; flex-direction: column;
  transform-origin: bottom right;
}
.mfh-panel.open { display: flex; animation: panelIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.mfh-head {
  background: linear-gradient(150deg, var(--sea), var(--sea-deep)); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.mfh-head .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass));
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #2c2010;
}
.mfh-head .who { line-height: 1.2; }
.mfh-head .who .n { font-weight: 600; font-size: 15px; }
.mfh-head .who .s { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.mfh-head .who .s .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 0 3px rgba(126,224,168,.25); }
.mfh-head .close {
  margin-left: auto; background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
}
.mfh-head .close:hover { background: rgba(255,255,255,.22); }

.mfh-log {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124,154,142,.10), transparent 60%),
    var(--sand);
  scroll-behavior: smooth;
}
.mfh-msg {
  max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word; animation: msgIn .25s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mfh-msg-agent {
  align-self: flex-start; background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-bottom-left-radius: 5px;
}
.mfh-msg-user {
  align-self: flex-end; background: var(--sea); color: #fdfbf6; border-bottom-right-radius: 5px;
}
.mfh-msg.typing { color: var(--mist); font-style: italic; }
.mfh-typing-dots span {
  display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%;
  background: var(--mist); animation: blink 1.2s infinite both;
}
.mfh-typing-dots span:nth-child(2) { animation-delay: .2s; }
.mfh-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.mfh-input-row {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--cream);
}
#mfh-chat-input {
  flex: 1; border: 1px solid var(--line); background: var(--sand); border-radius: 100px;
  padding: 12px 16px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
#mfh-chat-input:focus { border-color: var(--mist); box-shadow: 0 0 0 3px rgba(124,154,142,.18); }
#mfh-chat-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--sea); color: #fff; display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
#mfh-chat-send:hover { background: var(--sea-deep); transform: scale(1.05); }
#mfh-chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
#mfh-chat-send svg { width: 18px; height: 18px; }

/* Voice panel */
.mfh-voice {
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--cream); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(33,63,58,.55); border: 1px solid var(--line);
  display: none; flex-direction: column;
}
.mfh-voice.open { display: flex; animation: panelIn .28s cubic-bezier(.2,.8,.2,1); }
.mfh-voice .mfh-head { background: linear-gradient(150deg, var(--brass), #8a6325); }
.mfh-voice .mfh-head .avatar { background: radial-gradient(circle at 35% 30%, #d8e6df, var(--mist)); color: var(--sea-deep); }

.mfh-voice-stage { padding: 26px 20px 8px; text-align: center; }
.mfh-orb {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 70%);
  box-shadow: 0 0 0 0 rgba(182,135,63,.5);
}
.mfh-orb.live { animation: pulse 1.6s ease-out infinite; }
.mfh-orb.talking { animation: pulse 0.7s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182,135,63,.45); }
  100% { box-shadow: 0 0 0 26px rgba(182,135,63,0); }
}
.mfh-voice-status { font-size: 14px; color: var(--ink-soft); font-weight: 500; min-height: 20px; }
.mfh-voice-status b { color: var(--sea); }

.mfh-transcript {
  margin: 14px 12px 0; padding: 12px 14px; height: 130px; overflow-y: auto;
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13.5px; line-height: 1.5; text-align: left; color: var(--ink-soft);
}
.mfh-transcript .role { font-weight: 700; color: var(--sea); }
.mfh-transcript .role.agent { color: var(--brass); }
.mfh-transcript:empty::before { content: "Transcript will appear here once the call starts."; color: var(--mist); font-style: italic; }

.mfh-voice-actions { padding: 14px 16px 18px; display: flex; gap: 10px; }
.mfh-voice-actions .btn { flex: 1; justify-content: center; }
.mfh-hangup { background: #b23a3a !important; }
.mfh-hangup:hover { background: #952f2f !important; }

@media (max-width: 480px) {
  .mfh-dock { right: 14px; bottom: 14px; }
  .mfh-launcher { padding: 12px 16px; font-size: 14px; }
}
