:root {
  --font-display: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-muted: #f2f2f2;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-glass: rgba(17, 17, 17, 0.55);
  --color-glass-light: rgba(255, 255, 255, 0.35);
  --max-width: 1100px;
  --header-height: 72px;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500&display=swap');

@font-face {
  font-family: 'OPTIBankGothic-Light';
  src: url('/assets/fonts/OPTIBankGothic-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-black);
  background: var(--color-white);
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell main {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.page-shell main .body-header {
  grid-row: 1;
}

.page-shell main > :not(.body-header) {
  grid-row: 2;
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

main {
  padding: calc(var(--header-height) + 48px) 6vw 60px;
}

.home-page main {
  padding: 0;
}

.page--centered {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 80px;
}

.page--bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.page--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  z-index: 0;
}

.page--bg > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 6vw;
  z-index: 20;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 60px;
}

.logo--white,
.logo--black,
.icon--white,
.icon--black {
  display: none;
}

.header-theme--white .logo--white,
.header-theme--white .icon--white {
  display: block;
}

.header-theme--black .logo--black,
.header-theme--black .icon--black {
  display: block;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 20px;
}

.menu-toggle img {
  width: 30px;
  height: 22px;
}

.header-theme--white .menu-toggle {
  color: var(--color-white);
}

.header-theme--black .menu-toggle {
  color: var(--color-black);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 30vw;
  max-width: 420px;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 40;
  padding: 28px 24px 80px;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

.menu-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: all;
}

.menu-open {
  overflow: hidden;
}

.sidebar__close {
  color: var(--color-black);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar__nav a {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 12px;
}

.menu-dot {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar__nav .active .menu-dot {
  opacity: 1;
}

.sidebar__social {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.sidebar__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  color: var(--color-black);
}

.sidebar__social img {
  width: 26px;
  height: 26px;
}

.body-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px 0;
}

.body-header__title {
  font-family: var(--font-display);
  font-weight: 300 !important;
  font-size: 42px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
}

.body-header__divider {
  flex: 1;
  height: 0;
  border-top: 1px solid currentColor;
  opacity: 0.3;
}

.glass-card {
  background: var(--color-glass);
  padding: 28px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  color: var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  flex: 1;
  align-self: stretch;
}

.glass-card--center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.glass-card.light {
  background: var(--color-glass-light);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.site-footer {
  padding: 12px 6vw 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #222222;
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  z-index: 5;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.hero-dot.active {
  background: var(--color-white);
  transform: scale(1.2);
}

.about-content {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0 6vw;
  font-size: 18px;
}

.brands-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 1025px) {
  .brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.brand-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.brand-card img {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 70%;
  padding: 12px;
}

.brand-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0 6vw;
  font-size: 18px;
  text-align: center;
}

.brand-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.references-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.reference-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-width: 0;
}

.reference-item p {
  min-height: 28px;
}

.reference-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #f6f6f6;
  margin-bottom: 10px;
}

.reference-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reference-slide.is-active {
  opacity: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.contact-info {
  font-size: 16px;
  line-height: 1.8;
  width: 100%;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info h2 + p {
  margin-top: 0;
}

.contact-info h2:not(:first-of-type) {
  margin-top: 18px;
}

.contact-map {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 10px 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 160px;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.recaptcha {
  display: flex;
  justify-content: flex-start;
}

.contact-form label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-family: var(--font-sans);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-message {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-message.error {
  color: #b20000;
}

.form-message.success {
  color: #006b3a;
}

@media (max-width: 1200px) {
  .references-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: 50vw;
  }

  .body-header__title {
    font-size: 34px;
  }

  .about-text {
    font-size: 16px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brands-grid {
    grid-template-columns: 1fr !important;
  }

  .references-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  main {
    padding: calc(var(--header-height) + 32px) 8vw 50px;
  }

  .sidebar {
    width: 100vw;
    max-width: 100vw;
  }

  .body-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .body-header__divider {
    width: 100%;
    max-width: 320px;
    margin: 4px auto 0;
  }

  .body-header__title {
    font-size: 28px;
  }

  .logo {
    height: 50px;
  }

  .about-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .brand-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .brands-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .site-footer {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .home-page .hero-slide:nth-child(1) {
    background-position: 30% center;
  }

  .home-page .hero-slide:nth-child(3) {
    background-position: 60% center;
  }

  .home-page .hero-slide:nth-child(4) {
    background-position: 40% center;
  }

  .home-page .hero-slide:nth-child(5) {
    background-position: 30% center;
  }
}

@media (max-width: 520px) {
  .references-grid {
    grid-template-columns: 1fr;
  }
}