/* ═══════════════════════════════════════
   LAYOUT — Header, Background, Hero, Footer
   ═══════════════════════════════════════ */


/* ── Header ── */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 3.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease,
              border-color 0.5s ease;
}

.hdr.scrolled {
  background: var(--bg-left);
  border-bottom-color: var(--border-l);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo svg {
  display: block;
  width: 250px;
  max-width: 250px;
  height: auto;
}

.btn-hs {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.42rem 1.1rem;
  background: var(--text);
  color: var(--bg-left);
  border-radius: 100px;
  transition: all var(--ease);
}

.btn-hs:hover {
  background: var(--accent);
  transform: translateY(-1px);
}


/* ── Background layer (persistent behind all pages) ── */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-right);
  transition: background 1s ease;
}

.bg-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ── Main app area ── */

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}


/* ═══════════════════════════════════════
   HERO — Two-column layout
   Base hero used by home page.
   Contact page modifies via .hero--contact
   ═══════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  position: relative;
  overflow: hidden;
}

.h-left {
  position: relative;
  padding: calc(56px + 2rem) 2.5rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  background: var(--bg-left);
  min-width: 0;
}

.h-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-l);
  z-index: 3;
}

.h-left-inner {
  /* Wrapper for panel content — allows consistent padding */
}

.h-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(56px + 1rem) 3rem 2rem;
  overflow-y: auto;
}


/* ── Contact page hero variant ──
   Narrower left panel, wider card area */

.hero--contact {
  grid-template-columns: 0.30fr 0.70fr;
  min-height: 100vh;
}

.h-left--contact {
  padding: calc(56px + 2.5rem) 2rem 2rem 2.5rem;
}

.h-right--contact {
  padding: calc(56px + 3rem) 3rem 2rem;
  align-items: center;
}


/* ── Section containers ── */

.sdiv {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.sdiv hr {
  border: none;
  height: 1px;
  background: var(--border);
}


/* ── Breadcrumb ── */

.breadcrumb {
  margin-bottom: 1.2rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.7rem;
  color: var(--text-ter);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '›';
  margin: 0 0.4rem;
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-sec);
  transition: color var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}


/* ── Footer ── */

.ftr {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-ter);
}

.ftr a {
  color: var(--text-sec);
}

.ftr a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .logo svg {
    width: 160px;
    max-width: 160px;
  }
}