/* NCCM v27 — typography profiles + one-line title control for short slogans */
:root{
  --nccm-display-font: Georgia, 'Times New Roman', serif;
  --nccm-body-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --nccm-title-weight: 700;
  --nccm-title-style: normal;
  --nccm-title-letter: -0.035em;
  --nccm-title-transform: none;
  --nccm-subtitle-weight: 650;
  --nccm-subtitle-letter: 0;
  --nccm-subtitle-style: normal;
  --nccm-title-scale: 1;
  --nccm-subtitle-scale: 1;
}

/* 1. Classic: traditional luxury cabinetry */
html[data-nccm-typography='classic']{
  --nccm-display-font: Georgia, 'Times New Roman', serif;
  --nccm-body-font: Georgia, 'Times New Roman', serif;
  --nccm-title-weight: 700;
  --nccm-title-style: normal;
  --nccm-title-letter: -0.04em;
  --nccm-subtitle-weight: 700;
  --nccm-subtitle-letter: .005em;
}

/* 2. Modern: clean luxury, visibly sans */
html[data-nccm-typography='modern']{
  --nccm-display-font: 'Segoe UI', Arial, Helvetica, sans-serif;
  --nccm-body-font: 'Segoe UI', Arial, Helvetica, sans-serif;
  --nccm-title-weight: 900;
  --nccm-title-style: normal;
  --nccm-title-letter: -0.065em;
  --nccm-subtitle-weight: 750;
  --nccm-subtitle-letter: -0.01em;
}

/* 3. Editorial: softer magazine/luxury look */
html[data-nccm-typography='editorial']{
  --nccm-display-font: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --nccm-body-font: 'Palatino Linotype', Palatino, Georgia, serif;
  --nccm-title-weight: 600;
  --nccm-title-style: italic;
  --nccm-title-letter: -0.045em;
  --nccm-subtitle-weight: 650;
  --nccm-subtitle-letter: .01em;
}

/* 4. Professional: readable commercial style */
html[data-nccm-typography='clean']{
  --nccm-display-font: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --nccm-body-font: 'Segoe UI', Arial, Helvetica, sans-serif;
  --nccm-title-weight: 800;
  --nccm-title-style: normal;
  --nccm-title-letter: -0.03em;
  --nccm-subtitle-weight: 700;
  --nccm-subtitle-letter: 0;
}

html[data-nccm-subtitle-weight='regular']{ --nccm-subtitle-weight: 600; }
html[data-nccm-subtitle-weight='medium']{ --nccm-subtitle-weight: 750; }
html[data-nccm-subtitle-weight='bold']{ --nccm-subtitle-weight: 900; }
html[data-nccm-title-size='normal']{ --nccm-title-scale: 1; }
html[data-nccm-title-size='large']{ --nccm-title-scale: 1.13; }
html[data-nccm-title-size='xl']{ --nccm-title-scale: 1.24; }
html[data-nccm-subtitle-size='normal']{ --nccm-subtitle-scale: 1; }
html[data-nccm-subtitle-size='large']{ --nccm-subtitle-scale: 1.14; }

/* Apply to hero/page headings. Stronger than v25 so changes are obvious. */
.hero h1,
.hero .title,
.page-hero h1,
.page-hero .title,
.catalog-hero h1,
.catalog-hero .title,
.quote-hero h1,
.quote-hero .title,
.app-hero h1,
.mobile-app-hero h1,
.mobile-hero h1,
.category-hero h1,
.category-hero .title,
section[class*='hero'] h1,
section[class*='hero'] .title,
[data-setting-html$='.title'],
[data-setting-text$='.title']{
  font-family: var(--nccm-display-font) !important;
  font-weight: var(--nccm-title-weight) !important;
  font-style: var(--nccm-title-style) !important;
  letter-spacing: var(--nccm-title-letter) !important;
  text-transform: var(--nccm-title-transform) !important;
  text-shadow: 0 5px 22px rgba(0,0,0,.72), 0 1px 0 rgba(0,0,0,.35) !important;
  font-size: calc(var(--hero-title-size, 4.8rem) * var(--nccm-title-scale)) !important;
  line-height: .94 !important;
}

