/* ==========================================================================
   MODU brand tokens — change a color once here, it updates everywhere.
   ========================================================================== */
:root {
  --color-bg: #eee9df;          /* Palladian — page background */
  --color-bg-alt: #c9c1b1;      /* Oatmeal — secondary background */
  --color-navy: #2c3b4d;        /* Blue Fantastic — primary brand color */
  --color-navy-dark: #20303f;   /* darker navy for footers / dark sections */
  --color-burgundy: #8a2430;    /* brand signature / emphasis / primary CTA */
  --color-burgundy-dark: #6e1c26;
  --color-brass: #bd722d;       /* accent / highlight — unified orange, used on both dark and light backgrounds */
  --color-white: #ffffff;
  --color-text: #2c3b4d;
  --color-text-muted: #6b6a63;
  --color-border: #ded8cb;

  /* Editorial redesign additions (homepage only — calculator above this
     line is untouched). Deep, near-black navy for the pervasive dark
     sections (hero, capabilities, planner, industries, knowledge, footer),
     distinct from the lighter --color-navy already used by the calculator. */
  --color-navy-deep: #081b2a;
  --color-navy-panel: #0c2435;
  --line-brass: rgba(232, 164, 90, 0.4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* Inline SVG icons (js/icons.js) — sized off the element's own font-size
   so they behave like an icon font (1em) wherever they're dropped in,
   with stroke="currentColor" picking up the parent's text color. */
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ==========================================================================
   Top nav
   ========================================================================== */
.quote-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--color-navy);
  text-decoration: none;
}

.quote-nav__brand-dash {
  width: 12px;
  height: 2px;
  background: var(--color-burgundy);
  display: inline-block;
}

.quote-nav__contact {
  font-size: 12px;
  color: var(--color-navy);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Step progress bar
   ========================================================================== */
.step-progress {
  position: sticky;
  top: 57px;
  z-index: 39;
  background: rgba(238, 233, 223, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 20px;
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.step-progress__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.step-progress__item.is-clickable {
  cursor: pointer;
}

.step-progress__circle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(44, 59, 77, 0.08);
  color: rgba(44, 59, 77, 0.4);
  transition: background 0.15s ease, color 0.15s ease;
}

.step-progress__item.is-active .step-progress__circle {
  background: var(--color-navy);
  color: var(--color-white);
}

.step-progress__item.is-complete .step-progress__circle {
  background: var(--color-burgundy);
  color: var(--color-white);
}

.step-progress__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(44, 59, 77, 0.4);
  display: none;
}

.step-progress__item.is-active .step-progress__label,
.step-progress__item.is-complete .step-progress__label {
  color: var(--color-navy);
}

.step-progress__line {
  flex: 1;
  height: 1px;
  background: rgba(44, 59, 77, 0.12);
}

@media (min-width: 640px) {
  .step-progress__label {
    display: block;
  }
}

/* ==========================================================================
   Main content
   ========================================================================== */
.quote-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 140px;
}

.step-heading {
  margin-bottom: 20px;
}

.step-heading__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.step-heading__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-navy);
}

.step-heading__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Service cards (Step 1)
   ========================================================================== */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover {
  border-color: rgba(138, 36, 48, 0.4);
}

.option-card.is-selected {
  border-color: var(--color-burgundy);
  background: rgba(138, 36, 48, 0.05);
}

.option-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 59, 77, 0.06);
  color: var(--color-navy);
  font-size: 20px;
}

.option-card.is-selected .option-card__icon {
  background: var(--color-burgundy);
  color: var(--color-white);
}

.option-card__body {
  flex: 1;
  min-width: 0;
}

.option-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.option-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-navy);
}

.option-card__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(232, 164, 90, 0.25);
  color: #6e4a1f;
}

.option-card__desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.option-card__check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  margin-top: 2px;
}

.option-card.is-selected .option-card__check {
  border-color: var(--color-burgundy);
  background: var(--color-burgundy);
  color: var(--color-white);
}

/* ==========================================================================
   Item rows (Step 2)
   ========================================================================== */
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.item-row__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(44, 59, 77, 0.06);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.item-row__body {
  flex: 1;
  min-width: 0;
}

