:root {
  --accent: #b6ff3b;
  --bg: #000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav a {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* ---------- Hero / page background ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center top;
}

.hero-content {
  padding: 0 48px 120px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
}

.subtitle {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 540px;
}

/* ---------- Call-to-action button ---------- */
.cta-btn {
  display: inline-block;
  margin-top: 34px;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(182, 255, 59, 0.25);
}

/* ---------- Page body (about/contact) ---------- */
.page {
  position: relative;
  flex: 1;
  padding: 180px 48px 120px;
  max-width: 820px;
}

.page .eyebrow {
  margin-bottom: 20px;
}

.page h2 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.page p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- About two-column layout ---------- */
.about-layout {
  max-width: 1500px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Portrait photos (e.g. about, events) — tall 2:3 images */
.about-layout.media-portrait {
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}

/* Landscape photos (e.g. weddings, contact) — text keeps at least half */
.about-layout.media-wide {
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.about-image {
  position: sticky;
  top: 120px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Crop the left 15% of a photo while keeping the same on-page width: the
   remaining 85% is scaled up to 1/0.85 = 117.647% and shifted left to clip. */
.about-image.crop-left {
  overflow: hidden;
}
.about-image.crop-left img {
  width: 117.647%;
  max-width: none;
  margin-left: -17.647%;
}

.contact-block {
  margin-top: 12px;
  font-size: 22px;
  line-height: 2;
}

.contact-block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-block a:hover {
  border-color: var(--accent);
}

.contact-block .label {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 24px;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
}

footer .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

footer a:hover {
  color: var(--text);
}

footer .accent {
  color: var(--accent);
}

@media (max-width: 820px) {
  header {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
  }
  nav ul {
    gap: 22px;
  }
  .hero-content {
    padding: 0 24px 80px;
  }
  .page {
    padding: 160px 24px 80px;
  }
  /* Stack to a single column — selectors match the per-page variants'
     specificity so they actually override the two-column desktop grid. */
  .about-layout,
  .about-layout.media-portrait,
  .about-layout.media-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Small photo on top of the text on mobile */
  .about-image {
    position: static;
    order: -1;
    max-width: 240px;
    margin-left: 0;
  }
  footer {
    padding: 32px 24px;
  }
}

/* ---------- Plan-your-event overlay (shared, see plan-overlay.js) ---------- */
.plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.plan-overlay.open {
  display: flex;
  opacity: 1;
}
.plan-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}
.plan-overlay.open .plan-box {
  transform: scale(1);
}
.plan-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
}
.plan-close:hover { color: var(--text); }

.plan-intro-head {
  text-align: center;
  padding: 48px 24px 8px;
  flex-shrink: 0;
}
.plan-intro-head .eyebrow { margin-bottom: 16px; }
.plan-intro-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-log {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
/* Center the messages vertically; the auto margins collapse to 0 once
   the conversation grows tall enough to scroll, restoring normal flow. */
.chat-log > :first-child { margin-top: auto; }
.chat-log > :last-child { margin-bottom: auto; }
.msg {
  max-width: 88%;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 22px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 5px;
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.msg.typing { color: var(--muted); font-style: italic; }
/* Blinking caret shown while the bot is typing out a reply */
.msg.bot .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}

.chat-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 28px 72px;
  flex-shrink: 0;
}
.chat-form input,
.chat-form textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 18px;
  font-family: inherit;
  outline: none;
}
.chat-form textarea {
  resize: none;
  line-height: 1.4;
  max-height: 160px;
  overflow-y: auto;
}
.chat-form input:focus,
.chat-form textarea:focus { border-color: var(--accent); }
.chat-done {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 22px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.chat-done a { color: var(--accent); }

body.plan-open { overflow: hidden; }

@media (max-width: 720px) {
  .plan-box { height: 100%; width: 100%; border-radius: 0; }
  .plan-intro-head { padding: 40px 18px 4px; }
  .chat-log { padding: 20px 18px 8px; gap: 16px; }
  .msg { font-size: 19px; max-width: 92%; }
  .chat-form { padding: 14px 18px 48px; }
  /* Enough height to show the full "press ENTER" hint when it wraps to 2 lines */
  .chat-form textarea { min-height: 84px; }
}

/* ---------- Language switcher (injected by i18n.js into the header nav) ---------- */
.lang-li {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-select {
  position: relative;
}
.lang-btn,
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.2s ease;
}
.lang-btn:hover,
.lang-opt:hover {
  color: var(--text);
}
.lang-caret {
  font-size: 11px;
  opacity: 0.8;
}
.flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  min-width: 104px;
  overflow: hidden;
  z-index: 50;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lang-select.open .lang-menu {
  display: flex;
}
.lang-opt {
  width: 100%;
  padding: 11px 14px;
}
