/* True Friends — Page layout & sections (mobile-first, responsive) */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--container-padding);
  overflow: hidden;
  text-align: left;
  --hero-photo-url: url("../img/studio-hero-bg.jpg");
}

.hero--consulting {
  --hero-photo-url: url("../img/consulting-hero-bg.jpg");
}

@media (min-width: 768px) {
  .hero {
    min-height: 92vh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--gradient-hero);
  background-size: cover;
  background-position: center;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--hero-photo-url, none);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 55%, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 70%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.1) 35%, rgba(10, 10, 10, 0.6) 100%);
}

.hero__content {
  display: grid;
  gap: 0;
  justify-items: start;
  width: fit-content;
  max-width: 100%;
}

.hero__logo { width: 140px; height: auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.5rem, 9vw, 96px);
  line-height: 0.85;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--color-cream);
}

.hero__cta {
  margin-top: 32px;
  justify-self: center;
}

.hero__cta--row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.hero p { max-width: 60ch; }

/* Hero modifiers */
.hero--center .hero__content {
  justify-items: center;
  text-align: center;
  max-width: 720px;
  gap: 32px;
}

.hero--center .hero__title { font-style: normal; }
.hero--center .hero__cta { margin-top: 0; }

.hero--studio .hero__scrim,
body.landing .hero__scrim {
  background:
    radial-gradient(ellipse 80% 55% at 50% 48%, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0) 75%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.2) 35%, rgba(10, 10, 10, 0.6) 100%);
}

.hero--studio .hero__title,
body.landing .hero__title {
  letter-spacing: -0.02em;
}

.hero--studio .hero__title {
  font-size: clamp(3.25rem, 13vw, 144px);
}

body.landing .hero__title {
  font-size: clamp(2.75rem, 10vw, 104px);
}

.hero--studio .hero__content,
body.landing .hero__content {
  gap: clamp(20px, 2.2vw, 32px);
}

body.landing .hero__content {
  max-width: 800px;
}

.hero__title-group {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hero__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Landing page layout ---------- */
/* Single-viewport page: header + stage + footer fits exactly in 100vh, no scroll. */
body.landing { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.landing main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.landing .hero { flex: 1; min-height: 0; }

/* Wraps main + email so the hero photo fills the space between nav and footer. */
.landing-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --hero-photo-url: url("../img/landing-page-hero.jpg");
}
.landing-stage .hero__photo { opacity: 0.55; }

.landing-email {
  align-self: center;
  padding: 0.5rem 0;
}

/* ---------- Section template ---------- */
.section {
  padding: var(--section-gap) 0;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

@media (min-width: 768px) {
  :root { --nav-height: 96px; }
}

.section + .section { padding-top: 0; }

.section__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.section__label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section__body {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .section__grid {
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: start;
  }
  /* Label sticks alongside the body content on desktop. */
  .section__label {
    position: sticky;
    top: 120px;
    padding-top: 0.4rem;
  }
}

/* ---------- Contact section ---------- */
.contact__head { margin-bottom: 0.5rem; }

.contact__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.contact__side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (min-width: 768px) {
  /* Form gets the wider column; aside is naturally compact. */
  .contact__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

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