/* MIDPL Constructions & Interiors - components added on top of style.css */
:root { --mchat-bottom: 24px; --mchat-bottom-mobile: 76px; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--h-head); font-weight: 800; font-size: 1.15rem; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.brand-text small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .18em; color: var(--blue); margin-top: 4px; text-transform: uppercase; }
.footer-brand .brand-text { color: #fff; }
.brand-text small { white-space: nowrap; }
.main-nav > a, .main-nav .has-sub > button { white-space: nowrap; }
.nav-open .mchat-launcher, .nav-open .mchat-teaser { opacity: 0; visibility: hidden; }

/* Nav with dropdowns */
.main-nav { align-items: center; gap: 1.5rem; }
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > button { background: none; border: 0; cursor: pointer; font-family: var(--h-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .25rem 0; display: inline-flex; align-items: center; gap: 4px; }
.main-nav .has-sub > button::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.main-nav .sub { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: none; flex-direction: column; z-index: 5; }
.main-nav .sub::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.main-nav .sub a { padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.main-nav .sub a::after { display: none; }
.main-nav .sub a:hover { background: var(--soft); color: var(--blue); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub.sub-open .sub { display: flex; }
.header-cta { margin-left: 1.5rem; }

/* Packages */
.pkg-grid { align-items: stretch; }
.pkg { display: flex; flex-direction: column; }
.pkg-feats { flex: 1; }
.pkg-actions { display: grid; gap: 10px; margin-top: 8px; }
.pkg-brochure { text-align: center; font-weight: 700; font-size: .9rem; color: var(--blue); }
.pkg-brochure:hover { text-decoration: underline; }
.pkg-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }

.spec-picker { display: none; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.spec-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-family: var(--h-head); font-size: 1.05rem; }
.spec-table thead th span { display: block; font-size: .8rem; color: var(--gold); font-weight: 700; margin-top: 2px; }
.spec-table thead th.feat { background: var(--blue); }
.spec-table thead th.feat span { color: #fff; }
.spec-table tbody th { width: 180px; font-family: var(--h-head); color: var(--ink); background: var(--soft); }
.spec-table td.feat { background: rgba(255, 74, 23, .04); }
.spec-table ul { list-style: none; display: grid; gap: 6px; }
.spec-table li { position: relative; padding-left: 16px; color: var(--body); }
.spec-table li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box h3 { font-size: 1.3rem; margin-bottom: 14px; }
.x-list { list-style: none; display: grid; gap: 10px; }
.x-list li { position: relative; padding-left: 26px; }
.x-list li::before { content: "\2715"; position: absolute; left: 0; color: #c0392b; font-weight: 700; }
.ms-list { list-style: none; display: grid; gap: 8px; }
.ms-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.ms-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.ms-pct { font-family: var(--h-head); font-weight: 800; color: var(--blue); }
.warranty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.warranty { border-radius: var(--radius); padding: 26px; background: var(--navy); color: #fff; }
.warranty strong { display: block; font-family: var(--h-head); font-size: 2rem; color: var(--blue); }
.warranty h4 { color: #fff; margin: 6px 0 8px; font-size: 1.15rem; }
.warranty p { color: #cfcfcf; font-size: .92rem; }

/* Cost calculator */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.calc-form { position: sticky; top: 96px; }
.calc-form .field { margin-bottom: 16px; }
.calc-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.calc-form select, .calc-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.calc-form small { color: var(--muted); }
.calc-total { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; }
.calc-total span { color: #cfcfcf; font-size: .92rem; }
.calc-total strong { display: block; font-family: var(--h-head); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin: 4px 0; }
.calc-total small { color: var(--gold); }
.calc-cmps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 24px; }
.calc-cmp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.calc-cmp.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(255, 74, 23, .15); }
.calc-cmp span { display: block; font-weight: 700; color: var(--ink); }
.calc-cmp strong { display: block; font-family: var(--h-head); font-size: 1.25rem; color: var(--blue); }
.calc-cmp small { color: var(--muted); }
.calc-split { list-style: none; display: grid; gap: 10px; margin: 12px 0 18px; }
.calc-split li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); overflow: hidden; font-size: .92rem; }
.calc-split li i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--blue); }
.calc-note, .calc-empty { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }

/* Interiors & services */
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.int-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.int-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.int-body { padding: 20px 22px 24px; }
.int-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; transition: .25s; }
.svc:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc .card-ic { margin-bottom: 14px; }
.svc h3 { font-size: 1.2rem; margin-bottom: 8px; }
.svc ul { margin-top: 12px; }

/* Service areas */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.area-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.area-box h3 { font-size: 1.3rem; margin-bottom: 6px; }
.area-box p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }

.note-sample { margin-top: 18px; font-size: .88rem; color: var(--muted); font-style: italic; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { text-align: center; padding: 24px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.promise strong { display: block; font-family: var(--h-head); font-size: 1.8rem; color: var(--blue); }
.promise span { color: #dddddd; font-size: .92rem; }
.contact-form select { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.div-link { color: var(--blue); font-weight: 700; }

/* Brochure (printable) */
.brochure-page { background: #ececec; }
.brochure { max-width: 900px; margin: 110px auto 40px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.br-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--blue); padding-bottom: 16px; }
.br-head img { width: 46px; }
.br-head strong { display: block; font-family: var(--h-head); font-size: 1.2rem; color: var(--ink); }
.br-head span { color: var(--muted); font-size: .9rem; }
.br-head .btn { margin-left: auto; }
.br-title { padding: 26px 0 10px; }
.br-title span { font-family: var(--h-head); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.br-title strong { display: block; font-family: var(--h-head); font-size: 2.4rem; color: var(--ink); }
.br-title strong small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.br-title p { margin-top: 8px; }
.br-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.br-row { padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.br-row h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.br-row ul { padding-left: 18px; font-size: .88rem; }
.br-wide { grid-column: 1 / -1; }
.br-foot { margin-top: 22px; padding-top: 16px; border-top: 3px solid var(--blue); text-align: center; font-size: .88rem; color: var(--muted); }
@media print {
  .site-header, .site-footer, .mobile-bar, .no-print, .mchat-launcher, .mchat-teaser, .mchat-box { display: none !important; }
  body, .brochure-page { background: #fff; }
  .brochure { margin: 0; padding: 0; box-shadow: none; max-width: none; }
  @page { margin: 14mm; }
}

@media (max-width: 1320px) {
  .main-nav { gap: 1.15rem; }
  .main-nav > a, .main-nav .has-sub > button { font-size: .9rem; }
  .header-cta { margin-left: 1rem; padding: .6rem 1rem; }
}
@media (max-width: 1180px) {
  .header-cta { display: none; }
}
@media (max-width: 980px) {
  .main-nav { align-items: stretch; max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav .has-sub > button { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .main-nav .has-sub:hover .sub { display: none; }
  .main-nav .has-sub.sub-open .sub { display: flex; }
  .calc { grid-template-columns: 1fr; }
  .calc-form { position: static; }
  .int-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .warranty-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .two-col, .areas, .int-grid, .svc-grid, .br-grid { grid-template-columns: 1fr; }
  .calc-cmps { grid-template-columns: 1fr; }
  .spec-picker { display: flex; }
  .spec-table { min-width: 0; }
  .spec-table tbody th { width: 34%; }
  .spec-table[data-col="2"] tr > *:nth-child(3), .spec-table[data-col="2"] tr > *:nth-child(4),
  .spec-table[data-col="3"] tr > *:nth-child(2), .spec-table[data-col="3"] tr > *:nth-child(4),
  .spec-table[data-col="4"] tr > *:nth-child(2), .spec-table[data-col="4"] tr > *:nth-child(3) { display: none; }
  .brochure { margin-top: 90px; padding: 22px; }
  .br-head { flex-wrap: wrap; }
  .br-head .btn { margin-left: 0; width: 100%; }
}
