/* Manisa Siemens — sm-* (fonts loaded from HTML head) */
:root {
  --sm-ink: #0b1f2a;
  --sm-ink-soft: #1a3340;
  --sm-teal: #0f766e;
  --sm-teal-bright: #14b8a6;
  --sm-teal-deep: #0d5c56;
  --sm-paper: #eef3f2;
  --sm-panel: #ffffff;
  --sm-line: #c9d6d3;
  --sm-muted: #5a6f78;
  --sm-warm: #f7f1e8;
  --sm-radius: 2px;
  --sm-wrap: 1120px;
  --sm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: var(--sm-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f8f7 0%, var(--sm-paper) 40%, #e8efed 100%);
  line-height: 1.65;
  font-size: 16px;
  padding-bottom: 72px;
}

img { max-width: 100%; display: block; }
a { color: var(--sm-teal); text-decoration: none; transition: color 0.2s var(--sm-ease); }
a:hover { color: var(--sm-teal-deep); }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sm-ink);
}

.sm-wrap {
  width: min(100% - 2rem, var(--sm-wrap));
  margin-inline: auto;
}

/* —— Top strip —— */
.sm-strip {
  background: var(--sm-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.sm-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.sm-strip__meta { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.sm-strip a { color: var(--sm-teal-bright); }

/* —— Masthead —— */
.sm-mast {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 243, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sm-line);
  transition: box-shadow 0.3s var(--sm-ease);
}
.sm-mast.is-pinned { box-shadow: 0 8px 28px rgba(11, 31, 42, 0.08); }
.sm-mast__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.sm-mark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--sm-ink);
}
.sm-mark__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sm-teal);
}
.sm-mark__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sm-muted);
}

.sm-nav { display: flex; gap: 1.4rem; align-items: center; }
.sm-nav a {
  color: var(--sm-ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.sm-nav a:hover { color: var(--sm-teal); }

.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--sm-ease), background 0.2s, color 0.2s;
}
.sm-btn:hover { transform: translateY(-1px); }
.sm-btn--solid {
  background: var(--sm-teal);
  color: #fff;
}
.sm-btn--solid:hover { background: var(--sm-teal-deep); color: #fff; }
.sm-btn--ghost {
  background: transparent;
  color: var(--sm-ink);
  border: 1.5px solid var(--sm-ink);
}
.sm-btn--ghost:hover { background: var(--sm-ink); color: #fff; }
.sm-btn--light {
  background: var(--sm-warm);
  color: var(--sm-ink);
  border: 1px solid #e0d5c4;
}

.sm-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.sm-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sm-ink);
}

.sm-drawer {
  position: fixed;
  inset: 0;
  background: var(--sm-ink);
  color: #fff;
  z-index: 200;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--sm-ease);
}
.sm-drawer.is-open { transform: translateX(0); }
.sm-drawer a { color: #fff; font-size: 1.15rem; font-weight: 600; }
.sm-drawer__x {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* —— Hero / lead —— */
.sm-lead {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.sm-lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--sm-teal-bright), var(--sm-teal-deep));
}
.sm-lead__crumb {
  font-size: 0.82rem;
  color: var(--sm-muted);
  margin-bottom: 1.25rem;
}
.sm-lead__crumb a { color: var(--sm-muted); }
.sm-lead__crumb span { color: var(--sm-ink); font-weight: 600; }
.sm-lead__code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sm-teal);
  background: rgba(15, 118, 110, 0.1);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--sm-teal);
}
.sm-lead h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.sm-lead h1 em {
  font-style: normal;
  color: var(--sm-teal);
}
.sm-lead__text {
  max-width: 52ch;
  color: var(--sm-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.sm-lead__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Workflow —— */
.sm-flow {
  background: var(--sm-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
}
.sm-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.sm-flow__item { position: relative; padding-right: 1rem; }
.sm-flow__n {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  color: var(--sm-teal-bright);
  display: block;
  margin-bottom: 0.35rem;
}
.sm-flow__item strong { display: block; color: #fff; margin-bottom: 0.25rem; }
.sm-flow__item p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }

/* —— Layout panels —— */
.sm-band { padding: 3.5rem 0; }
.sm-band--alt { background: rgba(255, 255, 255, 0.55); }
.sm-band--warm { background: var(--sm-warm); }

.sm-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.sm-article h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sm-line);
}
.sm-article h2:first-child { margin-top: 0; }
.sm-article h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  font-weight: 600;
}
.sm-article p { margin-bottom: 1rem; color: var(--sm-ink-soft); }
.sm-article ul.sm-checks { margin: 1rem 0 1.5rem; }
.sm-article ul.sm-checks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px dashed var(--sm-line);
  color: var(--sm-ink-soft);
}
.sm-article ul.sm-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--sm-teal);
  transform: rotate(45deg);
}

.sm-rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 5.5rem; }
.sm-rail__box {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-top: 4px solid var(--sm-teal);
  padding: 1.25rem;
}
.sm-rail__box h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.sm-rail__phone {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sm-teal);
  margin: 0.5rem 0;
}
.sm-rail__box p { font-size: 0.88rem; color: var(--sm-muted); }
.sm-rail__list { font-size: 0.9rem; color: var(--sm-ink-soft); }
.sm-rail__list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sm-line);
}
.sm-rail__list li:last-child { border-bottom: none; }