.item-row__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy);
}

.item-row__price {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.item-row__stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stepper-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-qty {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.item-row__subtotal {
  min-width: 56px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
}

.empty-note {
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding: 20px;
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Form fields (Step 3 / 4 / 5)
   ========================================================================== */
.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}

.field-input:focus {
  outline: none;
  border-color: var(--color-burgundy);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
}

.toggle-btn.is-selected {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

/* Time slot cards (Step 4) */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-card {
  padding: 14px 8px;
  text-align: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
}

.slot-card.is-selected {
  border-color: var(--color-burgundy);
  background: rgba(138, 36, 48, 0.05);
}

.slot-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
}

.slot-card__time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Review (Step 5)
   ========================================================================== */
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.review-card__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-card__edit {
  font-size: 11px;
  color: var(--color-burgundy);
  cursor: pointer;
  text-decoration: underline;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(44, 59, 77, 0.06);
  color: var(--color-navy);
}

.review-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  color: var(--color-text);
}

.review-line--muted {
  color: var(--color-text-muted);
}

.estimate-box {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.estimate-box__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(238, 233, 223, 0.7);
  margin-bottom: 6px;
}

.estimate-box__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-brass);
}

.estimate-box__note {
  font-size: 10.5px;
  color: rgba(238, 233, 223, 0.55);
  margin-top: 6px;
}

/* ==========================================================================
   Sticky footer nav
   ========================================================================== */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(238, 233, 223, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--color-border);
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.wizard-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-footer__estimate {
  font-size: 12px;
  color: var(--color-text-muted);
}

.wizard-footer__estimate strong {
  color: var(--color-brass);
  font-size: 14px;
}

.btn {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-burgundy);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-burgundy-dark);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   Confirmation state
   ========================================================================== */
.confirm-box {
  text-align: center;
  padding: 40px 20px;
}

.confirm-box__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(138, 36, 48, 0.1);
  color: var(--color-burgundy);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-box__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 8px;
}

.confirm-box__text {
  font-size: 13.5px;
  color: var(--color-text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Step 2 — section blocks (Furniture & items / Painting / Rooms)
   ========================================================================== */
.section-block {
  margin-bottom: 24px;
}

.section-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.section-block__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.section-block__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
}

/* Compact grid — the common, non-overlapping case. A simple item is one
   card in the grid; an overlapping item-group (see below) spans the full
   grid width so both can sit in the same container. */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (min-width: 480px) {
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.item-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.item-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-card__icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: var(--radius-sm);
  background: rgba(44, 59, 77, 0.06);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.item-card__info {
  flex: 1;
  min-width: 0;
}

.item-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-navy);
}

