/* EISAO d.o.o. — maroon / cream / gold */

:root {
  --cream: #f5f5f0;
  --cream-dark: #e8e8e0;
  --maroon: #7a0f1a;
  --maroon-deep: #5c0c14;
  --maroon-light: #9a1f2e;
  --gold: #c5a059;
  --gold-muted: rgba(197, 160, 89, 0.85);
  --text: #1a1a1a;
  --text-muted: #3d3d3d;
  --white: #fff;
  --header-h: 4rem;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 15, 26, 0.08);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--maroon);
  text-decoration: none;
  line-height: 1;
}

.logo__suffix {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: super;
  margin-left: 0.15em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--maroon);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.site-nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--maroon);
}

.logo:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(122, 15, 26, 0.1);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero — split layout */
.hero {
  padding-top: var(--header-h);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero__top {
  position: relative;
  flex: 1;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 2rem;
  background-color: var(--cream);
}

.hero__top-digits {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__top-digit {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 1;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 15, 26, 0.14);
  user-select: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

@media (min-width: 1920px) {
  .hero__top-digit {
    font-size: clamp(4rem, 7vw, 8rem);
    -webkit-text-stroke: 1px rgba(122, 15, 26, 0.12);
  }
}

.hero__top-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  text-align: center;
}

/* Cream hero — rotating headline + detail */
.hero-rotator {
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  outline: none;
}

.hero-rotator:focus-visible {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--maroon);
  border-radius: 4px;
}

.hero-rotator__label {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-rotator__viewport {
  min-height: 11rem;
  margin-bottom: 0;
}

.hero-rotator__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
}

.hero-rotator__title-eisao {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--maroon);
}

.hero-rotator__slide {
  margin: 0;
}

.hero-rotator__slide[hidden] {
  display: none !important;
}

.hero-rotator__headline {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--maroon);
}

.hero-rotator__copy {
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__bottom {
  position: relative;
  flex: 1;
  min-height: 38vh;
  background: linear-gradient(165deg, var(--maroon-deep) 0%, var(--maroon) 45%, var(--maroon-light) 100%);
  color: var(--white);
  display: flex;
  align-items: stretch;
}

.hero__bottom-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 30% 20%, var(--white) 0%, transparent 50%);
}

.hero__bottom-inner {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem;
}

.hero__label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__pillars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__pillars li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__pillars li:last-of-type {
  border-bottom: none;
}

.hero-pillar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.hero-pillar:hover,
.hero-pillar:focus-visible {
  color: var(--white);
}

.hero-pillar:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero-pillar.is-active {
  color: var(--white);
}

.hero-pillar__text {
  min-width: 0;
}

.hero-pillar__marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.hero-pillar.is-active .hero-pillar__marker {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.35);
}

.hero__maroon-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__maroon-arrow {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.hero__maroon-arrow:hover,
.hero__maroon-arrow:focus-visible {
  background: rgba(197, 160, 89, 0.12);
  color: var(--white);
  border-color: var(--gold);
}

.hero__maroon-arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero__figure {
  position: relative;
  width: min(42vw, 220px);
  aspect-ratio: 3 / 4;
  align-self: end;
}

.hero__watermark {
  position: absolute;
  right: -5%;
  bottom: -8%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 28vw, 14rem);
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  .hero__bottom-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__figure {
    display: none;
  }
}

/* Sections */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 40rem;
}

.section {
  padding: 4.5rem 0;
}

.section--cream {
  background: var(--cream);
}

.section__header {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--maroon);
  line-height: 1;
}

.section__header--on-dark .section__title {
  color: var(--white);
}

.section__lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section__header--on-dark .section__lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards--five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .cards--five {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .cards:not(.cards--five) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  background: var(--white);
  border: 1px solid rgba(122, 15, 26, 0.1);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(92, 12, 20, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 16px 48px rgba(92, 12, 20, 0.08);
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
}

.card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Expertise band */
.section--maroon {
  background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 50%, var(--maroon-deep) 100%);
  color: var(--white);
}

.expertise-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .expertise-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
  }
}

.expertise-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
}

.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Contact */
.section--contact {
  background: var(--cream-dark);
  border-top: 1px solid rgba(122, 15, 26, 0.08);
  text-align: center;
}

.section--contact .section__title {
  margin-bottom: 1rem;
}

.contact__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.contact__email {
  margin: 0 0 1rem;
}

.contact__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  letter-spacing: 0.06em;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color 0.2s, border-color 0.2s;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--maroon-light);
  border-color: var(--maroon-light);
}

/* Footer */
.site-footer {
  background: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.75rem 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
