:root {
  --mk-ink: #202020;
  --mk-ink-soft: #2b2b2b;
  --mk-text: #374151;
  --mk-muted: #6b7280;
  --mk-border: #e5e7eb;
  --mk-gold: #c9a227;
  --mk-gold-dark: #a67f14;
  --mk-green: #166534;
  --mk-white: #fff;
  --mk-soft: #f8f8f8;
}

* { box-sizing: border-box; }
body.maisonkit-theme { margin: 0; background: #fff; color: var(--mk-text); font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
body.maisonkit-theme a { color: inherit; text-decoration: none; }
body.maisonkit-theme img { max-width: 100%; height: auto; display: block; }
.mk-container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.mk-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.92); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(12px); }
.mk-header__inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0.75rem clamp(1rem, 3vw, 2rem); }
.mk-brand { display: inline-flex; align-items: center; gap: 0.9rem; min-width: 0; }
.mk-brand img { width: 3rem; height: 3rem; object-fit: contain; background: rgba(255,255,255,0.92); padding: 0.2rem; }
.mk-brand span { display: grid; min-width: 0; }
.mk-brand strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.12rem, 1.8vw, 1.55rem); font-style: italic; font-weight: 600; line-height: 1; white-space: nowrap; }
.mk-brand small { margin-top: 0.25rem; color: var(--mk-gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-nav { display: flex; align-items: center; gap: 1.1rem; }
.mk-nav a { color: rgba(255,255,255,0.78); font-size: 0.8rem; font-weight: 700; }
.mk-nav a:hover { color: #fff; }
.mk-nav ul, .mk-footer-menu { list-style: none; margin: 0; padding: 0; }
.mk-nav li { display: inline-flex; margin: 0 0.45rem; position: relative; }
.mk-header-actions { display: flex; align-items: center; gap: 0.65rem; }
.mk-whatsapp { display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; border-radius: 999px; background: #128c38; color: #fff; }
.mk-menu-toggle { display: none; width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #fff; }
.mk-mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 0.5rem 1rem 1rem; }
.mk-mobile-nav a { display: block; padding: 0.8rem 0; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 700; }

.mk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; border-radius: 6px; padding: 0.68rem 1rem; font-size: 0.82rem; font-weight: 800; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.mk-btn--small { min-height: 2.35rem; padding: 0.58rem 0.82rem; font-size: 0.75rem; }
.mk-btn--gold { background: var(--mk-gold); color: #fff; border: 1px solid var(--mk-gold); }
.mk-btn--gold:hover { background: var(--mk-gold-dark); border-color: var(--mk-gold-dark); color: #fff; }
.mk-btn--outline { border: 1px solid rgba(255,255,255,0.72); color: #fff; }
.mk-btn--outline:hover { background: #fff; color: #111827; }

.mk-site-main { min-height: 55vh; }
.mk-page-title { background: var(--mk-ink); color: #fff; padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 7vw, 4rem); text-align: center; }
.mk-page-title h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.05; }
.mk-page-content > *:first-child { margin-top: 0; }

.mk-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.mk-section--soft { background: var(--mk-soft); }
.mk-section--dark { background: var(--mk-ink); color: #fff; }
.mk-kicker { color: var(--mk-gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.mk-heading { margin: 0; color: #111827; font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.04; }
.mk-section--dark .mk-heading { color: #fff; }
.mk-text-lead { color: #d1d5db; font-size: clamp(0.95rem, 1.5vw, 1.08rem); }

.mk-lead-form { border-radius: 8px; background: #fff; color: #111827; padding: clamp(1.1rem, 3vw, 1.5rem); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.mk-lead-form h2 { margin: 0 0 0.35rem; font-size: 1.08rem; line-height: 1.18; }
.mk-lead-form p { margin: 0 0 0.9rem; color: var(--mk-muted); font-size: 0.84rem; }
.mk-lead-form__grid { display: grid; gap: 0.7rem; }
.mk-lead-form label { display: grid; gap: 0.3rem; color: #374151; font-size: 0.72rem; font-weight: 800; }
.mk-lead-form input, .mk-lead-form select, .mk-lead-form textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; padding: 0.64rem 0.72rem; color: #111827; font: inherit; }
.mk-lead-form textarea { min-height: 7rem; resize: vertical; }
.mk-lead-form input:focus, .mk-lead-form select:focus, .mk-lead-form textarea:focus { outline: none; border-color: var(--mk-gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.18); }
.mk-lead-form__checkbox { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 0.6rem !important; font-size: 0.72rem; line-height: 1.45; }
.mk-lead-form__checkbox input { width: 1rem; min-width: 1rem; height: 1rem; margin-top: 0.15rem; accent-color: var(--mk-gold); }
.mk-lead-form button { width: 100%; border: 0; cursor: pointer; }
.mk-lead-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mk-form-notice { margin-bottom: 1rem; border-radius: 6px; padding: 0.7rem 0.85rem; font-size: 0.82rem; }
.mk-form-notice--success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.mk-form-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.mk-scroll-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; background: #c9a227; color: #fff; box-shadow: 0 14px 35px rgba(0,0,0,0.28); opacity: 0; pointer-events: none; transform: translateY(0.7rem); transition: opacity 0.2s, transform 0.2s, background 0.2s; cursor: pointer; }
.mk-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mk-scroll-top:hover { background: var(--mk-gold-dark); }

.mk-footer { background: #111; color: #fff; }
.mk-footer__grid { display: grid; grid-template-columns: minmax(16rem, 1.15fr) minmax(18rem, 1fr) minmax(15rem, 0.9fr); gap: clamp(1.4rem, 3.5vw, 3rem); padding: 2.7rem 0; }
.mk-brand--footer img { background: rgba(255,255,255,0.9); }
.mk-footer__text { max-width: 24rem; color: rgba(255,255,255,0.55); }
.mk-footer h2 { margin: 0 0 0.75rem; color: #fff; font-size: 0.92rem; }
.mk-footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; row-gap: 0.42rem; }
.mk-footer-menu li, .mk-contact-list li { margin-bottom: 0; }
.mk-footer-menu a { display: inline-flex; align-items: center; min-height: 1.45rem; font-size: 0.82rem; line-height: 1.25; }
.mk-footer a, .mk-contact-list { color: rgba(255,255,255,0.62); }
.mk-footer a:hover { color: #fff; }
.mk-contact-list { display: grid; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.05rem; }
.mk-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1rem 0; color: rgba(255,255,255,0.35); font-size: 0.76rem; }
.mk-footer__bottom p { margin: 0; }

@media (max-width: 1020px) {
  .mk-nav, .mk-header-actions .mk-btn { display: none; }
  .mk-menu-toggle { display: inline-flex; }
  .mk-mobile-nav.is-open { display: block; }
}

@media (max-width: 720px) {
  .mk-header__inner { min-height: 4.6rem; }
  .mk-brand img { width: 2.7rem; height: 2.7rem; }
  .mk-brand strong { font-size: 1.08rem; }
  .mk-brand small { max-width: 12rem; font-size: 0.6rem; letter-spacing: 0.1em; }
  .mk-footer__grid { grid-template-columns: 1fr; padding: 2.35rem 0; gap: 1.65rem; }
  .mk-footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-scroll-top { width: 2.75rem; height: 2.75rem; }
}

/* Premium MaisonKit visual pass */
:root {
  --mk-ink: #15382c;
  --mk-ink-soft: #20493b;
  --mk-text: #2f3f38;
  --mk-muted: #69756f;
  --mk-border: #e5decf;
  --mk-gold: #c9a961;
  --mk-gold-dark: #ad8841;
  --mk-green: #1a4a38;
  --mk-green-deep: #0f2f24;
  --mk-cream: #faf6ec;
  --mk-cream-strong: #f0e9d2;
  --mk-soft: #f6f1e6;
}

body.maisonkit-theme {
  background: var(--mk-cream);
  color: var(--mk-text);
  font-size: 14.5px;
}

.mk-container {
  width: min(1160px, calc(100% - 2rem));
}

.mk-header {
  background: rgba(250,246,236,0.94);
  color: var(--mk-green-deep);
  border-bottom: 1px solid rgba(21,56,44,0.1);
  box-shadow: 0 10px 30px rgba(15,47,36,0.08);
}

body.admin-bar .mk-header {
  top: 32px;
}

.mk-header__inner {
  width: min(1160px, calc(100% - 2rem));
  min-height: 4.65rem;
  margin: 0 auto;
  padding: 0.62rem 0;
}

.mk-brand img {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(21,56,44,0.12);
  border-radius: 6px;
  background: #fff;
}

.mk-brand strong {
  color: var(--mk-green-deep);
  font-size: clamp(1.03rem, 1.5vw, 1.34rem);
}

.mk-brand small {
  color: var(--mk-gold-dark);
  letter-spacing: 0.16em;
}

.mk-nav {
  gap: 0.35rem;
}

.mk-nav li {
  margin: 0 0.28rem;
}

.mk-nav a {
  color: rgba(15,47,36,0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.mk-nav a:hover {
  color: var(--mk-green-deep);
}

.mk-btn {
  border-radius: 7px;
  min-height: 2.45rem;
  padding: 0.62rem 1rem;
  letter-spacing: 0;
}

.mk-btn--gold {
  background: var(--mk-gold);
  border-color: var(--mk-gold);
  color: var(--mk-green-deep);
}

.mk-btn--gold:hover {
  background: var(--mk-gold-dark);
  border-color: var(--mk-gold-dark);
  color: #fff;
}

.mk-btn--outline {
  border-color: rgba(250,246,236,0.72);
  color: var(--mk-cream);
}

.mk-whatsapp {
  width: 2.6rem;
  height: 2.6rem;
  background: #128c38;
  box-shadow: 0 10px 22px rgba(18,140,56,0.2);
}

.mk-menu-toggle {
  border-color: rgba(15,47,36,0.16);
  color: var(--mk-green-deep);
}

.mk-mobile-nav {
  border-top-color: rgba(15,47,36,0.1);
  background: var(--mk-cream);
}

.mk-mobile-nav a {
  color: var(--mk-green-deep);
}

.mk-lead-form {
  border: 1px solid rgba(21,56,44,0.1);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 24px 60px rgba(15,47,36,0.18);
}

.mk-lead-form input,
.mk-lead-form select,
.mk-lead-form textarea {
  border-color: #d8d0bf;
  background: #fffdf8;
}

.mk-scroll-top {
  background: var(--mk-green);
  color: var(--mk-cream);
}

.mk-scroll-top:hover {
  background: var(--mk-green-deep);
}

.mk-footer {
  background: var(--mk-green-deep);
}

.mk-footer__bottom {
  border-top-color: rgba(250,246,236,0.1);
}

@media (max-width: 1060px) {
  .mk-nav,
  .mk-header-actions .mk-btn {
    display: none;
  }

  .mk-menu-toggle {
    display: inline-flex;
  }

  .mk-mobile-nav.is-open {
    display: block;
  }
}

/* Catalogue typography polish */
body.maisonkit-theme {
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.mk-brand strong,
.mk-heading,
.mk-page-title h1,
.mk-lead-form h2,
.mk-footer h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.mk-brand strong {
  font-style: normal;
  font-weight: 700;
}

/* Premium lead form and WhatsApp polish */
.mk-lead-form {
  border-radius: 10px;
}

.mk-lead-form h2 {
  color: var(--mk-green-deep);
  font-size: 1.22rem;
}

.mk-lead-form__grid {
  gap: 0.78rem;
}

.mk-lead-form input,
.mk-lead-form select {
  min-height: 2.72rem;
}

.mk-lead-form button {
  min-height: 2.82rem;
  box-shadow: 0 12px 28px rgba(173,136,65,0.22);
}

.mk-lead-form--compact {
  border-top: 4px solid var(--mk-gold);
  padding: clamp(1rem, 2.4vw, 1.28rem);
}

.mk-lead-form--compact h2 {
  margin-bottom: 0.22rem;
  font-size: 1.16rem;
}

.mk-lead-form--compact p {
  margin-bottom: 0.72rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.mk-lead-form--compact .mk-lead-form__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.mk-lead-form--compact .mk-field--email,
.mk-lead-form--compact .mk-field--project,
.mk-lead-form--compact .mk-field--location,
.mk-lead-form--compact .mk-field--terrain,
.mk-lead-form--compact .mk-lead-form__checkbox,
.mk-lead-form--compact button {
  grid-column: 1 / -1;
}

.mk-whatsapp {
  width: auto;
  min-width: 2.6rem;
  gap: 0.46rem;
  padding: 0 0.82rem;
}

.mk-whatsapp::after {
  font-size: 0.72rem;
  font-weight: 900;
  content: "WhatsApp";
}

@media (max-width: 720px) {
  .mk-whatsapp {
    width: 2.6rem;
    padding: 0;
  }

  .mk-whatsapp::after {
    display: none;
  }

  .mk-lead-form--compact .mk-lead-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .mk-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .mk-header__inner {
    min-height: 4.25rem;
    gap: 0.5rem;
    padding: 0.62rem 0.72rem;
  }

  .mk-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 6rem);
    gap: 0.62rem;
    overflow: hidden;
  }

  .mk-brand img {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .mk-brand span {
    max-width: 100%;
    overflow: hidden;
  }

  .mk-brand strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.04rem, 5vw, 1.22rem);
    text-overflow: ellipsis;
  }

  .mk-brand small {
    max-width: min(10.8rem, calc(100vw - 9.4rem));
    overflow: hidden;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
  }

  .mk-header-actions {
    flex: 0 0 auto;
    gap: 0.42rem;
  }

  .mk-whatsapp,
  .mk-menu-toggle {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 380px) {
  .mk-header__inner {
    gap: 0.35rem;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  .mk-brand {
    max-width: calc(100% - 5.45rem);
    gap: 0.5rem;
  }

  .mk-brand img {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .mk-brand strong {
    font-size: 1rem;
  }

  .mk-brand small {
    max-width: min(8.8rem, calc(100vw - 8.55rem));
    font-size: 0.51rem;
    letter-spacing: 0.06em;
  }

  .mk-whatsapp,
  .mk-menu-toggle {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
  }
}

/* Editable compact menus */
.mk-nav li {
  align-items: center;
}

.mk-nav > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  border-radius: 999px;
  padding: 0.35rem 0.56rem;
}

.mk-nav > li.current-menu-item > a,
.mk-nav > li.current-menu-ancestor > a,
.mk-nav > li > a:hover {
  background: rgba(26,74,56,0.08);
  color: var(--mk-green-deep);
}

.mk-nav .menu-item-has-children > a::after {
  width: 0.32rem;
  height: 0.32rem;
  margin-left: 0.42rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  content: "";
}

.mk-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 70;
  display: grid;
  min-width: 13rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid rgba(21,56,44,0.12);
  border-radius: 8px;
  background: rgba(255,253,248,0.98);
  box-shadow: 0 22px 50px rgba(15,47,36,0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.35rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mk-nav li:hover > .sub-menu,
.mk-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mk-nav .sub-menu li {
  display: block;
  margin: 0;
}

.mk-nav .sub-menu a {
  display: block;
  border-radius: 6px;
  padding: 0.64rem 0.72rem;
  color: rgba(15,47,36,0.82);
  font-size: 0.78rem;
  white-space: nowrap;
}

.mk-nav .sub-menu a:hover,
.mk-nav .sub-menu .current-menu-item > a {
  background: #f0e9d2;
  color: var(--mk-green-deep);
}

.mk-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk-mobile-nav li {
  list-style: none;
}

.mk-mobile-nav .sub-menu {
  margin: 0.1rem 0 0.35rem 0.8rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(26,74,56,0.18);
}

.mk-mobile-nav .sub-menu a {
  padding: 0.5rem 0;
  color: rgba(15,47,36,0.72);
  font-size: 0.82rem;
}

@media (max-width: 1060px) {
  .mk-nav,
  .mk-header-actions .mk-btn {
    display: none;
  }

  .mk-menu-toggle {
    display: inline-flex;
  }

  .mk-mobile-nav.is-open {
    display: block;
  }
}
