/* ==========================================================================
   Hybriona — software development studio
   White content theme. Navbar and footer stay black.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-soft: #f6f6f6;
  --black-elev: #ffffff;
  --white: #ffffff;
  --text: #0a0a0a;
  --text-muted: #555555;
  --text-dim: #777777;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: #0a0a0a;
  --radius: 16px;
  --max-width: 1240px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  background-color: var(--black);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:active {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

main {
  display: block;
  flex: 1 0 auto;
  background-color: var(--white);
}

/* Bootstrap overrides ------------------------------------------------------ */
.btn-primary {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
  border-radius: 0;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #333333;
  border-color: #333333;
  color: var(--white);
  box-shadow: none;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

/* Utilities --------------------------------------------------------------- */
.select-disable,
.selectDisable {
  -webkit-user-select: none;
  user-select: none;
}

.transition {
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}

.page-shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow--light {
  color: var(--text-dim);
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--gray {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn--solid:hover {
  background: #333333;
  border-color: #333333;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--light:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: var(--black);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--max-width);
  min-height: 52px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: auto;
  height: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav-link {
  position: relative;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--white);
}

.site-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--white);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav-cta:hover {
  background: #e6e6e6;
  color: var(--black);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Page hero --------------------------------------------------------------- */
.page-hero {
  background: var(--white);
  color: var(--text);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: var(--max-width);
  min-height: 360px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 0;
}

.page-hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
}

.page-hero-copy p {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.page-hero-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black-soft);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
}

/* Shared cards ------------------------------------------------------------ */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--black-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 19 / 10;
  overflow: hidden;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
}

.card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.5s ease;
}

.card:hover .card-thumb {
  transform: scale(1.04);
}

.card-text-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-description {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-url-section {
  margin-top: auto;
  padding: 0 22px 22px;
}

.card-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.card-url::after {
  content: '→';
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.card-url:hover::after {
  transform: translateX(4px);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr));
  gap: 48px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.site-footer-brand img {
  display: block;
  width: auto;
  height: 34px;
  margin-bottom: 20px;
}

.site-footer-brand p {
  margin: 0;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-title {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-link {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-footer-link:hover {
  color: var(--white);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

/* Reveal animation -------------------------------------------------------- */
html.site-ready body {
  animation: hybriona-fade-in 0.35s ease-out;
}

@keyframes hybriona-fade-in {
  from {
    opacity: 0.01;
  }
  to {
    opacity: 1;
  }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-nav {
    gap: 20px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-copy {
    padding: 56px 0 44px;
  }

  .page-hero-media {
    min-height: 240px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 68px 0;
  }

  .section-head--split {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-link {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav-link.active::after {
    display: none;
  }

  .site-nav-cta {
    margin-top: 16px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
