/* ARTEL SERVIS TOV — natural-calm, wheat linen, oxford, amber, copper */

:root {
  --bg: #f3ead8;
  --bg-alt: #e6d8c0;
  --bg-deep: #1b2c45;
  --ink: #2a3036;
  --ink-soft: #5c564c;
  --ink-invert: #f7f1e4;
  --accent: #c47a2c;
  --accent-soft: #f3e0c2;
  --line: #d5c4aa;
  --copper: #b56b3a;
  --leaf: #5f6b52;
  --font-display: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;
  --radius: 1.2rem;
  --radius-lg: 2rem;
  --shadow: 0 16px 40px color-mix(in srgb, var(--bg-deep) 12%, transparent);
  --container: 1120px;
}

.section { scroll-margin-top: 5.5rem; }

.btn--primary { color: var(--bg-deep); }
.btn--primary:hover { color: var(--bg-deep); }

.site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}

.brand-type {
  display: grid;
  gap: 0.12rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.brand-type small {
  font-family: var(--font-body);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.mark { flex: none; display: block; }

.hero {
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 32%),
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--copper) 18%, transparent), transparent 28%),
    var(--bg);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: end;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 { max-width: 14ch; }

.hero-copy .lede { margin-top: 1rem; }

.hero-copy p + p { max-width: 42rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 2.4rem 1.2rem 3.2rem 1.4rem;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hero-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -1.4rem;
  margin-left: 1rem;
  position: relative;
}

.hero-figure figcaption span {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: var(--step--1);
}

.section-intro { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-intro h2 { margin: 0.35rem 0 0.75rem; }

.rails {
  display: grid;
  gap: var(--gap);
}

.rail, .rail-card, .desk, .rhythm-grid article, .contact-card, .contact-form {
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2vw, 1.75rem);
}

.rail-food {
  background: color-mix(in srgb, var(--leaf) 16%, var(--bg));
}

.rail-home {
  background: color-mix(in srgb, var(--copper) 16%, var(--bg));
}

.rail-card {
  background: var(--bg-deep);
  color: var(--ink-invert);
}

.rail-card p { color: color-mix(in srgb, var(--ink-invert) 80%, transparent); }
.rail-card h3 { margin: 0.4rem 0 0.75rem; }

.rail-kicker {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--leaf);
}

.rail-home .rail-kicker { color: var(--copper); }

.rail h3, .desk h3, .steps h3, .floor-mosaic h3, .rhythm-grid h3, .contact-card h3, .estimate h3 {
  font-size: var(--step-1);
  margin-top: 0.35rem;
}

.bake-grid, .about-grid, .contact-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.bake-photo, .about-photo { margin: 0; }

.bake-photo img, .about-photo img, .floor-mosaic img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bake-photo img {
  border-radius: 2.8rem 1.4rem 2.2rem 1.2rem;
  aspect-ratio: 3 / 4;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--copper);
}

.desk-grid {
  display: grid;
  gap: var(--gap);
}

.desk {
  background: var(--bg);
  border: 1px solid var(--line);
}

.desk-wholesale {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-color: transparent;
}

.desk-wholesale p { color: color-mix(in srgb, var(--ink-invert) 78%, transparent); }

.desk-hardware {
  background: color-mix(in srgb, var(--copper) 12%, var(--bg));
}

.desk-index {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1;
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.about-facts li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.about-facts strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

.about-facts span { color: var(--ink-soft); font-size: var(--step--1); }

.about-photo img {
  border-radius: 1.4rem 3rem 1.6rem 2.4rem;
  aspect-ratio: 3 / 4;
}

.about-photo figcaption, .floor-mosaic figcaption p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  margin-top: 0.55rem;
}

.floor-mosaic {
  display: grid;
  gap: var(--gap);
}

.floor-mosaic img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.floor-wide img { aspect-ratio: 16 / 10; border-radius: 2.6rem 1.2rem 2rem 1.2rem; }

.rhythm-grid {
  display: grid;
  gap: var(--gap);
}

.rhythm-grid article {
  background: var(--bg-alt);
  border-radius: 2.2rem 1.2rem 2rem 1.1rem;
}

