/* ===========================================================
   Musika Connect — site stylesheet
   Palette: navy + brown base, orange accent (from logo)
   =========================================================== */

:root {
  --navy: #14213d;
  --navy-dark: #0c1526;
  --navy-light: #24355c;
  --brown: #6b4226;
  --brown-dark: #4a2d1a;
  --brown-light: #8b5e3c;
  --orange: #f2662d;
  --orange-dark: #d1551f;
  --cream: #fbf6f0;
  --cream-dark: #f1e6da;
  --text: #2b2118;
  --text-soft: #5a4d3f;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 33, 61, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: rgba(242, 102, 45, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb959; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; border-radius: 8px; }
.brand-name { color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-tag { color: var(--orange); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 10px; }

#google_translate_element { display: inline-block; }
.goog-te-gadget { font-family: inherit !important; color: transparent !important; font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: var(--navy-light);
  color: var(--white);
}
.goog-logo-link, .goog-te-gadget > span { display: none !important; }
body > .skiptranslate.goog-te-gadget-icon { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; position: static !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
  .nav-right { order: 2; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(242,102,45,0.25), transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.page-hero {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { margin: 0; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20,33,61,0.06);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(242,102,45,0.12);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split-panel {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: 0.92rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #ddd0c2;
  background: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: -8px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* ---------- Contact tiles ---------- */
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-tile .icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
}
.contact-tile a.value { font-weight: 700; color: var(--navy); }

/* ---------- Chat widget ---------- */
#mc-chat-launcher {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 900;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 24px rgba(242,102,45,0.45);
  cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
#mc-chat-launcher:hover { transform: scale(1.06); }

#mc-chat-window {
  position: fixed;
  bottom: 162px;
  right: 24px;
  z-index: 900;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, calc(100vh - 186px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(20,33,61,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#mc-chat-window.open { display: flex; }

.mc-chat-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mc-chat-head img { width: 32px; height: 32px; border-radius: 8px; }
.mc-chat-head .title { font-weight: 800; font-size: 0.95rem; }
.mc-chat-head .sub { font-size: 0.74rem; color: rgba(255,255,255,0.75); }
.mc-chat-head button {
  margin-left: auto; background: none; border: none; color: var(--white);
  font-size: 1.2rem; cursor: pointer; opacity: 0.8;
}

.mc-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.mc-msg.bot {
  background: var(--white);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.mc-msg.user {
  background: var(--orange);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mc-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  background: var(--cream);
}
.mc-quick-replies button {
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.mc-quick-replies button:hover { background: var(--navy); color: var(--white); }

.mc-chat-footer {
  padding: 12px 14px;
  border-top: 1px solid #eee2d4;
  background: var(--white);
}
.mc-chat-footer a.btn { font-size: 0.85rem; padding: 10px 16px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
footer.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 8px; font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 36px; border-radius: 6px; }
.footer-brand span { color: var(--white); font-weight: 800; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text-soft); }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}


/* ---------- AI chat: input row, typing dots, handoff ---------- */
.mc-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.mc-input-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid #ddd0c2;
  font-family: inherit;
  font-size: 0.92rem;
}
.mc-input-row input:focus { outline: none; border-color: var(--orange); }
.mc-input-row button {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}
.mc-input-row button:disabled { opacity: 0.5; cursor: default; }

.mc-msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.mc-msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.4;
  animation: mc-blink 1.2s infinite ease-in-out;
}
.mc-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.mc-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mc-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.mc-handoff-inline {
  align-self: flex-start;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 14px;
  border-radius: 999px;
}
.mc-handoff-inline:hover { background: #1fb959; }
