/* anaptecs website – plain CSS, no build step.
   Colors taken from the former Wix site: red #cf2538, grey #969594, light grey #f2f2f2. */

:root {
  --red: #cf2538;
  --red-dark: #a91c2c;
  --ink: #1d1d1f;
  --text: #3a3a3c;
  --muted: #6e6e73;
  --grey: #969594;
  --light: #f4f4f5;
  --line: #e3e3e6;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 300; line-height: 1.2; margin: 0 0 .6em; }
h3 { font-weight: 500; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

.kicker {
  margin: 0 0 .5em;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.red-rule { display: block; width: 72px; height: 3px; background: var(--red); margin: 1.2em 0; }

.button {
  display: inline-block;
  padding: .7em 1.6em;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.button-large { font-size: 1.1rem; padding: .9em 2em; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { display: block; width: 104px; height: auto; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--red); background: var(--light); }
.site-nav a[aria-current="page"] { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav a { padding: 12px 8px; border-radius: 6px; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Home: hero */

.hero { position: relative; padding-bottom: 72px; }
/* Wide image strip (jeaf-emotions.png, 1474 x 228) shown in full width; the card overlaps its lower edge. */
.hero-image {
  height: max(200px, calc(100vw * 228 / 1474));
  background-size: cover; background-position: center;
}
.hero .container { position: relative; display: flex; justify-content: flex-end; margin-top: -96px; }
.hero-card {
  background: rgba(255, 255, 255, .96); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px; max-width: 620px;
}
.hero-card h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--red); margin: 0; }
.hero-text p { margin: 0 0 1em; }

/* Sections */

.section { padding: 96px 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--red); margin-bottom: 1.2em; }
.section-title span { color: var(--ink); }

.services { background: #dcdcde; } /* darker than the slider (#f2f2f2), as on the former Wix site (#dbdbdb) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; color: var(--text); text-decoration: none;
  border-top: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { color: var(--text); transform: translateY(-4px); border-top-color: var(--red); box-shadow: 0 12px 32px rgba(0, 0, 0, .1); }
.card h3 { font-size: 1.35rem; font-weight: 400; color: var(--ink); }
.card p { margin: 0 0 1em; font-size: .97rem; }
.card-more { margin-top: auto; color: var(--red); font-weight: 500; font-size: .95rem; }

/* Quote slider (as on the former Wix site: light grey, red quote, red line below) */
.quotes { background: #f2f2f2; border-bottom: 10px solid var(--red); padding: 88px 0 48px; }
.slider { position: relative; padding: 0 64px; }
.slide { display: none; text-align: center; min-height: 260px; }
.slide.active { display: block; animation: slide-in .6s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.slide .kicker { color: var(--red); font-size: 1rem; letter-spacing: .05em; text-transform: none; }
.slide blockquote { margin: 0 auto; max-width: 860px; }
.slide blockquote p { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 300; color: var(--red); line-height: 1.35; margin: .3em 0 1em; }
.slide blockquote footer { color: var(--ink); line-height: 1.8; }
.slide-product.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.slide-product img { width: 100%; height: auto; }
.slide-product h3 { color: var(--red); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; }
.slide-product p { font-size: 1.1rem; }
.slider-prev, .slider-next {
  position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.slider-prev { left: 0; } .slider-next { right: 0; }
.slider-prev::before, .slider-next::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.slider-prev::before { transform: translateX(4px) rotate(45deg); }
.slider-next::before { transform: translateX(-4px) rotate(-135deg); }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--white); box-shadow: 0 0 0 1px var(--grey); }
@media (max-width: 760px) {
  .slider { padding: 0 36px; }
  .slide-product.active { grid-template-columns: 1fr; gap: 24px; }
}

/* Careers (as on the former Wix site: light grey box, red heading, red line) */
.careers-box { background: #f2f2f2; padding: clamp(40px, 7vw, 96px) clamp(24px, 10%, 140px); }
.careers-box h2 { color: var(--red); font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 400; margin-bottom: .8em; }
.careers-body { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.careers-body .red-rule { width: 110px; margin-top: .8em; }
.careers-body p { font-size: 1.08rem; margin-top: 0; }
.careers-body .button { margin-top: 1em; }
@media (max-width: 760px) { .careers-body { grid-template-columns: 1fr; gap: 0; } }

.contact { text-align: center; }
.contact .section-title { margin-bottom: .4em; }
.contact-lead { color: var(--muted); margin: 0 auto 2em; max-width: 640px; }
.contact-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px;
  background: var(--light); border-radius: var(--radius); padding: 32px 40px; text-align: left;
}
.contact-box address { font-style: normal; }

/* Sub pages: image band as on the start page (no darkening), title below it */

.page-image {
  height: max(200px, calc(100vw * 228 / 1474));
  background-size: cover; background-position: center;
}
.page-title { padding-top: 56px; }
.page-title .container { max-width: 820px; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); margin: 0; }
.page-title h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--red); margin-top: 20px; }

.prose { max-width: 820px; padding-top: 40px; padding-bottom: 96px; }
.prose h2 { font-size: 1.8rem; color: var(--red); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.02rem; font-weight: 500; color: var(--ink); margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  margin: 1.5em 0; padding: 1em 1.5em; border-left: 3px solid var(--red);
  background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .note { background: #fff6e5; border-left: 3px solid #e0a100; padding: .8em 1.2em; border-radius: 0 6px 6px 0; }
.prose .back { margin-top: 3em; }
.prose .back a { text-decoration: none; font-weight: 500; }

/* Footer */

.site-footer { background: var(--light); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .92rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-address { font-style: normal; }
.footer-address strong { color: var(--ink); font-weight: 500; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .footer-social a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-social a:hover { color: var(--red); }
.footer-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-card { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .contact-box { padding: 24px; }
}

/* Side bar: decorative ruler at the left edge, only on wide screens (from the Wix design) */

.side-bar { display: none; }
@media (min-width: 1100px) and (min-height: 660px) {
  body { padding-left: 24px; }
  .side-bar {
    --step: 9px;        /* distance between two dashes */
    --dash: 3px;        /* height of a dash */
    --claim: 250px;     /* height of the grey block with the claim */
    display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    width: 24px; background: var(--white);
  }
  /* Dashes: white gaps over a gradient that gets darker towards the bottom */
  .side-bar::before {
    content: ""; position: absolute; top: 6px; left: 0; right: 2px;
    bottom: calc(var(--claim) + 6px);
    background:
      repeating-linear-gradient(to bottom, transparent 0 var(--dash), var(--white) var(--dash) var(--step)),
      linear-gradient(to bottom, #e4e4e6, #a3a3a6);
  }
  .side-bar-mark { position: absolute; left: 0; right: 2px; }
  .side-bar-mark-red {
    top: calc(6px + 20 * var(--step)); height: calc(var(--step) + var(--dash));
    background: repeating-linear-gradient(to bottom, var(--red) 0 var(--dash), transparent var(--dash) var(--step));
  }
  .side-bar-claim {
    position: absolute; left: 0; right: 2px; bottom: 0; height: var(--claim);
    display: flex; align-items: center; justify-content: center;
    background: #b5b5b8; color: var(--white);
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: .9rem; line-height: 1; letter-spacing: .06em; white-space: nowrap;
  }
}