.rhythm-grid article:nth-child(2) { background: color-mix(in srgb, var(--leaf) 14%, var(--bg)); }
.rhythm-grid article:nth-child(3) { background: color-mix(in srgb, var(--copper) 14%, var(--bg)); }

.panel {
  display: grid;
  gap: 1.25rem;
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-radius: 2rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.panel .eyebrow { color: var(--accent); }

.channel {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.channel legend {
  width: 100%;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.channel label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--ink-invert) 28%, transparent);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: var(--step--1);
}

.switches { display: grid; gap: 0.55rem; }

.switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-invert) 22%, transparent);
  position: relative;
}

.switch-ui::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-invert);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-ui { background: var(--copper); }
.switch input:checked + .switch-ui::after {
  transform: translateX(20px);
  background: var(--bg);
}

.switch input:focus-visible + .switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.switch-copy { display: grid; }
.switch-name { font-weight: 700; }
.switch-hint {
  color: color-mix(in srgb, var(--ink-invert) 68%, transparent);
  font-size: var(--step--1);
}

.iso-viewport {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.iso-scene {
  width: 360px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg) scale(0.62);
}

.bldg {
  position: absolute;
  transform-style: preserve-3d;
  transform: translateZ(var(--h));
  background: var(--roof);
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}

.bldg::before,
.bldg::after {
  content: "";
  position: absolute;
  background: var(--wall);
}

.bldg::before {
  width: 100%;
  height: var(--h);
  left: 0;
  top: 100%;
  transform-origin: top center;
  transform: rotateX(-90deg);
  background: var(--wall);
}

.bldg::after {
  width: var(--h);
  height: 100%;
  left: 100%;
  top: 0;
  transform-origin: left center;
  transform: rotateY(90deg);
  background: var(--side);
}

.bldg.is-dim { opacity: 0.22; filter: saturate(0.15); }
.bldg[data-zone]:not(.is-dim) {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 75%, transparent);
}

.h6 { --h: 6px; }
.h8 { --h: 8px; }
.h14 { --h: 14px; }
.h16 { --h: 16px; }
.h20 { --h: 20px; }
.h28 { --h: 28px; }
.h36 { --h: 36px; }
.h40 { --h: 40px; }
.h44 { --h: 44px; }
.h58 { --h: 58px; }
.h66 { --h: 66px; }
.h74 { --h: 74px; }
.h96 { --h: 96px; }
.h104 { --h: 104px; }

.ground { left: 0; top: 0; width: 360px; height: 320px; --roof: var(--leaf); --wall: var(--bg-deep); --side: var(--bg-deep); }
.path { left: 148px; top: 160px; width: 52px; height: 78px; --roof: var(--line); --wall: var(--bg-alt); --side: var(--bg-alt); }
.dock { left: 18px; top: 198px; width: 124px; height: 96px; --roof: var(--ink); --wall: color-mix(in srgb, var(--ink) 70%, var(--bg-deep)); --side: var(--bg-deep); }
.pallet { left: 36px; top: 218px; width: 36px; height: 28px; --roof: var(--accent); --wall: var(--copper); --side: var(--accent-soft); }
.pallet-b { left: 80px; top: 238px; width: 42px; height: 26px; --roof: var(--copper); --wall: var(--accent); --side: var(--ink); }
.market { left: 24px; top: 22px; width: 154px; height: 112px; --roof: var(--accent-soft); --wall: var(--bg); --side: var(--line); }
.oven { left: 42px; top: 38px; width: 28px; height: 28px; --roof: var(--accent); --wall: var(--copper); --side: var(--accent); }
.counter { left: 40px; top: 146px; width: 128px; height: 30px; --roof: var(--ink-invert); --wall: var(--ink-soft); --side: var(--line); }
.caselet { left: 58px; top: 152px; width: 40px; height: 18px; --roof: var(--accent); --wall: var(--ink-invert); --side: var(--copper); }
.house { left: 198px; top: 28px; width: 136px; height: 122px; --roof: var(--bg); --wall: var(--bg-deep); --side: color-mix(in srgb, var(--bg-deep) 72%, var(--copper)); }
.kitchen { left: 214px; top: 158px; width: 86px; height: 48px; --roof: var(--accent-soft); --wall: var(--bg-deep); --side: var(--copper); }
.climate { left: 292px; top: 44px; width: 24px; height: 24px; --roof: var(--copper); --wall: var(--ink); --side: var(--accent); }
.shed { left: 186px; top: 214px; width: 132px; height: 74px; --roof: var(--ink); --wall: var(--copper); --side: var(--bg-deep); }
.chest { left: 204px; top: 228px; width: 24px; height: 42px; --roof: var(--copper); --wall: var(--ink); --side: var(--accent); }