.hero p,
.hero .lead,
.hero .subtitle,
.page-hero p,
.page-hero .lead,
.catalog-hero p,
.catalog-hero .lead,
.quote-hero p,
.quote-hero .lead,
.app-hero p,
.mobile-app-hero p,
.mobile-hero p,
.category-hero p,
.category-hero .lead,
section[class*='hero'] p,
section[class*='hero'] .lead,
[data-setting-text$='.subtitle'],
[data-setting-text$='.lead'],
[data-setting-text$='.pageLead']{
  font-family: var(--nccm-body-font) !important;
  font-weight: var(--nccm-subtitle-weight) !important;
  font-style: var(--nccm-subtitle-style) !important;
  letter-spacing: var(--nccm-subtitle-letter) !important;
  font-size: calc(var(--hero-lead-size, 1.18rem) * var(--nccm-subtitle-scale)) !important;
  line-height: 1.42 !important;
  text-shadow: 0 4px 16px rgba(0,0,0,.82), 0 1px 0 rgba(0,0,0,.55) !important;
}

/* Make the selected style visually obvious on mobile too */
@media (max-width: 760px){
  .hero h1,.hero .title,
  .page-hero h1,.page-hero .title,
  .catalog-hero h1,.catalog-hero .title,
  .quote-hero h1,.quote-hero .title,
  .category-hero h1,.category-hero .title,
  .app-hero h1,.mobile-app-hero h1,.mobile-hero h1,
  section[class*='hero'] h1,section[class*='hero'] .title{
    font-size: calc(var(--mobile-hero-title-size, 2.55rem) * var(--nccm-title-scale)) !important;
    line-height: .96 !important;
  }
  .hero p,.hero .lead,.hero .subtitle,
  .page-hero p,.page-hero .lead,
  .catalog-hero p,.catalog-hero .lead,
  .quote-hero p,.quote-hero .lead,
  .category-hero p,.category-hero .lead,
  .app-hero p,.mobile-app-hero p,.mobile-hero p,
  section[class*='hero'] p,section[class*='hero'] .lead{
    font-size: calc(var(--mobile-hero-lead-size, 1.04rem) * var(--nccm-subtitle-scale)) !important;
    line-height: 1.37 !important;
  }
}

