/**
 * Avahouse Bold Grid — editorial / Instagram-grid energy
 * Palette: sage teal, mustard, terracotta, warm beige, ink
 */

:root {
  --teal: #5f7f78;
  --teal-dark: #3d5651;
  --mustard: #e3c34f;
  --mustard-deep: #c9a832;
  --terra: #c2543d;
  --terra-dark: #9a3d2e;
  --cream: #ebe4d9;
  --paper: #f7f2ea;
  --ink: #1a1a1a;
  --ink-soft: rgba(26, 26, 26, 0.7);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 4px;
  --gap: 14px;
  --max: 1180px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile,
  .headline-stack span,
  .circle-blob,
  [data-reveal] {
    transition: none !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* ----- Nav ----- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.nav-inline {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-inline a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.nav-inline a:hover,
.nav-inline a:focus-visible {
  border-bottom-color: var(--terra);
}

@media (max-width: 720px) {
  .nav-inline {
    display: none;
  }
}

/* ----- Hero ----- */
.hero-bold {
  padding: 48px 0 56px;
  position: relative;
}

.hero-side {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-stripes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 280px;
}

.hero-stripes span {
  display: block;
  height: 14px;
  border: 3px solid var(--ink);
}

.hero-stripes span:nth-child(1) {
  background: var(--teal);
}

.hero-stripes span:nth-child(2) {
  background: var(--mustard);
}

.hero-stripes span:nth-child(3) {
  background: var(--terra);
}

.hero-stripes span:nth-child(4) {
  background: var(--cream);
}

.hero-logo-block {
  border: 3px solid var(--ink);
  padding: 20px 20px 18px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-logo-img {
  margin-bottom: 14px;
}

.hero-logo-caption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.headline-stack {
  position: relative;
  z-index: 2;
}

.headline-stack .line {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.headline-stack .outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}

.headline-stack .solid {
  color: var(--ink);
}

.headline-stack .accent-terra {
  color: var(--terra);
  -webkit-text-stroke: 0 transparent;
}

.headline-stack .accent-mustard {
  background: var(--mustard);
  padding: 0 0.12em;
  display: inline-block;
}

.hero-lead {
  max-width: 38ch;
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--terra);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--mustard);
  border-color: var(--ink);
}

.circle-blob {
  position: absolute;
  width: min(52vw, 380px);
  height: min(52vw, 380px);
  border-radius: 50%;
  background: var(--mustard);
  right: -5%;
  top: 10%;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.circle-blob--terra {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  background: var(--terra);
  left: -8%;
  bottom: -10%;
  top: auto;
  right: auto;
}

/* ----- Mosaic grid ----- */
.section-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: "";
  width: 40px;
  height: 4px;
  background: var(--ink);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (min-width: 720px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
  }

  .mosaic--feat .tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
  }

  .mosaic--feat .tile--wide {
    grid-column: span 4;
  }
}

.mosaic--feat .tile:first-child {
  grid-column: 1 / -1;
  min-height: 280px;
}

.mosaic--feat .tile--wide {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 0;
}

.wide-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 200px;
}

@media (min-width: 640px) {
  .wide-split {
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
  }
}

.wide-split .tile__img {
  position: relative;
  min-height: 200px;
}

.wide-split .tile__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-split__text {
  padding: 22px;
  background: var(--terra);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 3px solid var(--ink);
}

@media (min-width: 640px) {
  .wide-split__text {
    border-top: none;
    border-left: 3px solid var(--ink);
  }
}

.wide-split__text .tile-quote {
  margin: 0;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  min-height: 180px;
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: default;
}

.tile--tilt {
  transform-style: preserve-3d;
}

.tile:hover {
  box-shadow: 8px 8px 0 var(--ink);
}

.tile:not(.tile--tilt):hover {
  transform: translateY(-6px);
}

.tile__img {
  position: absolute;
  inset: 0;
}

.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.tile:hover .tile__img img {
  transform: scale(1.06);
}

.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tile--text {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile--text.teal {
  background: var(--teal);
  color: var(--paper);
}

.tile--text.mustard {
  background: var(--mustard);
  color: var(--ink);
}

.tile--text.terra {
  background: var(--terra);
  color: var(--paper);
}

.tile-quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}

.tile-sub {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.9;
}

.tile--wide {
  grid-column: span 2;
}

@media (min-width: 720px) {
  .tile--wide {
    grid-column: span 2;
  }
  .tile--hero-span {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 380px;
  }
}

/* dual type block */
.dual-type {
  text-align: center;
  padding: 80px 20px;
  background: var(--teal);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin: 60px 0;
}

.dual-type .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.dual-type .big .out {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--paper);
}

.dual-type .big .in {
  display: block;
  color: var(--mustard);
}

/* caution stripe */
.stripe-band {
  height: 36px;
  border: 3px solid var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    var(--mustard),
    var(--mustard) 14px,
    var(--ink) 14px,
    var(--ink) 28px
  );
  margin: 40px 0;
}

/* bottom CTA */
.end-cta {
  padding: 60px 24px;
  text-align: center;
  border: 3px solid var(--ink);
  background: var(--cream);
}

.end-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.end-cta p {
  max-width: 52ch;
  margin: 0 auto 24px;
  font-weight: 600;
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

.site-foot {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-foot a {
  color: var(--terra-dark);
  font-weight: 800;
}