.iso-tags { list-style: none; margin: 0; padding: 0; }

.iso-tag {
  position: absolute;
  font-size: var(--step--1);
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.iso-tag.is-on { opacity: 1; }
.tag-bake { top: 16%; left: 12%; }
.tag-gastro { top: 46%; left: 8%; }
.tag-appliances { top: 18%; right: 8%; }
.tag-hardware { bottom: 16%; right: 14%; }
.tag-fmcg { bottom: 12%; left: 18%; }

.estimate h3 { margin: 1rem 0 0.35rem; }
.estimate ul {
  margin: 0;
  padding-left: 1.1rem;
  color: color-mix(in srgb, var(--ink-invert) 82%, transparent);
}
.estimate li + li { margin-top: 0.35rem; }

.estimate-note {
  color: color-mix(in srgb, var(--ink-invert) 72%, transparent);
  font-size: var(--step--1);
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-invert) 18%, transparent);
  padding: 0.55rem 0;
}

.estimate-row strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  white-space: nowrap;
}

.estimate .btn { margin-top: 1rem; }

.contact-card, .contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
}

.contact-form { display: grid; gap: 0.9rem; }
.contact-card a { color: var(--bg-deep); }

.site-footer {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-top: 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.footer-nav a, .footer-address a { text-decoration: none; }
.footer-address {
  color: color-mix(in srgb, var(--ink-invert) 78%, transparent);
  margin: 0;
}

.site-footer .site-footer__bottom {
  color: color-mix(in srgb, var(--ink-invert) 68%, transparent);
  border-top-color: color-mix(in srgb, var(--ink-invert) 18%, transparent);
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; }
  .rails { grid-template-columns: 1fr 0.85fr 1fr; align-items: stretch; }
  .rail-card { transform: translateY(1.25rem); }
  .bake-grid { grid-template-columns: 0.82fr 1.18fr; }
  .about-grid { grid-template-columns: 1.05fr 0.95fr; }
  .floor-mosaic { grid-template-columns: 1fr 1fr; }
  .floor-wide { grid-column: 1 / -1; }
  .rhythm-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
  .iso-scene { transform: rotateX(58deg) rotateZ(-42deg) scale(0.78); }
  .iso-viewport { min-height: 380px; }
  .desk-grid {
    grid-template-columns: 1.15fr 0.85fr 1fr;
    grid-template-areas:
      "wh bake groc"
      "misc hard appl";
  }
  .desk-wholesale { grid-area: wh; }
  .desk:nth-child(2) { grid-area: bake; }
  .desk:nth-child(3) { grid-area: groc; }
  .desk:nth-child(4) { grid-area: misc; }
  .desk:nth-child(5) { grid-area: hard; }
  .desk:nth-child(6) { grid-area: appl; }
}

@media (min-width: 1100px) {
  .panel {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: center;
  }
  .estimate {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr 1fr;
    gap: 0.75rem 1.5rem;
    align-items: start;
    border-top: 1px solid color-mix(in srgb, var(--ink-invert) 18%, transparent);
    padding-top: 1rem;
  }
  .estimate .btn { grid-column: 1 / -1; margin-top: 0.25rem; }
  .iso-scene { transform: rotateX(58deg) rotateZ(-42deg) scale(0.9); }
  .iso-viewport { min-height: 420px; }
}

@media (max-width: 767px) {
  .about-facts { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