.item-card__price {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.item-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.item-group {
  grid-column: 1 / -1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.item-group__header {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.line-row {
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}

.item-group > .line-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.line-row__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-row__price {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.line-row__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.line-remove {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
}

.chip-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-toggle {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
}

.chip-toggle.is-selected {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.chip-toggle--service.is-selected {
  border-color: var(--color-burgundy);
  background: var(--color-burgundy);
}

.add-line-btn {
  border: none;
  background: transparent;
  color: var(--color-burgundy);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
}

.review-line__tag {
  font-size: 10.5px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ==========================================================================
   Painting mode cards
   ========================================================================== */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.mode-card {
  text-align: left;
  padding: 12px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mode-card.is-selected {
  border-color: var(--color-burgundy);
  background: rgba(138, 36, 48, 0.05);
}

.mode-card__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-navy);
}

.mode-card__desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.assess-note {
  font-size: 11.5px;
  color: var(--color-text-muted);
  background: rgba(232, 164, 90, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  padding: 8px 0;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Address blocks (origin / destination)
   ========================================================================== */
.address-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.address-block__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

/* Hourly schedule grid needs more, narrower columns than the old 3-slot grid */
.slot-grid--hours {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 480px) {
  .slot-grid--hours {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================================================================
   HOMEPAGE — shared editorial helpers
   ========================================================================== */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 8px;
}

.section-eyebrow--alt {
  color: var(--color-brass);
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2,
.philosophy-grid h3,
.planner-left h2,
.planner-summary h2,
.knowledge-intro h2,
.cap-card h3 {
  font-family: var(--font-serif);
  margin: 4px 0;
}

.section-head h2 {
  font-size: 26px;
  color: var(--color-bg);
}

.confirm-note {
  font-size: 12.5px;
  color: var(--color-burgundy);
  margin-top: 10px;
}

/* Placeholder used everywhere a real photo hasn't been supplied yet
   (see IMAGES in js/config/images.js and photoPlaceholder() in render.js).
   --dark is the variant used on the (now-dominant) dark navy sections. */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  border: 1.5px dashed rgba(44, 59, 77, 0.25);
  border-radius: var(--radius-md);
  background: rgba(44, 59, 77, 0.03);
  color: rgba(44, 59, 77, 0.4);
  font-size: 12px;
  text-align: center;
}

.photo-placeholder i {
  font-size: 26px;
}

.photo-placeholder--dark {
  border-color: rgba(232, 164, 90, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 233, 223, 0.45);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   HOMEPAGE — nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-navy-deep);
  border-bottom: 1px solid rgba(232, 164, 90, 0.18);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav__logo {
  height: 30px;
  width: auto;
}

.site-nav__links {
  display: none;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(238, 233, 223, 0.85);
}

.site-nav__links a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.site-nav__links a:hover {
  color: var(--color-brass);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__toggle {
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--color-bg);
  cursor: pointer;
  display: flex;
}

@media (min-width: 860px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav__toggle {
    display: none;
  }
}

.site-nav__links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-navy-deep);
  padding: 16px 20px;
  gap: 14px;
  border-bottom: 1px solid rgba(232, 164, 90, 0.18);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-outline-light {
  background: transparent;
  color: var(--color-bg);
  border: 1.5px solid rgba(238, 233, 223, 0.4);
}

/* ==========================================================================
   HOMEPAGE — hero
   ========================================================================== */
.hero-section {
  background: var(--color-navy-deep);
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--color-bg);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero-title .accent {
  color: var(--color-brass);
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(238, 233, 223, 0.82);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 0;
  border-top: 1px solid var(--line-brass);
  padding-top: 16px;
}

.hero-principle {
  padding-right: 14px;
}

.hero-principle i {
  color: var(--color-brass);
  font-size: 20px;
}

.hero-principle b {
  font-family: var(--font-serif);
  font-size: 13.5px;
  display: block;
  margin: 4px 0 2px;
  color: var(--color-bg);
}

.hero-principle small {
  font-size: 11px;
  color: rgba(238, 233, 223, 0.7);
  line-height: 1.4;
}

.hero-image-wrap {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-image-wrap .photo-placeholder,
.hero-image-wrap .hero-photo {
  min-height: 240px;
  height: 100%;
}

.hero-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 18px 20px;
  background: rgba(8, 27, 42, 0.93);
  border: 1px solid rgba(232, 164, 90, 0.3);
  border-radius: var(--radius-sm);
}

.hero-note b {
  color: var(--color-brass);
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.hero-note span {
  font-size: 12px;
  color: rgba(238, 233, 223, 0.85);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .hero-principles {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 780px) {
  .hero-grid {
    grid-template-columns: 46% 54%;
    align-items: stretch;
    padding: 56px 40px;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-image-wrap {
    min-height: 100%;
  }
}

/* ==========================================================================
   HOMEPAGE — philosophy (模 / 度)
   ========================================================================== */
.philosophy-section {
  background: linear-gradient(90deg, var(--color-bg), #f7f3eb 50%, var(--color-bg));
}

.philosophy-section .section-eyebrow--alt {
  text-align: center;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  gap: 36px;
}

.philo-card p {
  max-width: 280px;
  margin: 0 auto;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.philo-glyph {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1;
  color: var(--color-burgundy);
}

.philo-line {
  width: 26px;
  height: 2px;
  background: var(--color-brass);
  margin: 8px auto 16px;
}

.philo-cube {
  order: -1;
}

.philo-cube-img {
  width: 200px;
  margin: 0 auto;
}

.philo-cube-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(44, 59, 77, 0.25);
  background: rgba(44, 59, 77, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 59, 77, 0.35);
  font-size: 40px;
}

@media (min-width: 780px) {
  .philosophy-grid {
    grid-template-columns: 1fr 0.9fr 1fr;
  }
  .philo-cube {
    order: 0;
  }
}

/* ==========================================================================
   HOMEPAGE — capabilities
   ========================================================================== */
.capabilities-section {
  background: var(--color-navy-deep);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cap-card {
  background: linear-gradient(180deg, var(--color-navy-panel), var(--color-navy-deep));
  border: 1px solid var(--line-brass);
  border-radius: 7px;
  overflow: hidden;
}

.cap-card__image,
.cap-card .photo-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.cap-card__body {
  padding: 18px 18px 20px;
}

.cap-card h3 {
  font-size: 19px;
  line-height: 1.2;
  color: var(--color-bg);
  margin: 0 0 12px;
}

.cap-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cap-card li {
  font-size: 12.5px;
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.85);
}

.cap-card li::before {
  content: "•";
  color: var(--color-brass);
  padding-right: 8px;
}

@media (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   HOMEPAGE — project planner teaser
   ========================================================================== */
.planner-section {
  background: var(--color-navy-deep);
}

.planner-section .section-inner {
  padding-top: 0;
}

.planner-shell {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 8px;
  overflow: hidden;
}

.planner-left {
  background: linear-gradient(130deg, #731825, #9b2634);
  color: #fff;
  padding: 32px 26px;
}

.planner-left h2 {
  font-size: 26px;
  line-height: 1.15;
  color: #fff;
  margin: 6px 0 22px;
}

.planner-left .section-eyebrow--alt {
  color: var(--color-brass);
}

.planner-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 4px;
  margin-bottom: 24px;
}

.planner-step {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding-right: 8px;
}

.planner-step:last-child {
  border-right: none;
  padding-right: 0;
}

.planner-step__icon {
  font-size: 26px;
  color: var(--color-brass);
  margin-bottom: 6px;
}

.planner-start-btn {
  background: var(--color-bg);
  color: var(--color-burgundy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Matches .planner-start-btn's shape/type treatment (uppercase, bold,
   full-width, centered) so the two CTAs read as a pair — colors stay
   inverted (burgundy-on-cream here vs. cream-on-burgundy there) since
   each sits on the opposite background. */
.planner-quote-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.planner-time-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.planner-summary {
  background: var(--color-bg);
  padding: 32px 26px;
  text-align: center;
}

.planner-summary .section-eyebrow {
  color: var(--color-brass);
}

.planner-summary h2 {
  font-size: 22px;
  color: var(--color-burgundy);
}

.planner-summary p {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 0 0 22px;
}

.planner-summary-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.planner-summary-item {
  font-size: 11.5px;
  color: var(--color-text-muted);
  padding: 0 6px;
}

.planner-summary-item .icon-svg {
  font-size: 26px;
  color: var(--color-brass);
  display: block;
  margin: 0 auto 4px;
}

.planner-summary-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--color-navy);
  margin-top: 4px;
}

.planner-estimate {
  border-top: 1px solid rgba(44, 59, 77, 0.18);
  padding-top: 14px;
  margin-bottom: 18px;
}

.planner-estimate small {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
}

.planner-estimate strong {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-burgundy);
  display: block;
  margin: 4px 0;
}

@media (min-width: 480px) {
  .planner-steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .planner-summary-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 780px) {
  .planner-shell {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   HOMEPAGE — industries strip
   ========================================================================== */
.industries-section {
  background: var(--color-navy-deep);
}

.industries-section .section-inner {
  padding-top: 0;
}

.industry-shell {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 22px 24px;
}

.industry-title {
  color: var(--color-brass);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  font-weight: 700;
}

/* Mobile-first: a centered column per industry (icon over name over
   description), 2 per row so nothing gets squeezed or cut off on narrow
   screens. Row-aware bottom rule instead of border-right, since a
   vertical divider only reads cleanly once everything fits one row. */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 14px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(44, 59, 77, 0.12);
}

/* Last row (2-up) shouldn't have a dangling bottom rule. */
.industry-item:nth-last-child(1):nth-child(even),
.industry-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.industry-item i {
  font-size: 24px;
  color: var(--color-brass);
}

.industry-item b {
  display: block;
  font-size: 13px;
  color: var(--color-navy);
}

.industry-item span {
  font-size: 11.5px;
  line-height: 1.45;
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
}

/* Tablet: 3 per row — 6 industries fills exactly 2 even rows. Only the
   last row (last 3 items) should lose its bottom rule. */
@media (min-width: 640px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industry-item:nth-last-child(-n + 3) {
    border-bottom: none;
  }
}

/* Desktop: everything fits one row, so a vertical divider between items
   reads cleanly (no wrapping to worry about). */
@media (min-width: 960px) {
  .industry-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .industry-item {
    border-bottom: none;
    border-right: 1px solid rgba(44, 59, 77, 0.14);
    padding: 4px 10px;
  }
  .industry-item:last-child {
    border-right: none;
  }
}

/* ==========================================================================
   HOMEPAGE — FAQ
   ========================================================================== */
.faq-section {
  background: var(--color-navy-deep);
}

/* Light panel matches .industry-shell's pattern for readable body copy on
   the dark section background. Native <details>/<summary> — no JS needed
   for the expand/collapse behavior. */
.faq-shell {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 6px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(44, 59, 77, 0.14);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary .icon-svg {
  font-size: 16px;
  color: var(--color-brass);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .icon-svg {
  transform: rotate(180deg);
}

.faq-item p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0 0 18px;
}

@media (min-width: 640px) {
  .faq-item p {
    max-width: 88%;
  }
}

/* ==========================================================================
   HOMEPAGE — knowledge centre
   ========================================================================== */
.knowledge-section {
  background: var(--color-navy-deep);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.knowledge-intro h2 {
  font-size: 22px;
  line-height: 1.15;
  color: var(--color-bg);
  margin: 8px 0 18px;
}

.knowledge-intro a {
  color: var(--color-brass);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.knowledge-article img,
.knowledge-article .photo-placeholder {
  height: 90px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.knowledge-article h3 {
  font-size: 12.5px;
  line-height: 1.3;
  margin: 10px 0 6px;
  color: var(--color-bg);
  font-weight: 600;
}

.knowledge-article a {
  font-size: 11px;
  color: var(--color-brass);
}

@media (min-width: 640px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .knowledge-intro {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .knowledge-grid {
    grid-template-columns: 1.15fr repeat(4, 1fr);
  }
  .knowledge-intro {
    grid-column: auto;
  }
}

/* ==========================================================================
   HOMEPAGE — footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 20px 24px;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 10px;
}

.footer-brand-col p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin: 14px 0 0;
}

.footer-social a {
  color: rgba(238, 233, 223, 0.7);
  font-size: 17px;
}

.footer-col h4 {
  font-size: 11px;
  color: var(--color-brass);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  margin: 6px 0;
  text-decoration: none;
}

.footer-contact-col .field-group {
  margin-bottom: 8px;
}

.footer-contact-col .field-input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-bg);
}

.footer-contact-col .field-input::placeholder {
  color: rgba(238, 233, 223, 0.5);
}

.callback-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.callback-form__title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brass);
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 26px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
}

/* ==========================================================================
   Floating WhatsApp button — shared by index.html and quote.html.
   Uses WhatsApp's own brand green rather than a site brand color: this is
   a universally-recognized action affordance, so staying on-brand here
   would actually hurt usability.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

/* Inline SVG mark, not an icon-font glyph — guarantees it always renders
   (the ti-brand-whatsapp webfont glyph was coming through blank). */
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.05);
}

/* quote.html has its own fixed bottom bar (.wizard-footer) — lift the
   button above it there so they don't overlap. */
.whatsapp-float--above-footer {
  bottom: 90px;
}

@media (min-width: 640px) {
  .whatsapp-float--above-footer {
    bottom: 96px;
  }
}