/* Admin v26 typography panel */
.nccm-typo-panel .typo-preview{
  position:relative;
  border-radius: 28px;
  padding: 30px;
  margin: 16px 0 24px;
  background:
    linear-gradient(100deg, rgba(18,10,6,.96), rgba(54,31,18,.82), rgba(18,10,6,.55)),
    url('/assets/img/hero-kitchen-bright-v23.jpg') center/cover;
  color:#fff;
  box-shadow: 0 22px 50px rgba(0,0,0,.2);
  overflow:hidden;
  min-height:245px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.nccm-typo-panel .typo-preview::after{
  content:'Vista previa';
  position:absolute;
  right:18px;
  top:18px;
  border-radius:999px;
  padding:8px 12px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#ffe0ad;
  font-weight:900;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.nccm-typo-panel .typo-preview .kicker{
  color:#e7b978;
  letter-spacing:.28em;
  text-transform:uppercase;
  font-weight:900;
  font-size:.78rem;
  text-shadow:0 2px 10px rgba(0,0,0,.7);
}
.nccm-typo-panel .typo-preview h2{
  font-family: var(--nccm-display-font) !important;
  font-weight: var(--nccm-title-weight) !important;
  font-style: var(--nccm-title-style) !important;
  letter-spacing: var(--nccm-title-letter) !important;
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  line-height:.92;
  margin: 12px 0;
  text-shadow:0 5px 22px rgba(0,0,0,.82);
}
.nccm-typo-panel .typo-preview p{
  font-family: var(--nccm-body-font) !important;
  font-weight: var(--nccm-subtitle-weight) !important;
  letter-spacing: var(--nccm-subtitle-letter) !important;
  font-size:1.16rem;
  color:rgba(255,255,255,.94);
  max-width:790px;
  text-shadow:0 4px 16px rgba(0,0,0,.82);
}
.nccm-typo-active-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  margin:8px 0 0;
  padding:9px 13px;
  border-radius:999px;
  background:#20140d;
  color:#ffe0ad;
  font-weight:950;
  letter-spacing:.04em;
}
.nccm-typo-options{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.nccm-typo-option{
  border:1px solid rgba(160,119,70,.28);
  background:#fff;
  border-radius:20px;
  padding:17px;
  cursor:pointer;
  text-align:left;
  box-shadow:0 12px 32px rgba(43,27,18,.08);
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nccm-typo-option:hover{transform:translateY(-1px);border-color:#d9a45b;box-shadow:0 16px 36px rgba(43,27,18,.12);}
.nccm-typo-option.active{
  outline:3px solid rgba(217,164,91,.38);
  border-color:#d9a45b;
  background:linear-gradient(180deg,#fff,#fff7ea);
}
.nccm-typo-option b{display:block;font-size:1.12rem;margin-bottom:6px;color:#241710;}
.nccm-typo-option small{display:block;font-size:1.65rem;line-height:1;margin:8px 0 10px;color:#321d11;}
.nccm-typo-option span{display:block;color:#6b5a4e;font-size:.92rem;line-height:1.35;}
.nccm-typo-option[data-profile='classic'] b,
.nccm-typo-option[data-profile='classic'] small{font-family:Georgia,'Times New Roman',serif;font-weight:700;}
.nccm-typo-option[data-profile='modern'] b,
.nccm-typo-option[data-profile='modern'] small{font-family:'Segoe UI',Arial,sans-serif;font-weight:900;letter-spacing:-.06em;}
.nccm-typo-option[data-profile='editorial'] b,
.nccm-typo-option[data-profile='editorial'] small{font-family:'Palatino Linotype',Palatino,Georgia,serif;font-style:italic;font-weight:600;letter-spacing:-.04em;}
.nccm-typo-option[data-profile='clean'] b,
.nccm-typo-option[data-profile='clean'] small{font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif;font-weight:800;letter-spacing:-.03em;}
@media (max-width:760px){.nccm-typo-options{grid-template-columns:1fr;}.nccm-typo-panel .typo-preview{padding:24px;}}


/* v27: keep short slogan titles like “Design • Build • Elevate” on one line on desktop. */
@media (min-width: 761px){
  .nccm-hero-title-one-line,
  [data-nccm-one-line="1"]{
    white-space: nowrap !important;
    display: block !important;
    width: max-content !important;
    max-width: min(92vw, 1120px) !important;
    overflow: visible !important;
    font-size: min(calc(var(--hero-title-size, 4.8rem) * var(--nccm-title-scale)), 5.8vw) !important;
    letter-spacing: max(var(--nccm-title-letter), -0.055em) !important;
  }
  html[data-nccm-title-size='xl'] .nccm-hero-title-one-line,
  html[data-nccm-title-size='xl'] [data-nccm-one-line="1"]{
    font-size: min(calc(var(--hero-title-size, 4.8rem) * 1.12), 5.6vw) !important;
  }
}
@media (max-width: 760px){
  .nccm-hero-title-one-line,
  [data-nccm-one-line="1"]{
    white-space: normal !important;
    width: auto !important;
    max-width: 100% !important;
  }
}
.nccm-typo-panel .one-line-note{
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7ea;
  border: 1px solid rgba(217,164,91,.28);
  color: #4b2f1d;
  font-weight: 800;
  line-height: 1.35;
}