/* —— Catalog / links —— */
.sm-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.sm-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.sm-head p { color: var(--sm-muted); }

.sm-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.sm-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  border-left: 3px solid var(--sm-teal);
  color: var(--sm-ink);
  transition: border-color 0.2s, transform 0.2s var(--sm-ease), box-shadow 0.2s;
}
.sm-tile:hover {
  transform: translateX(3px);
  border-color: var(--sm-teal);
  box-shadow: 0 10px 24px rgba(11, 31, 42, 0.06);
  color: var(--sm-ink);
}
.sm-tile__code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sm-teal);
}
.sm-tile strong { font-size: 0.98rem; }
.sm-tile span { font-size: 0.82rem; color: var(--sm-muted); }

.sm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sm-chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sm-ink-soft);
  transition: background 0.2s, color 0.2s;
}
.sm-chip:hover {
  background: var(--sm-teal);
  color: #fff;
  border-color: var(--sm-teal);
}

/* —— Fault codes —— */
.sm-faults {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.sm-fault {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  background: var(--sm-ink);
  color: #fff;
}
.sm-fault__id {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--sm-teal-bright);
  font-size: 1.05rem;
}
.sm-fault__txt { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

/* —— FAQ —— */
.sm-qa { display: flex; flex-direction: column; gap: 0.5rem; }
.sm-qa__row {
  background: var(--sm-panel);
  border: 1px solid var(--sm-line);
}
.sm-qa__ask {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.15rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sm-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.sm-qa__ask::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--sm-teal);
  font-weight: 400;
}
.sm-qa__row.is-open .sm-qa__ask::after { content: '−'; }
.sm-qa__ans {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--sm-muted);
  font-size: 0.95rem;
  border-top: 1px dashed var(--sm-line);
  padding-top: 0.85rem;
}
.sm-qa__row.is-open .sm-qa__ans { display: block; }

/* —— Callout —— */
.sm-callout {
  background: linear-gradient(135deg, var(--sm-ink) 0%, #143544 55%, var(--sm-teal-deep) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.sm-callout h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.sm-callout p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.25rem;
  max-width: 36rem;
  margin-inline: auto;
}
.sm-callout .sm-btn--solid {
  background: var(--sm-teal-bright);
  color: var(--sm-ink);
  font-size: 1.15rem;
  padding: 0.9rem 1.5rem;
}

/* —— Home specific —— */
.sm-home-hero {
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  position: relative;
  background:
    linear-gradient(120deg, rgba(11, 31, 42, 0.92) 0%, rgba(11, 31, 42, 0.75) 45%, rgba(15, 118, 110, 0.55) 100%),
    repeating-linear-gradient(-12deg, transparent, transparent 18px, rgba(255, 255, 255, 0.03) 18px, rgba(255, 255, 255, 0.03) 19px);
  color: #fff;
}
.sm-home-hero .sm-wrap { position: relative; z-index: 1; }
.sm-home-hero .sm-mark__name { color: var(--sm-teal-bright); }
.sm-home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 14ch;
  margin: 1.25rem 0 1rem;
}
.sm-home-hero p {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}
.sm-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sm-line);
  border: 1px solid var(--sm-line);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.sm-promise__cell {
  background: var(--sm-panel);
  padding: 1.5rem 1.25rem;
}
.sm-promise__cell strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.sm-promise__cell p { font-size: 0.9rem; color: var(--sm-muted); }

/* —— Footer —— */
.sm-foot {
  background: var(--sm-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.sm-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.sm-foot .sm-mark__name { color: var(--sm-teal-bright); }
.sm-foot .sm-mark__tag { color: rgba(255, 255, 255, 0.45); }
.sm-foot p { font-size: 0.9rem; margin-top: 1rem; line-height: 1.7; }
.sm-foot h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}
.sm-foot ul li { margin-bottom: 0.45rem; }
.sm-foot a { color: rgba(255, 255, 255, 0.7); }
.sm-foot a:hover { color: var(--sm-teal-bright); }
.sm-foot__note {
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}
.sm-foot__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

/* —— Mobile dock —— */
.sm-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--sm-ink);
  border-top: 2px solid var(--sm-teal);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: center;
}
.sm-dock a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.sm-dock a span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sm-teal-bright);
  animation: sm-pulse 1.6s ease infinite;
}
@keyframes sm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* —— Privacy page —— */
.sm-legal { max-width: 720px; }
.sm-legal h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.sm-legal p { margin-bottom: 1rem; color: var(--sm-ink-soft); }

@media (max-width: 900px) {
  .sm-nav, .sm-mast .sm-btn { display: none; }
  .sm-burger { display: flex; }
  .sm-split { grid-template-columns: 1fr; }
  .sm-rail { position: static; }
  .sm-flow__grid { grid-template-columns: 1fr 1fr; }
  .sm-foot__grid { grid-template-columns: 1fr 1fr; }
  .sm-promise { grid-template-columns: 1fr; margin-top: 0; }
}

@media (max-width: 560px) {
  .sm-flow__grid { grid-template-columns: 1fr; }
  .sm-foot__grid { grid-template-columns: 1fr; }
  .sm-lead h1 { max-width: none; }
}
