/* ==========================================================================
   The OWL Network — Hub landing page
   Hub-only stylesheet. Not shared with any mini-site (see ARCHITECTURE.md).
   Mobile-first. Breakpoints: 40rem / 48rem / 64rem (min-width).
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: #F4F2ED;
  font-family: 'Public Sans', sans-serif;
  color: #26262A;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
}

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

/* ===================== MASTHEAD ===================== */

.hub-header {
  background: #3A3A3A;
  color: #F4F2ED;
}

.hub-header__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hub-header__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.hub-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hub-header__logo {
  height: 2.9rem;
  width: auto;
  display: block;
}

.hub-header__wordmark-wrap {
  display: none;
  align-items: center;
  gap: 1.1rem;
}

.hub-header__divider {
  width: 1px;
  height: 1.5rem;
  background: currentColor;
  opacity: 0.22;
}

.hub-header__wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.72;
  white-space: nowrap;
}

.hub-header__lang {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(244, 242, 237, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle__btn {
  padding: 0.32rem 0.66rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(244, 242, 237, 0.7);
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-toggle__btn.is-active {
  background: #C4A93F;
  color: #2C2C2E;
  font-weight: 500;
}

/* ===================== HERO ===================== */

.hub-main {
  flex: 1;
  max-width: 76rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.6rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-hero {
  text-align: center;
  max-width: 60rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.hub-hero__eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.4em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #9a968b;
  margin-bottom: 1.1rem;
}

.hub-hero__headline {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.hub-hero__subhead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5e5e63;
  margin: 0;
}

/* ===================== TILES ===================== */

.hub-tiles {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.tile {
  position: relative;
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.4);
}

.tile--it:hover,
.tile--it:focus-visible {
  border-color: #35526E;
}

.tile--web:hover,
.tile--web:focus-visible {
  border-color: #4B3BFF;
}

.tile--wood:hover,
.tile--wood:focus-visible {
  border-color: #B5561E;
}

.tile--rent:hover,
.tile--rent:focus-visible {
  border-color: #C42A6B;
}

.tile__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.4rem;
}

.tile--it .tile__bar {
  background: #35526E;
}

.tile--web .tile__bar {
  background: #4B3BFF;
}

.tile--wood .tile__bar {
  background: #B5561E;
}

.tile--rent .tile__bar {
  background: #C42A6B;
}

.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #9a968b;
  text-transform: uppercase;
}

.tile__badge {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.tile__badge--it {
  border-radius: 0.55rem;
  background: #1F2329;
}

.tile__badge-mark {
  width: 2rem;
  height: auto;
  display: block;
}

.tile__badge--web {
  position: relative;
  border-radius: 0.85rem;
  background: #4B3BFF;
  overflow: hidden;
}

.tile__badge-dots {
  position: absolute;
  top: 0.36rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.16rem;
}

.tile__badge-dots span {
  width: 0.17rem;
  height: 0.17rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.tile__badge-dots span:nth-child(2) {
  background: rgba(255, 255, 255, 0.55);
}

.tile__badge-dots span:nth-child(3) {
  background: rgba(255, 255, 255, 0.35);
}

.tile__badge-mark--web {
  width: 1.82rem;
}

.tile__badge--wood {
  border-radius: 0.7rem;
  background: #F1E7D6;
  box-shadow:
    inset 0 0 0 2px #6B4A2E,
    inset 0 0 0 5px #F1E7D6,
    inset 0 0 0 6.5px #6B4A2E;
}

.tile__badge-mark--wood {
  width: 1.7rem;
}

.tile__badge-wrap {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex: none;
}

.tile__badge--rent {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  background: #C42A6B;
}

.tile__badge-mark--rent {
  width: 1.95rem;
  margin-top: 0.34rem;
}

.tile__tag {
  position: absolute;
  top: -0.3rem;
  right: -0.34rem;
  width: 1.05rem;
  height: 0.74rem;
  background: #fff;
  border: 1.5px solid #2A121F;
  border-radius: 0.2rem;
  transform: rotate(14deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile__tag-hole {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  border: 1.5px solid #2A121F;
}

.tile__tag-currency {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.5rem;
  color: #C42A6B;
  margin-left: 0.18rem;
}

.tile__title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.tile__title--it {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile__title--web {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.tile__title--wood {
  font-family: 'Zilla Slab', serif;
  font-weight: 600;
}

.tile__title--rent {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tile__desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5e5e63;
  margin: 0 0 1rem;
  max-width: 26rem;
}

.tile__cta {
  font-size: 0.92rem;
}

.tile__cta--it {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  color: #35526E;
}

.tile__cta--web {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  color: #4B3BFF;
}

.tile__cta--wood {
  font-family: 'Zilla Slab', serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: #B5561E;
}

.tile__cta--rent {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: #C42A6B;
}

/* ===================== FOOTER ===================== */

.hub-footer {
  border-top: 1px solid #e4e0d6;
}

.hub-footer__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hub-footer__copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #9a968b;
}

.hub-footer__nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #9a968b;
}

/* ===================== BREAKPOINTS ===================== */

@media (min-width: 40rem) {
  .hub-header__wordmark-wrap {
    display: flex;
  }
}

@media (min-width: 48rem) {
  .hub-hero__headline {
    white-space: nowrap;
  }

  .hub-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
